/* ================================================================
   BUTE ALTERATION — Stylesheet

   TABLE OF CONTENTS
   ─────────────────
   1.  Custom Properties  ←  change colours, fonts & spacing here
   2.  Reset & Base
   3.  Typography
   4.  Layout Utilities
   5.  Buttons
   6.  Navigation
   7.  Hero + Tape Divider (signature motif)
   8.  Services
   9.  Trust / Reputation
   10. Gallery
   11. About
   12. Contact + Form
   13. Footer
   14. Responsive Breakpoints
   ================================================================ */


/* ================================================================
   1. CUSTOM PROPERTIES
   ================================================================ */
:root {
  /* --- Colours: warm, personal, craftsmanship-led — no dark/neon UI --- */
  --color-bg:           #FBF6EE;   /* warm ivory paper — main background */
  --color-bg-alt:       #F1E6D3;   /* soft linen — alternating sections */
  --color-surface:      #FFFFFF;   /* cards */
  --color-text:         #2B2622;   /* warm near-black charcoal */
  --color-text-muted:   #7A6F62;   /* muted warm grey-brown */
  --color-accent:       #9C6B3E;   /* warm clay/thread — buttons, highlights */
  --color-accent-hover: #7E5530;   /* darker clay — hover state */
  --color-accent-light: #EADFC9;   /* pale clay — icon backgrounds */
  --color-border:       #E3D5BF;   /* warm hairline border */
  --color-gold:         #B08D57;   /* stars / rating accent */

  /* --- Typography --- */
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* --- Spacing (8 px grid) --- */
  --space-1:  0.5rem;
  --space-2:  1rem;
  --space-3:  1.5rem;
  --space-4:  2rem;
  --space-5:  3rem;
  --space-6:  4rem;
  --space-7:  5.5rem;
  --space-8:  7rem;

  /* --- Layout --- */
  --container-max: 1120px;
  --container-pad: 1.25rem;
  --radius:        6px;
  --radius-lg:     14px;

  /* --- Transitions --- */
  --ease: 0.2s ease;
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 68px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

button { font: inherit; cursor: pointer; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-accent);
  color: #fff;
  padding: 0.6em 1em;
  border-radius: var(--radius);
  z-index: 1000;
  transition: top var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}


/* ================================================================
   3. TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text);
}

p { max-width: 65ch; }


/* ================================================================
   4. LAYOUT UTILITIES
   ================================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: var(--space-7); }
.section--alt { background-color: var(--color-bg-alt); }

.section__header {
  text-align: center;
  margin-bottom: var(--space-5);
  margin-inline: auto;
}

.section__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.section__title {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

.section__intro {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-inline: auto;
}

.section__header .section__intro { max-width: 52ch; }

.break-desktop { display: none; }

/* Reusable placeholder icon tint (services / gallery / about) */
.ph-icon { color: var(--color-accent); opacity: 0.5; }

/* Scroll-reveal target — Motion (script.js) sets the hidden state via JS only,
   so content is always visible if JS/CDN fails (progressive enhancement) */
.reveal { will-change: opacity, transform; }


/* ================================================================
   5. BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 2em;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  border: 1.5px solid transparent;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.btn--primary {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(124, 85, 48, 0.22);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}


/* ================================================================
   6. NAVIGATION
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(251, 246, 238, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--space-2);
  position: relative;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--color-text);
  white-space: nowrap;
  transition: color var(--ease);
}
.nav__logo:hover { color: var(--color-accent); }

/* Hamburger toggle — mobile only */
.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  position: relative;
}

.nav__toggle-bar,
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 1.5px;
  background-color: var(--color-text);
  transition: transform var(--ease), opacity var(--ease);
}
.nav__toggle-bar::before { transform: translateY(-6px); }
.nav__toggle-bar::after { transform: translateY(6px); }

