/* ===== CRANBROOK WORKSPACE — CONCEPT STYLESHEET ===== */

:root {
  --accent: #a8500a;
  --accent-light: #c96818;
  --accent-soft: rgba(168, 80, 10, 0.08);
  --dark: #1e1812;
  --dark-soft: #2a2218;
  --dark-tint: #3a2f23;
  --light: #faf6f0;
  --light-tint: #f2e9dc;
  --border: #ddd0bd;
  --border-soft: #ebe2d3;
  --text: #2a2018;
  --text-muted: #6b5b4a;
  --white: #ffffff;
  --radius: 10px;
  --radius-sm: 6px;
  --nav-h: 68px;
  --banner-h: 42px;
  --maxw: 1180px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Chivo', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 180ms ease; }
a:hover { color: var(--accent-light); }

h1, h2, h3, h4 {
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 900;
}

h4 { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; }

p { max-width: 64ch; }

/* ===== UTILITIES ===== */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--accent-light); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  padding: 0 24px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  margin-bottom: 14px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 180ms ease;
  text-align: center;
  line-height: 1.2;
  min-height: 44px;
}
.btn-filled {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-filled:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-large {
  font-size: 0.95rem;
  padding: 18px 32px;
  word-break: break-all;
}
.btn-full { width: 100%; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: var(--banner-h);
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand:hover { color: var(--accent); }
.brand-mark { color: var(--accent); flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-links a:hover { color: var(--accent); }
.nav-links .nav-cta { color: var(--white); }
.nav-links .nav-cta:hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}
.toggle-bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 180ms ease;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--light);
  overflow: hidden;
  padding: 0;
}
.hero-band {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 44%;
  background: var(--dark);
  display: flex;
  align-items: flex-end;
}
.hero-band .hero-ridge {
  width: 100%;
  height: 140px;
  color: var(--accent-light);
  display: block;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 90px 24px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
}
.hero-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 44px;
  box-shadow: 0 12px 40px rgba(30, 24, 18, 0.14);
  margin-right: -50px;
  position: relative;
  z-index: 3;
}
.hero-headline {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 900;
  margin-bottom: 18px;
  color: var(--dark);
}
.hero-tagline {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 30px;
  max-width: 42ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-visual {
  position: relative;
  z-index: 2;
  padding: 30px 0 30px 30px;
}
.hero-visual img {
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

/* ===== TRUST LINE ===== */
.trust {
  background: var(--light-tint);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 22px 24px;
}
.trust-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}
.trust-line {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  max-width: none;
}
.trust-line .sep {
  color: var(--accent);
  margin: 0 10px;
}

/* ===== AMENITIES ===== */
.amenities {
  padding: 100px 24px;
  background: var(--white);
}
.amenities-list {
  max-width: 820px;
  margin: 0 auto;
}
.amenity-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 32px 0;
  border-top: 1px solid var(--border-soft);
}
.amenity-item:last-child { border-bottom: 1px solid var(--border-soft); }
.amenity-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}
.amenity-body h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--dark);
}
.amenity-body p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ===== GALLERY ===== */
.gallery {
  padding: 100px 24px;
  background: var(--light);
}
.gallery-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  columns: 3;
  column-gap: 16px;
}
.gallery-grid img {
  width: 100%;
  margin-bottom: 16px;
  border-radius: var(--radius);
  break-inside: avoid;
  transition: transform 300ms ease;
}
.gallery-grid img:hover { transform: scale(1.015); }

/* ===== ABOUT ===== */
.about {
  padding: 100px 24px;
  background: var(--white);
}
.about-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 64px;
}
.about-text h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  margin-bottom: 20px;
  color: var(--dark);
}
.about-text p {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 1.02rem;
}
.about-cta { margin-top: 12px; }
.about-image img {
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

/* ===== LOCATION ===== */
.location {
  padding: 100px 24px;
  background: var(--light-tint);
}
.location-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.location-text h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  margin-bottom: 14px;
  color: var(--dark);
}
.location-text p { color: var(--text-muted); font-size: 1.02rem; }
.location-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  gap: 28px;
  box-shadow: 0 6px 24px rgba(30, 24, 18, 0.08);
}
.location-detail h4 {
  color: var(--accent);
  margin-bottom: 8px;
}
.location-detail p { color: var(--text); max-width: none; }

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--dark);
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 300px;
  height: 200px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120' preserveAspectRatio='none'%3E%3Cpath d='M0,120 L0,80 L80,40 L160,70 L240,25 L340,65 L430,30 L520,55 L600,20 L600,120 Z' fill='%23c96818' opacity='0.1'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}
