/* ==========================================================
   Rivana Farms — multi-page additions (loads after style.css)
   ========================================================== */

/* nav: 8 links */
.nav { gap: 22px; }
.nav a { font-size: 14px; }
.nav a.active { color: var(--gold); }
.nav a.active::after { right: 0; }
.mnav a.active { color: var(--gold); }
@media (max-width: 1280px) { .header-call span { display: none; } .nav { gap: 18px; } }
.solid-header main { padding-top: 120px; }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; min-height: 520px; display: flex; align-items: flex-end; color: #fff; padding: 170px 0 72px; overflow: hidden; isolation: isolate; background: var(--deep); }
.ph-media { position: absolute; inset: 0; z-index: -1; }
.ph-media img { width: 100%; height: 100%; object-fit: cover; animation: phzoom 14s ease-out both; }
.ph-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 32, 20, .95) 0%, rgba(10, 32, 20, .55) 55%, rgba(10, 32, 20, .45) 100%); }
@keyframes phzoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.page-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.05; margin: 16px 0 14px; letter-spacing: -.01em; }
.page-hero h1 em { color: var(--gold); }
.page-hero .lead { color: rgba(255, 255, 255, .82); }
.page-hero .eyebrow { color: var(--gold); }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 13px; color: rgba(255, 255, 255, .7); margin-bottom: 22px; }
.crumbs a { color: #fff; font-weight: 500; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { opacity: .5; }
.dark-crumbs { color: var(--muted); }
.dark-crumbs a { color: var(--ink); }

/* ---------- helpers ---------- */
.pt0 { padding-top: 0 !important; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--brand); border-bottom: 1.5px solid currentColor; padding-bottom: 4px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.dark .link-arrow { color: var(--gold); }

/* home intro */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.intro .lead { margin-bottom: 22px; }

/* explore cards */
.explore { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ex-card { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 3/4; color: #fff; isolation: isolate; display: block; }
.ex-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.ex-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 32, 20, 0) 35%, rgba(10, 32, 20, .92) 100%); }
.ex-card:hover img { transform: scale(1.07); }
.ex-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; }
.ex-body .a-k { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.ex-body h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 6px 0 4px; }
.ex-body p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .78); padding-right: 46px; }
.ex-go { position: absolute; right: 20px; bottom: 22px; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; transition: transform .3s var(--ease); }
.ex-go svg { width: 18px; height: 18px; }
.ex-card:hover .ex-go { transform: rotate(-45deg); }

/* highlights */
.hl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hl { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-d); border-radius: 22px; padding: 30px 24px; text-align: center; transition: border-color .3s, transform .3s var(--ease); }
.hl:hover { border-color: rgba(245, 184, 0, .45); transform: translateY(-4px); }
.hl-ic { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; background: rgba(245, 184, 0, .12); color: var(--gold); display: grid; place-items: center; }
.hl-ic svg { width: 28px; height: 28px; }
.hl b { display: block; font-size: 17px; margin-bottom: 4px; }
.hl span { color: var(--muted-d); font-size: 14px; }

