/* ════════════════════════════════════════════════════
   style.css — Mom Business tailor site
   Phone-first. Organised by section — each block is
   self-contained so any section can be lifted out
   or handed to a client independently.
   Desktop overrides live at the bottom in one place.
   ════════════════════════════════════════════════════ */


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

:root {
  /* ── Colour tokens ──────────────────────────────
     Swap these out when the real palette arrives.
     Everything on the site pulls from these variables
     so a palette change is a 5-line edit, nothing more.
  ─────────────────────────────────────────────── */
  --warm:    #b8926e;   /* primary accent — brown placeholder  */
  --warm-l:  #d4b49a;   /* light variant — hover, dividers      */
  --warm-d:  #8a6a4e;   /* dark variant  — pressed states       */
  --cream:   #fdf8f4;   /* page background                      */
  --ink:     #2a1f1a;   /* primary text                         */
  --ink-2:   #7a6458;   /* secondary text                       */
  --ink-3:   #b8a89e;   /* muted text, labels                   */
  --surface: #f5ede4;   /* card backgrounds                     */
  --border:  #e8ddd5;   /* dividers, card borders               */
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  /* Grain texture — adds warmth without a single image */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}


/* ── SHARED TYPE UTILITIES ── */
/* Used across multiple sections — do not move into a single section block */

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 9vw, 52px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-divider {
  width: 32px;
  height: 1.5px;
  background: var(--warm);
  margin-bottom: 32px;
  opacity: .6;
}


/* ── SHARED BUTTON STYLES ── */
/* Used across hero and contact — kept here so both sections share one token */

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--warm);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--warm);
  transition: background .2s, color .2s;
  /* tap-friendly minimum touch target */
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover,
.btn-primary:active {
  background: transparent;
  color: var(--warm);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: #25D366;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid #25D366;
  min-height: 48px;
  transition: background .2s, color .2s;
}
.btn-whatsapp:hover,
.btn-whatsapp:active {
  background: transparent;
  color: #25D366;
}

/* Icon inside buttons */
.btn-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex-shrink: 0;
}


/* ── SCROLL-REVEAL UTILITY ── */
/* Applied to any element that should animate in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}


/* ── IMAGE PLACEHOLDER UTILITY ── */
/* Swap these out for real <img> tags when photos arrive —
   delete this entire block at that point */
.hero-img-placeholder,
.work-photo {
  background: var(--surface);
  border: 1.5px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}


/* ════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════ */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(253,248,244,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: .5px solid var(--border);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .02em;
}

/* Single CTA in nav — no hamburger needed on phone */
.nav-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--warm);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--warm);
  transition: background .2s, color .2s;
  /* tap-friendly */
  min-height: 36px;
  display: flex;
  align-items: center;
}
.nav-cta:hover,
.nav-cta:active {
  background: var(--warm);
  color: #fff;
}


/* ════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════ */

#hero {
  display: flex;
  flex-direction: column;
}

/* Full-width image slot — slim accent strip, not a dominant block.
   Mom's preference: text is the focus, image is supporting.
   Increase max-height here if she changes her mind later. */
.hero-img-wrap {
  width: 100%;
  height: 38vw;
  min-height: 120px;
  max-height: 180px;
  overflow: hidden;
}
.hero-img-placeholder {
  width: 100%;
  height: 100%;
}
/* When a real image is used, style it like this:
   .hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; } */

/* Text block below image */
.hero-inner {
  padding: 36px 5% 52px;
}

.hero-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 11vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
}
/* Italic line inside hero title */
.hero-title em {
  font-style: italic;
  color: var(--warm);
}

.hero-sub {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 28px;
  max-width: 380px;
}


/* ════════════════════════════════════════════════════
   SERVICES
   ════════════════════════════════════════════════════ */

#services {
  padding: 64px 5%;
  background: var(--ink);
}

/* Section label and title sit on dark background here */
#services .section-label { color: var(--warm-l); }
#services .section-title  { color: #fff; }
#services .section-divider { background: var(--warm-l); }

.services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: .5px solid rgba(255,255,255,.08);
  transition: padding-left .25s ease;
}
.service-card:first-child { border-top: .5px solid rgba(255,255,255,.08); }
.service-card:hover       { padding-left: 6px; }

