/* Salon Lina: voorbeeldsite van een kapsalon. Mobile first. */

/* Kleuren en maten */
:root {
  --cream: #fbf6ef;
  --cream-2: #f3e9dd;
  --rose: #ebcfc5;
  --plum: #4b1d3f;
  --plum-dark: #36142d;
  --plum-soft: #8a5a7a;
  --ink: #2b2129;
  --muted: #62525c;
  --line: #e4d6c8;
  --gold: #d9b48f;
  --error: #a3242b;
  --white: #fffdf9;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 1.25rem;
  --wrap: 72rem;
  --shadow: 0 0.75rem 2rem rgba(75, 29, 63, 0.08);
}

/* Basis */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--plum);
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.375rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--plum);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--plum-dark);
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.narrow {
  max-width: 42rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--plum);
  color: var(--white);
  border-radius: 0.5rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

/* Header en navigatie */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 239, 0.94);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--plum);
  text-decoration: none;
  min-height: 2.75rem;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--plum);
  background: transparent;
  border: 1.5px solid var(--plum);
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle[hidden] {
  display: none;
}

.nav-toggle:hover {
  background: var(--cream-2);
}

/* Drie streepjes als icoon, gemaakt met CSS */
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar {
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  width: 100%;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--cream-2);
  color: var(--plum);
}

.site-nav a[aria-current="page"] {
  color: var(--plum);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.site-nav .nav-cta {
  background: var(--plum);
  color: var(--white);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: var(--plum-dark);
  color: var(--white);
}

.site-nav .nav-cta[aria-current="page"] {
  color: var(--white);
}

/* Met JavaScript: menu op kleine schermen ingeklapt */
.nav-ready .site-nav {
  display: none;
}

.nav-ready.nav-open .site-nav {
  display: block;
}

.nav-ready.nav-open .site-nav ul {
  flex-direction: column;
  padding-block: 0.5rem 0.75rem;
}

.nav-ready.nav-open .site-nav a {
  padding: 0.75rem 1rem;
}

.nav-ready.nav-open .site-nav .nav-cta {
  text-align: center;
  margin-top: 0.5rem;
}

@media (min-width: 48em) {
  .site-nav {
    width: auto;
  }

  .nav-toggle,
  .nav-toggle[hidden] {
    display: none;
  }

  .nav-ready .site-nav,
  .nav-ready.nav-open .site-nav {
    display: block;
  }

  .nav-ready.nav-open .site-nav ul {
    flex-direction: row;
    padding: 0;
  }

  .nav-ready.nav-open .site-nav a {
    padding: 0.5rem 0.85rem;
  }

  .nav-ready.nav-open .site-nav .nav-cta {
    margin-top: 0;
  }
}

/* Knoppen */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid var(--plum);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--plum);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--plum-dark);
  border-color: var(--plum-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--plum);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--cream-2);
  color: var(--plum-dark);
  transform: translateY(-2px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Secties */
.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section-alt {
  background: var(--cream-2);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.lead {
  font-size: 1.1875rem;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

/* Hero homepage */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-text .lead {
  max-width: 34rem;
}

.hero-meta {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.hero-art {
  max-width: 24rem;
  margin-inline: auto;
}

/* Foto in de vorm van een boog, zoals de spiegels in het salon */
.hero-art img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 40% 50%;
  border-radius: 999px 999px var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 44em) {
  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
  }

  .hero-art {
    max-width: 28rem;
  }
}

/* Welkom: tekst en foto van het salon */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.about-grid .lead {
  color: var(--ink);
}

.about-photo,
.page-head-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (min-width: 44em) {
  .about-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2rem, 5vw, 4rem);
  }
}

/* Paginakop op subpagina's */
.page-head {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 5vw, 3rem);
}

.page-head-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 44em) {
  .page-head-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
  }
}

/* Minder witruimte tussen paginakop en de eerste sectie */
.page-head + .section {
  padding-top: clamp(1rem, 3vw, 2rem);
}

.page-head .lead {
  max-width: 38rem;
}

/* Kaarten */
.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 44em) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--rose);
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.6rem;
  margin-bottom: 1.25rem;
  background: var(--cream-2);
  border-radius: 50%;
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.price {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--plum);
}

.section-link {
  margin-top: 2rem;
}

/* Waarom Salon Lina */
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 44em) {
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

.facts li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--plum);
}

.facts li::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
}

.facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--plum);
  margin-bottom: 0.2rem;
}

/* Openingsuren */
.info-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 52em) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.hours {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
}