.nav__toggle[aria-expanded="true"] .nav__toggle-bar { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::after { transform: rotate(-45deg); }

/* Links + phone wrapper — collapses on mobile */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__list a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--ease);
}
.nav__list a:hover, .nav__list a:focus-visible { color: var(--color-accent); }

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--color-accent);
  padding: 0.45em 0.9em;
  border-radius: var(--radius);
  transition: background-color var(--ease), color var(--ease);
}
.nav__phone:hover { background-color: var(--color-accent); color: #fff; }


/* ================================================================
   7. HERO + TAPE DIVIDER
   ================================================================ */
.hero {
  position: relative;
  text-align: center;
  padding-top: var(--space-8);
  padding-bottom: 0;
  background-color: var(--color-bg);
  overflow: hidden;
}

/* Faint "tacking stitch" texture in the background — a nod to hand-sewing,
   kept extremely subtle so it never competes with the text */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(156, 107, 62, 0.05) 0px,
    rgba(156, 107, 62, 0.05) 1.5px,
    transparent 1.5px,
    transparent 26px
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-7);
}

.hero__eyebrow {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  max-width: none;
}

.hero__title {
  font-size: clamp(3rem, 11vw, 5.8rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  max-width: none;
  line-height: 1;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--color-text-muted);
  font-weight: 400;
  line-height: 1.7;
  margin-inline: auto;
  margin-bottom: var(--space-4);
  max-width: 40ch;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 0.5em 1.1em;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background-color: var(--color-surface);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.hero__rating:hover { border-color: var(--color-accent); box-shadow: 0 6px 16px rgba(156,107,62,0.12); }

.hero__stars {
  color: var(--color-gold);
  letter-spacing: 0.05em;
  font-size: 0.9em;
}

/* Signature element: a warm, hand-measured "tape" strip marking the
   transition from hero into the rest of the page — ticks like a
   dressmaker's measuring tape, in the site's own palette. */
.tape-divider {
  position: relative;
  height: 30px;
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background-image:
    repeating-linear-gradient(to right, var(--color-border) 0 1.5px, transparent 1.5px 16px),
    repeating-linear-gradient(to right, var(--color-accent) 0 1.5px, transparent 1.5px 80px);
  background-position: left top, left bottom;
  background-size: 16px 10px, 80px 18px;
  background-repeat: repeat-x;
  opacity: 0.9;
}


/* ================================================================
   8. SERVICES
   ================================================================ */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.service-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.service-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(156, 107, 62, 0.1);
}

/* Photo placeholder at the top of each card */
.service-card__media {
  aspect-ratio: 16 / 10;
  background-color: var(--color-bg-alt);
  background-image: repeating-linear-gradient(
    -45deg, transparent, transparent 18px,
    rgba(0,0,0,0.02) 18px, rgba(0,0,0,0.02) 19px
  );
  border-bottom: 1px dashed var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.service-card__img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  display: block;
}

.service-card__body { padding: var(--space-4); }

.service-card__icon {
  width: 46px;
  height: 46px;
  background-color: var(--color-accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.service-card__title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.service-card__desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: none;
}


/* ================================================================
   9. TRUST / REPUTATION
   ================================================================ */
.trust__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: start;
}

.trust__rating {
  text-align: center;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
}

.trust__number {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}

.trust__stars {
  color: var(--color-gold);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.trust__count {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: var(--space-3);
}

.trust__note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 34ch;
  margin-inline: auto;
}

.trust__quotes .section__header,
.trust__quotes .section__label,
.trust__quotes .section__title {
  text-align: left;
  margin-inline: 0;
}
.trust__quotes .section__title { margin-bottom: var(--space-3); }

.quote-card {
  background-color: var(--color-surface);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-2);
}

.quote-card__mark { color: var(--color-accent-light); margin-bottom: var(--space-1); }

.quote-card__text {
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: var(--space-1);
  max-width: none;
}

.quote-card__attr {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  opacity: 0.75;
}


/* ================================================================
   10. GALLERY
   ================================================================ */
.gallery__category { margin-bottom: var(--space-5); }
.gallery__category:last-child { margin-bottom: 0; }

.gallery__category-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-1);
  border-bottom: 1px solid var(--color-border);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

.gallery-placeholder {
  aspect-ratio: 4 / 3;
  background-color: var(--color-bg-alt);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  background-image: repeating-linear-gradient(
    -45deg, transparent, transparent 18px,
    rgba(0,0,0,0.018) 18px, rgba(0,0,0,0.018) 19px
  );
  transition: border-color var(--ease), background-color var(--ease);
}

