/* J Porter Construction — public landing page.
   Design direction (Aug 2026): elegant builder look modeled on the
   C&M Home Builders reference Jacob picked — white header, deep
   navy + antique gold (the navy is pulled from Jacob's logo mark,
   so the site and the brand read as one), letter-spaced display type
   (Josefin Sans) with a brush-script accent (Kaushan Script), a
   full-bleed photo hero, a torn-paper edge into a warm beige
   services strip. This deliberately departs from the portal's
   slate/orange tokens: the landing page sells the brand; the portal
   is a tool.

   Fonts are self-hosted in assets/fonts/ (the CSP allows no CDN).
   assets/hero.jpg is one of Jacob's own projects — a white-painted
   brick exterior (portrait phone photo; EXIF/GPS stripped and the
   house number blurred for the client's privacy). The hero shows a
   horizontal band of it via background-position; if a future swap
   is landscape, ≥1600px wide still applies. */

@font-face {
  font-family: "Josefin Sans";
  src: url("assets/fonts/josefin-sans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Kaushan Script";
  src: url("assets/fonts/kaushan-script-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --lp-bg: #faf8f3;
  --lp-surface: #ffffff;
  --lp-cream: #efe9dd;
  --lp-navy: #234a72;
  --lp-navy-hover: #1b3a5a;
  --lp-navy-deep: #172f4a;
  --lp-on-dark: #ffffff;
  --lp-on-dark-muted: #b3c1d1;
  --lp-text: #232a27;
  --lp-text-muted: #6a736e;
  --lp-border: #e3ddd0;

  --lp-gold: #c2a05a;
  --lp-gold-deep: #a9843c;
  --lp-gold-soft: #f3ead7;

  --lp-success: #16a34a;
  --lp-success-bg: #f0fdf4;
  --lp-danger: #dc2626;
  --lp-danger-bg: #fef2f2;
  --lp-warning: #92600a;
  --lp-warning-bg: #fdf6e3;

  /* JS-built elements (contact cards, IG dots, fallback links) color
     themselves from the accent vars — keep them mapped to the new
     palette so main.js needs no changes. */
  --lp-accent: #c2a05a;
  --lp-accent-hover: #a9843c;
  --lp-accent-strong: #234a72;
  --lp-accent-strong-hover: #1b3a5a;
  --lp-accent-soft: #f3ead7;

  --lp-radius-sm: 3px;
  --lp-radius: 10px;
  --lp-radius-lg: 14px;
  --lp-shadow: 0 1px 2px rgba(61, 52, 31, 0.05), 0 10px 28px rgba(61, 52, 31, 0.07);
  --lp-shadow-lg: 0 22px 48px rgba(45, 38, 22, 0.16);

  --lp-container: 1160px;
  --lp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --lp-font-display: "Josefin Sans", "Segoe UI", Verdana, sans-serif;
  --lp-font-script: "Kaushan Script", "Segoe Script", "Brush Script MT", cursive;
}

/* ---------------------------------- Reset ---------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--lp-font);
  color: var(--lp-text);
  background: var(--lp-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
p,
ul,
li,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

svg {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* -------------------------------- Utilities -------------------------------- */

.container {
  width: 100%;
  max-width: var(--lp-container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.sr-only {
  position: absolute;
  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;
  top: -3rem;
  left: 1rem;
  z-index: 200;
  background: var(--lp-navy);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: var(--lp-radius-sm);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
}

.section {
  padding-block: clamp(3.25rem, 6.5vw, 6rem);
}

.section-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.script-lead {
  font-family: var(--lp-font-script);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  color: var(--lp-gold-deep);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.section-head h2 {
  font-family: var(--lp-font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--lp-navy);
}

.section-head p {
  margin-top: 0.7rem;
  color: var(--lp-text-muted);
  font-size: 1.02rem;
}

/* Scroll-reveal: hidden only once JS confirms it's ready to animate them
   back in, so a no-JS visitor always sees full content immediately. */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-ready [data-reveal].in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------- Buttons --------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--lp-radius-sm);
  padding: 0.78rem 1.35rem;
  font-family: var(--lp-font-display);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  padding: 0.95rem 1.7rem;
  font-size: 0.8rem;
}

.btn-primary {
  background: var(--lp-navy);
  border-color: var(--lp-navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--lp-navy-hover);
  border-color: var(--lp-navy-hover);
}

.btn-primary:disabled {
  background: #cfcabd;
  border-color: #cfcabd;
  color: #7d786c;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  border-color: var(--lp-navy);
  color: var(--lp-navy);
}

.btn-outline:hover {
  background: var(--lp-navy);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--lp-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------- Header ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--lp-border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--lp-navy);
  min-width: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--lp-font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 0.76rem;
    letter-spacing: 0.06em;
  }
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-sm);
  background: var(--lp-surface);
  align-items: center;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--lp-navy);
  border-radius: 2px;
}

