:root {
  --navy: #0E2A47;
  --navy-2: #0B2138;
  --bg: #F3F5F8;
  --text: #0E2A47;
  --muted: #2E3E55;
  --gold: #D4AF37;
  --gold-2: #B88F1F;
  --white: #FFFFFF;
  --line: rgba(14, 42, 71, .16);
  --shadow: 0 12px 28px rgba(14, 42, 71, .18);
  --max: 1120px;

  /* Link underline style used for subtle inline links */
  --link-underline: rgba(14, 42, 71, .35);
  --link-underline-hover: rgba(14, 42, 71, .7);
}

/* ===== GLOBAL RESET / SAFETY ===== */

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; }

/* Safer than svg { max-width: 100%; } */
svg { display: inline-block; }

/* Default: links look like text unless we opt-in */
a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

/* ===== ACCESSIBILITY: FOCUS ===== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(212, 175, 55, .75);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ===== REUSABLE INLINE LINK (SUBTLE UNDERLINE) ===== */

.text-link,
.subnote a,
.form-note a,
.quote-alt-link a,
.services-subnote a,
.card-subtle-link a {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1px solid var(--link-underline);
  padding-bottom: 1px;
  text-decoration: none;
}

.text-link:hover,
.subnote a:hover,
.form-note a:hover,
.quote-alt-link a:hover,
.services-subnote a:hover,
.card-subtle-link a:hover {
  border-bottom-color: var(--link-underline-hover);
}

/* Never underline CTA buttons, even if they are <a> */
a.cta,
.cta-link,
a.cta:hover,
.cta-link:hover {
  border-bottom: 0 !important;
  text-decoration: none !important;
}

/* ===== HEADER / NAV ===== */

.topnav {
  background: linear-gradient(180deg, var(--navy), var(--navy-2));
  color: #fff;
}

.topnav .inner {
  min-height: 86px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.brandtext {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}

.brandtext .name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.brandtext .sub {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.45em;
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.85);
}

.navlinks {
  display: flex;
  gap: 46px;
  font-size: 18px;
  font-weight: 500;
  flex-wrap: wrap;
}

.navlinks a {
  color: #fff;
  opacity: .95;
  padding: 8px 2px;
  position: relative;
}

.navlinks a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ===== VISUALLY HIDDEN UTILITY ===== */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Header contact exists for UX and accessibility, but is hidden for design */
.header-contact { }

/* ===== HOME HERO LAYOUT ===== */

.hero.hero-layout {
  flex: 1;
  min-height: 0;
  padding-top: 84px;
  padding-bottom: 28px;
  text-align: center;
  display: flex;
}

.hero.hero-layout > .wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 64px;
  margin: 0 0 14px;
  letter-spacing: .2px;
}

