/* ================================================================
   Kath's Curtains: Brand stylesheet
   ================================================================ */

:root {
  /* Brand */
  --teal:        #6090A0;   /* primary brand colour (from logo) */
  --teal-deep:   #4A7888;   /* hover / CTAs */
  --teal-soft:   #DCE7EB;   /* tints, dividers */

  /* Neutrals: warm */
  --bg:          #FAF8F5;   /* page background, warm off-white */
  --bg-alt:      #F2EDE5;   /* alternating section background */
  --sand:        #E8DFD3;   /* soft accent */
  --cream:       #FFFCF7;   /* card surfaces */

  /* Text */
  --ink:         #2A2A2A;   /* headings */
  --body:        #535454;   /* body: pulled from logo */
  --muted:       #8A8580;   /* captions, secondary */
  --line:        #E6DFD4;   /* borders */

  /* Type */
  --font-heading: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container:   1200px;
  --gutter:      clamp(1rem, 4vw, 2.5rem);
  --radius:      2px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----------------------------------------------------------------
   Reset & base
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* The closed mobile menu is parked off-screen to the right. Without this it
     stretches the page sideways on a phone. Applied to body only, never html,
     so the sticky header keeps working. */
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-deep); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); }
p  { margin: 0 0 1.2em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 .8em;
}

/* ----------------------------------------------------------------
   Layout primitives
   ---------------------------------------------------------------- */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.section--alt { background: var(--bg-alt); }
.section--cream { background: var(--cream); }
.section--teal {
  background: var(--teal);
  color: #fff;
}
.section--teal h1, .section--teal h2, .section--teal h3 { color: #fff; }
.section--teal .eyebrow { color: var(--sand); }

.grid { display: grid; gap: 2rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .95em 1.7em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all .25s var(--ease);
  cursor: pointer;
}
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-deep); color: #fff; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn--outline {
  background: transparent;
  color: var(--teal-deep);
  border-color: var(--teal-deep);
}
.btn--outline:hover { background: var(--teal-deep); color: #fff; }

/* ----------------------------------------------------------------
   Header / Navigation
   ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
/* The frosted-glass background lives on a pseudo-element, NOT on .site-header
   itself. An element with backdrop-filter becomes the containing block for its
   position:fixed children, which collapsed the mobile menu to the height of the
   header and let the page show through it. Keep it off the header. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}
/* Keeps the logo and the open/close button clickable above the open menu */
.site-header__inner { position: relative; z-index: 2; }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
}
.site-logo img { height: 48px; width: auto; }
@media (min-width: 768px) {
  .site-logo img { height: 56px; }
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}
@media (min-width: 900px) {
  .nav__list { display: flex; }
}
.nav__link {
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  position: relative;
  padding: .35em 0;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--teal);
  transition: width .3s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--teal-deep); }

.nav__phone {
  display: none;
  font-weight: 500;
  color: var(--teal-deep);
  font-size: .95rem;
}
.nav__phone::before {
  content: '\260E';
  margin-right: .4em;
  font-size: 1.05em;
}
@media (min-width: 1100px) { .nav__phone { display: inline-flex; } }

/* Mobile menu toggle */
.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: transparent;
  border: 0;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  margin-inline: auto;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (min-width: 900px) { .nav__toggle { display: none; } }

/* Mobile drawer */
.nav__mobile {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--bg);
  padding: 6rem var(--gutter) 2.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* Fades in rather than sliding in from the right. A panel parked off-screen
     at translateX(100%) is position:fixed, so no amount of overflow clipping
     stops it stretching the page sideways on a phone. Staying put avoids that
     entirely. */
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.nav__mobile[data-open="true"] {
  opacity: 1;
  visibility: visible;
}
.nav__mobile ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.nav__mobile a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--ink);
}
.nav__mobile .phone {
  display: block;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
  color: var(--teal-deep);
}
@media (min-width: 900px) { .nav__mobile { display: none; } }

/* ----------------------------------------------------------------
   Hero
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.2) 70%),
    linear-gradient(180deg, rgba(20, 20, 20, 0.55) 0%, rgba(20, 20, 20, 0.65) 100%);
}
.hero h1,
.hero__eyebrow,
.hero p { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45); }
.hero__inner {
  max-width: 760px;
  padding: 6rem var(--gutter);
}
.hero__eyebrow {
  font-size: .8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: #fff;
  font-weight: 400;
  margin-bottom: 1.2rem;
}
.hero p {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  max-width: 540px;
  margin: 0 auto 2.2rem;
  opacity: 0.95;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Smaller hero for inner pages */
.hero--inner { min-height: 42vh; }
.hero--inner .hero__inner { padding: 4rem var(--gutter); }
.hero--inner h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }

/* ----------------------------------------------------------------
   Intro / Two-column
   ---------------------------------------------------------------- */
.intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 800px) {
  .intro { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .intro--reverse > :first-child { order: 2; }
}
.intro__image {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
}

/* ----------------------------------------------------------------
   Service cards
   ---------------------------------------------------------------- */
.service-card {
  background: var(--cream);
  padding: 2.5rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -20px rgba(80, 80, 80, 0.25);
}
.service-card__icon {
  width: 48px; height: 48px;
  margin-bottom: 1.2rem;
  color: var(--teal);
}
.service-card h3 { margin-bottom: .5em; }
.service-card p { margin-bottom: 1.3em; }
.service-card__link {
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.service-card__link::after {
  content: ' \2192';
  transition: transform .2s var(--ease);
  display: inline-block;
}
.service-card__link:hover::after { transform: translateX(4px); }

/* ----------------------------------------------------------------
   Brand strip
   ---------------------------------------------------------------- */
.brands {
  text-align: center;
}
.brands__title {
  font-size: .85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.brands__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
  align-items: center;
}
@media (min-width: 600px) { .brands__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .brands__grid { grid-template-columns: repeat(6, 1fr); } }
.brands__item {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--ink);
  text-align: center;
  opacity: 0.75;
  transition: opacity .2s, color .2s;
}
.brands__item:hover { opacity: 1; color: var(--teal-deep); }

/* ----------------------------------------------------------------
   Gallery / Range cards
   ---------------------------------------------------------------- */
.range-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.range-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  isolation: isolate;
}
.range-card__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .8s var(--ease);
  z-index: -2;
}
.range-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65) 100%);
  z-index: -1;
}
.range-card:hover .range-card__image { transform: scale(1.06); }
.range-card__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.8rem;
  color: #fff;
}
.range-card__body h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: .3em;
}
.range-card__body p {
  font-size: .9rem;
  opacity: 0.85;
  margin: 0;
}

/* ----------------------------------------------------------------
   Testimonials
   ---------------------------------------------------------------- */
.testimonial {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.testimonial__quote {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.testimonial__quote::before { content: '\201C'; }
.testimonial__quote::after { content: '\201D'; }
.testimonial__cite {
  font-size: .85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}

/* ----------------------------------------------------------------
   Visit-us strip
   ---------------------------------------------------------------- */
.visit {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .visit { grid-template-columns: 1fr 1fr; min-height: 460px; }
}
.visit__panel {
  padding: clamp(2.5rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.visit__panel--teal { background: var(--teal); color: #fff; }
.visit__panel--teal h2,
.visit__panel--teal .eyebrow { color: #fff; }
.visit__panel--teal .eyebrow { opacity: 0.85; }
.visit__details { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; gap: .9rem; }
.visit__details li { display: flex; gap: .9rem; align-items: flex-start; min-width: 0; }
/* Long unbroken strings (URLs, emails) must be able to break, or they push the
   whole page sideways on a phone. "anywhere" is deliberate: unlike break-word
   it also lowers the min-content width, which is what stops the overflow. */
.visit__details span,
.visit__details a { overflow-wrap: anywhere; min-width: 0; }
.visit__details strong { display: block; font-weight: 500; }
.visit__details span { opacity: 0.85; font-size: .95rem; }
.visit__map {
  background-size: cover;
  background-position: center;
  min-height: 360px;
  position: relative;
}
.visit__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ----------------------------------------------------------------
   Forms
   ---------------------------------------------------------------- */
.form {
  display: grid;
  gap: 1.4rem;
  max-width: 640px;
}
.form__row { display: grid; gap: 1.4rem; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5em;
}
.form input,
.form textarea,
.form select {
  width: 100%;
  padding: .85em 1em;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(96, 144, 160, 0.18);
}
.form textarea { min-height: 140px; resize: vertical; }

/* Contact page: enquiry form beside the direct-contact card */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
  }
}
.contact-layout .form { max-width: 100%; }
/* Grid items default to min-width:auto, so they refuse to shrink below their
   content's intrinsic width. The select's longest option was forcing the column
   wider than the phone screen and scrolling the whole page sideways. */
.contact-layout > * { min-width: 0; }
.form input,
.form select,
.form textarea { max-width: 100%; }

.form__status {
  margin: 1.2rem 0 0;
  padding: .9em 1.1em;
  border-radius: var(--radius);
  font-size: .95rem;
  line-height: 1.55;
  border: 1px solid transparent;
}
.form__status--pending {
  background: var(--bg-alt);
  border-color: var(--line);
  color: var(--body);
}
.form__status--success {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: #22505F;
}
.form__status--error {
  background: #FBEDE9;
  border-color: #D9A392;
  color: #8A3B24;
}
.form button[disabled] { opacity: .6; cursor: wait; }

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
.site-footer {
  background: #1F2A30;
  color: rgba(255,255,255,0.78);
  padding: 4rem 0 2rem;
  font-size: .92rem;
}
.site-footer a { color: rgba(255,255,255,0.9); }
.site-footer a:hover { color: var(--sand); }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 700px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer__brand img { height: 50px; filter: brightness(1.1); margin-bottom: 1rem; }
.footer__brand p { margin: 0; opacity: 0.7; max-width: 28ch; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  font-size: .82rem;
  opacity: 0.6;
}
.footer__social { display: flex; gap: 1rem; }
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  transition: background .2s, border-color .2s;
}
.footer__social a:hover { background: var(--teal); border-color: var(--teal); }
.footer__social svg { width: 16px; height: 16px; fill: currentColor; }

/* ----------------------------------------------------------------
   Misc utilities
   ---------------------------------------------------------------- */
.text-center { text-align: center; }
.lead { font-size: 1.15rem; line-height: 1.7; max-width: 60ch; }
.divider {
  width: 60px; height: 1px;
  background: var(--teal);
  margin: 0 auto 1.5rem;
}
.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

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