.site-nav {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 1.6vw, 1.6rem);
}

.nav-links a {
  font-family: var(--lp-font-display);
  text-decoration: none;
  color: var(--lp-navy);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  border-bottom-color: var(--lp-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.btn-chip {
  background: var(--lp-navy);
  border-color: var(--lp-navy);
  color: #fff;
  padding: 0.64rem 0.85rem;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

.btn-chip:hover {
  background: var(--lp-navy-hover);
  border-color: var(--lp-navy-hover);
}

.btn-chip-outline {
  background: transparent;
  color: var(--lp-navy);
}

.btn-chip-outline:hover {
  background: var(--lp-navy);
  color: #fff;
}

.site-nav.is-open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--lp-surface);
  border-bottom: 1px solid var(--lp-border);
  box-shadow: var(--lp-shadow);
  padding: 0.5rem 1.25rem 1.25rem;
}

.site-nav.is-open .nav-links {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.site-nav.is-open .nav-links a {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--lp-border);
}

.site-nav.is-open .nav-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  margin-top: 1rem;
}

.site-nav.is-open .nav-actions .btn {
  text-align: center;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
  .site-nav {
    display: flex;
    flex: 1;
    align-items: center;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin-left: 1rem;
    min-width: 0;
  }
  .nav-links {
    margin-inline: auto;
  }
}

/* ----------------------------------- Hero ----------------------------------- */

