/* ==========================================================================
   Novera Services Inc. — static build of "Novera A - Official"
   Breakpoints mirror the design's JS: phone < 640px, mobile nav < 768px, tablet < 1024px
   ========================================================================== */

/* ---------- Fonts (Plus Jakarta Sans, variable 400–800, self-hosted) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #0F3B67;
  --blue: #2E6AA6;
  --muted: #4A6680;
  --muted-2: #5B7590;
  --placeholder: #8A9DB0;
  --pale: #DCE6F0;
  --line: #CFDCE8;
  --line-soft: #E1E9F1;
  --line-softer: #EEF2F6;
  --surface: #F4F7FA;
  --img-bg: #EAF0F6;
  --orange: #F97316;
  --orange-dark: #EA580C;
  --orange-light: #FDBA74;
  --header-offset: 90px;
  --ease: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #fff;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--orange-dark); }
a, button { transition: var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
input, textarea, select, button { font-family: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

section[id] { scroll-margin-top: var(--header-offset); }

.page { width: 100%; overflow-x: clip; background: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #fff; font-size: 12.5px; }
.topbar__inner {
  max-width: 1200px; margin: 0 auto; padding: 8px 24px;
  display: flex; justify-content: flex-end; gap: 24px; white-space: nowrap; overflow: hidden;
}
.topbar__link { color: #fff; display: flex; gap: 7px; align-items: center; }
.topbar__link:hover { color: var(--orange-light); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: #fff;
  box-shadow: none; transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 59, 103, 0.12); }
.site-header__row {
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; gap: 24px; transition: padding .25s ease;
}
.site-header.is-scrolled .site-header__row { padding: 10px 24px; }
.site-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header__logo img { height: 46px; width: auto; display: block; transition: height .25s ease; }
.site-header.is-scrolled .site-header__logo img { height: 38px; }

.desk-nav { flex: 1; display: flex; justify-content: center; gap: 36px; font-size: 14.5px; font-weight: 600; }
.desk-nav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.desk-nav a.is-active { border-bottom-color: var(--orange); }

.btn-header {
  display: flex; background: var(--orange); color: #fff;
  padding: 11px 22px; border-radius: 999px;
  font-size: 13px; font-weight: 700; white-space: nowrap; flex-shrink: 0;
}
.btn-header:hover { background: var(--orange-dark); color: #fff; }

.mob-actions { margin-left: auto; display: none; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.icon-btn--outline { border: 1.5px solid var(--line); color: var(--navy); }
.icon-btn--outline:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.icon-btn--solid { border: none; background: var(--navy); cursor: pointer; padding: 0; }
.icon-btn--solid:hover { background: var(--orange); }
.icon-btn .icon-close { display: none; }
.icon-btn[aria-expanded="true"] .icon-open { display: none; }
.icon-btn[aria-expanded="true"] .icon-close { display: inline; }

.mobile-menu {
  border-top: 1px solid var(--line-soft); padding: 8px 20px 20px;
  display: grid; gap: 2px; font-size: 16px; font-weight: 600;
}
.mobile-menu a { padding: 14px 4px; border-bottom: 1px solid var(--line-softer); }
.mobile-menu a.mobile-menu__cta {
  margin-top: 12px; background: var(--orange); color: #fff;
  padding: 14px 20px; border-radius: 999px; border-bottom: 0;
  font-size: 14px; font-weight: 700; text-align: center;
}
.mobile-menu a.mobile-menu__cta:hover { background: var(--orange-dark); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; background: var(--img-bg);
}
.hero__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(15,59,103,0.95) 0%, rgba(15,59,103,0.8) 44%, rgba(15,59,103,0.12) 78%);
}
.hero__inner { position: relative; max-width: 1200px; width: 100%; margin: 0 auto; padding: 110px 24px 150px; }
.hero__content { max-width: 600px; color: #fff; }
.hero h1 {
  font-size: clamp(36px, 5vw, 58px); font-weight: 800; line-height: 1.06;
  letter-spacing: -0.025em; margin: 0 0 20px; text-wrap: balance;
}
.hero p { font-size: 17px; line-height: 1.6; color: var(--pale); margin: 0 0 32px; max-width: 500px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-whatsapp {
  background: #fff; color: var(--navy); padding: 15px 28px; border-radius: 999px;
  font-weight: 800; font-size: 14px; white-space: nowrap; flex-shrink: 0;
  display: flex; align-items: center; gap: 9px;
}
.btn-whatsapp:hover { background: var(--orange); color: #fff; }

/* ---------- Callback form ---------- */
.callback-wrap { position: relative; z-index: 5; max-width: 1200px; margin: -76px auto 0; padding: 0 24px; }
.callback {
  background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(15, 59, 103, 0.16);
  padding: 24px 28px 28px; margin: 0;
}
.callback h2 { font-size: 22px; font-weight: 800; margin: 0 0 16px; letter-spacing: -0.01em; }
.callback__grid { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: center; }
.pill-input {
  border: 1.5px solid var(--line); border-radius: 999px; padding: 13px 18px;
  font-size: 14px; color: var(--navy); outline: none; width: 100%; background: #fff; min-width: 0;
}
.pill-input::placeholder { color: var(--placeholder); opacity: 1; }
.pill-select:invalid { color: var(--placeholder); }
.pill-select option { color: var(--navy); }
.btn-primary {
  background: var(--navy); color: #fff; border: none; border-radius: 999px;
  padding: 14px 24px; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.btn-primary:hover { background: var(--orange); color: #fff; }

/* Input focus: design turns the border orange; a soft ring keeps it visible for keyboard users */
.pill-input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); }
.pill-input:focus-visible, .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
}

