/* Salon De Pet-Leen
   Palette (from the logo): black #000 · red #C8102E · white #FFF
   Type: Young Serif (headings) + Figtree (text)                                        */

:root {
  color-scheme: dark;   /* dark date pickers, dropdowns and scrollbars */

  /* --- Theme --- */
  --black: #000000;       /* page background */
  --surface: #111111;     /* alternate sections, table headers */
  --card: #161616;        /* cards, inputs' parent surfaces */
  --line: #2E2E2E;        /* borders and dividers */
  --text: #FFFFFF;
  --text-2: #BDBDBD;      /* secondary text */
  --red: #C8102E;         /* buttons, borders, accents */
  --red-d: #A50D25;       /* button hover */
  --red-link: #FF5468;    /* red for text on black (readable contrast) */

  /* --- Status colours (dark versions) --- */
  --ok: #6FD9A0;   --ok-bg: #0F2A1B;   --ok-line: #1F5A3A;
  --warn: #FFC561; --warn-bg: #2D2108; --warn-line: #6B4A10;
  --bad: #FF7F77;  --bad-bg: #2E0F0E;  --bad-line: #6B2420;  --bad-solid: #C0281F;

  --radius: 10px;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Black tile with a faint red pattern (hero + page titles) */
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' fill='%23000'/%3E%3Cg fill='none' stroke='%23C8102E' stroke-opacity='.45' stroke-width='1.5'%3E%3Crect x='3' y='3' width='58' height='58'/%3E%3Ccircle cx='32' cy='32' r='10'/%3E%3Cpath d='M32 6v14M32 44v14M6 32h14M44 32h14'/%3E%3Cpath d='M12 12l10 10M52 12L42 22M12 52l10-10M52 52L42 42'/%3E%3C/g%3E%3C/svg%3E");

  /* --- Legacy names, so any inline styles in your HTML keep working --- */
  --ink: var(--text);
  --ink-2: var(--text-2);
  --paper: var(--black);
  --mist: var(--surface);
  --azulejo: var(--red);
  --azulejo-d: var(--red-link);
  --hibiscus: var(--red);
  --hibiscus-d: var(--red-d);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body { margin: 0; font: 400 1.0625rem/1.6 var(--sans); color: var(--text); background: var(--black); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--red-link); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--red-link); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 0; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--text-2); }


