/* ==========================================================================
   Kimberly Mack Design Studio — site styles
   Light, elegant aesthetic matching the original brand.
   Structure: variables -> base -> layout -> header/nav -> sections -> footer
   To restyle the whole site, adjust the :root variables below.
   ========================================================================== */

/* ---- Theme variables -------------------------------------------------- */
:root {
  --color-bg: #ffffff;          /* page background */
  --color-surface: #f6f3ee;     /* soft cream panels */
  --color-ink: #1c1a17;         /* primary text (near-black) */
  --color-muted: #6f6a63;       /* secondary text */
  --color-accent: #8a7a5c;      /* warm taupe/gold accent */
  --color-line: #e3ddd3;        /* hairline borders */
  --maxw: 1120px;               /* content max width */
  --gap: 1.5rem;
  --font-display: "Cormorant Garamond", "Hoefler Text", Georgia, serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

/* ---- Base ------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-ink);
  background: var(--color-bg);
}
img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.4rem; letter-spacing: 0.02em; }

/* Reusable wrapper + section rhythm */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--tint { background: var(--color-surface); }
.section__lead {
  max-width: 720px; margin: 0 auto 2.5rem; text-align: center;
  color: var(--color-muted);
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.25em; font-size: 0.78rem;
  color: var(--color-accent); margin-bottom: 1rem; text-align: center;
}

/* Buttons */
.btn {
  display: inline-block; padding: 0.85em 2em;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff; background: var(--color-ink);
  border: 1px solid var(--color-ink); transition: all 0.2s ease;
}
.btn:hover { background: transparent; color: var(--color-ink); text-decoration: none; }
.btn--light { color: var(--color-ink); background: #fff; border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }

/* ---- Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(6px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px; gap: 1rem;
}
.site-header__logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  color: var(--color-ink); font-size: 0.82rem; letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav a:hover { color: var(--color-accent); text-decoration: none; }

/* Mobile nav toggle (CSS-only) */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; font-size: 1.6rem; line-height: 1; }

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative; min-height: 78vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff;
  background: linear-gradient(rgba(20,18,15,0.45), rgba(20,18,15,0.45)),
              url("../images/gallery/g3.jpg") center/cover no-repeat;
}
.hero__inner { max-width: 760px; padding: 2rem 1.5rem; }
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.35); }
.hero p { font-size: 1.1rem; margin: 1.2rem auto 2rem; max-width: 560px; }

/* ---- About ------------------------------------------------------------ */
.about__grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 3.5rem; align-items: center;
}
.about__photo img { border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,0.12); }
.about__text p { color: var(--color-muted); }
.about__text p strong, .about__text .lede { color: var(--color-ink); }
.lede { font-size: 1.25rem; font-family: var(--font-display); line-height: 1.4; }

/* ---- Services --------------------------------------------------------- */
.services__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 3rem;
  max-width: 820px; margin: 0 auto;
}
.services__list li {
  padding: 1.1rem 0 1.1rem 1.8rem; border-bottom: 1px solid var(--color-line);
  position: relative;
}
.services__list li::before {
  content: "\2014"; position: absolute; left: 0; color: var(--color-accent);
}

/* ---- Gallery ---------------------------------------------------------- */
.gallery {
  columns: 3 280px; column-gap: 1rem;
}
.gallery a { display: block; margin-bottom: 1rem; break-inside: avoid; }
.gallery img {
  width: 100%; border-radius: 3px; transition: transform 0.3s ease, filter 0.3s ease;
}
.gallery a:hover img { transform: scale(1.02); filter: brightness(1.05); }

/* CSS-only lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(15,13,11,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease; z-index: 100;
}
.lightbox:target { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 3px; }
.lightbox__close {
  position: absolute; top: 1.5rem; right: 2rem; color: #fff; font-size: 2.5rem;
  line-height: 1; text-decoration: none;
}

/* ---- Testimonials ----------------------------------------------------- */
.testimonials__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.quote {
  background: #fff; border: 1px solid var(--color-line); padding: 2rem;
  border-radius: 4px; display: flex; flex-direction: column;
}
.quote p { color: var(--color-muted); font-size: 0.97rem; flex: 1; }
.quote cite {
  font-style: normal; font-family: var(--font-display); font-size: 1.15rem;
  color: var(--color-ink); margin-top: 1rem;
}

/* ---- Consultation / contact CTA -------------------------------------- */
.cta { text-align: center; }
.cta__contact {
  font-family: var(--font-display); font-size: 1.5rem; margin: 0.3rem 0;
}
.cta__contact a { color: var(--color-ink); }

/* ---- Contact page ----------------------------------------------------- */
.contact__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
.field { margin-bottom: 1.2rem; }
.field label {
  display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-muted); margin-bottom: 0.4rem;
}
.field input, .field textarea {
  width: 100%; padding: 0.8rem 1rem; font-family: var(--font-body); font-size: 1rem;
  border: 1px solid var(--color-line); border-radius: 3px; background: #fff; color: var(--color-ink);
}
.field textarea { min-height: 150px; resize: vertical; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer {
  background: var(--color-ink); color: #cfc9bf; text-align: center;
  padding: 3rem 1.5rem; font-size: 0.85rem;
}
.site-footer a { color: #fff; }
.site-footer__brand {
  font-family: var(--font-display); font-size: 1.4rem; color: #fff; margin-bottom: 0.5rem;
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 760px) {
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .services__list { grid-template-columns: 1fr; }
  .gallery { columns: 2 160px; }

  /* Collapsible mobile nav */
  .nav-toggle-label { display: block; }
  .nav {
    position: absolute; top: 84px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--color-line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav a { padding: 1rem; width: 100%; text-align: center; border-top: 1px solid var(--color-line); }
  .nav-toggle:checked ~ .nav { max-height: 320px; }
}