/* price teaser */
.teaser { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; background: #fff; border-radius: var(--r-lg); padding: 56px; box-shadow: var(--shadow-sm); }
.teaser-price { background: var(--cream); border-radius: 24px; padding: 36px; }

/* about: developer */
.dev { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.dev-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dev-facts div { background: #fff; border-radius: 20px; padding: 26px 22px; border: 1px solid var(--line); }
.dev-facts b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 500; color: var(--brand); line-height: 1.1; }
.dev-facts span { font-size: 13.5px; color: var(--muted); }

/* location: nearby + map */
.near-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.near { background: #fff; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.near:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.near img { width: 100%; height: 220px; object-fit: cover; }
.near > div { padding: 26px; position: relative; }
.near-t { position: absolute; top: -20px; right: 22px; background: var(--brand); color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 14px; border: 2px solid var(--gold); }
.near h3 { font-size: 19px; margin-bottom: 8px; }
.near p { color: var(--muted); font-size: 14.5px; margin: 0; }
.map-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; background: #fff; border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.map-copy { padding: 20px; }
.map-frame { border-radius: 20px; overflow: hidden; background: var(--cream-2); aspect-ratio: 16/11; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-frame.small { aspect-ratio: 16/10; margin-top: 4px; }

/* amenities: infrastructure */
.infra-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.infra { display: grid; grid-template-columns: 58px 1fr; grid-template-rows: auto auto; column-gap: 18px; background: #fff; border-radius: 20px; padding: 24px; border: 1px solid var(--line); }
.infra .f-ic { grid-row: span 2; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--cream); color: var(--brand); }
.infra .f-ic svg { width: 26px; height: 26px; }
.infra h3 { font-size: 17px; align-self: end; }
.infra p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* master plan: area table */
.area-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.atable { width: 100%; border-collapse: collapse; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); }
.atable td { padding: 18px 26px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.atable tr:last-child td { border-bottom: 0; }
.atable td:last-child { text-align: right; font-family: var(--serif); font-size: 20px; color: var(--brand); }
.atable tr:nth-child(odd) td { background: rgba(246, 241, 231, .5); }

/* pricing: included */
.incl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.incl { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.incl > svg { width: 30px; height: 30px; flex: none; padding: 6px; border-radius: 50%; background: var(--brand); color: #fff; }
.incl b { display: block; font-size: 16px; }
.incl span { color: var(--muted); font-size: 14px; }

/* gallery filter */
.gtabs { display: inline-flex; flex-wrap: wrap; gap: 6px; background: var(--cream-2); padding: 6px; border-radius: 999px; margin-bottom: 30px; }
.gtabs button { border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); transition: .25s; }
.gtabs button.active { background: var(--brand); color: #fff; }
.g-item[hidden] { display: none; }
.gallery-full { grid-auto-flow: dense; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: start; }
#contactForm { box-shadow: var(--shadow); }
#contactForm::before { display: none; }
.field textarea { resize: vertical; min-height: 90px; }
.contact-side { display: grid; gap: 12px; }
.c-card { display: grid; grid-template-columns: 52px 1fr 24px; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.c-card:hover { transform: translateX(4px); border-color: rgba(30, 91, 58, .35); box-shadow: var(--shadow-sm); }
.c-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--brand); color: var(--gold); display: grid; place-items: center; }
.c-ic.wa { background: #1f9d55; color: #fff; }
.c-ic svg { width: 24px; height: 24px; }
.c-card small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.c-card b { font-size: 15.5px; font-weight: 600; line-height: 1.4; display: block; }
.c-go { width: 20px; height: 20px; color: var(--muted); }

/* thank-you / 404 */
.msg-page { min-height: 80vh; display: grid; place-items: center; padding: 40px 0 100px; background: radial-gradient(800px 400px at 50% 0%, rgba(30, 91, 58, .12), transparent 70%); }
.msg-card { max-width: 680px; margin: 0 auto; text-align: center; }
.msg-card h1 { font-family: var(--serif); font-size: clamp(38px, 5vw, 60px); font-weight: 500; margin: 12px 0 14px; }
.msg-card h1 em { color: var(--brand); }
.msg-card .lead { margin: 0 auto 30px; }
.tick.big { width: 96px; height: 96px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin: 0 auto 26px; box-shadow: 0 0 0 14px rgba(30, 91, 58, .12); }
.tick.big svg { width: 44px; height: 44px; }
.msg-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.msg-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 34px; font-size: 14px; }
.msg-links a { color: var(--brand); font-weight: 600; }
.big-404 { font-family: var(--serif); font-size: clamp(110px, 18vw, 200px); line-height: 1; color: var(--brand); opacity: .9; }

/* privacy */
.prose-wrap { padding-top: 40px; }
.prose { max-width: 780px; margin: 0 auto; }
.prose h1 { font-family: var(--serif); font-size: clamp(36px, 4.5vw, 54px); font-weight: 500; margin-bottom: 8px; }
.prose h2 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin: 36px 0 12px; color: var(--brand); }
.prose p, .prose li { color: #3d382f; font-size: 16px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--brand); text-decoration: underline; }
.muted { color: var(--muted); }

/* footer social */
.foot-social { display: flex; gap: 10px; margin-top: 18px; }
.foot-social a { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-d); display: grid; place-items: center; color: var(--gold); transition: .25s; }
.foot-social a:hover { background: var(--gold); color: var(--ink); }
.foot-social svg { width: 18px; height: 18px; }
.footer .legal a:hover { color: var(--gold); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .explore { grid-template-columns: repeat(2, 1fr); }
  .hl-grid { grid-template-columns: repeat(2, 1fr); }
  .infra-grid, .incl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .intro, .teaser, .dev, .map-wrap, .area-wrap, .contact-grid { grid-template-columns: 1fr; }
  .intro { gap: 20px; }
  .teaser { padding: 36px 28px; gap: 32px; }
  .near-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: 440px; padding: 150px 0 56px; }
}
@media (max-width: 760px) {
  .page-hero { min-height: 380px; padding: 130px 0 44px; }
  .explore { gap: 12px; }
  .ex-card { aspect-ratio: 4/5; }
  .ex-body { padding: 16px; }
  .ex-body h3 { font-size: 19px; }
  .ex-body p { display: none; }
  .ex-go { width: 32px; height: 32px; right: 12px; bottom: auto; top: 12px; }
  .hl-grid { gap: 12px; }
  .hl { padding: 22px 14px; }
  .infra-grid, .incl-grid { grid-template-columns: 1fr; }
  .teaser-price { padding: 26px 22px; }
  .map-wrap { padding: 14px; gap: 14px; }
  .map-copy { padding: 12px 8px; }
  .atable td { padding: 14px 16px; font-size: 14.5px; }
  .atable td:last-child { font-size: 17px; }
  .solid-header main { padding-top: 100px; }
  .gtabs { display: flex; border-radius: 18px; }
  .gtabs button { flex: 1 1 auto; padding: 9px 12px; }
}

/* header fit fixes */
.nav a, .brand-sub, .brand-name { white-space: nowrap; }
.header .wrap { max-width: 1280px; }
@media (max-width: 1500px) { .header-call span { display: none; } }
@media (max-width: 1250px) { .nav { gap: 16px; } .nav a { font-size: 13.5px; } .header .wrap { gap: 20px; } }
.ex-body h3 { padding-right: 46px; }
@media (max-width: 760px) { .ex-body h3 { padding-right: 0; } }
.solid-header .header { background: rgba(12, 34, 22, .96); }
@media (max-width: 760px) { .ex-go { display: none; } }
