:root {
  --ek-forest: #1a365d;
  --ek-forest-2: #234e7a;
  --ek-forest-3: #2c6aa0;
  --ek-ink: #16324f;
  --ek-gold: #d4a017;
  --ek-gold-2: #f0d078;
  --ek-cream: #f8f4eb;
  --ek-sand: #efe4cf;
  --ek-paper: #fffdf8;
  --ek-muted: #5a6573;
  --ek-line: rgba(26, 54, 93, .14);
  --ek-whatsapp: #25d366;
  --ek-whatsapp-d: #1f9e52;
  --ek-shadow: 0 18px 48px rgba(26, 54, 93, .12);
  --ek-radius: 18px;
  --header-h: 82px;
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --ek-overlay: rgba(12, 32, 58, .55);
  --ek-deep: #0d2240;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ek-ink);
  background: var(--ek-paper);
  line-height: 1.7;
  font-size: 1.05rem;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ek-forest-2); }
a:hover { color: var(--ek-forest); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ek-gold);
  color: var(--ek-ink);
  padding: .6rem 1rem;
  z-index: 2000;
}
.skip-link:focus { left: .5rem; top: .5rem; }

h1, h2, h3, .display, .font-serif {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
  color: var(--ek-ink);
}

.lead-muted { color: var(--ek-muted); max-width: 42rem; }

/* Header */
.ek-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(253, 252, 249, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ek-line);
}
.ek-header .navbar { min-height: var(--header-h); padding: .45rem 0; }
.ek-logo {
  height: 52px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  border-radius: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-serif); font-size: 1.12rem; color: var(--ek-ink); }
.brand-text small { font-size: .72rem; color: var(--ek-muted); letter-spacing: .04em; text-transform: uppercase; }
.ek-header .nav-link {
  color: var(--ek-ink) !important;
  font-weight: 500;
  padding: .45rem .7rem !important;
  border-radius: 4px;
}
.ek-header .nav-link:hover,
.ek-header .nav-link.active {
  background: rgba(212, 160, 23, .18);
  color: var(--ek-forest) !important;
}
.navbar-toggler {
  border: 1px solid var(--ek-line);
  padding: .45rem .6rem;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(212, 160, 23, .35); }
.ek-offcanvas { background: var(--ek-deep); color: #fff; }
.ek-offcanvas .nav-link { color: #fff !important; font-size: 1.15rem; padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 0 !important;
  font-weight: 600;
  letter-spacing: .04em;
  min-height: 48px;
  height: 48px;
  padding: 0 1.2rem;
  line-height: 1.2;
  border: 0;
}
.btn:focus-visible {
  outline: 3px solid var(--ek-gold);
  outline-offset: 2px;
}
.btn-gold {
  background: linear-gradient(180deg, var(--ek-gold-2), var(--ek-gold));
  color: var(--ek-ink) !important;
  box-shadow: 0 8px 20px rgba(212, 160, 23, .32);
}
.btn-gold:hover { filter: brightness(1.05); color: var(--ek-ink) !important; }
.btn-forest {
  background: var(--ek-forest);
  color: #fff !important;
}
.btn-forest:hover { background: var(--ek-forest-2); color: #fff !important; }
.btn-outline-forest {
  background: transparent;
  color: var(--ek-forest) !important;
  border: 1.5px solid rgba(26, 54, 93, .32) !important;
}
.btn-outline-forest:hover { background: var(--ek-forest); color: #fff !important; }
.btn-whatsapp {
  background: var(--ek-whatsapp-d);
  color: #fff !important;
}
.btn-whatsapp:hover { background: #178a46; color: #fff !important; }
.btn-light-ghost {
  background: rgba(255,255,255,.14);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.3) !important;
}
.btn-sm {
  min-height: 40px;
  height: 40px;
  padding: 0 .9rem;
  font-size: .9rem;
}

.btn .bi {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.hero-actions,
.cta-final .d-flex,
.cta-final .btn-row,
.invite-copy .d-flex,
.invite-copy .btn-row,
.connect-actions,
.btn-row,
.d-flex.flex-wrap.gap-2:not(.justify-content-between):not(.service-card-actions):not(.align-items-end):not(.align-items-center) {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .7rem !important;
  width: 100%;
  max-width: 52rem;
}

.cta-final .btn-row,
.cta-final .d-flex {
  max-width: 46rem;
  margin: 1.15rem auto 0 !important;
}

.hero-actions > .btn,
.cta-final .btn,
.invite-copy .btn,
.connect-actions .btn,
.btn-row > .btn,
.d-flex.flex-wrap.gap-2:not(.service-card-actions) > .btn:not(.btn-sm) {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  margin: 0 !important;
  padding: 0 .65rem !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hero */
.ek-hero {
  position: relative;
  min-height: min(92vh, 760px);
  color: #fff;
  display: flex;
  align-items: flex-end;
  background: var(--ek-deep) center/cover no-repeat;
  isolation: isolate;
}
.ek-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 34, 64, .18) 0%, rgba(13, 34, 64, .42) 42%, rgba(8, 24, 48, .78) 100%);
  z-index: 0;
}
.ek-hero .container { position: relative; z-index: 1; padding-bottom: 4.5rem; padding-top: 7rem; }
.ek-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ek-gold);
  margin-bottom: 1rem;
}
.ek-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 4.1rem);
  line-height: 1.08;
  max-width: 14ch;
  margin-bottom: 1rem;
}
.ek-hero p {
  max-width: 38rem;
  font-size: 1.08rem;
  color: rgba(255,255,255,.88);
}

