/* ===========================================================
   Hart Habitats — Interior Design
   Faithful rebuild of harthabitats.com
   =========================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Wix+Madefor+Display:wght@400;500;600;700&family=Wix+Madefor+Text:wght@400;500;600&display=swap');

/* ---------- Design tokens ---------- */
:root {
  --teal:        #18575D;   /* logo lettering / heading color */
  --teal-dark:   #123f44;
  --taupe:       #B7A599;   /* logo florals / secondary accent */
  --ink:         #2b2b2b;   /* body text */
  --ink-soft:    #5f5f5f;
  --line:        #e6e1db;   /* hairline borders */
  --white:       #ffffff;

  --maxw: 1200px;
  /* Headings ("About", "Services", "Contact") use an elegant serif, matching the logo wordmark */
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: 'Wix Madefor Text', Helvetica, Arial, sans-serif;
  --font-kicker: 'Wix Madefor Display', Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Hamburger button (persists on every page) ---------- */
.menu-btn {
  position: fixed; top: 32px; right: 40px; z-index: 200;
  width: 44px; height: 44px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
}
.menu-btn span { display: block; width: 26px; height: 1.5px; background: var(--ink); transition: transform .3s ease, opacity .3s ease; }
.menu-btn.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Nav overlay ---------- */
.nav-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: #faf8f5;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}
.nav-overlay.is-open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .35s ease, transform .35s ease;
}
.nav-overlay ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.nav-overlay li { margin: 14px 0; }
.nav-overlay a {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(24px, 4vw, 34px); letter-spacing: .02em;
  color: var(--teal); transition: opacity .2s;
}
.nav-overlay a:hover { opacity: .6; }
.nav-overlay a[aria-current="page"] { color: var(--ink); }
.nav-overlay .overlay-social { margin-top: 40px; display: flex; justify-content: center; gap: 18px; }
.nav-overlay .overlay-social svg { width: 22px; height: 22px; fill: var(--ink); }

/* ===========================================================
   Split-hero — used by Home, About, Services (no scroll, 100vh)
   =========================================================== */
.split-hero { display: grid; grid-template-columns: 1fr 1fr; height: 100vh; overflow: hidden; }
.split-hero .media { height: 100%; overflow: hidden; }
.split-hero .media img { width: 100%; height: 100%; object-fit: cover; }
.split-hero .content {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; padding: 32px 40px; position: relative; overflow-y: auto;
}
.split-hero .logo-mark { width: 170px; max-width: 55%; margin-bottom: 28px; flex-shrink: 0; }

/* Home: centered tagline under the logo */
.split-hero .tagline { font-size: 18px; color: var(--ink); max-width: 420px; line-height: 1.65; text-align: center; }
.split-hero .overlay-social { position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%); }
.split-hero .overlay-social svg { width: 24px; height: 24px; fill: var(--ink); }

/* About/Services: left-aligned text block, centered as a whole under the logo */
.hero-text { max-width: 560px; }
.hero-text h1 {
  font-family: var(--font-head); font-weight: 500; color: var(--teal);
  font-size: 32px; margin: 0 0 14px; text-align: left;
}
.hero-text p { margin: 0 0 .75em; font-size: 14.5px; line-height: 1.5; color: var(--ink); text-align: left; }
.hero-text a { color: var(--teal); text-decoration: underline; font-weight: 600; }
.hero-text ul { margin: 14px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.4; color: var(--ink); }
.hero-text ul li { margin-bottom: 8px; }

/* ===========================================================
   Gallery pages — Projects, Store (scrollable)
   =========================================================== */
.gallery-header {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 40px 56px 34px;
}
.gallery-header .kicker {
  font-family: var(--font-kicker); font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; font-size: 30px; color: var(--teal);
}
.gallery-header .logo-mark { grid-column: 2; width: 150px; }

.grid-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 0 6px 6px;
}
.grid-gallery figure { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; }
.grid-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.grid-gallery figure:hover img { transform: scale(1.04); }

/* ===========================================================
   Contact — split layout: image left (stretches to content height),
   single scrollable column right: centered info block, then left-
   aligned form section
   =========================================================== */
.contact-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; align-items: stretch; }
.contact-shell .media { height: 100%; overflow: hidden; }
.contact-shell .media img { width: 100%; height: 100%; object-fit: cover; }
.contact-shell .content { padding: 88px 80px 70px; }

.contact-shell .logo-mark { width: 170px; display: block; margin: 0 auto 34px; }

.contact-info-centered { max-width: 420px; margin: 0 auto; text-align: center; }
.contact-info-centered .block { margin-bottom: 18px; font-size: 14.5px; line-height: 1.5; }
.contact-info-centered .block strong { display: block; color: var(--teal); font-weight: 600; margin-bottom: 2px; }
.contact-info-centered .block p { margin: 0; color: var(--ink); }
.contact-info-centered a { color: var(--ink); }
.contact-lead { text-align: center; font-size: 16px; font-weight: 600; color: var(--teal); margin: 26px 0 0; }

.contact-form-section { margin-top: 56px; }
.contact-form-section h2 {
  font-family: var(--font-head); font-weight: 500; color: var(--teal);
  font-size: 22px; margin: 0 0 22px; text-align: left;
}
form.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font-family: var(--font-body); font-size: 16px;
  border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink);
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.field textarea { min-height: 150px; resize: vertical; }
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; font-size: 14px;
  background: var(--teal); color: #fff; border: 0; cursor: pointer;
  padding: 14px 40px; border-radius: 3px; transition: background .2s, transform .1s;
  justify-self: start;
}
.btn:hover { background: var(--teal-dark); }
.btn:active { transform: translateY(1px); }

/* ---------- FAQ page (reuses .contact-shell split layout) ---------- */
.faq-shell h1 {
  font-family: var(--font-head); font-weight: 500; color: var(--teal);
  font-size: 32px; text-align: center; margin: 0 0 40px;
}
.faq-list { max-width: 640px; margin: 0 auto; }
.faq-item { margin-bottom: 28px; }
.faq-item h3 {
  font-family: var(--font-head); font-weight: 500; color: var(--teal);
  font-size: 18px; margin: 0 0 8px;
}
.faq-item p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
.faq-item a { color: var(--teal); text-decoration: underline; }

/* ---------- Footer (Home page only, per the live site) ---------- */
.site-footer { padding: 26px 0; text-align: center; }
.site-footer p { margin: 0; font-size: 13px; color: var(--ink-soft); letter-spacing: .03em; }
.site-footer .credit { margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--line); }
.site-footer .credit a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.site-footer .credit a:hover { color: var(--teal); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split-hero { grid-template-columns: 1fr; height: auto; overflow: visible; }
  .split-hero .media { height: 46vh; }
  .split-hero .content { padding: 56px 32px; }
  .split-hero .overlay-social { position: static; transform: none; margin-top: 36px; }
  .gallery-header { grid-template-columns: 1fr auto; padding: 90px 24px 24px; }
  .gallery-header .kicker { grid-column: 1; }
  .gallery-header .logo-mark { grid-column: 2; width: 110px; }
  .grid-gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-shell { grid-template-columns: 1fr; }
  .contact-shell .media { height: 46vh; }
  .contact-shell .content { padding: 90px 28px 60px; }
}
@media (max-width: 520px) {
  .grid-gallery { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .menu-btn { top: 22px; right: 22px; }
}
