/* Sky Flooring — design tokens & base */
:root {
  --cream: #F5F1EA;
  --cream-soft: #EDE7DC;
  --paper: #FBF8F2;
  --walnut: #2B1F18;
  --walnut-soft: #3D2E24;
  --espresso: #1B130E;
  --ink: #181410;
  --muted: #6B5E54;
  --hairline: #D9CFC0;
  --hairline-strong: #BFB29F;
  --sky: #4A90C7;
  --sky-deep: #2F6E9E;
  --sky-soft: #DFEBF4;
  --shadow-sm: 0 1px 2px rgba(43,31,24,.06), 0 2px 8px rgba(43,31,24,.04);
  --shadow-md: 0 4px 14px rgba(43,31,24,.08), 0 12px 32px rgba(43,31,24,.06);
  --shadow-lg: 0 10px 40px rgba(43,31,24,.12), 0 30px 80px rgba(43,31,24,.10);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --serif: 'Fraunces', 'PP Editorial New', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--walnut);
  margin: 0;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6vw, 88px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.05; }
h3 { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; }
h4 { font-size: 20px; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Eyebrow */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--walnut);
  color: var(--cream);
}
.btn-primary:hover { background: var(--espresso); box-shadow: var(--shadow-md); }

.btn-sky {
  background: var(--sky);
  color: white;
}
.btn-sky:hover { background: var(--sky-deep); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--walnut);
  border-color: var(--hairline-strong);
}
.btn-ghost:hover { background: var(--walnut); color: var(--cream); border-color: var(--walnut); }

.btn-light {
  background: rgba(255,255,255,.92);
  color: var(--walnut);
  backdrop-filter: blur(8px);
}
.btn-light:hover { background: white; }

.btn-on-dark {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245,241,234,.4);
}
.btn-on-dark:hover { background: var(--cream); color: var(--walnut); border-color: var(--cream); }

.btn-arrow::after {
  content: '→';
  transition: transform .2s ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,241,234,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--hairline); background: rgba(245,241,234,.94); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo .mark {
  width: 38px; height: 38px;
  position: relative;
}
.nav-logo .wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--walnut);
}
.nav-logo .wordmark em {
  font-style: italic;
  color: var(--sky-deep);
  font-weight: 400;
}
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--walnut);
  border-radius: 999px;
  transition: background .15s ease;
  font-weight: 450;
}
.nav-links a:hover { background: rgba(43,31,24,.06); }
.nav-links a.active { background: var(--walnut); color: var(--cream); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.nav-phone {
  font-size: 13px;
  color: var(--walnut);
  display: flex; align-items: center; gap: 8px;
  font-weight: 500;
}
.nav-phone svg { color: var(--sky-deep); }

.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 10px 12px;
  color: var(--walnut);
}

/* Mobile sticky CTA */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  z-index: 60;
  background: var(--walnut);
  color: var(--cream);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 880px) {
  .nav-links, .nav-phone { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
  .mobile-cta { display: flex; }
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--cream);
  z-index: 49;
  padding: 24px 32px 120px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--walnut);
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.nav-drawer a.active { color: var(--sky-deep); }
.nav-drawer .drawer-foot {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Footer */
.footer {
  background: var(--walnut);
  color: var(--cream);
  padding: 88px 0 40px;
  margin-top: 120px;
}
.footer h4, .footer h3 { color: var(--cream); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(245,241,234,.14);
}
.footer-tagline {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  margin-top: 18px;
  color: rgba(245,241,234,.85);
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,241,234,.5);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { color: rgba(245,241,234,.85); font-size: 14px; }
.footer-col a:hover { color: var(--cream); }
.footer-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 12px;
  color: rgba(245,241,234,.5);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bot { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* Sections */
section { position: relative; }
.section-pad { padding: 120px 0; }
.section-pad-sm { padding: 80px 0; }

@media (max-width: 720px) {
  .section-pad { padding: 80px 0; }
  .section-pad-sm { padding: 56px 0; }
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  .container, .container-narrow { padding: 0 20px; }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* Image placeholder w/ stripes (for any missing) */
.ph-stripe {
  background-image: repeating-linear-gradient(45deg, #E5DDCC 0 12px, #DBD2BE 12px 24px);
}

/* Page transition */
.page {
  animation: pageIn .5s cubic-bezier(.2,.7,.2,1);
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Small utilities */
.divider { height: 1px; background: var(--hairline); }
.divider-dark { height: 1px; background: rgba(245,241,234,.14); }

/* Hairline rule above section title */
.rule-eye {
  display: flex; align-items: center; gap: 14px;
}
.rule-eye::before {
  content: ''; width: 36px; height: 1px; background: var(--hairline-strong);
}

/* Marquee tag */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.4);
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }

/* Scroll bar polish */
html { scroll-behavior: smooth; }
::selection { background: var(--sky-soft); color: var(--walnut); }
