/* =========================================================
   Everlight Security Company
   Light corporate layout · Everlight brown & gold brand
   ========================================================= */
:root {
  --dark: #2a1a0e;          /* headings, header button, dark sections */
  --dark-2: #1d1209;        /* footer */
  --dark-3: #3a2615;
  --gold: #d4a237;          /* accent */
  --gold-light: #ecc25e;
  --gold-dark: #b0831f;
  --text: #75695c;          /* body copy */
  --line: #ece4d6;
  --bg-soft: #f8f4ec;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 20px 45px -20px rgba(42, 26, 14, .28);
  --ff-head: "Libre Franklin", "Segoe UI", Arial, sans-serif;
  --ff-body: "Roboto", "Segoe UI", Arial, sans-serif;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; font-family: var(--ff-body); font-size: 16px; line-height: 1.75;
  color: var(--text); background: var(--white);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--dark); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); letter-spacing: -.02em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 9vw, 7rem); }

/* Small accent label above section headings */
.subtitle {
  display: inline-flex; align-items: center; gap: .7rem; margin-bottom: .9rem;
  font-family: var(--ff-head); font-size: .95rem; font-weight: 700; color: var(--gold-dark);
}
.subtitle::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.subtitle--light { color: var(--gold-light); }

.section__head { margin-bottom: 3.25rem; }
.section__head--center { text-align: center; max-width: 720px; margin-inline: auto; }
.section__head--split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem 4rem; align-items: end; }
.section__head--split h2 { margin: 0; }
.section__head--split > p { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  padding: .85rem 1.6rem; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--ff-head); font-weight: 700; font-size: .95rem; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--dark); }
.btn--gold:hover { background: var(--dark); color: var(--white); }
.btn--dark { background: var(--dark); color: var(--white); }
.btn--dark:hover { background: var(--gold); color: var(--dark); }
.btn--white { background: var(--white); color: var(--dark); }
.btn--white:hover { background: var(--dark); color: var(--white); }
.btn--outline-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--dark); border-color: var(--white); }

