/* ============================================================
   Kelly D's Hairdressers, Nacton Road, Ipswich
   Minted identity: warm terracotta rose / plum charcoal / cream.
   Typography-led design (no photography exists yet by design).
   ============================================================ */

:root {
  --terracotta: #B4685E;
  --terracotta-dark: #96524A;
  --terracotta-deep: #7E443D;
  --plum: #3B2E33;
  --plum-soft: #574850;
  --cream: #FAF4EE;
  --blush: #EBD8D3;
  --blush-soft: #F3E7E2;
  --white: #FFFFFF;
  --line: rgba(180, 104, 94, 0.28);
  --shadow: 0 10px 30px -12px rgba(59, 46, 51, 0.22);
  --radius: 18px;
  --radius-lg: 28px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Karla", "Segoe UI", Arial, sans-serif;
  --wrap: 1120px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--plum);
  background-color: var(--cream);
  /* subtle paper grain over the cream */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; vertical-align: middle; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--plum);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p + p { margin-top: 1em; }

a { color: var(--terracotta-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta-deep); }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--plum);
  color: var(--cream);
  padding: 0.6rem 1.2rem;
  z-index: 999;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

section { position: relative; }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--terracotta);
  vertical-align: middle;
  margin-right: 0.6rem;
}

.lead { font-size: 1.2rem; color: var(--plum-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-dark); color: var(--white); }

.btn-outline { border-color: var(--terracotta); color: var(--terracotta-dark); background: transparent; }
.btn-outline:hover { background: var(--blush-soft); color: var(--terracotta-deep); }

.btn-dark { background: var(--plum); color: var(--cream); }
.btn-dark:hover { background: var(--plum-soft); color: var(--white); }

.btn-lg { font-size: 1.15rem; padding: 1.15rem 2rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 244, 238, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--plum);
  margin-right: auto;
}
.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  color: var(--terracotta);
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  margin-top: 0.28rem;
}

.site-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
}
.site-nav a {
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--plum);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--terracotta-dark); }
.site-nav a[aria-current="page"] {
  color: var(--terracotta-dark);
  border-bottom-color: var(--terracotta);
}

.header-call { font-size: 0.95rem; padding: 0.75rem 1.3rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--terracotta);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  color: var(--terracotta-dark);
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }

@media (max-width: 860px) {
  .header-call { display: none; }
  .js .nav-toggle { display: block; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1rem 1.25rem 1.5rem;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0.35rem; }
  .js .site-nav a { display: block; padding: 0.7rem 0.4rem; font-size: 1.1rem; border-bottom: 1px solid var(--blush); }

  /* Without JavaScript the full menu simply stays visible */
  .no-js .site-nav { width: 100%; order: 3; }
  .no-js .header-inner { flex-wrap: wrap; }
  .no-js .site-nav ul { flex-wrap: wrap; gap: 0.4rem 1.1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.hero .wrap { position: relative; z-index: 2; max-width: 880px; }

.hero-blob {
  position: absolute;
  border-radius: 52% 48% 61% 39% / 51% 60% 40% 49%;
  filter: blur(2px);
  z-index: 1;
  pointer-events: none;
}
.hero-blob--one {
  width: 520px; height: 520px;
  right: -160px; top: -140px;
  background: radial-gradient(circle at 35% 35%, rgba(180,104,94,0.30), rgba(180,104,94,0.10) 70%);
}
.hero-blob--two {
  width: 420px; height: 420px;
  left: -180px; bottom: -180px;
  background: radial-gradient(circle at 60% 40%, rgba(235,216,211,0.9), rgba(235,216,211,0.25) 75%);
}

.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 52ch; margin-top: 1.3rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero-note { margin-top: 1.4rem; font-size: 0.95rem; color: var(--plum-soft); }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(180deg, var(--blush-soft), var(--cream));
}
.page-hero .wrap { position: relative; z-index: 2; max-width: 820px; }
.page-hero .lead { margin-top: 1.1rem; }

/* ---------- Trust band ---------- */
.trust-band { background: var(--plum); color: var(--cream); padding: 1.6rem 0; }
.trust-band ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 2rem;
  text-align: center;
}
.trust-band li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
}
.trust-band li span { font-size: 0.9rem; color: var(--blush); }
@media (max-width: 720px) {
  .trust-band ul { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--blush { background: var(--blush-soft); }
.section--plum { background: var(--plum); color: var(--cream); }
.section--plum h2, .section--plum h3 { color: var(--white); }
.section--plum p { color: var(--blush); }

.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { margin-top: 0.9rem; color: var(--plum-soft); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--blush);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
}

.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blush-soft);
  color: var(--terracotta-dark);
  margin-bottom: 1.1rem;
}
.icon-badge svg { width: 28px; height: 28px; }

.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--plum-soft); font-size: 0.99rem; }

.price-chip {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--terracotta-deep);
  background: var(--blush-soft);
  border: 1px dashed var(--terracotta);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

