/*
Theme Name: Beka Ferda Ranch
Theme URI: https://www.bekaferdaranch.com/
Author: Beka Ferda Ranch
Description: A refined, responsive WordPress theme for Beka Ferda Ranch and its equestrian experiences in the Ethiopian highlands.
Version: 1.0.1
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: beka-ferda
*/

:root {
  --ink: #17201b;
  --forest: #173e31;
  --forest-2: #245644;
  --cream: #f7f1e6;
  --paper: #fffdf8;
  --orange: #e86f2d;
  --orange-dark: #bd4d18;
  --gold: #d5a654;
  --muted: #67736c;
  --line: rgba(23, 62, 49, .16);
  --shadow: 0 20px 55px rgba(19, 39, 31, .13);
  --radius: 24px;
  --wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 9999; padding: 12px 16px; background: #fff; color: #000; }
.skip-link:focus { top: 12px; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 50; color: #fff; }
.nav-shell { width: var(--wrap); margin: 0 auto; min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid rgba(255,255,255,.22); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: Georgia, serif; font-size: 1.2rem; font-weight: 700; letter-spacing: .02em; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; font-family: Georgia, serif; font-size: 1.5rem; color: var(--gold); }
.main-nav { display: flex; align-items: center; gap: 29px; }
.main-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: #fff; text-decoration: none; font-size: .92rem; font-weight: 600; }
.main-nav a:hover, .main-nav a:focus-visible { color: #ffd69c; }
.nav-cta, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; background: var(--orange); color: #fff !important; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.nav-cta { min-height: 44px; }
.button:hover, .nav-cta:hover { transform: translateY(-2px); background: var(--orange-dark); box-shadow: 0 10px 30px rgba(232,111,45,.24); }
.button-secondary { background: transparent; border-color: rgba(255,255,255,.65); }
.button-secondary:hover { background: #fff; color: var(--forest) !important; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: transparent; color: #fff; font-size: 1.2rem; }

.hero { position: relative; min-height: 790px; display: grid; align-items: end; overflow: hidden; color: #fff; background: #122f25; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,29,22,.89) 0%, rgba(10,29,22,.54) 47%, rgba(10,29,22,.12) 79%), linear-gradient(0deg, rgba(10,29,22,.68), transparent 44%), var(--hero-image) center 12%/cover no-repeat; transform: scale(1.01); }
.hero-content { position: relative; z-index: 1; width: var(--wrap); margin: 0 auto; padding: 190px 0 125px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--gold); font-size: .76rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 38px; height: 1px; background: currentColor; }
.hero h1, .display-title { max-width: 760px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.4rem, 7vw, 6.9rem); line-height: .94; letter-spacing: -.045em; font-weight: 500; }
.hero h1 em { color: #ffb16f; font-weight: 400; }
.hero-copy { max-width: 590px; margin: 28px 0 35px; font-size: clamp(1.05rem, 1.6vw, 1.24rem); color: rgba(255,255,255,.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-facts { position: absolute; z-index: 2; right: max(20px, calc((100vw - 1180px)/2)); bottom: 46px; display: flex; gap: 34px; padding: 22px 28px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: rgba(10,29,22,.52); backdrop-filter: blur(14px); }
.fact strong { display: block; color: #fff; font-family: Georgia, serif; font-size: 1.55rem; line-height: 1; }
.fact span { display: block; margin-top: 6px; color: rgba(255,255,255,.65); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

.section { padding: 110px 0; }
.section-soft { background: var(--cream); }
.section-dark { color: #fff; background: var(--forest); }
.section-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: end; margin-bottom: 58px; }
.section-head h2, .story-copy h2, .booking-copy h2, .page-hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(2.55rem, 5vw, 4.8rem); line-height: 1.03; letter-spacing: -.035em; }
.section-head p { max-width: 560px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.section-dark .section-head p { color: rgba(255,255,255,.7); }

.experience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.experience-card { position: relative; min-height: 330px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.58); transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.experience-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); background: #fff; }
.card-number { color: var(--orange); font-size: .78rem; font-weight: 800; letter-spacing: .16em; }
.experience-card h3 { margin: 72px 0 10px; font-family: Georgia, serif; font-size: 2rem; line-height: 1.05; font-weight: 500; }
.experience-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--forest); font-size: .88rem; font-weight: 800; text-decoration: none; }
.card-link::after { content: "\2192"; color: var(--orange); font-size: 1.2rem; transition: transform .2s; }
.card-link:hover::after { transform: translateX(4px); }

.story-grid { display: grid; grid-template-columns: 1.03fr .97fr; gap: 80px; align-items: center; }
.story-visual { position: relative; min-height: 610px; border-radius: 180px 180px 24px 24px; background: linear-gradient(180deg, rgba(23,62,49,.04), rgba(23,62,49,.5)), var(--hero-image) 58% center/cover; box-shadow: var(--shadow); }
.story-visual-history { min-height: 460px; border-radius: 28px; background: linear-gradient(180deg, rgba(23,62,49,.02), rgba(23,62,49,.35)), var(--hero-image) 78% center/cover no-repeat; }
.story-badge { position: absolute; left: -28px; bottom: 38px; width: 150px; height: 150px; display: grid; place-items: center; padding: 20px; border-radius: 50%; background: var(--orange); color: #fff; text-align: center; transform: rotate(-7deg); }
.story-badge strong { display: block; font-family: Georgia, serif; font-size: 1.8rem; line-height: 1; }
.story-badge span { display: block; margin-top: 6px; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; }
.story-copy p { color: var(--muted); font-size: 1.05rem; }
.story-points { display: grid; gap: 17px; margin-top: 32px; }
.story-point { display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: start; }
.story-point i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #e8f0eb; color: var(--forest); font-style: normal; font-weight: 800; }
.story-point strong { display: block; }
.story-point small { color: var(--muted); }

.safety { position: relative; overflow: hidden; }
.safety::after { content: "WISE HORSE"; position: absolute; right: -30px; bottom: -55px; color: rgba(255,255,255,.035); font-family: Georgia, serif; font-size: 10vw; white-space: nowrap; }
.safety-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.25fr; gap: 90px; align-items: center; }
.safety h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.7rem, 5vw, 5rem); line-height: 1; font-weight: 500; }
.safety-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.safety-item { padding-top: 19px; border-top: 1px solid rgba(255,255,255,.18); }
.safety-item strong { display: block; margin-bottom: 6px; color: #fff; }
.safety-item span { color: rgba(255,255,255,.65); font-size: .9rem; }

.quote-card { max-width: 900px; margin: 0 auto; text-align: center; }
.quote-mark { color: var(--orange); font-family: Georgia, serif; font-size: 5rem; line-height: .7; }
.quote-card blockquote { margin: 25px 0; font-family: Georgia, serif; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.2; letter-spacing: -.02em; }
.quote-card cite { color: var(--muted); font-style: normal; font-size: .85rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }

.booking-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 75px; align-items: start; }
.booking-copy p { color: var(--muted); }
.contact-list { margin: 30px 0 0; padding: 0; list-style: none; }
.contact-list li { padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-list small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; font-weight: 800; }
.contact-list a { text-decoration: none; font-weight: 700; }
.booking-form { padding: 38px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 15px; border: 1px solid #d9dfda; border-radius: 10px; background: #fbfcfa; color: var(--ink); }
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(232,111,45,.17); border-color: var(--orange); }
.form-note { margin: 14px 0 0; color: var(--muted); font-size: .79rem; }
.notice { margin-bottom: 18px; padding: 13px 15px; border-radius: 10px; background: #e7f3eb; color: #18542f; font-weight: 700; }
.hp-field { position: absolute !important; left: -9999px !important; }

.page-hero { padding: 190px 0 90px; color: #fff; background: var(--forest); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 900px; }
.page-hero p:not(.eyebrow) { max-width: 680px; margin: 24px 0 0; color: rgba(255,255,255,.74); font-size: 1.12rem; }
.page-hero-rich { position: relative; overflow: hidden; min-height: 660px; display: grid; align-items: end; }
.page-hero-rich::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,29,22,.91), rgba(10,29,22,.4)), var(--hero-image) 60% top/cover no-repeat; }
.page-hero-rich .wrap { padding-bottom: 55px; }
.page-content { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 80px 0 110px; }
.page-content h2 { margin-top: 2em; font-family: Georgia, serif; font-size: 2.2rem; }
.page-content a { color: var(--orange-dark); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card, .safety-detail-grid article { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.value-card > span, .safety-detail-grid article > span { color: var(--orange); font-size: .76rem; font-weight: 800; letter-spacing: .15em; }
.value-card h3, .safety-detail-grid h3 { margin: 55px 0 10px; font-family: Georgia, serif; font-size: 1.8rem; line-height: 1.08; }
.value-card p, .safety-detail-grid p { margin: 0; color: var(--muted); }
.safety-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.safety-detail-grid article { min-height: 285px; }
.prep-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.prep-grid h2, .inner-cta h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.55rem, 5vw, 4.8rem); line-height: 1.03; font-weight: 500; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 19px 0 19px 42px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 18px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #e4efe8; color: var(--forest); font-weight: 800; }
.inner-cta { text-align: center; }
.inner-cta .eyebrow { justify-content: center; }
.inner-cta h2 { max-width: 820px; margin-inline: auto; }
.inner-cta .button { margin-top: 30px; }

.site-footer { padding: 78px 0 28px; color: rgba(255,255,255,.72); background: #0e261e; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .75fr .75fr; gap: 70px; padding-bottom: 56px; }
.footer-brand p { max-width: 390px; }
.footer-title { margin: 4px 0 18px; color: #fff; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 9px 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.13); font-size: .78rem; }

@media (max-width: 900px) {
  .menu-toggle { display: grid; place-items: center; }
  .main-nav { position: fixed; inset: 0; z-index: -1; display: none; flex-direction: column; justify-content: center; padding: 80px 30px; background: #102b22; }
  .main-nav.open { display: flex; z-index: 40; }
  .main-nav ul { flex-direction: column; font-size: 1.5rem; }
  .nav-shell { position: relative; z-index: 45; }
  .hero { min-height: 740px; }
  .hero::before { background: linear-gradient(90deg, rgba(10,29,22,.88), rgba(10,29,22,.36)), linear-gradient(0deg, rgba(10,29,22,.72), transparent 50%), var(--hero-image) 57% center/cover no-repeat; }
  .hero-facts { display: none; }
  .section-head, .story-grid, .safety-grid, .booking-grid, .prep-grid { grid-template-columns: 1fr; gap: 42px; }
  .experience-grid { grid-template-columns: 1fr 1fr; }
  .story-visual { min-height: 520px; order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --wrap: min(100% - 28px, 1180px); }
  .nav-shell { min-height: 76px; }
  .brand { font-size: 1.05rem; }
  .hero { min-height: 700px; }
  .hero-content { padding: 150px 0 74px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.25rem); }
  .section { padding: 78px 0; }
  .section-head { margin-bottom: 36px; }
  .experience-grid, .safety-list, .form-grid, .footer-grid, .value-grid, .safety-detail-grid { grid-template-columns: 1fr; }
  .experience-card { min-height: 280px; }
  .story-visual { min-height: 430px; border-radius: 110px 110px 20px 20px; }
  .story-badge { left: 10px; width: 125px; height: 125px; }
  .booking-form { padding: 24px; }
  .field-full { grid-column: auto; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
