/*
 * Shared styles for briangaden.com.
 * Same type and palette as the trip pages (DM Sans + Playfair Display,
 * navy / cream / gold). Light by default, dark when the OS asks for it.
 */

:root {
  color-scheme: light dark;
  --bg: #f8f4ed;
  --panel: #fffdf9;
  --panel-2: #efe8dc;
  --text: #0b1827;
  --muted: #4f5d6b;
  --accent: #9a5b1f;
  --accent-soft: #f3be77;
  --line: #ddd3c4;
  --btn-bg: #0b1827;
  --btn-text: #f8f4ed;
  --shadow: 0 18px 45px rgba(11, 24, 39, .12);
  --night: #0b1827;
  --night-panel: #14263a;
  --night-text: #f8f4ed;
  --night-muted: #afbdc9;
  --radius: 18px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1827;
    --panel: #14263a;
    --panel-2: #112339;
    --text: #f8f4ed;
    --muted: #afbdc9;
    --accent: #f3be77;
    --line: #31465a;
    --btn-bg: #f3be77;
    --btn-text: #0b1827;
    --shadow: 0 24px 60px rgba(0, 0, 0, .35);
    --night: #071220;
    --night-panel: #0e1d2e;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: .2em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 10px 16px; background: var(--btn-bg); color: var(--btn-text); border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.icon { width: 1.1em; height: 1.1em; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-secondary { border-color: var(--line); color: var(--text); background: var(--panel); }
.btn-secondary:hover { border-color: var(--accent); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.wordmark {
  font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.wordmark img { width: 28px; height: 28px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-nav a:not(.btn):hover { color: var(--text); }
.site-nav .btn { padding: 10px 18px; font-size: 14px; }
@media (max-width: 760px) { .site-nav a:not(.btn) { display: none; } }

/* Sections */
.section { padding-block: clamp(56px, 9vw, 96px); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 42px); }
.section-head p { color: var(--muted); }

/* Hero */
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center; gap: clamp(32px, 6vw, 80px);
}
.hero h1 { font-size: clamp(44px, 7vw, 80px); letter-spacing: -.035em; }
.hero .lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.hero-link { font-size: 15px; font-weight: 600; }

.photo-stack { position: relative; width: min(100%, 400px); margin-inline: auto; aspect-ratio: 4 / 5; }
.photo-stack figure {
  position: absolute; margin: 0; width: 64%; aspect-ratio: 2 / 3;
  border: 8px solid var(--panel); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); background: var(--panel-2);
}
.photo-stack img { width: 100%; height: 100%; object-fit: cover; }
.photo-stack .back { top: 0; right: 0; transform: rotate(7deg); }
.photo-stack .front { bottom: 0; left: 0; transform: rotate(-4deg); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .photo-stack { width: min(100%, 320px); }
}

/* Credentials */
.credentials { background: var(--night); color: var(--night-text); }
.credentials .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.credentials .eyebrow { color: var(--accent-soft); }
.credentials h2 { font-size: clamp(30px, 4.5vw, 42px); }
.credentials p { color: var(--night-muted); }
.award { width: min(100%, 420px); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.stat { background: var(--night-panel); border: 1px solid #31465a; border-radius: 14px; padding: 22px; }
.stat dt { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); }
.stat dd { margin: 0 0 6px; font: 600 clamp(28px, 4vw, 38px)/1.1 var(--serif); color: var(--accent-soft); order: -1; }
.stat { display: flex; flex-direction: column; }
@media (max-width: 820px) { .credentials .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Cards (neighborhoods, testimonials, social) */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column;
}
.card h3 { font-size: 23px; }
.card p { color: var(--muted); margin-bottom: 0; }

.section-link { margin-top: 28px; font-weight: 600; }

.neighborhoods { background: var(--panel-2); }
.neighborhood .eyebrow { margin-bottom: 8px; }

.quote blockquote { margin: 0 0 18px; font: 500 18px/1.55 var(--serif); }
.quote figcaption { margin-top: auto; color: var(--muted); font-size: 15px; }
.quote figcaption strong { color: var(--text); display: block; }
.quote { margin: 0; }

.social {
  flex-direction: row; align-items: center; gap: 16px; text-decoration: none; color: var(--text);
  transition: border-color .15s ease, transform .15s ease;
}
.social:hover { border-color: var(--accent); transform: translateY(-2px); }
.social .icon { width: 32px; height: 32px; color: var(--accent); }
.social strong { display: block; font-size: 17px; }
.social span { color: var(--muted); font-size: 15px; }

/* Contact */
.contact { background: var(--night); color: var(--night-text); text-align: center; }
.contact .eyebrow { color: var(--accent-soft); }
.contact h2 { font-size: clamp(34px, 5vw, 52px); }
.contact p { color: var(--night-muted); max-width: 36em; margin-inline: auto; }
.contact .hero-actions { justify-content: center; }
.contact .btn-primary { background: var(--accent-soft); color: #0b1827; }
.contact .btn-secondary { background: transparent; color: var(--night-text); border-color: #556b80; }

/* Footer */
.site-footer { padding-block: 36px 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
.site-footer p { margin: 0 0 6px; }
.eho { display: inline-flex; align-items: center; gap: 8px; }
.eho .icon { width: 22px; height: 22px; }

/* Search call-to-action (sends visitors to the @properties site) */
.search-panel {
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; align-items: center;
  gap: 24px 48px; padding: clamp(28px, 5vw, 52px);
}
.search-panel h2 { font-size: clamp(30px, 4.5vw, 42px); }
.search-panel .hero-actions { margin: 0; flex-direction: column; align-items: stretch; }
.search-panel .btn { justify-content: center; }
@media (max-width: 820px) { .search-panel { grid-template-columns: minmax(0, 1fr); } }
