/* =========================================================
   Foam Jack Regina — Stylesheet
   Brand colours derived from logo: orange #f26522, blue #1d6fb8
   ========================================================= */

:root {
  --orange:        #f26522;
  --orange-dark:   #d4521a;
  --blue:          #1d6fb8;
  --blue-dark:     #0b3d91;
  --ink:           #161a23;
  --ink-2:         #2b3140;
  --muted:         #5b6577;
  --line:          #e6e9ef;
  --bg:            #ffffff;
  --bg-alt:        #f6f8fb;
  --bg-dark:       #0f1828;
  --bg-dark-2:     #16223a;

  --radius:        14px;
  --radius-lg:     22px;
  --shadow-sm:     0 2px 6px rgba(15, 24, 40, .06);
  --shadow:        0 14px 40px -12px rgba(15, 24, 40, .25);

  --max:           1180px;
  --pad:           clamp(16px, 4vw, 32px);

  --font-body:     'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display:  'Oswald', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.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; left: -9999px; top: 0; background: var(--orange); color: #fff;
  padding: 12px 16px; z-index: 1000; font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; }

/* =================== HEADINGS =================== */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: .01em; line-height: 1.15; color: var(--ink); margin: 0 0 .4em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
p  { margin: 0 0 1em; color: var(--ink-2); }

.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px;
}
.eyebrow--light { color: #ffb893; }
.accent { color: var(--orange); }

/* =================== RIBBON =================== */
.ribbon {
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff; text-align: center; padding: 8px 14px;
  font-size: .82rem; font-weight: 600; letter-spacing: .03em;
}
.ribbon__star { display: inline-block; margin: 0 8px; opacity: .8; }

/* =================== HEADER =================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px; gap: 16px;
}
.brand img { height: 56px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 30px; }
.primary-nav a {
  color: var(--ink); font-weight: 600; font-size: .95rem; padding: 6px 0;
  position: relative; text-decoration: none;
}
.primary-nav a:not(.primary-nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--orange); transition: width .2s ease;
}
.primary-nav a:not(.primary-nav__cta):hover::after { width: 100%; }

.primary-nav__cta {
  background: var(--orange); color: #fff !important; padding: 10px 18px !important;
  border-radius: 999px; font-weight: 700;
}
.primary-nav__cta:hover { background: var(--orange-dark); text-decoration: none; }

.primary-nav__social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: #1877f2; color: #fff !important;
  transition: background-color .15s, transform .15s;
}
.primary-nav__social:hover { background: #0e5cc4; transform: translateY(-1px); text-decoration: none; }
.primary-nav__social::after { display: none !important; }
.primary-nav__social svg { display: block; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle__bar { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =================== HERO =================== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: clamp(520px, 78vh, 760px);
  display: flex; align-items: center;
  isolation: isolate;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(115deg, rgba(11,61,145,.78) 0%, rgba(15,24,40,.55) 55%, rgba(15,24,40,.25) 100%);
}
.hero__inner {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  padding-top: 80px; padding-bottom: 80px; width: 100%;
}
.hero__content { max-width: 640px; }
.hero__title { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.hero__lead { color: #e9eef7; font-size: clamp(1.05rem, 1.6vw, 1.2rem); text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.hero .eyebrow { color: #ffd1b8; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

/* Anniversary badge */
.anniversary-badge {
  width: clamp(140px, 18vw, 200px); aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 30% 30%, #ffae6b 0%, var(--orange) 60%, var(--orange-dark) 100%);
  border-radius: 50%;
  display: grid; place-items: center; color: #fff; text-align: center;
  box-shadow: 0 18px 50px rgba(242, 101, 34, .45), inset 0 0 0 6px rgba(255,255,255,.25);
  transform: rotate(-8deg);
  position: relative;
  animation: badgeFloat 6s ease-in-out infinite;
}
.anniversary-badge::before {
  content: ""; position: absolute; inset: -10px; border: 2px dashed rgba(255,255,255,.55); border-radius: 50%;
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes badgeFloat { 0%,100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-8deg) translateY(-8px); } }