.imigongo {
  height: 10px;
  background:
    repeating-linear-gradient(90deg,
      var(--ek-forest) 0 18px,
      var(--ek-gold) 18px 28px,
      var(--ek-cream) 28px 40px,
      var(--ek-forest-2) 40px 52px);
}

/* Sections */
.section { padding: 4.2rem 0; }
.section-tight { padding: 3rem 0; }
.section-cream { background: var(--ek-cream); }
.section-forest {
  background: radial-gradient(1200px 420px at 12% 0%, #2c5282, var(--ek-deep));
  color: #fff;
}
.section-forest h2, .section-forest h3 { color: #fff; }
.wa-number {
  color: #25d366;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin: .2rem 0 .15rem;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: .6rem;
}
.section-intro { color: var(--ek-muted); max-width: 40rem; }

.ek-card {
  background: #fff;
  border: 1px solid var(--ek-line);
  border-radius: var(--ek-radius);
  box-shadow: var(--ek-shadow);
  overflow: hidden;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ek-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(26, 54, 93, .16); }
.ek-card .card-body { padding: 1.35rem; }
.ek-card h2,
.ek-card h3,
.news-card-title {
  font-size: 1.35rem;
  margin-bottom: .4rem;
  font-weight: 700;
}
.thumb {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  background: var(--ek-sand);
}

.service-card {
  padding: 1.5rem;
  border-top: 5px solid var(--ek-gold);
  background: #fff;
  border-radius: var(--ek-radius);
  height: 100%;
  box-shadow: var(--ek-shadow);
  display: flex;
  flex-direction: column;
}
.service-card-actions {
  margin-top: auto;
  padding-top: 1rem;
}
.service-day {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  color: var(--ek-gold);
  font-weight: 700;
}
.service-time {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--ek-ink);
  line-height: 1;
  margin: .35rem 0 .8rem;
}

.invite-panel {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--ek-shadow);
}
.invite-copy {
  background: linear-gradient(165deg, var(--ek-forest) 0%, var(--ek-deep) 100%);
  color: #fff;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.invite-copy h2 { color: #fff; }
.invite-media {
  background: #222 center/cover no-repeat;
  min-height: 240px;
}

.why-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
}
.why-icon {
  width: 48px; height: 48px; flex: none;
  border-radius: 14px;
  background: var(--ek-sand);
  color: var(--ek-ink);
  display: grid; place-items: center;
  font-size: 1.3rem;
}