/* ---------- Shared ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; color: var(--blue); margin-bottom: 12px;
}
.eyebrow--center { justify-content: center; }
.eyebrow__bar { width: 18px; height: 3px; border-radius: 2px; background: var(--orange); display: block; }
.section-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 46px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); display: block; flex-shrink: 0; }

/* ---------- About ---------- */
.about {
  max-width: 1200px; margin: 0 auto; padding: 100px 24px 70px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 56px; align-items: center;
}
.about__text { min-width: 0; }
.about .section-title { margin-bottom: 18px; }
.about__lead { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0 0 28px; text-wrap: pretty; }
.about__subhead { font-size: 16px; font-weight: 800; margin: 0 0 14px; }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.reasons li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; font-size: 15.5px; line-height: 1.55; }
.check {
  width: 26px; height: 26px; border-radius: 50%; background: var(--navy); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.about__media { position: relative; min-width: 0; height: 480px; border-radius: 16px; overflow: hidden; }
.about__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; background: var(--img-bg);
}

/* ---------- Experience / Insurance ---------- */
.trust {
  max-width: 1200px; margin: 0 auto; padding: 0 24px 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px;
}
.trust-card { background: var(--surface); border-radius: 16px; padding: 34px 32px; display: flex; flex-direction: column; gap: 14px; }
.trust-card__icon {
  width: 46px; height: 46px; border-radius: 11px; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.kicker { margin: 0; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--blue); }
.trust-card p { margin: 0; font-size: 17px; line-height: 1.6; font-weight: 600; text-wrap: pretty; }

/* ---------- Services ---------- */
.services { max-width: 1200px; margin: 0 auto; padding: 80px 24px 40px; }
.featured-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 22px; margin-bottom: 22px;
}
.card-featured {
  background: var(--surface); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 0 0 0 transparent; transition: var(--ease);
}
.card-featured:hover { box-shadow: 0 0 0 2px var(--orange); }
.card-featured__media, .card-secondary__media { position: relative; }
.card-featured__media { height: 220px; }
.card-secondary__media { height: 130px; }
.card-featured__media img, .card-secondary__media img, .industry-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--img-bg);
}
.card-featured__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-featured h3 { font-size: 20px; font-weight: 800; margin: 0; line-height: 1.25; }
.card-featured__sub { font-size: 13.5px; font-weight: 600; color: var(--blue); }
.card-featured p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.card-featured__note { margin-top: auto; padding-top: 8px; }
.note-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 12.5px; font-weight: 600;
}

.secondary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; }
.card-secondary {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 0 0 0 transparent; transition: var(--ease);
}
.card-secondary:hover { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.card-secondary__body { padding: 18px 20px 22px; }
.card-secondary h3 { font-size: 16px; font-weight: 800; margin: 0 0 6px; }
.card-secondary p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* ---------- Industries ---------- */
.industries { max-width: 1200px; margin: 0 auto; padding: 80px 24px 10px; }
.industry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.industry-tile { position: relative; height: 260px; border-radius: 16px; overflow: hidden; background: var(--img-bg); }
.industry-tile__label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,59,103,0) 0%, rgba(15,59,103,0.88) 100%);
}
.industry-tile__label h3 { margin: 0; color: #fff; font-size: 17px; font-weight: 800; line-height: 1.25; }

.serve-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.serve-card { background: var(--surface); border-radius: 16px; padding: 30px 30px 32px; display: flex; flex-direction: column; gap: 16px; }
.serve-card h3 { font-size: 20px; font-weight: 800; margin: 0; }
.serve-card__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.serve-card__small { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; background: #fff;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px;
  font-size: 14px; font-weight: 600; color: var(--navy); white-space: nowrap; transition: var(--ease);
}
.chip:hover { border-color: var(--orange); }
.text-link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 4px 0; }
.text-link:hover { color: var(--orange-dark); }