.anniversary-badge__inner { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.anniversary-badge__celebrating { font-family: var(--font-display); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; opacity: .95; }
.anniversary-badge__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.4rem, 7vw, 5rem); line-height: 1; margin: 4px 0 2px; text-shadow: 0 3px 10px rgba(0,0,0,.25); }
.anniversary-badge__years { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: .16em; text-transform: uppercase; }
.anniversary-badge__sub { font-size: .72rem; letter-spacing: .14em; opacity: .9; margin-top: 6px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .anniversary-badge, .anniversary-badge::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* Warranty pill */
.warranty-pill {
  position: absolute; right: var(--pad); bottom: 24px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.95); color: var(--ink);
  padding: 10px 18px 10px 10px; border-radius: 999px; box-shadow: var(--shadow);
  font-family: var(--font-display);
}
.warranty-pill img { width: 44px; height: 44px; }
.warranty-pill strong { display: block; font-size: 1rem; color: var(--blue-dark); letter-spacing: .04em; }
.warranty-pill span { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

/* =================== BUTTONS =================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700;
  font-family: var(--font-body); font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* =================== TRUST STRIP =================== */
.trust-strip { background: var(--blue-dark); color: #fff; }
.trust-strip__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding-top: 28px; padding-bottom: 28px; text-align: center;
}
.trust-strip__grid > div { display: flex; flex-direction: column; gap: 2px; }
.trust-strip__grid strong { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); color: #ffd1b8; }
.trust-strip__grid span { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }

/* =================== SECTIONS =================== */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #e6eaf3; position: relative; }
.section--dark p, .section--dark li { color: #c5cddd; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section__head--light .eyebrow { color: #ffb893; }
.section__lead { font-size: 1.1rem; color: var(--muted); }
.section--dark .section__lead { color: #b5bed1; }

/* =================== WHY GRID =================== */
.why-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px;
}
.why-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; text-align: left; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6dce8; }
.why-card img { width: 56px; height: 56px; margin-bottom: 16px; }
.why-card h3 { margin-bottom: 8px; color: var(--blue-dark); }
.why-card p { margin: 0; font-size: .96rem; }

/* =================== SETTLE GRID =================== */
.settle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.settle-card {
  background: #fff; border-left: 4px solid var(--orange); border-radius: 10px;
  padding: 24px 26px; box-shadow: var(--shadow-sm);
}
.settle-card h3 { color: var(--blue-dark); margin-bottom: 8px; font-size: 1.1rem; }
.settle-card p { margin: 0; font-size: .96rem; }

/* =================== BENEFITS =================== */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.benefit {
  padding: 26px; background: var(--bg-alt); border-radius: var(--radius);
  border: 1px solid var(--line);
  position: relative; padding-left: 60px;
}
.benefit::before {
  content: "✓"; position: absolute; left: 20px; top: 24px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: .9rem;
}
.benefit h3 { margin-bottom: 6px; color: var(--blue-dark); font-size: 1.05rem; }
.benefit p { margin: 0; font-size: .94rem; }

/* =================== STEPS =================== */
.steps {
  list-style: none; padding: 0; margin: 0 0 60px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
  counter-reset: steps;
}
.step {
  background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}
.step__num {
  font-family: var(--font-display); font-size: 3rem; font-weight: 700;
  color: var(--orange); line-height: 1; margin-bottom: 12px;
}
.step h3 { color: #fff; margin-bottom: 8px; font-size: 1.3rem; }
.step p { margin: 0; }

.video-embed { max-width: 880px; margin: 0 auto; }
.video-embed__frame {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,.5);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =================== GALLERY =================== */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  gap: 22px; justify-content: center;
}
.gallery__item {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); background: #fff;
  border: 1px solid var(--line);
}
.gallery__item img { width: 100%; height: auto; display: block; }
.gallery__item figcaption { padding: 12px 16px; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); text-align: center; }

/* =================== TESTIMONIAL =================== */
.testimonial {
  max-width: 820px; margin: 0 auto;
  background: #fff; border-radius: var(--radius-lg); padding: 38px 40px;
  border-left: 6px solid var(--orange); box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial::before {
  content: "“"; position: absolute; left: 18px; top: -10px; font-size: 6rem;
  font-family: Georgia, serif; color: var(--orange); line-height: 1; opacity: .25;
}
.testimonial p { font-size: 1.1rem; color: var(--ink); margin-bottom: 14px; font-style: italic; }
.testimonial footer { color: var(--muted); font-weight: 600; font-style: normal; }

/* =================== CONTACT =================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact-info p { color: #c5cddd; max-width: 480px; }

.contact-list { list-style: none; padding: 0; margin: 22px 0 0; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; color: #fff; }
.contact-list svg { flex-shrink: 0; color: var(--orange); margin-top: 2px; }
.contact-list a { color: #fff; }
.contact-list a:hover { color: var(--orange); }
.contact-list address { font-style: normal; color: #d4dae8; }

.contact-form {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 38px); box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.contact-form h3 { margin-bottom: 20px; color: var(--blue-dark); font-size: 1.4rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fcfcfd;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); background: #fff;
  box-shadow: 0 0 0 4px rgba(242,101,34,.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 14px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.form-note a { color: var(--blue); }

/* Success / error states from contact.php */
.form-flash {
  padding: 18px 22px; border-radius: 12px; margin-bottom: 22px;
  border: 1px solid transparent;
  animation: flashIn .4s ease-out;
}
.form-flash[hidden] { display: none; }
.form-flash strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.form-flash p { margin: 0; font-size: .94rem; font-weight: 500; }
.form-flash a { font-weight: 700; text-decoration: underline; }
.form-flash--ok {
  background: #e7f6ec; border-color: #88c9a3;
}
.form-flash--ok, .form-flash--ok p, .form-flash--ok strong, .form-flash--ok a { color: #14552a; }
.form-flash--err {
  background: #fdecec; border-color: #e69b9b;
}
.form-flash--err, .form-flash--err p, .form-flash--err strong, .form-flash--err a { color: #6e1818; }
@keyframes flashIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =================== FOOTER =================== */
.site-footer { background: #0a1322; color: #b8c2d6; padding-top: 56px; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px;
}
.site-footer__logo { background: #fff; padding: 14px 18px; border-radius: 12px; margin-bottom: 16px; max-width: 200px; }
.site-footer h4 { color: #fff; font-size: .9rem; letter-spacing: .12em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: .94rem; }
.site-footer a { color: #b8c2d6; }
.site-footer a:hover { color: var(--orange); }

.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; }
.site-footer__bottom-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  font-size: .84rem; color: #8693ac;
}
.site-footer__bottom p { margin: 0; }

/* =================== RESPONSIVE =================== */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__inner { grid-template-columns: 1fr; }
  .anniversary-badge { justify-self: center; margin-top: -10px; }
  .trust-strip__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 14px var(--pad); display: none;
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .primary-nav a:last-child { border-bottom: 0; }
  .primary-nav__cta { text-align: center; margin-top: 10px; }

  .warranty-pill { right: 50%; transform: translateX(50%); bottom: 16px; padding: 8px 16px 8px 8px; }
  .warranty-pill img { width: 36px; height: 36px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .hero { min-height: 600px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
}