/* circled arrow icon, as used on the buttons */
.btn__arrow {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; flex: none; position: relative;
  transition: transform .25s;
}
.btn__arrow::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 6px; height: 6px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateX(-1px) rotate(45deg);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--dark); color: rgba(255,255,255,.75); font-size: .875rem; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding-block: .55rem; }
.topbar__info { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.topbar__info li { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__info svg { width: 15px; height: 15px; fill: var(--gold); }
.topbar__info a:hover { color: var(--gold-light); }
.topbar__wa { color: var(--gold-light); font-weight: 500; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  height: var(--header-h); display: flex; align-items: center;
  border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 10px 30px -15px rgba(42,26,14,.25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand__logo { width: 68px; height: auto; filter: drop-shadow(0 4px 8px rgba(42,26,14,.18)); }
.footer .brand__logo { width: 96px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--ff-head); font-size: 1.4rem; font-weight: 800; color: var(--dark); letter-spacing: -.01em; }
.brand__text small { font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); }
.brand--light .brand__text strong { color: var(--white); }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav__link {
  font-family: var(--ff-head); font-weight: 600; font-size: 1rem; color: var(--dark);
  position: relative; padding-block: .4rem; white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width .3s;
}
.nav__link:hover, .nav__link.is-active { color: var(--gold-dark); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__mobile-cta { display: none; }

/* ---------- Services mega menu ---------- */
.nav__toggle { display: inline-flex; align-items: center; gap: .45rem; background: none; border: 0; cursor: pointer; line-height: inherit; }
.nav__caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s; }
.nav__item.is-open .nav__caret { transform: translateY(1px) rotate(-135deg); }

.mega {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 49;
  background: var(--white); border-top: 3px solid var(--gold); box-shadow: 0 30px 50px -25px rgba(42,26,14,.35);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s;
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; }
/* invisible bridge over the gap between the link and the panel, so hover isn't lost */
.mega::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: calc(var(--header-h) / 2 - 12px); }
@media (hover: hover) and (min-width: 1161px) {
  .nav__item:not(.is-dismissed):hover .mega,
  .nav__item:not(.is-dismissed):focus-within .mega { opacity: 1; visibility: visible; transform: none; }
  .nav__item:not(.is-dismissed):hover .nav__caret { transform: translateY(1px) rotate(-135deg); }
  .nav__item:hover .nav__toggle { color: var(--gold-dark); }
}
.mega__inner { display: grid; grid-template-columns: 1fr 1fr 300px; gap: 1rem 3rem; padding-block: 2.2rem 1.6rem; }
.mega__title {
  font-family: var(--ff-head); font-weight: 800; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dark); margin: 0 0 .9rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line);
}
.mega__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.mega__link {
  display: flex; align-items: center; gap: .8rem; padding: .5rem .6rem; margin-inline: -.6rem; border-radius: var(--radius);
  font-family: var(--ff-head); font-weight: 500; font-size: .98rem; color: var(--dark); line-height: 1.35;
  transition: background .2s, color .2s, transform .2s;
}
.mega__link:hover, .mega__link:focus-visible { background: var(--bg-soft); color: var(--gold-dark); transform: translateX(4px); }
.mega__icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line); transition: background .2s; }
.mega__icon svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mega__link:hover .mega__icon { background: var(--gold); border-color: var(--gold); }
.mega__link:hover .mega__icon svg { stroke: var(--dark); }
.mega__promo {
  grid-row: span 2; align-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: .9rem;
  padding: 1.8rem; border-radius: var(--radius); color: rgba(255,255,255,.8);
  background: radial-gradient(circle at 100% 0, rgba(212,162,55,.28), transparent 60%), var(--dark);
}
.mega__promo-kicker { margin: 0; font-family: var(--ff-head); font-weight: 800; font-size: 1.25rem; color: var(--gold-light); }
.mega__promo-text { margin: 0; font-size: .95rem; line-height: 1.6; }
.mega__promo-call { font-size: .9rem; color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.mega__promo-call:hover { color: var(--gold-light); }
.mega__all {
  grid-column: 1 / 3; justify-self: start; display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--ff-head); font-weight: 700; font-size: .92rem; color: var(--gold-dark);
}
.mega__all:hover .btn__arrow { transform: translateX(3px); }

/* card picked from the menu gets a brief gold highlight */
.service:target { animation: svc-flash 1.8s ease-out; }
@keyframes svc-flash { 0%, 40% { box-shadow: 0 0 0 4px var(--gold); } 100% { box-shadow: 0 0 0 0 transparent; } }

.header__actions { display: flex; align-items: center; gap: 1.4rem; }
.header__call, .about__phone { display: flex; align-items: center; gap: .75rem; line-height: 1.25; }
.header__call small, .about__phone small { display: block; font-size: .8rem; color: var(--text); }
.header__call strong, .about__phone strong { font-family: var(--ff-head); color: var(--dark); font-size: 1.05rem; }
.header__call-icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-soft); border: 1px solid var(--line); flex: none;
}
.header__call-icon svg { width: 20px; height: 20px; fill: var(--gold-dark); }

.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: var(--dark); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); transition: transform .3s, opacity .3s, top .3s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(560px, 82vh, 760px); display: flex; align-items: center;
  padding-block: 6rem 9rem; color: var(--white);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(29,18,9,.94) 0%, rgba(29,18,9,.82) 40%, rgba(29,18,9,.35) 100%);
}
.hero__inner { max-width: 1200px; }
.hero__sub {
  display: inline-block; font-family: var(--ff-head); font-weight: 600; color: var(--gold-light);
  padding: .35rem 1rem; border-left: 3px solid var(--gold); background: rgba(212,162,55,.12); margin-bottom: 1.4rem;
}
.hero__title { color: var(--white); font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 1.4rem; }
.hero__title span { color: var(--gold); }
.hero__lead { max-width: 560px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255,255,255,.85); margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Feature boxes (overlap the hero) ---------- */
.features { position: relative; z-index: 2; margin-top: -5.5rem; }
.features__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.feature { display: flex; gap: 1.1rem; padding: 2.2rem 2rem; border-right: 1px solid var(--line); transition: background .3s; }
.feature:last-child { border-right: 0; }
.feature:hover { background: var(--dark); }
.feature:hover h3 { color: var(--white); }
.feature:hover p { color: rgba(255,255,255,.7); }
.feature__icon { width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold); }
.feature__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-bottom: .3rem; transition: color .3s; }
.feature p { margin: 0; font-size: .95rem; transition: color .3s; }