.cta-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  position: relative;
  z-index: 2;
}
.cta-text h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
}
.cta-text p {
  color: rgba(250, 246, 240, 0.7);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 42ch;
}
.cta-text .btn-filled {
  background: var(--accent-light);
  border-color: var(--accent-light);
}
.cta-text .btn-filled:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--dark);
}

/* ===== CONTACT FORM ===== */
.contact-form {
  background: var(--dark-soft);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--dark-tint);
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(250, 246, 240, 0.7);
  margin-bottom: 8px;
}
.form-field .req { color: var(--accent-light); }
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--dark);
  border: 1px solid var(--dark-tint);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 180ms ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-light);
}
.form-field textarea { resize: vertical; }
.contact-form .btn-filled {
  background: var(--accent-light);
  border-color: var(--accent-light);
}
.contact-form .btn-filled:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--dark);
}
.form-notice {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(201, 104, 24, 0.15);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-sm);
  color: rgba(250, 246, 240, 0.9);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(250, 246, 240, 0.7);
  padding: 64px 24px 0;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand .brand-mark { color: var(--accent-light); }
.footer-tag {
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(250, 246, 240, 0.5);
}
.footer-col h4 {
  color: var(--white);
  margin-bottom: 14px;
  font-size: 0.75rem;
}
.footer-col a {
  display: block;
  color: rgba(250, 246, 240, 0.7);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--accent-light); }
.footer-col p {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: rgba(250, 246, 240, 0.7);
  max-width: none;
}
.footer-bottom {
  border-top: 1px solid var(--dark-tint);
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(250, 246, 240, 0.45);
  max-width: none;
}

/* ===== SCROLL REVEAL (applied by JS) ===== */
.reveal-hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SECTION ANCHOR OFFSET ===== */
section[id] { scroll-margin-top: calc(var(--banner-h) + var(--nav-h) + 16px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .gallery-grid { columns: 2; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 240ms ease, opacity 200ms ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
    min-height: 48px;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links .nav-cta { margin-top: 8px; text-align: center; }
  .nav-toggle.open .toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open .toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle.open .toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .brand-text { font-size: 0.88rem; }

  .hero-band { width: 100%; height: 180px; top: auto; bottom: 0; }
  .hero-band .hero-ridge { height: 100px; }
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 60px 20px 40px;
    gap: 0;
  }
  .hero-panel {
    margin-right: 0;
    padding: 36px 28px;
  }
  .hero-visual {
    padding: 20px 0 0;
  }
  .hero-ctas .btn { width: 100%; }

  .amenities { padding: 64px 20px; }
  .amenity-item { grid-template-columns: 60px 1fr; gap: 16px; padding: 24px 0; }
  .amenity-num { font-size: 1.6rem; }

  .gallery { padding: 64px 20px; }
  .gallery-grid { columns: 1; }

  .about { padding: 64px 20px; }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }

  .location { padding: 64px 20px; }
  .location-inner { grid-template-columns: 1fr; gap: 32px; }
  .location-card { padding: 28px 24px; }

  .cta-band { padding: 64px 20px; }
  .cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .contact-form { padding: 28px 24px; }

  .footer { padding: 48px 20px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 380px) {
  .hero-headline { font-size: 2.2rem; }
  .hero-panel { padding: 28px 20px; }
  .trust-line { font-size: 0.68rem; letter-spacing: 0.06em; }
  .trust-line .sep { margin: 0 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal-hidden { opacity: 1; transform: none; }
}