:root {
  --color-primary:      #173C32;  /* main dark brand color */
  --color-accent:       #F4EBDD;  /* highlight color */
  --color-background:   #F4EBDD;  /* page background */
  --color-text-on-dark: #F4EBDD;  /* text on primary and hero */

  --hero-overlay: rgba(0, 0, 0, .4);

  --color-primary-dark: var(--color-primary);
  --color-accent-dark:  var(--color-accent);
  --color-surface:      var(--color-background);
  --color-line:         rgba(0, 0, 0, .12);
  --color-line-light:   rgba(255, 255, 255, .2);
}

@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --color-primary-dark: color-mix(in srgb, var(--color-primary), black 15%);   /* button hover */
    --color-accent-dark:  color-mix(in srgb, var(--color-accent), black 15%);    /* accent button hover */
    --color-surface:      color-mix(in srgb, var(--color-background), white 70%); /* cards and alternate sections */
    --color-line:         color-mix(in srgb, var(--color-primary), transparent 88%);       /* thin borders */
    --color-line-light:   color-mix(in srgb, var(--color-text-on-dark), transparent 80%);  /* footer border */
  }
}

.logo { user-select: none; }

/* ===== BASICS ===== */
html { scroll-padding-top: 72px; }
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Segoe UI", system-ui, Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-primary);
  background: var(--color-background);
}

h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h3 { font-size: 1.5rem; font-weight: 350; color: var(--color-primary); }
h4 { font-size: 1.5rem; font-weight: 350; color: var(--color-text-on-dark); margin-top: -20px; }
p { font-size: 1.1rem; }
a { color: inherit; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

/* ===== HEADER ===== */
.site-header { background: var(--color-background); border-bottom: 1px solid var(--color-line); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; text-decoration: none; }
/* Logo spot: this box is a placeholder. Swap it for an <img class="logo-mark"> in index.html and it will fit automatically. */
.logo-mark { width: 40px; height: 40px; border-radius: 8px; background: var(--color-accent); object-fit: contain; flex-shrink: 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: var(--color-primary); color: var(--color-text-on-dark);
  font-weight: 600; text-decoration: none; border: 2px solid var(--color-primary);
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { color: var(--color-text-on-dark); background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.btn-small { padding: 9px 18px; font-size: .95rem; }

/* Accent button. (.btn-tan is the old name; delete it from the next two lines once you've
   replaced "btn-tan" with "btn-accent" in index.html) */
.btn-accent, .btn-tan { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-primary); }
.btn-accent:hover, .btn-tan:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: var(--color-primary); }

.btn-outline { background: transparent; border-color: var(--color-text-on-dark); color: var(--color-text-on-dark); }
.btn-outline:hover { background: rgba(0, 0, 0, .15); border-color: var(--color-text-on-dark); color: var(--color-text-on-dark); }
.buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.center .buttons { justify-content: center; }
.hero .buttons { justify-content: center; }

/* ===== HERO ===== */
.hero {
  color: var(--color-text-on-dark);
  min-height: 100vh;
  min-height: 100svh; /* fits phones with moving address bars */
  display: flex;
  align-items: center;
  text-align: center;
  padding: 90px 0;
  background:
    linear-gradient(var(--hero-overlay), var(--hero-overlay)),
    url("images/hero.jpg") center / cover no-repeat;
}
.lead { font-size: 1.75rem; max-width: 560px; font-weight: 350; color: var(--color-text-on-dark)}
.hero .container { position: relative; }
.hero .small { position: absolute; top: 100%; left: 20px; right: 20px; margin: 0; margin-top: 12px; font-size: .75rem; opacity: .75; }

/* ===== SECTIONS ===== */
.section { padding: 70px 0; }
.section-alt { background: var(--color-surface); }
.section-dark { background: var(--color-primary); color: var(--color-text-on-dark); }
.section-intro { max-width: 620px; margin-bottom: 32px; }
.center .section-intro { margin-left: auto; margin-right: auto; }

.about { display: flex; align-items: center; justify-content: center; gap: 28px; margin-bottom: 32px; }
.about-photo { width: 170px; height: 170px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.about .section-intro { max-width: 460px; margin: 0; font-size: 1.25rem; }

/* ===== CARDS ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; text-align: center;}
.card { background: var(--color-surface); border-radius: 16px; padding: 26px; border: 1px solid var(--color-line); }
.section-alt .card { background: var(--color-background); }
.card p { margin: 0; }
.step-number {
  display: inline-flex; width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-accent); color: var(--color-primary); font-weight: bold;
  align-items: center; justify-content: center; margin-bottom: 12px;
}

/* ===== GALLERY ===== */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.gallery figcaption { font-size: .9rem; margin-top: 8px; opacity: .85; }

/* ===== FAQ ===== */
.narrow { max-width: 720px; }
details { border-bottom: 1px solid var(--color-line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; }
details p { margin: 12px 0 0; }

/* ===== FOOTER ===== */
.site-footer { background: var(--color-primary); color: var(--color-text-on-dark); text-align: center; padding: 28px 0; border-top: 1px solid var(--color-line-light); }
.site-footer p { margin: 4px 0; }
.small { font-size: .85rem; opacity: .75; }

/* ===== PHONES ===== */
@media (max-width: 600px) {
  .logo { font-size: 1.05rem; }
  .logo-mark { width: 32px; height: 32px; }
  .btn-small { padding: 8px 14px; font-size: .85rem; }
  .hero { padding: 60px 0 50px; }
  .hero h3.lead { font-size: 1.2rem; }
  .about { flex-direction: column; text-align: center; }
  .about-photo { width: 130px; height: 130px; }
  .about .section-intro { font-size: 1.1rem; }
}