/* ---------- About ---------- */
.about__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about__media { position: relative; padding: 0 2rem 2rem 0; }
.about__photo {
  margin: 0; aspect-ratio: 4 / 3.8; border-radius: var(--radius); position: relative; overflow: hidden;
  background: var(--dark-2); box-shadow: var(--shadow);
}
.about__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.about__photo:hover img { transform: scale(1.04); }
.about__photo::after { /* corner accent */
  content: ""; position: absolute; right: 0; top: 0; width: 38%; height: 38%; pointer-events: none;
  background: linear-gradient(225deg, var(--gold) 0 18%, transparent 18%);
}
.about__photo figcaption {
  position: absolute; left: 1rem; top: 1rem;
  padding: .45rem .9rem; border-radius: 6px; background: rgba(29,18,9,.82);
  border-left: 3px solid var(--gold); color: var(--white);
  font-family: var(--ff-head); font-weight: 600; font-size: .9rem;
}
.about__badge {
  position: absolute; right: 0; bottom: 0; width: 190px; padding: 1.6rem 1.4rem;
  background: var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--dark);
}
.about__badge strong { display: block; font-family: var(--ff-head); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.about__badge span { font-size: .92rem; font-weight: 500; line-height: 1.4; display: block; margin-top: .4rem; }
.lead { font-size: 1.1rem; color: var(--dark-3); font-weight: 500; }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 2.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; }
.ticks li { display: flex; align-items: center; gap: .65rem; font-family: var(--ff-head); font-weight: 600; color: var(--dark); }
.ticks li::before {
  content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--gold)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%232a1a0e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.2rem; }

/* ---------- Our team ---------- */
.team__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; max-width: 1040px; margin-inline: auto; }
.profile {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border-bottom: 4px solid var(--gold);
}
.profile__photo {
  margin: 0; position: relative; aspect-ratio: 4 / 4.2; overflow: hidden;
  background: linear-gradient(160deg, #6e1f22, #3d0f12);   /* matches the maroon portrait backdrop */
}
.profile__photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.profile:hover .profile__photo > img { transform: scale(1.04); }
.profile__placeholder { display: none; position: absolute; inset: 0; place-items: center; }
.profile__placeholder img { width: 140px; opacity: .9; }
.profile__photo.is-missing > img { display: none; }
.profile__photo.is-missing .profile__placeholder { display: grid; }
.profile__body { padding: 2rem 2rem 2.2rem; display: flex; flex-direction: column; flex: 1; }

/* ---------- Founder card animation (plays when the card scrolls into view) ---------- */
.profile--lead .profile__photo::before,
.profile--lead .profile__photo::after { content: ""; position: absolute; pointer-events: none; z-index: 1; }
/* gold corner brackets */
.profile--lead .profile__photo::before {
  inset: 16px; opacity: .9;
  background:
    linear-gradient(var(--gold-light), var(--gold-light)) top left / 38px 2px,
    linear-gradient(var(--gold-light), var(--gold-light)) top left / 2px 38px,
    linear-gradient(var(--gold-light), var(--gold-light)) bottom right / 38px 2px,
    linear-gradient(var(--gold-light), var(--gold-light)) bottom right / 2px 38px;
  background-repeat: no-repeat;
}
/* light sweep */
.profile--lead .profile__photo::after {
  top: 0; bottom: 0; left: 0; width: 45%; transform: translateX(-160%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 233, 180, .35), transparent);
}
.profile--lead.is-visible .profile__photo { animation: founder-wipe 1.1s cubic-bezier(.65,0,.35,1) backwards; }
.profile--lead.is-visible .profile__photo > img { animation: founder-zoom 1.8s cubic-bezier(.2,.8,.2,1) backwards; }
.profile--lead.is-visible .profile__photo::before { animation: founder-frame .9s .9s cubic-bezier(.2,.8,.2,1) backwards; }
.profile--lead.is-visible .profile__photo::after { animation: founder-shine 7s 1.5s ease-in-out infinite; }
.profile--lead.is-visible .profile__body > * { animation: founder-rise .6s cubic-bezier(.2,.8,.2,1) backwards; }
.profile--lead.is-visible .profile__body > :nth-child(1) { animation-delay: .5s; }
.profile--lead.is-visible .profile__body > :nth-child(2) { animation-delay: .6s; }
.profile--lead.is-visible .profile__body > :nth-child(3) { animation-delay: .7s; }
.profile--lead.is-visible .profile__body > :nth-child(4) { animation-delay: .8s; }
.profile--lead.is-visible .profile__body > :nth-child(n+5) { animation-delay: .9s; }