.hero h2 {
  margin: 0 0 30px;
  font-size: 34px;
  font-weight: 400;
  color: var(--muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #fff;
  font-weight: 600;
  font-size: 20px;
  box-shadow: 0 10px 20px rgba(184, 143, 31, .28);
  border: 0;
  cursor: pointer;
  transition: transform .06s ease, filter .12s ease;
}

.cta:active { transform: translateY(1px); }
.cta:hover { filter: saturate(1.05); }

/* ===== TRUST ROW ===== */

.trust {
  margin-top: auto;
  padding-top: 80px;
  max-width: 860px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.trust .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

svg.icon {
  width: 44px;
  height: 44px;
  display: block;
}

.trust .label {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.15;
}

/* ===== STANDARD PAGE LAYOUT ===== */

.page {
  flex: 1;
  min-height: 0;
  padding: 56px 0 40px;
  text-align: center;
}

.page h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 52px;
  margin: 0 0 14px;
}

.page .lead {
  margin: 0 auto;
  max-width: 72ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.lead-tight {
  margin-top: 0;
  margin-bottom: 22px;
}

/* ===== CONTACT PAGE SPECIFIC ===== */

.page-contact { padding-top: 56px; }

.page-contact .contact-grid {
  max-width: 720px;
  margin: 22px auto 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.page-contact .contact-card {
  width: 100%;
  margin: 0 auto;
}

.page-contact .contact-card h3 {
  margin: 10px 0 14px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.page-contact .contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.page-contact .contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

.page-contact .pill-icon {
  font-size: 16px;
  line-height: 1;
}

.page-contact .card-text {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.page-contact .cta-link { margin: 30px 0 58px; }

.page-contact .contact-note-stack {
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

.page-contact .contact-note-stack > div { margin-top: 6px; }

/* ===== HOME PAGE ONLY: LOGO SCALE ===== */

body.home header.topnav .brand img {
  width: 64px;
  height: 64px;
}

/* ===== MINIMAL ICON FOOTER ===== */

.site-footer {
  background: #0E2A47;
  color: #fff;
  padding: 18px 0;
  margin-top: 60px;
}

.footer-icons {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
  align-items: center;
}

.footer-icons .footer-link:nth-child(1) { grid-column: 2; justify-self: center; }
.footer-icons .footer-link:nth-child(2) { grid-column: 4; justify-self: center; }

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  opacity: 0.95;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1;
}

.footer-link:hover { text-decoration: underline; }

.footer-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.site-footer svg,
.site-footer .footer-icon {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  flex: 0 0 14px !important;
  display: block;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 980px) {
  .navlinks { gap: 24px; font-size: 16px; }
  .hero h1 { font-size: 48px; }
  .hero h2 { font-size: 26px; }
  .trust { padding-top: 64px; }
}

@media (max-width: 760px) {
  .topnav .inner {
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .navlinks {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .hero.hero-layout {
    padding-top: 62px;
    padding-bottom: 22px;
  }

  .hero h1 { font-size: 40px; }
  .hero h2 { font-size: 22px; margin-bottom: 24px; }

  .trust {
    grid-template-columns: 1fr;
    padding-top: 44px;
    gap: 18px;
    max-width: 520px;
  }

  .footer-icons {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-icons .footer-link:nth-child(1),
  .footer-icons .footer-link:nth-child(2) {
    grid-column: 1;
    justify-self: center;
  }

  .page-contact .cta-link { margin: 26px 0 44px; }
}

/* ===== QUOTE FORM ===== */

.quote-form {
  max-width: 520px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-field label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.hidden { display: none; }

/* Clickable phone under the note */
.quote-phone {
  display: inline-block;
  margin-top: 6px;
}

/* ===== QUOTE PAGE ALT CONTACT LINK ===== */

.page-quote .quote-alt-link {
  margin: 14px 0 36px;
  font-size: 15px;
  color: var(--muted);
}

/* ===== SERVICES PAGE ===== */

.page-services .lead-tight { margin-bottom: 26px; }

.services-cta {
  margin: 18px auto 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.services-subnote {
  font-size: 14px;
  color: var(--muted);
}

.services-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  text-align: left;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(14, 42, 71, .06);
  padding: 22px 22px;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.service-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.service-list li { margin: 8px 0; }

.services-footer-cta {
  margin: 34px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 18px 18px; }
}

.card-subtle-link {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* ===== ABOUT PAGE ===== */

.page-about .lead-tight {
  max-width: 60ch;
  margin-bottom: 34px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 10px;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 22px rgba(14, 42, 71, .08);
}

.about-card-wide { grid-column: 1 / -1; }

.about-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
}

.about-card p {
  margin: 0 0 12px;
  line-height: 1.6;
  color: var(--muted);
}

.about-muted { opacity: .92; }

.about-bullets {
  margin: 12px 0 0;
  padding-left: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.about-bullets li { margin: 6px 0; }

.about-pill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.about-pill {
  border: 1px solid rgba(14, 42, 71, .14);
  background: rgba(255, 255, 255, .75);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
}

.about-two-col {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
}

.about-callout {
  border: 1px solid rgba(14, 42, 71, .14);
  background: rgba(14, 42, 71, .04);
  border-radius: 16px;
  padding: 16px;
}

.about-callout-title { font-weight: 600; margin-bottom: 6px; }
.about-callout-body { color: var(--muted); margin-bottom: 14px; }

.about-callout-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cta-small {
  padding: 12px 20px;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-pill-grid { grid-template-columns: 1fr; }
  .about-two-col { grid-template-columns: 1fr; }
}

/* ===== DIVIDERS ===== */

.quote-alt-link .divider,
.services-subnote .divider,
.card-subtle-link .divider {
  margin: 0 6px;
  opacity: 0.6;
}