.hours dt,
.hours dd {
  margin: 0;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.hours dd {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hours .closed {
  color: var(--muted);
}

.info-card {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

address {
  font-style: normal;
  margin-bottom: 1em;
}

/* Oproep onderaan */
.cta-band {
  padding: clamp(2.5rem, 6vw, 4rem);
  background: var(--plum);
  color: var(--cream);
  border-radius: calc(var(--radius) * 1.5);
  text-align: center;
}

.cta-band h2 {
  color: var(--cream);
}

.cta-band p {
  max-width: 34rem;
  margin-inline: auto;
}

.cta-band .btn {
  margin-top: 0.75rem;
  background: var(--cream);
  color: var(--plum);
  border-color: var(--cream);
}

.cta-band .btn:hover,
.cta-band .btn:focus-visible {
  background: var(--white);
  color: var(--plum-dark);
  transform: translateY(-2px);
}

.cta-band :focus-visible {
  outline-color: var(--cream);
}

/* Prijslijst */
.chips {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--plum);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color 0.2s ease;
}

.chips a:hover,
.chips a:focus-visible {
  background: var(--plum);
  color: var(--white);
}

.price-groups {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 56em) {
  .price-groups {
    grid-template-columns: 1fr 1fr;
  }
}

.price-group {
  scroll-margin-top: 6rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price-group h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.75rem;
}

.price-group h2 img {
  width: 2.25rem;
  height: 2.25rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table caption {
  text-align: left;
  color: var(--muted);
  font-size: 0.9375rem;
  padding-bottom: 0.5rem;
}

.price-table th,
.price-table td {
  padding: 0.8rem 0;
  border-bottom: 1px dashed var(--line);
  text-align: left;
  vertical-align: top;
}

.price-table thead th {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.price-table tbody th {
  font-weight: 500;
  padding-right: 1rem;
}

.price-table .duur {
  color: var(--muted);
  white-space: nowrap;
  padding-right: 1rem;
}

.price-table .bedrag {
  text-align: right;
  white-space: nowrap;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--plum);
  font-variant-numeric: tabular-nums;
}

.price-table thead .bedrag {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--muted);
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-notes {
  margin-top: 2rem;
  max-width: 42rem;
}

.price-notes h2 {
  font-size: 1.5rem;
}

.price-notes ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.price-notes li + li {
  margin-top: 0.35rem;
}

/* Team */
.team {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 52em) {
  .team {
    grid-template-columns: repeat(3, 1fr);
  }
}

.member {
  text-align: center;
  padding: 2rem 1.75rem;
}

.member img {
  width: min(100%, 12rem);
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  border: 0.375rem solid var(--cream-2);
}

.member h2 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.role {
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1rem;
}

.specialty {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.9rem;
  background: var(--cream-2);
  color: var(--plum);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Afspraakformulier */
.form-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 60em) {
  .form-layout {
    grid-template-columns: 1.6fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

/* Kleine regel onder de verzendknop */
.form-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40em) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field-full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.hint {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid #9a8a93;
  border-radius: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field select {
  appearance: none;
  background-image: url("images/pijl.svg");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.9rem;
  padding-right: 2.5rem;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--plum-soft);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--plum);
  box-shadow: 0 0 0 3px rgba(75, 29, 63, 0.25);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
  border-width: 2px;
}

.field-error {
  margin: 0.4rem 0 0;
  color: var(--error);
  font-size: 0.9375rem;
  font-weight: 600;
}

.field-error[hidden] {
  display: none;
}

.form-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-summary {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--error);
  border-radius: 0.75rem;
  color: var(--error);
  font-weight: 600;
}

.form-summary[hidden] {
  display: none;
}

.form-summary:focus-visible {
  outline-offset: 4px;
}

/* Bevestiging na verzenden */
.confirmation h2 {
  margin-bottom: 0.4rem;
}

.confirmation h2:focus {
  outline: none;
}

.confirmation-list {
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
}

.confirmation-list dt,
.confirmation-list dd {
  margin: 0;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.confirmation-list dt {
  padding-right: 1.5rem;
  color: var(--muted);
}

.confirmation-list dd {
  font-weight: 600;
}

.side-card h2 {
  font-size: 1.5rem;
}

.side-card + .side-card {
  margin-top: 1.25rem;
}

/* Footer */
.site-footer {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-block: 3.5rem 2rem;
  background: var(--plum-dark);
  color: var(--cream);
}

.site-footer a {
  color: var(--cream);
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer :focus-visible {
  outline-color: var(--cream);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 48em) {
  .footer-grid {
    grid-template-columns: 1.2fr 1.2fr 0.8fr;
  }
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-title {
  font-family: var(--sans);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.site-footer .hours dt,
.site-footer .hours dd {
  padding: 0.35rem 0;
  border-color: rgba(251, 246, 239, 0.15);
}

.site-footer .hours .closed {
  color: #d8c8d1;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

/* Tikdoelen van minstens 44 pixels hoog */
.footer-links a,
.site-footer address a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(251, 246, 239, 0.15);
  font-size: 0.875rem;
  color: #d8c8d1;
}

.footer-bottom p {
  margin: 0;
}

.footer-credit a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* Minder beweging als de bezoeker dat vraagt */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .card:hover,
  .card:focus-within,
  .btn:hover,
  .btn:focus-visible {
    transform: none;
  }
}
