/* ==========================================================
   Kings Barber Shirley — Shared stylesheet
   ========================================================== */

:root {
  --c-red:        #DF1F2D;
  --c-red-dark:   #B01E29;
  --c-black:      #131313;
  --c-white:      #FFFFFF;
  --c-off-white:  #F8F8F8;
  --c-grey:       #6B6B6B;
  --c-grey-line:  #E5E5E5;
  --c-lilac:      #E6E6F1;

  --shadow-red:   0 18px 40px 0 rgba(176, 30, 41, 0.35);
  --shadow-soft:  0 5px 20px 0 rgba(19, 19, 19, 0.08);

  --font: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --wrap: 1280px;
}

/* ==========================================================
   Reset + base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--c-black);
  background: var(--c-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

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

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

/* ==========================================================
   Navigation
   ========================================================== */
.nav {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: stretch;
  min-height: 88px;
  border-bottom: 1px solid var(--c-grey-line);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
}
.nav__brand {
  background: var(--c-black);
  display: flex;
  align-items: center;
  padding: 16px 32px;
}
.nav__brand-mark {
  color: var(--c-white);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__crown {
  width: 32px; height: 32px;
  display: inline-grid; place-items: center;
  color: var(--c-red);
  font-size: 1.5rem;
}
.nav__logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 100%;
}
.nav__menu {
  background: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
  padding: 0 40px;
}
.nav__menu a {
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.nav__menu a:hover,
.nav__menu a[aria-current="page"] { border-bottom-color: var(--c-red); }

.nav__toggle {
  display: none;
  background: var(--c-white);
  padding: 16px 24px;
  justify-content: flex-end;
  align-items: center;
}
.nav__toggle-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--c-red);
  font-size: 1.5rem;
}

/* Mobile menu drawer */
.nav__mobile {
  display: none;
  position: absolute;
  top: 100%; right: 0;
  width: 260px;
  background: var(--c-white);
  border: 1px solid var(--c-black);
  border-top: 0;
  padding: 24px 32px;
  flex-direction: column;
  gap: 16px;
  z-index: 200;
}
.nav__mobile[data-open="true"] { display: flex; }
.nav__mobile a {
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.nav__mobile a:hover { color: var(--c-red); }

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-block;
  background: var(--c-red);
  color: var(--c-white);
  padding: 18px 40px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
  background: var(--c-red-dark);
}
.btn--dark { background: var(--c-black); }
.btn--dark:hover { background: #000; box-shadow: var(--shadow-soft); }
.btn--outline {
  background: transparent;
  color: var(--c-red);
  border: 2px solid var(--c-red);
}
.btn--outline:hover { background: var(--c-red); color: var(--c-white); }

.link-underline {
  color: var(--c-red);
  font-weight: 900;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: underline;
}
.link-underline:hover { color: var(--c-black); }

/* ==========================================================
   Section
   ========================================================== */
.section {
  padding: 100px 0;
  background: var(--c-off-white);
  position: relative;
}
.section--white { background: var(--c-white); }
.section--black { background: var(--c-black); color: var(--c-white); }
.section--lilac { background: var(--c-lilac); }

.section__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--c-red);
  margin-bottom: 16px;
}
.section__title {
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

/* Decorative dot band */
.dot-band {
  position: absolute;
  top: -1px;
  left: 60px;
  width: min(600px, 50%);
  height: 60px;
  background-image: radial-gradient(circle, var(--c-black) 2px, transparent 2.5px);
  background-size: 12px 12px;
  opacity: 0.15;
  pointer-events: none;
}

/* ==========================================================
   Forms — shared input styling
   ========================================================== */
.form-field {
  display: block;
  border-bottom: 3px solid var(--c-black);
  padding: 12px 0 8px;
  margin-bottom: 32px;
}
.form-field__label {
  display: block;
  font-weight: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  color: var(--c-black);
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--c-black);
  padding: 8px 0;
  outline: none;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--c-grey);
  font-weight: 500;
}
.form-field--boxed {
  border: 3px solid var(--c-black);
  padding: 16px 20px;
}

/* ==========================================================
   Footer
   ========================================================== */
.footer {
  background: var(--c-black);
  color: var(--c-white);
  padding: 80px 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer__col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--c-red);
  margin-bottom: 20px;
}
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer__list a {
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer__list a:hover { opacity: 1; }
.footer__brand {
  text-align: right;
}
.footer__logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.footer__logo-img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 100%;
}
.footer__tagline {
  font-size: 0.875rem;
  opacity: 0.6;
}
.footer__meta {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.75rem;
  opacity: 0.6;
}
.footer__meta ul {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0; margin: 0;
  flex-wrap: wrap;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; position: relative; }
  .nav__menu { display: none; }
  .nav__toggle { display: flex; }

  .section { padding: 64px 0; }
  .section__title { margin-bottom: 32px; }

  .footer__grid { grid-template-columns: 1fr; text-align: left; }
  .footer__brand { text-align: left; }
  .footer__logo { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