.service-card--featured {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, var(--terracotta), var(--terracotta-dark));
  border: none;
  color: var(--white);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  align-items: center;
}
.service-card--featured h3 { color: var(--white); font-size: 1.7rem; }
.service-card--featured p { color: #F7E4DF; font-size: 1.05rem; max-width: 60ch; }
.service-card--featured .icon-badge { background: rgba(255,255,255,0.16); color: var(--white); margin-bottom: 0; width: 72px; height: 72px; border-radius: 22px; }
.service-card--featured .icon-badge svg { width: 38px; height: 38px; }
.service-card--featured .price-chip { background: rgba(255,255,255,0.14); color: var(--white); border-color: rgba(255,255,255,0.5); }
@media (max-width: 620px) {
  .service-card--featured { grid-template-columns: 1fr; }
}

/* ---------- Feature split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.split-panel {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(150deg, var(--blush), var(--blush-soft));
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-panel--plum { background: linear-gradient(150deg, var(--plum), #55414A); color: var(--cream); }
.split-panel--plum h3, .split-panel--plum .big-stat { color: var(--white); }
.split-panel .big-stat {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--terracotta-deep);
}
.split-panel .big-stat small {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.8rem;
  color: var(--plum-soft);
}
.split-panel--plum .big-stat small { color: var(--blush); }

.checklist { list-style: none; margin-top: 1.4rem; }
.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  color: var(--plum-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--terracotta);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.section--plum .checklist li { color: var(--blush); }

/* ---------- Hours table ---------- */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid var(--blush);
  font-size: 1rem;
}
.hours-table th { font-weight: 700; color: var(--plum); width: 45%; }
.hours-table td { color: var(--plum-soft); }
.hours-table tr.closed td { color: var(--terracotta-dark); font-weight: 700; }
.hours-note { margin-top: 0.9rem; font-size: 0.88rem; color: var(--plum-soft); }

/* ---------- Gallery tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 960px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tile-grid { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  color: var(--white);
  box-shadow: var(--shadow);
}
.tile--a { background: linear-gradient(160deg, #B4685E, #7E443D); }
.tile--b { background: linear-gradient(160deg, #3B2E33, #574850); }
.tile--c { background: linear-gradient(160deg, #C98A7F, #B4685E); }
.tile--d { background: linear-gradient(160deg, #574850, #3B2E33); }
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.10'/%3E%3C/svg%3E");
}
.tile .tile-icon {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile .tile-icon svg { width: 24px; height: 24px; }
.tile h3 { color: var(--white); font-size: 1.3rem; position: relative; }
.tile p { position: relative; font-size: 0.88rem; color: rgba(255, 255, 255, 0.85); margin-top: 0.3rem; }

/* ---------- People cards ---------- */
.person-card { text-align: center; }
.person-avatar {
  width: 130px;
  height: 130px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(140deg, var(--terracotta), var(--terracotta-deep));
  box-shadow: var(--shadow);
}
.person-card .role {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  margin: 0.35rem 0 0.8rem;
}
.person-card p { color: var(--plum-soft); font-size: 0.99rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--terracotta), var(--terracotta-deep));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  right: -140px; top: -180px;
  border-radius: 52% 48% 61% 39% / 51% 60% 40% 49%;
  background: rgba(255, 255, 255, 0.08);
}
.cta-band h2 { color: var(--white); position: relative; }
.cta-band p { color: #F7E4DF; max-width: 46ch; margin: 1rem auto 0; position: relative; }
.cta-band .btn { margin-top: 1.8rem; background: var(--white); color: var(--terracotta-deep); position: relative; }
.cta-band .btn:hover { background: var(--cream); }
.cta-band .cta-sub { font-size: 0.92rem; margin-top: 1.2rem; }

/* ---------- Info strips ---------- */
.info-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 860px) { .info-strip { grid-template-columns: 1fr; } }

.nap-block address { font-style: normal; line-height: 1.8; }
.nap-block .nap-name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.tel-big {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--terracotta-deep);
  text-decoration: none;
  margin: 0.6rem 0;
}
.tel-big:hover { color: var(--terracotta); }

.map-frame {
  border: 0;
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; }
.steps li {
  position: relative;
  padding-left: 4rem;
  margin-bottom: 1.8rem;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: var(--blush);
  color: var(--terracotta-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.steps p { color: var(--plum-soft); font-size: 0.99rem; }

/* ---------- Notice panels ---------- */
.notice {
  background: var(--white);
  border-left: 4px solid var(--terracotta);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
}
.notice p { color: var(--plum-soft); font-size: 0.99rem; }
.notice strong { color: var(--plum); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--plum);
  color: var(--blush);
  padding: 3.5rem 0 0;
  margin-top: clamp(3rem, 7vw, 5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h3 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-brand .brand-text { color: var(--white); font-size: 1.5rem; }
.footer-brand .brand-sub { color: var(--blush); }
.footer-brand p { font-size: 0.95rem; margin-top: 1rem; max-width: 34ch; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; font-size: 0.97rem; }
.site-footer a { color: var(--blush); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.8; font-size: 0.97rem; }
.footer-tel { font-weight: 700; color: var(--white) !important; }

.footer-bottom {
  border-top: 1px solid rgba(235, 216, 211, 0.2);
  padding: 1.4rem 0;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  color: rgba(235, 216, 211, 0.75);
}

/* ---------- Utility ---------- */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.thin-rule {
  border: none;
  height: 2px;
  width: 64px;
  background: var(--terracotta);
  margin: 0 0 1.4rem;
}
