/* ============================================================
   EssenMuc Design System – em.css
   ============================================================ */

/* --- Tokens ------------------------------------------------- */
:root {
  --cream:        #f8f5ee;
  --cream-deep:   #ede8db;
  --cream-mid:    #f3eed9;
  --white:        #ffffff;
  --ink:          #26200f;
  --ink-mid:      #3d3520;
  --muted:        #7a6e58;
  --gold:         #b8902e;
  --gold-light:   #d4aa4e;
  --gold-pale:    #f0e5cc;
  --gold-line:    rgba(184,144,46,.22);
  --gold-dim:     rgba(184,144,46,.10);
  --dark:         #2e2718;
  --dark-soft:    #3a3220;
  --line:         rgba(184,144,46,.14);
  --shadow-sm:    0 1px 4px rgba(38,32,15,.08);
  --shadow-md:    0 4px 20px rgba(38,32,15,.12);
  --shadow-lg:    0 12px 40px rgba(38,32,15,.16);
  --r:            12px;
  --r-lg:         18px;
  --max:          1180px;
  --serif:        Georgia, 'Times New Roman', serif;
  --sans:         'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

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

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* --- Layout ------------------------------------------------- */
.wrap {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

/* ============================================================
   HEADER
   ============================================================ */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--cream-deep);
  box-shadow: 0 1px 0 var(--line);
}

.hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo img {
  height: 42px;
  width: auto;
}

.logo-text strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.logo-text span {
  display: block;
  color: var(--gold);
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-top: 2px;
}

.hdr-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hdr-nav a {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}

.hdr-nav a:hover {
  color: var(--ink);
  background: var(--cream);
}

.hdr-nav .nav-cta {
  color: var(--white);
  background: var(--gold);
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 9px;
  margin-left: 10px;
}

.hdr-nav .nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.hdr-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--cream);
  border: 1px solid var(--cream-deep);
  border-radius: 9px;
  cursor: pointer;
  padding: 11px 10px;
}

.hdr-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-mid);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 26px;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
  border: 1.5px solid transparent;
  font-family: inherit;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(184,144,46,.28);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--cream-deep);
}
.btn-outline:hover {
  background: var(--cream-deep);
  border-color: var(--gold-line);
}

.btn-cream {
  background: var(--cream);
  color: var(--ink);
  border-color: transparent;
}
.btn-cream:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: transparent;
  color: rgba(248,245,238,.8);
  border: 1.5px solid rgba(248,245,238,.22);
}
.btn-ghost-light:hover {
  background: rgba(248,245,238,.08);
  color: var(--cream);
  border-color: rgba(248,245,238,.38);
}

.btn-sm {
  height: 42px;
  padding: 0 18px;
  font-size: 13.5px;
  border-radius: 9px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 88px 0;
}

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

.section-white {
  background: var(--white);
}

.section-dark {
  background: var(--dark);
}

/* Tag line */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.tag::before {
  content: '';
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gold);
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}

.section-dark h2 {
  color: var(--cream);
}

.intro {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin-top: 12px;
  line-height: 1.68;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--dark);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(184,144,46,.14), transparent 65%);
}

.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 44px);
  color: var(--cream);
  font-weight: 700;
  position: relative;
}

.cta-band p {
  color: rgba(248,245,238,.58);
  font-size: 16.5px;
  margin: 14px auto 0;
  max-width: 460px;
  position: relative;
}

/* ============================================================
   FORMS
   ============================================================ */
label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-mid);
  margin-bottom: 6px;
}

input[type=text],
input[type=email],
input[type=tel],
input[type=number],
select,
textarea {
  width: 100%;
  font: inherit;
  padding: 13px 16px;
  border: 1px solid var(--cream-deep);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-size: 15px;
  appearance: none;
  -webkit-appearance: none;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus,
input[type=number]:focus,
select:focus,
textarea:focus {
  border-color: rgba(184,144,46,.6);
  box-shadow: 0 0 0 3px rgba(184,144,46,.10);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-top: 16px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 11px;
  border: 1px solid var(--cream-deep);
  background: var(--cream);
  margin-top: 8px;
}

.check-row input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.check-row label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

/* Honeypot */
.hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: rgba(248,245,238,.45);
  padding: 52px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(184,144,46,.12);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  height: 38px;
  width: auto;
}

.footer-logo-text strong {
  display: block;
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
}

.footer-logo-text span {
  display: block;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-top: 2px;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(248,245,238,.38);
  margin-top: 14px;
  line-height: 1.7;
}

.footer h4 {
  color: rgba(248,245,238,.75);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.flinks {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.flinks a {
  font-size: 13.5px;
  color: rgba(248,245,238,.4);
  transition: color .14s;
}

.flinks a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 12px;
}

/* ============================================================
   PORTAL CARD
   ============================================================ */
.portal-card {
  background: var(--dark);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-lg);
  padding: 34px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.portal-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(184,144,46,.12);
  border: 1px solid var(--gold-line);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}

.portal-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--gold);
}

.portal-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--cream);
  font-weight: 700;
  margin-bottom: 10px;
}

.portal-card p {
  font-size: 14px;
  color: rgba(248,245,238,.5);
  margin-bottom: 22px;
  line-height: 1.6;
}

.btn-portal {
  background: var(--gold);
  color: var(--white);
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  transition: background .15s, transform .13s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-portal:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .hdr-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .hdr-nav.open {
    display: flex;
  }
  .hdr-nav a {
    padding: 13px 16px;
    border-radius: 8px;
  }
  .hdr-toggle {
    display: flex;
  }
  .hdr-inner {
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  .hdr-nav {
    width: 100%;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--cream-deep);
  }
  .section {
    padding: 60px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .btn {
    height: 46px;
  }
}

@media (max-width: 500px) {
  .section {
    padding: 48px 0;
  }
}