.service-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--warm);
  letter-spacing: .1em;
  padding-top: 2px;
  flex-shrink: 0;
}

.service-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: rgba(255,255,255,.9);
  margin-bottom: 6px;
  line-height: 1.2;
}

.service-desc {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
}


/* ════════════════════════════════════════════════════
   WORK (photo gallery)
   ════════════════════════════════════════════════════ */

#work {
  padding: 64px 5%;
}

/* CSS grid layout for photo mosaic.
   Works with placeholder divs now — swap for <img> tags later.
   Adjust grid-template-areas when real photos arrive to
   suit the actual aspect ratios of those photos. */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 10px;
  grid-template-areas:
    "tall  p2"
    "tall  p3"
    "wide  wide";
}

.work-photo {
  min-height: 130px;
  overflow: hidden;
}
/* When real images arrive replace the placeholder style and use:
   .work-photo img { width: 100%; height: 100%; object-fit: cover; display: block; } */

.work-photo--tall { grid-area: tall; min-height: 280px; }
.work-photo--wide { grid-area: wide; min-height: 160px; }

.work-photo:nth-child(2) { grid-area: p2; }
.work-photo:nth-child(3) { grid-area: p3; }


/* ════════════════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════════════════ */

#testimonials {
  padding: 64px 5%;
  background: var(--surface);
}

.testi-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testi-card {
  background: var(--cream);
  border-left: 2.5px solid var(--warm);
  padding: 24px 20px;
}

.testi-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 14px;
}

.testi-name {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--warm);
}


/* ════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════ */

#contact {
  padding: 64px 5%;
  background: var(--ink);
}

/* Section label, title, divider on dark background */
#contact .section-label  { color: var(--warm-l); }
#contact .section-title  { color: #fff; }
#contact .section-divider { background: var(--warm-l); }

.contact-sub {
  font-size: 14px;
  color: rgba(255,255,255,.45);
  line-height: 1.75;
  margin-bottom: 32px;
}

/* Action buttons stacked on phone */
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 44px;
}

.btn-contact {
  width: 100%;
}

/* Info rows below buttons */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--warm);
}

.contact-value {
  font-size: 15px;
  color: rgba(255,255,255,.75);
}


/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */

footer {
  background: #1a1210;
  padding: 20px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: .5px solid rgba(255,255,255,.06);
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,.4);
  letter-spacing: .04em;
}

.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(255,255,255,.18);
}


/* ════════════════════════════════════════════════════
   DESKTOP OVERRIDES
   All phone styles above — expand here for larger screens.
   Nothing below changes the phone layout.
   ════════════════════════════════════════════════════ */

@media (min-width: 700px) {

  /* Nav — add full links on desktop if needed later */
  nav { height: 62px; padding: 0 6%; }

  /* Hero — side by side on tablet+, image is still restrained */
  #hero { flex-direction: row; min-height: 60vh; }
  .hero-img-wrap {
    width: 36%;
    height: auto;
    max-height: none;
    flex-shrink: 0;
    align-self: stretch;
  }
  .hero-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 6%;
  }

  /* Services — two columns */
  .services-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .service-card:nth-child(odd)  { border-right: .5px solid rgba(255,255,255,.08); }
  .service-card:nth-child(3)    { border-top: none; }
  .service-card:nth-child(4)    { border-top: none; }

  /* Work grid — bigger cells */
  .work-photo     { min-height: 180px; }
  .work-photo--tall { min-height: 380px; }
  .work-photo--wide { min-height: 220px; }

  /* Testimonials — side by side */
  .testi-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  /* Contact — actions side by side */
  .contact-actions { flex-direction: row; }
  .btn-contact     { width: auto; flex: 1; }

  /* Shared padding increase on desktop */
  #services, #work, #testimonials, #contact { padding: 88px 6%; }
}

@media (min-width: 1100px) {

  /* Hero image takes more space on wide screens */
  .hero-img-wrap { width: 50%; }

  /* Services stay two-column — feels right for a tailor's list */

  /* Work grid — increase row heights */
  .work-photo--tall { min-height: 460px; }
  .work-photo--wide { min-height: 260px; }

  /* Cap content width on very wide screens */
  #services .services-list,
  #work .work-grid,
  #testimonials .testi-list,
  #contact .contact-actions,
  #contact .contact-info {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
  }
}