.hero {
  position: relative;
  color: #fff;
  min-height: clamp(540px, 84vh, 800px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(6rem, 12vw, 8.5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgba(16, 26, 40, 0.38), rgba(16, 26, 40, 0.55)),
    url("assets/hero.jpg");
  background-position: center 42%, center 42%;
  background-size: cover, cover;
  background-repeat: no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.eyebrow {
  font-family: var(--lp-font-display);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.72rem;
  font-weight: 600;
  color: #e8dcc0;
  margin-bottom: 1.5rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 300;
  line-height: 1.12;
}

.hero-caps {
  font-family: var(--lp-font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  padding-left: 0.3em; /* visually re-centers tracked-out text */
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-script {
  position: relative;
  font-family: var(--lp-font-script);
  font-size: clamp(2.6rem, 6.6vw, 4.8rem);
  line-height: 1.15;
  padding: 0.08em 0.5em 0.14em;
  margin: -0.12em 0 0;
  color: #fff;
  text-shadow: 0 2px 18px rgba(60, 40, 0, 0.25);
}

.hero-brush {
  position: absolute;
  inset: -8% -4%;
  width: 108%;
  height: 118%;
  z-index: -1;
  transform: rotate(-2deg);
}

.hero-caps-sub {
  font-size: clamp(1rem, 2.1vw, 1.5rem);
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  margin-top: 1.1rem;
  color: #f2ede2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2.6rem;
}

.btn-hero-solid {
  background: #fff;
  border-color: #fff;
  color: var(--lp-navy);
  padding: 0.9rem 1.6rem;
}

.btn-hero-solid:hover {
  background: var(--lp-gold-soft);
  border-color: var(--lp-gold-soft);
}

@media (max-width: 560px) {
  .hero-caps {
    letter-spacing: 0.22em;
    padding-left: 0.22em;
  }
  .hero-caps-sub {
    letter-spacing: 0.3em;
    padding-left: 0.3em;
    font-size: 0.92rem;
  }
}

/* Torn-paper edge into the strip below. */
.hero-tear {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  z-index: 2;
  line-height: 0;
  pointer-events: none;
}

.hero-tear svg {
  width: 100%;
  height: clamp(34px, 6vw, 64px);
}

.hero-tear path {
  fill: var(--lp-cream);
}

/* ------------------------------ Services strip ------------------------------ */

.services-strip {
  background: var(--lp-cream);
  border-bottom: 1px solid var(--lp-border);
  padding-block: 1.05rem;
  overflow: hidden;
}

.strip-track {
  display: flex;
  width: max-content;
  animation: strip-move 46s linear infinite;
}

.services-strip:hover .strip-track {
  animation-play-state: paused;
}

.strip-group {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
  flex: none;
}

.strip-group span {
  font-family: var(--lp-font-display);
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--lp-navy);
  white-space: nowrap;
}

.strip-group .strip-sep {
  color: var(--lp-gold);
  letter-spacing: 0;
}

@keyframes strip-move {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .strip-track {
    animation: none;
  }
  .services-strip {
    overflow-x: auto;
  }
}

/* -------------------------------- Services -------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 560px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--lp-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--lp-shadow-lg);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lp-gold-soft);
  color: var(--lp-navy);
  margin-bottom: 1rem;
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-card h3 {
  font-family: var(--lp-font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lp-navy);
  margin-bottom: 0.45rem;
}

.service-card p {
  color: var(--lp-text-muted);
  font-size: 0.92rem;
}

/* ------------------------------- Testimonials ------------------------------- */

.testimonials-section {
  background: var(--lp-cream);
  border-block: 1px solid var(--lp-border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.testimonial-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 2rem 1.6rem 1.4rem;
  box-shadow: var(--lp-shadow);
  position: relative;
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 0.35rem;
  left: 1.1rem;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--lp-gold);
  opacity: 0.45;
  font-family: var(--lp-font-script);
}

.testimonial-card blockquote {
  position: relative;
  margin: 0.75rem 0 1rem;
}

.testimonial-card blockquote p {
  font-size: 1rem;
  color: var(--lp-text);
  line-height: 1.65;
}

.testimonial-attribution {
  font-family: var(--lp-font-display);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lp-gold-deep);
}

.testimonial-attribution cite {
  font-style: normal;
}

/* ------------------------------ Instagram feed ------------------------------ */

.work-section {
  background: var(--lp-surface);
}

.ig-feed {
  position: relative;
}

/* Skeleton */

.ig-skeleton-main {
  aspect-ratio: 16 / 10;
  border-radius: var(--lp-radius);
  background: linear-gradient(100deg, #efece4 30%, #f8f6f0 50%, #efece4 70%);
  background-size: 250% 100%;
  animation: ig-shimmer 1.5s ease-in-out infinite;
}

.ig-skeleton-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.9rem;
  overflow: hidden;
}

.ig-skeleton-thumb {
  flex: 0 0 clamp(88px, 18vw, 120px);
  aspect-ratio: 1;
  border-radius: var(--lp-radius-sm);
  background: linear-gradient(100deg, #efece4 30%, #f8f6f0 50%, #efece4 70%);
  background-size: 250% 100%;
  animation: ig-shimmer 1.5s ease-in-out infinite;
}

@keyframes ig-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -50% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ig-skeleton-main,
  .ig-skeleton-thumb {
    animation: none;
  }
}

/* Slideshow */

.ig-slideshow {
  position: relative;
  border-radius: var(--lp-radius);
  overflow: hidden;
  background: var(--lp-navy-deep);
  box-shadow: var(--lp-shadow);
}

.ig-track {
  display: flex;
  aspect-ratio: 16 / 10;
  transition: transform 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
  .ig-track {
    transition: none;
  }
}

.ig-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
}

.ig-slide a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.ig-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-slide-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.5rem 1.25rem 1.1rem;
  background: linear-gradient(to top, rgba(15, 25, 20, 0.75), transparent);
  color: #fff;
}

.ig-slide-caption p {
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 62ch;
}

.ig-slide-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-family: var(--lp-font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #e6cf9a;
}