.cta-final {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 3.5rem 1.25rem;
  background: var(--ek-deep) center/cover;
  color: #fff;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-final .btn-row,
.cta-final .d-flex {
  display: flex !important;
  flex-wrap: wrap;
  width: min(46rem, 100%) !important;
  max-width: 46rem !important;
  margin: 1.15rem auto 0 !important;
  gap: .7rem !important;
}
.cta-final .btn {
  flex: 1 1 0 !important;
  width: auto !important;
  height: 52px !important;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(13, 34, 64, .58), rgba(8, 24, 48, .82));
  z-index: -1;
}
.cta-final h2 { color: #fff; }

.placeholder-photo {
  background:
    linear-gradient(160deg, rgba(13, 34, 64, .5), rgba(13, 34, 64, .18)),
    var(--ek-forest-2);
  color: #fff;
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
}
.photo-caption {
  font-size: .85rem;
  color: var(--ek-muted);
  margin-top: .45rem;
}

/* Forms */
.ek-form-panel {
  background: #fff;
  border: 1px solid var(--ek-line);
  border-radius: 24px;
  box-shadow: var(--ek-shadow);
  overflow: hidden;
  position: relative;
}
.ek-form-panel::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--ek-forest), var(--ek-gold), var(--ek-forest));
}
.ek-form-head {
  padding: 1.6rem 1.6rem 1.1rem;
  background: linear-gradient(180deg, #f8f4eb, #fff);
  border-bottom: 1px solid var(--ek-line);
}
.ek-form-head h2 { margin-bottom: .35rem; }
.ek-form-head p { color: var(--ek-muted); margin: 0; max-width: 38rem; }
.ek-form-body { padding: 1.5rem 1.6rem 1.8rem; }
.ek-form .form-label {
  display: block;
  font-weight: 600;
  font-size: .86rem;
  letter-spacing: .02em;
  color: var(--ek-ink);
  margin-bottom: .45rem;
  min-height: 1.2rem;
}
.ek-form .req { color: #a16207; margin-left: .15rem; }
.ek-form .form-hint {
  display: block;
  font-size: .8rem;
  color: var(--ek-muted);
  margin-top: .35rem;
}
.ek-form .form-control,
.ek-form .form-select {
  display: block;
  width: 100%;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  border-radius: 12px;
  border: 1px solid #cfd8e6;
  background: #fff;
  padding: 0 1rem;
  font-size: 16px;
  line-height: 50px;
  color: var(--ek-ink);
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ek-form .form-select {
  line-height: 1.25;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231a365d' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6 6.5-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px;
}
.ek-form textarea.form-control {
  height: 140px;
  min-height: 140px;
  max-height: none;
  line-height: 1.55;
  padding: .9rem 1rem;
  resize: vertical;
}
.ek-form .form-control::placeholder {
  color: #8b93a0;
  line-height: inherit;
}
.ek-form .form-control:hover,
.ek-form .form-select:hover {
  border-color: #9eb0c8;
}
.ek-form .form-control:focus,
.ek-form .form-select:focus {
  border-color: var(--ek-gold);
  background: #fff;
  box-shadow: 0 0 0 .22rem rgba(212, 160, 23, .28);
  outline: 0;
}
.ek-phone {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  border: 1px solid #cfd8e6;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
}
.ek-phone .ek-phone-cc {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 72px;
  height: 52px;
  background: var(--ek-forest);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .02em;
}
.ek-phone .form-control {
  border: 0 !important;
  border-radius: 0 !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  line-height: 50px;
  box-shadow: none !important;
  flex: 1;
  min-width: 0;
}
.ek-phone:focus-within {
  border-color: var(--ek-gold);
  box-shadow: 0 0 0 .22rem rgba(212, 160, 23, .28);
}
.ek-form .form-check-input {
  width: 1.15rem;
  height: 1.15rem;
  border-color: #c9bfb0;
  margin-top: .18rem;
}
.ek-form .form-check-input:checked {
  background-color: var(--ek-forest);
  border-color: var(--ek-forest);
}
.ek-form .form-check-input:focus {
  box-shadow: 0 0 0 .2rem rgba(212, 160, 23, .28);
}
.ek-form .form-check-label { font-weight: 500; }
.ek-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  padding-top: .4rem;
}
.honeypot { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
.alert { border-radius: 14px; border: 0; }
.alert-danger { background: #f8ece8; color: #7a2e1f; }
.alert-success { background: #eef6ea; color: #2c5a28; }
.staff-entry {
  color: rgba(255,255,255,.55) !important;
  font-size: .85rem;
}
.staff-entry:hover { color: var(--ek-gold-2) !important; }

/* Connect / QR landing */
.connect-page { background: var(--ek-cream); min-height: 100vh; }
.connect-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.25rem 1rem 6rem;
}
.connect-brand { text-align: center; padding: 1rem 0 1.5rem; }
.connect-brand img {
  margin: 0 auto 0.8rem;
  height: 72px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}
.connect-hero-card {
  background: #fff;
  border-radius: 24px;
  padding: 1.5rem 1.2rem 1.7rem;
  box-shadow: var(--ek-shadow);
  text-align: center;
}
.connect-hero-card h1 {
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  margin-bottom: .4rem;
}
.connect-actions { display: grid; gap: .8rem; margin-top: 1.4rem; }
.connect-actions .btn { width: 100%; font-size: 1rem; padding: .95rem 1rem; }

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ek-whatsapp);
  color: #fff !important;
  display: grid; place-items: center;
  font-size: 1.7rem;
  box-shadow: 0 10px 24px rgba(31, 158, 82, .35);
  z-index: 1040;
}
.wa-float:hover { transform: scale(1.06); color: #fff !important; }
@media (max-width: 576px) {
  .wa-float { bottom: max(72px, calc(env(safe-area-inset-bottom) + 16px)); }
}

/* Footer */
.ek-footer {
  background: var(--ek-deep);
  color: rgba(255,255,255,.86);
  padding: 3.2rem 0 1.4rem;
  margin-top: 0;
}
.ek-footer .ek-logo {
  height: 46px;
  max-width: 200px;
  background: #fff;
  padding: .35rem .55rem;
  border-radius: 8px;
}
.footer-title {
  font-size: 1.05rem;
  color: var(--ek-gold-2);
  margin-bottom: .8rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a, .ek-footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.footer-links a:hover { color: var(--ek-gold-2); }
.footer-about { color: rgba(255,255,255,.75); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: .9rem;
}
.social-row a {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  margin-right: .4rem;
}

.map-frame {
  border: 0;
  width: 100%;
  min-height: 320px;
  border-radius: var(--ek-radius);
}

.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--ek-deep) center/cover no-repeat;
  color: #fff;
  padding: 4.2rem 0 3.2rem;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 34, 64, .5), rgba(8, 24, 48, .7));
  z-index: -1;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }

.news-read {
  max-width: 820px;
  margin: 0 auto;
  color: var(--ek-ink);
}
.news-read-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: .35rem;
  color: var(--ek-ink);
  font-weight: 700;
}
.news-read-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 1rem 0 1.5rem;
  border-radius: 12px;
  background: #f3eee4;
}
.news-read-text {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--ek-ink);
}
.news-read-text p { margin: 0 0 1.1rem; }
.news-read-summary {
  font-weight: 600;
  margin-bottom: 1.15rem;
}

.thumb-link {
  display: block;
  cursor: zoom-in;
}
.photo-view {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(8, 18, 36, .9);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  cursor: zoom-out;
}
.photo-view img {
  max-width: min(100%, 1100px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.news-meta, .muted { color: var(--ek-muted); }

.empty-state {
  background: #fff;
  border: 1px dashed var(--ek-line);
  border-radius: var(--ek-radius);
  padding: 2rem;
  text-align: center;
  color: var(--ek-muted);
}

.ek-pagination .page-link {
  color: var(--ek-ink);
  border-radius: 10px;
  margin: 0 .15rem;
}

@media (max-width: 991px) {
  :root { --header-h: 72px; }
  .invite-panel { grid-template-columns: 1fr; }
  .ek-hero { min-height: 86vh; align-items: flex-end; }
  .ek-logo { height: 44px; max-width: 170px; }
  .ek-form-head, .ek-form-body { padding-left: 1.15rem; padding-right: 1.15rem; }
}

@media (max-width: 767px) {
  .section { padding: 3rem 0; }
  .ek-hero .container { padding-bottom: 3.2rem; }
  .hero-actions > .btn,
  .cta-final .btn,
  .invite-copy .btn,
  .connect-actions .btn,
  .btn-row > .btn,
  .d-flex.flex-wrap.gap-2:not(.service-card-actions) > .btn:not(.btn-sm) {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
  .brand-text { display: none; }
}

@media (min-width: 1920px) {
  .container { max-width: 1240px; }
}
