/* =============================================================
   Stay With GK — Design System
   Luxury short-term rental + concierge, SF Bay Area
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600&display=swap');

:root {
  /* ---- palette ---- */
  --ink:        #10211C;  /* near-black estate green */
  --ink-soft:   #1c3329;
  --slate:      #3A463F;  /* body text */
  --bone:       #F7F4EF;  /* page background */
  --bone-deep:  #EFEAE0;
  --line:       #E4DECF;  /* hairlines */
  --brass:      #B08D57;  /* accent */
  --brass-deep: #8f6f3f;
  --white:      #ffffff;

  /* ---- type ---- */
  --display: 'Fraunces', Georgia, serif;
  --body:    'Inter', system-ui, -apple-system, sans-serif;

  /* ---- scale ---- */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
  --step-2:  clamp(1.7rem, 1.5rem + 1vw, 2.3rem);
  --step-3:  clamp(2.3rem, 1.9rem + 2vw, 3.6rem);
  --step-4:  clamp(3rem, 2.2rem + 3.6vw, 5.2rem);

  /* ---- layout ---- */
  --wrap: 1200px;
  --gut: clamp(1.1rem, 4vw, 3rem);
  --radius: 4px;
  --shadow: 0 1px 2px rgba(16,33,28,.04), 0 12px 40px -16px rgba(16,33,28,.18);
  --shadow-card: 0 18px 50px -28px rgba(16,33,28,.4);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--slate);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: var(--step-4); font-weight: 400; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { margin: 0 0 1.1em; }

/* ---- signature: brass eyebrow ---- */
.eyebrow {
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass-deep);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.2rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass);
}

/* ---- layout helpers ---- */
.wrap { width: min(var(--wrap), 100% - var(--gut) * 2); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 7rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  padding: .95rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  text-align: center;
}
.btn--primary { background: var(--ink); color: var(--bone); }
.btn--primary:hover { background: var(--ink-soft); transform: translateY(-2px); }
.btn--brass { background: var(--brass); color: var(--white); }
.btn--brass:hover { background: var(--brass-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bone); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--block { width: 100%; }

/* ---- accessibility floor ---- */
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--bone); padding: .8rem 1.2rem; z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------
   HEADER / NAV  (shared shell — also used by <gk-listing-header>)
   --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bone) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 76px;
}
.brand img { height: 54px; width: auto; display: block; }
.site-footer .footer-brand img { height: 56px; width: auto; }

.main-nav ul { list-style: none; display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); margin: 0; padding: 0; }
.main-nav a {
  font-size: .9rem; font-weight: 500; letter-spacing: .01em;
  padding: .4rem 0; position: relative; color: var(--ink);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--brass); transition: width .3s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0;
    background: var(--bone); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s ease;
    box-shadow: var(--shadow);
  }
  .main-nav[data-open="true"] { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 0; padding: 1rem var(--gut); }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav a { display: block; padding: 1rem 0; font-size: 1.05rem; }
}

/* ---- dropdown submenu (Experiences) ---- */
.main-nav .has-sub { position: relative; }
.has-sub__toggle { display: inline-flex; align-items: center; gap: .3rem; }
.has-sub__toggle .caret { transition: transform .25s ease; }
.main-nav .sub-menu {
  display: block;
  list-style: none; margin: 0; padding: .5rem;
  position: absolute; top: 100%; left: 0;
  min-width: 250px; background: var(--white, #fff); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 24px 50px -28px rgba(35,32,26,.45);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease; z-index: 200;
}
/* invisible bridge so the cursor can travel from parent to menu without a gap */
.has-sub::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px;
  display: none;
}
.sub-menu li { margin: 0; }
.sub-menu a {
  display: block; padding: .6rem .8rem; border-radius: 9px; font-size: .9rem;
  color: var(--ink); white-space: nowrap;
}
.sub-menu a::after { display: none; }
.sub-menu a:hover { background: var(--bone-deep); color: var(--clay-deep, var(--brass-deep)); }
@media (min-width: 921px) {
  .has-sub:hover::after { display: block; }
  .has-sub:hover .sub-menu,
  .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
  .has-sub:hover .caret { transform: rotate(180deg); }
}
/* mobile: caret toggles submenu open inline */
@media (max-width: 920px) {
  .sub-menu {
    position: static; transform: none; opacity: 1; visibility: hidden;
    min-width: 0; border: 0; box-shadow: none; border-radius: 0; padding: 0;
    background: transparent; max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .has-sub[data-open="true"] .sub-menu { visibility: visible; max-height: 420px; padding: .2rem 0 .6rem; }
  .has-sub[data-open="true"] .caret { transform: rotate(180deg); }
  .sub-menu a { padding: .7rem .8rem 0.7rem 1rem; font-size: .98rem; color: var(--slate); }
  .sub-menu li { border-bottom: 0; }
}

/* ---------------------------------------------------------------
   FOOTER  (shared shell — also used by <gk-listing-footer>)
   --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--bone-deep); padding: clamp(3rem,6vw,5rem) 0 2rem; }
.site-footer a { color: var(--bone-deep); }
.site-footer a:hover { color: var(--brass); }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand img { height: 34px; margin-bottom: 1.2rem; }
.footer-brand p { color: rgba(247,244,239,.6); max-width: 30ch; font-size: var(--step--1); }
.footer-col h5 {
  font-family: var(--body); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.footer-col a { font-size: .92rem; color: rgba(247,244,239,.78); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding-top: 1.6rem; font-size: var(--step--1); color: rgba(247,244,239,.5);
}
.footer-social { display: flex; gap: 1.2rem; font-size: 1.2rem; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ===============================================================
   SITE-WIDE BANNER — one rule for every page's top banner
   (home, experiences, services, articles, about…). Min height 700.
   =============================================================== */
.site-banner{
  position:relative; min-height:700px; display:flex; align-items:flex-end;
  overflow:hidden;
}
.site-banner > img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-1;
}
.site-banner::after{
  content:""; position:absolute; inset:0; z-index:0;
  background:linear-gradient(180deg, rgba(16,33,28,.22), rgba(16,33,28,.72));
}
.site-banner__inner{
  position:relative; z-index:1; color:var(--bone);
  padding-bottom:clamp(2.4rem,5vw,3.6rem);
}
.site-banner .eyebrow{ color:#e8d6b8; margin-bottom:.8rem; }
.site-banner h1{
  color:var(--bone); margin:0;
  font-size:clamp(2.6rem,1.8rem+3.2vw,4.4rem); max-width:20ch; line-height:1.04;
}
@media(max-width:640px){ .site-banner{ min-height:560px; } }