.ig-video-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(29, 51, 45, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.ig-video-badge svg {
  width: 16px;
  height: 16px;
}

.ig-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(29, 51, 45, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.ig-nav-btn:hover {
  background: rgba(29, 51, 45, 0.85);
}

.ig-nav-btn svg {
  width: 20px;
  height: 20px;
}

.ig-prev {
  left: 0.75rem;
}

.ig-next {
  right: 0.75rem;
}

.ig-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ig-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #d8d2c4;
  cursor: pointer;
}

.ig-dot[aria-current="true"] {
  background: var(--lp-gold);
  width: 22px;
  border-radius: 5px;
}

/* Thumbnail strip */

.ig-grid {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  margin-top: 1rem;
  padding-bottom: 0.35rem;
  scroll-snap-type: x proximity;
}

.ig-grid-item {
  flex: 0 0 clamp(84px, 16vw, 110px);
  aspect-ratio: 1;
  border-radius: var(--lp-radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  scroll-snap-align: start;
  background: var(--lp-border);
}

.ig-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-grid-item[aria-current="true"] {
  border-color: var(--lp-gold);
}

.ig-grid-item .ig-video-badge {
  width: 22px;
  height: 22px;
  top: 0.35rem;
  right: 0.35rem;
}

.ig-grid-item .ig-video-badge svg {
  width: 11px;
  height: 11px;
}

/* Fallback card (not configured / fetch failed) */

.ig-fallback-card {
  border: 1px dashed var(--lp-gold);
  border-radius: var(--lp-radius);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  background: var(--lp-bg);
}

.ig-fallback-card h3 {
  font-family: var(--lp-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lp-navy);
  margin-bottom: 0.5rem;
}

.ig-fallback-card p {
  color: var(--lp-text-muted);
  margin-bottom: 1.25rem;
}

/* ------------------------------- Quote form -------------------------------- */

.quote-section {
  background: linear-gradient(180deg, var(--lp-navy-deep) 0%, #12243a 100%);
}

.quote-section .section-head h2 {
  color: #fff;
}

.quote-section .section-head p {
  color: var(--lp-on-dark-muted);
}

.quote-section .script-lead {
  color: var(--lp-gold);
}

.quote-wrap {
  max-width: 640px;
  margin-inline: auto;
  background: var(--lp-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--lp-radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--lp-shadow-lg);
}

.form-banner {
  border-radius: var(--lp-radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  background: var(--lp-warning-bg);
  color: var(--lp-warning);
  border: 1px solid #ecd9a8;
}

.form-banner.is-danger {
  background: var(--lp-danger-bg);
  color: var(--lp-danger);
  border-color: #fecaca;
}

.form-row {
  margin-bottom: 1.15rem;
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin-bottom: 0;
}

@media (min-width: 520px) {
  .form-row-split {
    grid-template-columns: 1fr 1fr;
  }
}

.form-row-split .form-field {
  margin-bottom: 1.15rem;
}

.form-row label,
.form-field label {
  display: block;
  font-family: var(--lp-font-display);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lp-navy);
  margin-bottom: 0.4rem;
}

.req {
  color: var(--lp-danger);
}

.optional {
  color: var(--lp-text-muted);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.form-row input,
.form-row textarea,
.form-field input {
  width: 100%;
  border: 1.5px solid var(--lp-border);
  border-radius: var(--lp-radius-sm);
  padding: 0.68rem 0.8rem;
  font: inherit;
  font-size: 0.98rem;
  background: var(--lp-surface);
  color: var(--lp-text);
}

.form-row textarea {
  resize: vertical;
  min-height: 110px;
}

.form-row input[aria-invalid="true"],
.form-row textarea[aria-invalid="true"],
.form-field input[aria-invalid="true"] {
  border-color: var(--lp-danger);
}

.field-error {
  display: block;
  min-height: 1.1em;
  color: var(--lp-danger);
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#qf-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.quote-panel {
  text-align: center;
  padding: 1rem 0.5rem;
}

.quote-panel-icon {
  width: 52px;
  height: 52px;
  color: var(--lp-success);
  margin-inline: auto;
  margin-bottom: 1rem;
}

.quote-panel h3 {
  font-family: var(--lp-font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lp-navy);
  margin-bottom: 0.5rem;
}

.quote-panel p {
  color: var(--lp-text-muted);
  margin-bottom: 1rem;
}

.quote-fallback-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.quote-fallback-links a {
  font-weight: 700;
  color: var(--lp-navy);
  text-decoration: none;
}

.quote-fallback-links a:hover {
  color: var(--lp-gold-deep);
  text-decoration: underline;
}

/* --------------------------------- Contact ---------------------------------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 820px;
  margin-inline: auto;
}

.contact-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--lp-shadow);
}

.contact-card svg {
  width: 28px;
  height: 28px;
  margin-inline: auto;
  margin-bottom: 0.75rem;
  color: var(--lp-gold-deep);
}

.contact-card h3 {
  font-family: var(--lp-font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lp-navy);
  margin-bottom: 0.4rem;
}

.contact-card a {
  color: var(--lp-navy);
  font-weight: 700;
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--lp-gold-deep);
  text-decoration: underline;
}

/* ---------------------------------- Footer ----------------------------------- */

.site-footer {
  background: var(--lp-navy-deep);
  color: var(--lp-on-dark-muted);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
}

.footer-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-brand-name {
  font-family: var(--lp-font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.footer-tagline {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--lp-on-dark-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--lp-on-dark-muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--lp-gold);
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.footer-social a:hover {
  background: var(--lp-gold);
  border-color: var(--lp-gold);
  color: var(--lp-navy-deep);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-login {
  font-family: var(--lp-font-display);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--lp-radius-sm);
  padding: 0.6rem 0.95rem;
}

.footer-login:hover {
  border-color: var(--lp-gold);
  color: var(--lp-gold);
}

.footer-bottom {
  padding-block: 1.25rem;
  font-size: 0.82rem;
  text-align: center;
}
