/* Oakley Land Company — shared styles
   Fonts: Cormorant Garamond (display) + Work Sans (body), loaded from Google Fonts in each page <head>. */

:root {
  --ground: #F4F0E6;
  --paper: #FBF9F3;
  --white: #FFFFFF;
  --ink: #1D2520;
  --muted: #4A554D;
  --green: #23392D;
  --green-dark: #1B2D23;
  --green-line: #3B5446;
  --green-soft: #5C7364;
  --cream-text: #EFEADF;
  --cream-muted: #CFC8B8;
  --acorn: #8E5426;
  --acorn-light: #D9B48A;
  --line: #DDD5C4;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
  --max: 1200px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--ground); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--acorn); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.05; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--acorn); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.bg-paper { background: var(--paper); }
.bg-ground { background: var(--ground); }
.bg-green { background: var(--green); color: var(--cream-text); }
.bordered { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 56px; align-items: center; }
.split.top { align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 24px 40px; }

.eyebrow { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--acorn); font-weight: 600; }
.bg-green .eyebrow { color: var(--acorn-light); }
.h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.02; text-wrap: balance; }
.h2 { font-size: clamp(34px, 4.4vw, 54px); }
.h2-lg { font-size: clamp(38px, 5vw, 62px); line-height: 1.02; }
.h3 { font-size: 28px; font-weight: 600; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; text-wrap: pretty; }
.body { font-size: 17px; color: var(--muted); text-wrap: pretty; }
.small { font-size: 14px; color: var(--muted); }
.bg-green h2 { color: var(--paper); }
.bg-green .body, .bg-green .small { color: var(--cream-muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 22px; font-weight: 500; text-decoration: none; border-radius: 2px; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 500; }
.btn-primary { background: var(--green); color: var(--paper); }
.btn-primary:hover { background: #2F4D3C; color: var(--paper); }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--green-dark); }
.btn-light:hover { background: #fff; color: var(--green-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.icon { width: 14px; height: 14px; flex-shrink: 0; }

/* Family bar */
.family { background: var(--green-dark); color: #E9E3D5; font-size: 13px; letter-spacing: .04em; }
.family .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.family nav, .family .right { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; }
.family a { color: #E9E3D5; text-decoration: none; }
.family a:hover { color: #fff; text-decoration: underline; }
.family a[aria-current="page"] { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 6px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; padding-top: 16px; padding-bottom: 16px; }
.logo img { height: 60px; width: auto; }
.logo.oaks img { height: 56px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-size: 15px; }
.main-nav a { text-decoration: none; }
.main-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; font-weight: 600; }
.menu-toggle { display: none; }

/* Hero chooser */
.choice { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.choice:hover { border-color: var(--acorn); color: var(--ink); }
.choice strong { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; }
.choice span { font-size: 14px; color: var(--muted); }
.choice em { font-style: normal; font-size: 13px; color: var(--green); white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }

/* Stats */
.stats { padding: 40px 0; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; }
.stat span { font-size: 14px; color: var(--cream-muted); }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.figures div { padding: 18px 0; display: flex; flex-direction: column; }
.figures b { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; }
.figures span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.figures.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Cards */
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.card:hover { border-color: var(--acorn); color: var(--ink); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card .in { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.card .tag { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.card .name { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; }
.card .foot { display: flex; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); border-top: 1px solid var(--ink); }
.steps li { padding: 24px 24px 24px 0; display: flex; flex-direction: column; gap: 8px; }
.steps .n { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--acorn); }
.steps .t { font-weight: 600; }
.steps .d { font-size: 15px; color: var(--muted); }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.points div { border-top: 1px solid var(--green-soft); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.points b { font-family: var(--serif); font-weight: 400; font-size: 28px; color: var(--paper); }
.points span { font-size: 15px; color: var(--cream-muted); }

.quote { margin: 0; padding: 40px; background: var(--ground); display: flex; flex-direction: column; gap: 20px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.25; }
.quote figcaption { font-size: 14px; color: var(--muted); }

.map { border: 1px solid var(--line); background: var(--paper); }
.map iframe { width: 100%; aspect-ratio: 16 / 10; border: 0; display: block; }
.place { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); min-height: 44px; }
.place:hover { background: var(--ground); color: var(--ink); }
.place .pin { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: var(--paper); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.place .who { display: flex; align-items: center; gap: 12px; }
.place.is-active { background: var(--ground); }
.place .go { text-decoration: none; }
.place .who span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.place small { font-size: 13px; color: var(--muted); }
.place .go { font-size: 13px; white-space: nowrap; color: var(--green); }

/* Footer */
.site-footer { background: var(--green-dark); color: #E9E3D5; }
.site-footer .wrap { padding-top: 72px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 48px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 40px; }
.site-footer .col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.site-footer .label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-muted); }
.site-footer a { color: var(--paper); }
.site-footer .legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 24px; border-top: 1px solid var(--green-line); font-size: 13px; color: var(--cream-muted); }
.site-footer .eho { height: 36px; width: auto; }
.site-footer .logo-foot { height: 64px; width: auto; align-self: flex-start; }

/* Apartments page */
.hero-banner { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border: 6px solid var(--white); outline: 1px solid var(--line); }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.compare a { background: var(--paper); padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.compare a:hover { background: var(--ground); color: var(--ink); }
.compare .where { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.compare .name { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.1; }
.compare .foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.photo-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.photo-grid img.wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.photo-grid img.tall { grid-column: span 2; aspect-ratio: 4 / 3; }
.features { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 4px 24px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.plan { border: 1px solid var(--line); background: var(--white); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.plan img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; margin-bottom: 8px; }
.plan b { font-weight: 600; }
.plan span { font-size: 15px; color: var(--muted); }
.linkrow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); background: var(--white); text-decoration: none; color: var(--ink); font-weight: 600; min-height: 44px; }
.linkrow:hover { border-color: var(--acorn); color: var(--ink); }
.media { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 32px; padding-top: 40px; border-top: 1px solid var(--line); grid-column: 1 / -1; }
.tour { position: relative; aspect-ratio: 16 / 10; background: var(--green-dark); color: #F4EEE0; overflow: hidden; }
.tour iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-start { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; background: transparent; border: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: none; }
.tour-start:hover { background: rgba(255,255,255,.04); color: #fff; }
.tour-start .big { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.tour-start .sub { font-size: 15px; color: var(--cream-muted); }
.tour-start .tiny { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9FB0A4; margin-top: 8px; }
.tour-alt { font-size: 14px; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.thumbs button { aspect-ratio: 1 / 1; border: 0; padding: 0; cursor: pointer; background: #E6DFCF; overflow: hidden; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.thumbs button:hover img { transform: scale(1.04); }
.link-btn { background: none; border: 0; padding: 10px 0; min-height: 44px; font: inherit; font-size: 15px; color: var(--green); text-decoration: underline; cursor: pointer; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }

.faq-group h3 { font-size: 28px; font-weight: 600; margin-bottom: 8px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-list summary { cursor: pointer; font-weight: 600; }
.faq-list p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Gallery dialog */
.gallery { border: 0; padding: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: rgba(16, 26, 20, .96); color: var(--paper); }
.gallery::backdrop { background: rgba(16, 26, 20, .8); }
.gallery .bar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px var(--gutter); background: rgba(16, 26, 20, .96); max-width: var(--max); margin: 0 auto; }
.gallery .bar h2 { font-size: 34px; color: var(--paper); }
.gallery .close { width: 48px; height: 48px; border: 1px solid var(--green-soft); background: none; color: var(--paper); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gallery .grid { max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter) 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.gallery figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper); }
.gallery figcaption { font-size: 14px; color: var(--cream-muted); }

/* Listings embed */
.embed { background: var(--white); border: 1px solid var(--line); }
.embed .url { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--paper); font-size: 13px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.embed iframe { width: 100%; height: 1100px; border: 0; display: block; }

/* Sticky phone action bar (hidden on desktop) */
.action-bar { display: none; }

/* ---------- Phone & small tablet ---------- */
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .section { padding: 56px 0; }
  .family { font-size: 12px; }
  .family .wrap { flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px; }
  .family nav { gap: 4px 16px; flex-wrap: nowrap; }
  .family .right .phone { display: none; }
  .logo img { height: 44px; }
  .logo.oaks img { height: 42px; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
  .menu-toggle { display: inline-flex; min-height: 44px; padding: 0 14px; border: 1px solid var(--green); background: none; color: var(--green); font: inherit; font-size: 14px; font-weight: 500; align-items: center; gap: 8px; cursor: pointer; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--green-dark); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; box-shadow: 0 12px 24px rgba(0,0,0,.2); }
  .main-nav.open { display: flex; }
  .main-nav a { color: var(--paper); font-family: var(--serif); font-size: 28px; padding: 10px 0; border-bottom: 1px solid var(--green-line); }
  .main-nav a:hover { color: #fff; }
  .main-nav a.btn { margin-top: 16px; font-family: var(--sans); font-size: 16px; border-bottom: 0; background: var(--paper); color: var(--green-dark); }
  .hero-banner { aspect-ratio: 16 / 10; border-width: 0; outline: 0; }
  .quote { padding: 24px; }
  .quote blockquote { font-size: 24px; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .figures b { font-size: 30px; }
  .figures.three b { font-size: 26px; }
  .steps li { padding: 14px 0; border-bottom: 1px solid var(--line); flex-direction: row; gap: 14px; }
  .steps .n { font-size: 30px; }
  .thumbs { display: flex; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scroll-snap-type: x mandatory; }
  .thumbs button { flex: 0 0 150px; height: 150px; scroll-snap-align: start; }
  .plans { display: flex; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; }
  .plan { flex: 0 0 260px; }
  .tour { aspect-ratio: 4 / 3; }
  .embed iframe { height: 640px; }
  .action-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: sticky; bottom: 0; z-index: 30; padding: 10px 16px; background: var(--paper); border-top: 1px solid var(--line); }
  .action-bar .btn { min-height: 48px; }
}
@media (max-width: 420px) {
  .family nav { gap: 4px 12px; }
  .stat b { font-size: 36px; }
  .figures.three span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Area map (self-hosted, OpenStreetMap tiles) */
.map-canvas { width: 100%; aspect-ratio: 16 / 10; display: block; position: relative; z-index: 0; isolation: isolate; background: var(--ground); }
.leaflet-container { font-family: var(--sans); font-size: 13px; background: var(--ground); }
.leaflet-container a { color: var(--green); }
.map-pin { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: var(--paper); font: 600 13px/1 var(--sans); display: flex; align-items: center; justify-content: center; border: 2px solid var(--paper); box-shadow: 0 1px 5px rgba(29, 37, 32, .45); transition: transform .12s ease; }
.map-pin.is-office { background: var(--acorn); }
.leaflet-marker-icon.is-current .map-pin { transform: scale(1.18); }
.leaflet-popup-content-wrapper { border-radius: 2px; }
.leaflet-popup-content { margin: 10px 14px; line-height: 1.5; }
.leaflet-popup-content b { display: block; color: var(--ink); font-size: 14px; }
.leaflet-popup-content small { display: block; color: var(--muted); }
.leaflet-popup-content .go { display: inline-block; margin-top: 6px; color: var(--green); font-size: 13px; }
.leaflet-control-attribution { font-size: 10px; background: rgba(251, 249, 243, .85); }
@media (prefers-reduced-motion: reduce) { .map-pin { transition: none; } }