.gallery-placeholder:hover {
  border-color: var(--color-accent);
  background-color: var(--color-accent-light);
}

.gallery-item {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}


/* ================================================================
   11. ABOUT
   ================================================================ */
.about__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

.about__media {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  background-color: var(--color-surface);
  border: 1.5px dashed var(--color-border);
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  color: var(--color-text-muted);
  font-size: 0.78rem;
  flex-shrink: 0;
}

.about__content { text-align: center; max-width: 62ch; }
.about__content .section__label,
.about__content .section__title { display: block; }

.about__text {
  font-size: 1.02rem;
  color: var(--color-text);
  line-height: 1.85;
  margin-inline: auto;
}


/* ================================================================
   12. CONTACT + FORM
   ================================================================ */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  max-width: 1000px;
  margin-inline: auto;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.contact-item--phone { border-color: var(--color-accent); }
.contact-item--phone:hover {
  box-shadow: 0 8px 22px rgba(156, 107, 62, 0.14);
  transform: translateY(-1px);
}

.contact-item__icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background-color: var(--color-accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.contact-item__body { display: flex; flex-direction: column; gap: 2px; }

.contact-item__label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-item__value {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--color-text);
}

/* Form */
.contact-form {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-field input,
.form-field textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.75em 0.9em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-bg);
  color: var(--color-text);
  resize: vertical;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(156, 107, 62, 0.15);
}

.contact-form__submit {
  align-self: flex-start;
  border: none;
}

.contact-form__status {
  font-size: 0.85rem;
  color: var(--color-accent);
  min-height: 1.2em;
}


/* ================================================================
   13. FOOTER
   ================================================================ */
.footer {
  background-color: var(--color-text);
  padding-block: var(--space-4);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  text-align: center;
}

.footer__name {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: rgba(253, 250, 247, 0.92);
}

.footer__phone {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(253, 250, 247, 0.75);
  border: 1px solid rgba(253, 250, 247, 0.25);
  padding: 0.3em 0.8em;
  border-radius: var(--radius);
  transition: border-color var(--ease), color var(--ease);
}
.footer__phone:hover { border-color: rgba(253,250,247,0.6); color: #fff; }

.footer__meta {
  font-size: 0.8rem;
  color: rgba(253, 250, 247, 0.45);
}


/* ================================================================
   14. RESPONSIVE BREAKPOINTS  (mobile-first: rules above apply
   everywhere; the media queries below add layout for larger screens)
   ================================================================ */

/* ---- Mobile nav: collapse links+phone into a dropdown panel ---- */
@media (max-width: 719px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 24px rgba(43, 38, 34, 0.08);
    padding: var(--space-2) var(--container-pad) var(--space-3);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav__list a {
    display: block;
    width: 100%;
    padding: 0.85em 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav__phone {
    margin-top: var(--space-2);
    justify-content: center;
    width: 100%;
  }
}

@media (min-width: 720px) {
  .nav__toggle { display: none; }
}

/* ---- Small: 480 px and up ---- */
@media (min-width: 480px) {
  :root { --container-pad: 1.75rem; }
}

/* ---- Tablet: 640 px and up ---- */
@media (min-width: 640px) {
  :root { --container-pad: 2rem; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }

  .hero__actions { flex-direction: row; justify-content: center; }

  .about__inner { flex-direction: row; align-items: center; text-align: left; gap: var(--space-6); }
  .about__content { text-align: left; }
  .about__content .section__header,
  .about__text { margin-inline: 0; }

  .contact__layout { grid-template-columns: 0.85fr 1fr; align-items: start; }
}

/* ---- Desktop: 1024 px and up ---- */
@media (min-width: 1024px) {
  :root { --container-pad: 2.5rem; }

  .break-desktop { display: block; }

  .services__grid { grid-template-columns: repeat(4, 1fr); }

  .trust__grid { grid-template-columns: 0.85fr 1fr; gap: var(--space-7); }
  .trust__rating { position: sticky; top: 100px; }

  .quote-card { display: inline-block; width: calc(50% - var(--space-2)); vertical-align: top; }
  .quote-card:first-of-type { margin-right: var(--space-2); }
}