/* ---------- Contact ---------- */
.contact { max-width: 1200px; margin: 0 auto; padding: 90px 24px; }
.contact__panel {
  background: var(--navy); border-radius: 20px; padding: clamp(28px, 5vw, 60px); color: #fff;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 48px;
}
.contact__info { min-width: 0; }
.contact__info h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 16px; line-height: 1.1; }
.contact__spacer { height: 14px; }
.contact__list { display: grid; gap: 14px; font-size: 15px; }
.contact__item { color: #fff; display: flex; gap: 12px; align-items: center; overflow-wrap: anywhere; }
a.contact__item:hover { color: var(--orange-light); }
.contact__icon {
  width: 34px; height: 34px; border-radius: 8px; background: rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.quote {
  min-width: 0; margin: 0; background: #fff; border-radius: 14px; padding: clamp(20px, 3vw, 30px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; color: var(--navy);
}
.field { display: grid; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); align-content: start; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); border-radius: 9px; padding: 12px 14px;
  font-size: 14px; font-weight: 400; color: var(--navy); outline: none; width: 100%; background: #fff;
}
.field textarea { resize: vertical; }
.bin-option {
  grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 9px; padding: 14px 16px; cursor: pointer;
}
.bin-option input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--orange); flex-shrink: 0; cursor: pointer; }
.bin-option__text { display: grid; gap: 3px; }
.bin-option__title { font-size: 14px; font-weight: 700; color: var(--navy); }
.bin-option__desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.btn-quote {
  grid-column: 1 / -1; background: var(--orange); color: #fff; border: none; border-radius: 999px;
  padding: 15px 20px; font-size: 14px; font-weight: 800; letter-spacing: 0.04em; cursor: pointer; white-space: nowrap;
}
.btn-quote:hover { background: var(--orange-dark); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); }
.site-footer__row {
  max-width: 1200px; margin: 0 auto; padding: 40px 24px 24px;
  display: flex; flex-direction: row; gap: 24px; justify-content: space-between; align-items: center;
}
.site-footer__row > img { height: 40px; width: auto; display: block; }
.site-footer__right { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.social { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: 14px; font-weight: 600; }
.site-footer__links a { padding: 4px 0; }
.site-footer__copy { max-width: 1200px; margin: 0 auto; padding: 0 24px 34px; font-size: 13px; color: var(--muted-2); text-align: left; }

/* ---------- Thank-you page ---------- */
.thanks { max-width: 1200px; margin: 0 auto; padding: 100px 24px 110px; }
.thanks__card {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: var(--surface); border-radius: 20px; padding: clamp(32px, 6vw, 60px);
}
.thanks__icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--navy);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 22px;
}
.thanks h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 14px; }
.thanks p { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0 0 30px; }
.thanks .btn-primary { display: inline-flex; padding: 15px 28px; }

/* ==========================================================================
   Responsive (replaces the design's JS-driven values)
   ========================================================================== */

/* Tablet: < 1024px */
@media (max-width: 1023.98px) {
  .hero__overlay { background: linear-gradient(180deg, rgba(15,59,103,0.82) 0%, rgba(15,59,103,0.92) 100%); }
  .callback__grid { grid-template-columns: 1fr 1fr; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile nav: < 768px */
@media (max-width: 767.98px) {
  .desk-nav, .btn-header { display: none; }
  .mob-actions { display: flex; }
  .site-header__row { padding: 14px 16px; }
  .site-header.is-scrolled .site-header__row { padding: 10px 16px; }
  .site-header__logo img { height: 38px; }
  .site-header.is-scrolled .site-header__logo img { height: 34px; }
  .site-footer__row { flex-direction: column; }
  .site-footer__right { align-items: center; }
  .site-footer__copy { text-align: center; }
}
@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}

/* Phone: < 640px */
@media (max-width: 639.98px) {
  .topbar__inner { justify-content: center; }
  .topbar__link--email { display: none; }
  .hero__inner { padding: 84px 20px 120px; }
  .callback__grid { grid-template-columns: 1fr; }
  .about__media { height: 340px; }
  .industry-grid { gap: 12px; }
  .industry-tile { height: 200px; }
  .industry-tile__label h3 { font-size: 15px; }
}

/* ---------- Quote form: required fields ---------- */
.quote__note {
  grid-column: 1 / -1; margin: 0 0 4px; padding: 10px 14px;
  background: var(--surface); border-radius: 9px;
  font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--muted);
}
.req { color: var(--orange-dark); font-weight: 800; margin-left: 3px; }
.quote__note .req { margin-left: 0; }
/* After a submit attempt, flag the required fields still empty */
.quote.was-validated :is(input, select):invalid { border-color: #C2410C; }