@keyframes founder-wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes founder-zoom { from { transform: scale(1.18); filter: brightness(.6); } to { transform: none; filter: none; } }
@keyframes founder-frame { from { inset: 46px; opacity: 0; } to { inset: 16px; opacity: .9; } }
@keyframes founder-shine { 0% { transform: translateX(-160%) skewX(-18deg); } 22%, 100% { transform: translateX(320%) skewX(-18deg); } }
@keyframes founder-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.profile__role {
  align-self: flex-start; margin-bottom: .8rem; padding: .3rem .8rem; border-radius: 4px;
  background: var(--dark); color: var(--gold-light); font-family: var(--ff-head); font-weight: 700; font-size: .82rem; letter-spacing: .03em;
}
.profile--lead .profile__role { background: var(--gold); color: var(--dark); }
.profile__name { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: .6rem; }
.profile__body > p { flex: 1; }
.profile__contact { list-style: none; padding: 0; margin: .4rem 0 1.6rem; display: grid; gap: .7rem; }
.profile__contact li { display: flex; align-items: center; gap: .9rem; }
.profile__contact .contact__icon { width: 42px; height: 42px; }
.profile__contact .contact__icon svg { width: 18px; height: 18px; }
.profile__contact small { display: block; font-size: .82rem; line-height: 1.3; }
.profile__contact strong { font-family: var(--ff-head); color: var(--dark); font-size: .98rem; word-break: break-word; }
.profile__contact a:hover { color: var(--gold-dark); }
.profile__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.profile__actions .btn { flex: 1 1 auto; }

/* ---------- Services ---------- */
.services { background: var(--bg-soft); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service {
  position: relative; display: flex; flex-direction: column; padding: 2.4rem 2rem 2rem;
  background: var(--white); border-radius: var(--radius); border-bottom: 3px solid transparent;
  box-shadow: 0 10px 30px -18px rgba(42,26,14,.2); overflow: hidden;
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.service::before { /* dark fill that rises on hover */
  content: ""; position: absolute; inset: 0; background: var(--dark); transform: translateY(100%); transition: transform .45s cubic-bezier(.2,.8,.2,1); z-index: 0;
}
.service > * { position: relative; z-index: 1; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.service:hover::before { transform: none; }
.service__num { position: absolute; top: 1.6rem; right: 1.8rem; font-family: var(--ff-head); font-size: 3rem; font-weight: 800; line-height: 1; color: var(--bg-soft); transition: color .35s; }
.service:hover .service__num { color: rgba(255,255,255,.06); }
.service__icon {
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-soft); margin-bottom: 1.5rem; transition: background .35s;
}
.service__icon svg { width: 32px; height: 32px; fill: none; stroke: var(--gold-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s; }
.service:hover .service__icon { background: var(--gold); }
.service:hover .service__icon svg { stroke: var(--dark); }
.service h3 { font-size: 1.25rem; transition: color .35s; }
.service p { flex: 1; font-size: .96rem; transition: color .35s; }
.service:hover h3 { color: var(--white); }
.service:hover p { color: rgba(255,255,255,.72); }
.service__link {
  display: inline-flex; align-items: center; gap: .6rem; align-self: flex-start;
  font-family: var(--ff-head); font-weight: 700; font-size: .95rem; color: var(--dark); transition: color .35s;
}
.service:hover .service__link { color: var(--gold-light); }
.service__link:hover .btn__arrow { transform: translateX(3px); }

/* photo-backed service card */
.service--photo { background: var(--dark-2); }
.service--photo > .service__bg {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 60%;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.service--photo > .service__shade {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(29,18,9,.18) 0%, rgba(29,18,9,.35) 30%, rgba(29,18,9,.86) 52%, rgba(29,18,9,.95) 100%);
  transition: opacity .4s;
}
.service--photo::before { display: none; }
.service__bg--flip { --flip: -1; }
.service--photo > .service__bg { transform: scaleX(var(--flip, 1)); }
.service--photo:hover > .service__bg { transform: scaleX(var(--flip, 1)) scale(1.06); }
.service--photo:hover > .service__shade { opacity: .9; }
.service--photo .service__num { color: rgba(255,255,255,.14); }
.service--photo .service__icon { background: var(--gold); }
.service--photo .service__icon svg { stroke: var(--dark); }
.service--photo h3 { color: var(--white); }
.service--photo p { color: rgba(255,255,255,.8); }
.service--photo .service__link { color: var(--gold-light); }

/* ---------- Why us ---------- */
.why { background: var(--dark); position: relative; overflow: hidden; }
.why::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(40% 60% at 100% 0%, rgba(212,162,55,.22), transparent 70%);
}
.why h2 { color: var(--white); }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.why__item {
  padding: 2.2rem 1.8rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03); transition: border-color .3s, background .3s;
}
.why__item:hover { border-color: var(--gold); background: rgba(212,162,55,.06); }
.why__num { display: block; font-family: var(--ff-head); font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--gold); margin-bottom: 1.2rem; }
.why__item h3 { color: var(--white); }
.why__item p { color: rgba(255,255,255,.65); margin: 0; font-size: .96rem; }

/* ---------- Client story ---------- */
.story__layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.story__side { display: grid; gap: 1.2rem; }
.story__timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.story__timeline::before { /* vertical line joining the years */
  content: ""; position: absolute; left: 47px; top: 10px; bottom: 10px; width: 2px; background: var(--line);
}
.story__timeline li { display: flex; gap: 1.4rem; align-items: flex-start; position: relative; padding-bottom: 1.8rem; }
.story__timeline li:last-child { padding-bottom: 0; }
.story__year {
  flex: none; width: 96px; padding: .45rem 0; text-align: center; border-radius: 6px; position: relative; z-index: 1;
  background: var(--dark); color: var(--gold-light); font-family: var(--ff-head); font-weight: 800; font-size: .9rem;
}
.story__timeline li:last-child .story__year { background: var(--gold); color: var(--dark); }
.story__timeline h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.story__timeline p { margin: 0; }
.story__quote {
  margin: 0; padding: 2rem 2rem 1.8rem 2.4rem; position: relative;
  background: var(--bg-soft); border-left: 4px solid var(--gold); border-radius: var(--radius);
}
.story__quote::before {
  content: "“"; position: absolute; right: 1.4rem; top: -.6rem;
  font-family: Georgia, serif; font-size: 6rem; line-height: 1; color: var(--gold); opacity: .35;
}
.story__quote p { font-family: var(--ff-head); font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 600; font-style: italic; color: var(--dark); line-height: 1.5; margin-bottom: .9rem; }
.story__quote footer { font-family: var(--ff-head); font-weight: 700; color: var(--gold-dark); }
.story__quote footer::before { content: "— "; }
.story__stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.story__stats li { padding: 1.3rem 1rem; text-align: center; border-radius: var(--radius); background: var(--dark); }
.story__stats strong { display: block; font-family: var(--ff-head); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: var(--gold); line-height: 1.1; }
.story__stats span { display: block; margin-top: .35rem; font-size: .85rem; line-height: 1.35; color: rgba(255,255,255,.7); }

/* ---------- Security insights ---------- */
.insights { background: var(--bg-soft); }
.insight { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.insight__poster { margin: 0; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.insight__poster img {
  width: 100%; height: auto; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 6px solid var(--white);
}
.insight__body { display: grid; gap: 1.2rem; }
.insight__point {
  display: flex; gap: 1.3rem; padding: 1.8rem; border-radius: var(--radius);
  background: var(--white); border-left: 4px solid var(--gold);
  box-shadow: 0 10px 30px -20px rgba(42,26,14,.25);
}
.insight__point h3 { margin-bottom: .45rem; }
.insight__point p { margin: 0; }
.insight__icon { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--dark); }
.insight__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.insight__checklist { padding: 1.8rem; border-radius: var(--radius); background: var(--dark); color: rgba(255,255,255,.75); }
.insight__checklist h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 1rem; }
.insight__checklist ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem; }
.insight__checklist li { display: flex; align-items: center; gap: .6rem; }
.insight__checklist li::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--gold); }
.insight__checklist b { color: var(--gold-light); font-family: var(--ff-head); }
.insight__banner {
  margin: 3.5rem 0 0; padding: 1.4rem 1.5rem; border-radius: var(--radius); text-align: center;
  background: var(--dark); border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold);
  font-family: var(--ff-head); font-weight: 800; font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  letter-spacing: .04em; text-transform: uppercase; color: var(--gold-light);
}
.insight__banner span { color: var(--white); margin-inline: .3em; }
.insight__banner i { font-style: normal; color: var(--white); margin-inline: .25em; }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 48px; left: 12.5%; right: 12.5%;
  border-top: 2px dashed var(--line);
}
.step { text-align: center; position: relative; }
.step__icon {
  width: 96px; height: 96px; margin: 0 auto 1.5rem; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: var(--white); border: 2px solid var(--line); transition: background .3s, border-color .3s;
}
.step__icon svg { width: 36px; height: 36px; fill: var(--gold-dark); transition: fill .3s; }
.step__icon b {
  position: absolute; top: -4px; right: -4px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--dark); font-family: var(--ff-head); font-size: .9rem;
}
.step:hover .step__icon { background: var(--dark); border-color: var(--dark); }
.step:hover .step__icon svg { fill: var(--gold); }
.step p { font-size: .96rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta { background: var(--gold); padding-block: 3.2rem; position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  border: 40px solid rgba(255,255,255,.12);
}
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; position: relative; z-index: 1; }
.cta h2 { margin-bottom: .25rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta p { margin: 0; color: var(--dark-3); font-weight: 500; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Contact / quote ---------- */
.contact__inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact__list li { display: flex; align-items: center; gap: 1.1rem; padding: 1.2rem 1.3rem; border-radius: var(--radius); background: var(--bg-soft); }
.contact__icon { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--dark); }
.contact__icon svg { width: 22px; height: 22px; fill: var(--gold); }
.contact__list small { display: block; font-size: .85rem; }
.contact__list strong { font-family: var(--ff-head); color: var(--dark); font-size: 1.02rem; overflow-wrap: anywhere; }
.contact__list strong + strong { display: block; margin-top: .2rem; }
.contact__list small + strong { display: block; }
.contact__list a:hover { color: var(--gold-dark); }

.quote {
  padding: clamp(1.8rem, 4vw, 3rem); border-radius: var(--radius); background: var(--white);
  box-shadow: var(--shadow); border-top: 4px solid var(--gold);
}
.quote__head { margin-bottom: 1.6rem; }
.quote__head h3 { font-size: 1.6rem; margin-bottom: .3rem; }
.quote__head p { margin: 0; font-size: .92rem; }
.req { color: #b42318; }
.quote__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.2rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > label, .choice legend { font-family: var(--ff-head); font-weight: 600; font-size: .9rem; color: var(--dark); }
.field__opt { font-family: var(--ff-body); font-weight: 400; color: var(--text); font-size: .82rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .9rem 1rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--dark); font: inherit; font-size: 1rem;   /* 16px stops phones zooming in */
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #a99c8c; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(212,162,55,.2);
}
.field textarea { resize: vertical; min-height: 110px; }
.field.is-invalid input { border-color: #d92d20; background: #fffbfa; }
.field.is-invalid input:focus { box-shadow: 0 0 0 3px rgba(217,45,32,.15); }
.field__error { color: #b42318; font-size: .84rem; line-height: 1.4; }
.field__error:empty { display: none; }
.field__count { align-self: flex-end; font-size: .8rem; color: #a99c8c; }

/* pill-style radio choices */
.choice { border: 0; padding: 0; margin: 0 0 1.2rem; }
.choice legend { padding: 0; margin-bottom: .55rem; }
.choice__row { display: flex; flex-wrap: wrap; gap: .55rem; }
.choice__row label { position: relative; cursor: pointer; }
.choice__row input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice__row span {
  display: inline-block; padding: .6rem 1.15rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--dark); font-family: var(--ff-head); font-weight: 600; font-size: .9rem;
  transition: background .2s, color .2s, border-color .2s;
}
.choice__row label:hover span { border-color: var(--gold); }
.choice__row input:checked + span { background: var(--dark); border-color: var(--dark); color: var(--gold-light); }
.choice__row .choice--urgent input:checked + span { background: #b42318; border-color: #b42318; color: var(--white); }
.choice__row input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.urgent-note {
  margin: -.3rem 0 1.2rem; padding: .9rem 1.1rem; border-radius: var(--radius);
  background: #fef3f2; border: 1px solid #fecdca; color: #912018; font-size: .94rem;
}
.urgent-note a { font-weight: 700; text-decoration: underline; white-space: nowrap; }

.quote__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.quote__actions .btn { flex: 1 1 200px; }
.btn--outline-dark { border-color: var(--dark); color: var(--dark); background: transparent; }
.btn--outline-dark:hover { background: var(--dark); color: var(--white); }

.form-error { color: #b42318; font-size: .92rem; font-weight: 500; margin: 0 0 1rem; }
.form-thanks { padding: .9rem 1.1rem; border-radius: var(--radius); background: #ecfdf3; border: 1px solid #abefc6; color: #067647; font-size: .94rem; margin: 0 0 1rem; }
.form-note { text-align: center; font-size: .85rem; margin: .9rem 0 0; }

/* ---------- Footer ---------- */
.footer { background: var(--dark-2); color: rgba(255,255,255,.62); position: relative; padding-top: 6rem; margin-top: 2rem; }
.footer::before { /* angled top edge */
  content: ""; position: absolute; left: 0; right: 0; top: -2rem; height: 2.05rem; background: var(--dark-2);
  clip-path: polygon(0 100%, 0 0, 30% 100%, 100% 100%);
}
.footer::after { /* gold accent on the angle */
  content: ""; position: absolute; left: 0; top: -2rem; width: 30%; height: 2.05rem; background: var(--gold);
  clip-path: polygon(0 0, 100% 100%, 92% 100%, 0 12%);
}
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 4rem; }
.footer__brand p { margin-top: 1.3rem; font-size: .95rem; max-width: 340px; }
.footer h4 { color: var(--white); font-size: 1.15rem; margin-bottom: 1.3rem; position: relative; padding-bottom: .8rem; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--gold); }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; font-size: .95rem; }
.footer__list a:hover { color: var(--gold-light); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; font-size: .9rem; }
.footer__bottom p { margin: 0; }
.to-top { font-family: var(--ff-head); font-weight: 600; color: var(--white); }
.to-top:hover { color: var(--gold-light); }

/* ---------- Mobile action bar (Call / WhatsApp / Quote) ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; display: none;
  grid-template-columns: 1fr 1fr 1.2fr; gap: .5rem;
  padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom, 0px));
  background: var(--dark); box-shadow: 0 -10px 30px -12px rgba(0,0,0,.45);
}
.mbar__btn {
  display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; border-radius: var(--radius);
  font: 700 .95rem var(--ff-head); color: var(--white); background: rgba(255,255,255,.08);
}
.mbar__btn svg { width: 19px; height: 19px; fill: currentColor; flex: none; }
.mbar__btn--wa { background: #1f9d55; }
.mbar__btn--quote { background: var(--gold); color: var(--dark); }
.mbar__btn:active { transform: scale(.97); }

/* ---------- Hero trust line ---------- */
.hero__trust { list-style: none; margin: 1.8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; color: rgba(255,255,255,.85); font-size: .95rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: .5rem; }
.hero__trust li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1a0e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Accessibility: skip link + visible keyboard focus ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200; padding: .7rem 1.1rem; border-radius: var(--radius);
  background: var(--gold); color: var(--dark); font: 700 .95rem var(--ff-head); transition: top .2s;
}
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* seven menu links: drop the header phone number before the links get cramped */
@media (max-width: 1440px) {
  .header__call { display: none; }
  .nav { gap: 1.5rem; }
}
@media (max-width: 1260px) {
  .nav { gap: 1.15rem; }
}

@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1160px) {
  :root { --header-h: 76px; }
  .burger { display: block; }
  .header__quote { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 20px 30px -15px rgba(42,26,14,.25);
    padding: .5rem 1.25rem 1.25rem; max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .35s ease, visibility .35s;
  }
  .nav.is-open { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; visibility: visible; }
  .nav__link { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav__toggle { width: 100%; justify-content: space-between; font-size: 1rem; text-align: left; }
  /* mega menu becomes an accordion inside the mobile menu */
  .mega {
    position: static; border-top: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none;
    display: none; background: var(--bg-soft); margin-inline: -1.25rem;
  }
  .nav__item.is-open .mega { display: block; }
  .mega__inner { grid-template-columns: 1fr; width: auto; padding: 1rem 1.25rem; gap: 1.2rem; }
  .mega__promo { display: none; }
  .mega__all { grid-column: auto; }
  .mega__link:hover { background: var(--white); }
  .nav__link::after { display: none; }
  .nav__mobile-cta { display: inline-flex; margin-top: 1rem; }
  .features__grid { grid-template-columns: 1fr; }
  .feature { border-right: 0; border-bottom: 1px solid var(--line); }
  .feature:last-child { border-bottom: 0; }
  .about__inner, .contact__inner, .insight, .story__layout { grid-template-columns: 1fr; }
  .insight__poster { position: static; max-width: 420px; margin-inline: auto; }
  .about__media { max-width: 520px; }
  .section__head--split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .steps::before { display: none; }
  .mbar { display: grid; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }   /* keep footer clear of the bar */
}

@media (max-width: 640px) {
  .brand__logo { width: 56px; }
  .container { width: calc(100% - 2rem); }
  .topbar { display: none; }   /* phone numbers live in the bottom action bar on phones */
  .hero__trust { gap: .5rem 1.2rem; font-size: .9rem; }
  .brand__text strong { font-size: 1.2rem; }
  .hero { padding-block: 4.5rem 8rem; min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(29,18,9,.88), rgba(29,18,9,.78)); }
  .hero__actions .btn { width: 100%; }
  .feature { padding: 1.6rem 1.4rem; }
  .ticks { grid-template-columns: 1fr; }
  .about__media { padding: 0 1rem 1rem 0; }
  .about__badge { width: 160px; padding: 1.2rem 1rem; }
  .services__grid, .why__grid, .steps { grid-template-columns: 1fr; }
  .quote__grid { grid-template-columns: 1fr; }
  .insight__point { flex-direction: column; padding: 1.5rem; }
  .team__grid { grid-template-columns: 1fr; max-width: 460px; }
  .profile__body { padding: 1.6rem 1.4rem 1.8rem; }
  .insight__checklist ul { grid-template-columns: 1fr; }
  .story__timeline li { flex-direction: column; gap: .7rem; }
  .story__timeline::before { display: none; }
  .story__stats { grid-template-columns: 1fr; }
  .cta__actions, .cta__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