/* ---------- Header ---------- */
.site-header { background: var(--black); border-bottom: 2px solid var(--red); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; }
.brand { font-family: var(--serif); font-size: 1.35rem; color: var(--text); text-decoration: none; line-height: 1.1; display: inline-flex; align-items: center; }
.brand:hover { color: var(--text); }
.brand small { display: block; font-family: var(--sans); font-size: .8rem; color: var(--text-2); margin-top: 2px; }
.brand img { height: 56px; width: auto; display: block; }   /* logo */
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { padding: .5rem .8rem; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 500; }
.nav a:hover { background: var(--card); color: #fff; }
.nav a[aria-current="page"] { background: var(--card); box-shadow: inset 0 -3px 0 var(--red); }
.nav .btn { margin-left: .5rem; color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .8rem; font: inherit; color: var(--text); cursor: pointer; }
/* ---------- Buttons ---------- */
.btn { display: inline-block; font: 600 1rem/1 var(--sans); padding: .85rem 1.3rem; border-radius: 8px; border: 2px solid var(--red); background: var(--red); color: #fff; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--red-d); border-color: var(--red-d); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn-outline:hover { background: var(--text); border-color: var(--text); color: #000; }
.btn-small { padding: .45rem .75rem; font-size: .9rem; }
.btn-danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: var(--bad-solid); border-color: var(--bad-solid); color: #fff; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 560px; }
.hero-text { padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; background: var(--surface); }
.hero-text .lead { font-size: 1.2rem; color: var(--text-2); }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; color: var(--text-2); }
.hero-facts li { padding-left: 1rem; border-left: 3px solid var(--red); }
.hero-tiles { background: var(--tile) var(--black); padding: clamp(1.25rem, 4vw, 3rem); display: flex; align-items: center; justify-content: center; }
.hero-tiles .card { width: min(440px, 100%); box-shadow: 0 18px 40px rgba(0, 0, 0, .7); border-color: var(--red); }

/* ---------- Sections & cards ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-mist { background: var(--surface); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h2, .card h3 { margin-bottom: .75rem; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.service { border-left: 4px solid var(--red); border-radius: 4px var(--radius) var(--radius) 4px; padding: 1.1rem 1.25rem; background: var(--card); border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service h3 { margin-bottom: .25rem; }
.service p { margin: 0 0 .6rem; color: var(--text-2); font-size: .98rem; }
.service .meta { display: flex; justify-content: space-between; font-weight: 600; font-size: .95rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.facts { display: grid; gap: .75rem; margin: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0 0 .5rem; color: var(--text-2); }
.map { width: 100%; height: 340px; border: 0; border-radius: var(--radius); background: var(--surface); }
.page-title { background: var(--tile) var(--black); color: #fff; padding: 3rem 0; border-bottom: 2px solid var(--red); }
.page-title h1 { color: #fff; margin: 0; background: var(--red); display: inline-block; padding: .15em .45em; border-radius: 4px; }
.page-title p { color: #fff; background: var(--red); display: inline-block; padding: .2em .6em; margin: .75rem 0 0; border-radius: 4px; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; margin: 0 0 .3rem; }
.field { margin-bottom: 1rem; }
.hint { font-weight: 400; color: var(--text-2); font-size: .9rem; }
input[type=text], input[type=tel], input[type=email], input[type=date], input[type=password], input[type=number], select, textarea {
  width: 100%; font: inherit; padding: .7rem .8rem; border: 1.5px solid #6A6A6A; border-radius: 8px; background: var(--black); color: var(--text);
}
::placeholder { color: #8A8A8A; opacity: 1; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(255, 84, 104, .4); border-color: var(--red-link); }
.field-error { color: var(--bad); font-size: .92rem; margin: .3rem 0 0; font-weight: 500; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.flash { padding: .85rem 1.1rem; border-radius: 8px; margin: 1rem 0; font-weight: 500; border: 1px solid; }
.flash-ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.flash-error { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--text-2); padding: 2.5rem 0 1.5rem; border-top: 3px solid var(--red); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--red-link); }
.site-footer h3 { color: #fff; font-size: 1.1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid p { margin: 0 0 .4rem; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 1.75rem; padding-top: 1rem; font-size: .9rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Tables & badges (admin) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--surface); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.actions form { margin: 0; }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .85rem; font-weight: 600; border: 1px solid; }
.badge-Pending   { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.badge-Confirmed { background: #2A0A10; color: #FF8A99; border-color: #7A1A2B; }
.badge-Completed { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.badge-Cancelled { background: #1E1E1E; color: #B0B0B0; border-color: #3E3E3E; }
.badge-off { background: #1E1E1E; color: #B0B0B0; border-color: #3E3E3E; }
.empty { padding: 2rem; text-align: center; color: var(--text-2); }

/* ---------- Admin shell ---------- */
body.admin { background: var(--black); }
.admin-bar { background: var(--surface); color: #fff; border-bottom: 2px solid var(--red); }
.admin-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; min-height: 60px; padding: .4rem 0; }
.admin-bar .brand { color: #fff; font-size: 1.15rem; }
.admin-bar .brand img { height: 38px; }
.admin-bar .nav a { color: #E6E6E6; }
.admin-bar .nav a:hover { background: rgba(255,255,255,.12); }
.admin-bar .nav a[aria-current="page"] { background: rgba(255,255,255,.1); box-shadow: inset 0 -3px 0 var(--red); }
.admin-main { padding: 1.75rem 0 3rem; }
.admin-main h1 { font-size: 1.9rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin-bottom: 1.25rem; }
.toolbar .field { margin: 0; min-width: 170px; }
.toolbar .grow { flex: 1; min-width: 220px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 1rem 1.2rem; }
.stat b { display: block; font: 400 2rem/1.1 var(--serif); }
.stat span { color: var(--text-2); font-size: .95rem; }
.form-card { max-width: 640px; }
.login-box { max-width: 400px; margin: 8vh auto; }
select.inline { width: auto; padding: .35rem .5rem; font-size: .92rem; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .split, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--black); flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1rem; border-bottom: 2px solid var(--red); }
  .nav.open { display: flex; }
  .nav .btn { margin: .5rem 0 0; text-align: center; }
  .admin-bar .nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; background: none; border: 0; padding: 0; }
  .admin-bar .nav-toggle { display: none; }
}
@media (max-width: 520px) {
  .row-2 { grid-template-columns: 1fr; }
  body { font-size: 1rem; }
  .brand img { height: 44px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }