/* ==========  Roanix Insurance – static site  ========== */
:root {
  --orange: #EE7A50;
  --brown: #5F2E00;
  --cream: #FFF3EB;
  --black: #000;
  --white: #fff;
  --text: #333;
  --radius: 28px;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: #fff; line-height: 1.6; font-size: 15px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--black); line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.section { padding: 70px 0; }
section[id] { scroll-margin-top: 80px; }
.title-center { text-align: center; max-width: 720px; margin-inline: auto; }
.ic { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

/* Buttons & tags */
.btn { display: inline-block; background: var(--orange); color: #000; font-family: var(--font-head); font-weight: 600; font-size: .9rem; padding: 14px 30px; border-radius: 50px; transition: .25s; }
.btn:hover { background: var(--brown); color: #fff; }
.btn--white { background: #fff; color: #000; }
.btn--white:hover { background: var(--brown); color: #fff; }
.tag { display: inline-block; background: #000; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .8rem; padding: 4px 12px; border-radius: 6px; margin-bottom: 14px; }
.tag--orange { background: var(--orange); color: #000; }

/* Top bar */
.topbar { background: var(--orange); color: #3a1c00; font-size: 13px; }
.topbar__inner { display: flex; gap: 22px; flex-wrap: wrap; padding: 6px 0; }
.topbar__inner > * { display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }

/* Header */
.header { background: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #eee; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.logo img { width: 110px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: 1; }
.nav a { font-family: var(--font-body); font-weight: 500; font-size: 15px; color: #000; padding: 6px 10px; border-bottom: 2px solid transparent; transition: .2s; }
.nav a:hover, .nav a.active { color: var(--orange); border-bottom-color: var(--orange); }
.btn-phone { display: inline-flex; align-items: center; gap: 12px; background: var(--orange); color: #000; font-family: var(--font-head); font-weight: 700; font-size: .85rem; padding: 6px 6px 6px 18px; border-radius: 50px; white-space: nowrap; }
.btn-phone__ic { width: 36px; height: 36px; border-radius: 50%; background: #000; display: grid; place-items: center; }
.btn-phone__ic svg { width: 16px; fill: #fff; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 22px; height: 3px; background: #000; margin: 4px 0; border-radius: 2px; transition: .25s; }

/* Hero */
.hero { padding-top: 0; }
.hero__box { position: relative; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; min-height: 620px; display: flex; align-items: center; background: #777; border-top-right-radius: var(--radius); }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease, transform 6s ease; transform: scale(1.06); }
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.1)); }
.hero__notch { position: absolute; top: 0; left: 50px; width: 270px; height: 46px; background: #fff; border-radius: 0 0 24px 24px; z-index: 2; }
.hero__corner { position: absolute; right: 0; bottom: 0; width: 280px; height: 70px; background: #fff; border-top-left-radius: 30px; z-index: 2; }
.hero__content { position: relative; z-index: 3; padding: 60px; max-width: 640px; color: #fff; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }
.hero p { font-size: 1.1rem; max-width: 420px; }
.dual-btn { display: inline-flex; align-items: center; position: relative; margin-top: 20px; }
.dual-btn a { font-family: var(--font-head); font-weight: 600; font-size: .95rem; padding: 18px 38px; color: #fff; transition: .25s; }
.dual-btn__a { background: var(--orange); border-radius: 50px 0 0 50px; padding-right: 46px !important; }
.dual-btn__b { background: var(--brown); border-radius: 0 50px 50px 0; padding-left: 46px !important; }
.dual-btn a:hover { filter: brightness(1.1); }
.dual-btn__or { position: absolute; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-size: 12px; }

/* Features */
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; align-items: start; }
.fcard { position: relative; border-radius: var(--radius); padding: 28px 24px 0; min-height: 360px; overflow: hidden; display: flex; flex-direction: column; }
.fcard h3 { font-size: 1.2rem; }
.fcard p { font-size: .9rem; }
.fcard__img { margin-top: auto; width: 80%; align-self: center; }
.fcard--brown { background: var(--brown); color: #fff; } .fcard--brown h3 { color: #fff; }
.fcard--light { background: var(--cream); margin-top: 50px; }
.fcard--orange { background: var(--orange); } .fcard--orange h3 { color: #000; }
.fcard--photo { background-size: cover; background-position: center; color: #fff; margin-top: 100px; justify-content: flex-end; padding-bottom: 24px; }
.fcard--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 10%, rgba(0,0,0,.75)); }
.fcard--photo > * { position: relative; } .fcard--photo h3 { color: #fff; }

/* Split (about / why) */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.split--reverse { grid-template-columns: 1fr 1.1fr; }
.split__media img { border-radius: var(--radius); box-shadow: 0 0 0 10px var(--cream); width: 100%; }

/* CTA */
.cta { background: var(--orange); text-align: center; padding: 80px 10%; border-radius: 40px 40px 40px 40px; position: relative; }
.cta::before { content: ""; position: absolute; top: 0; right: 0; width: 34%; height: 50px; background: #fff; border-bottom-left-radius: 30px; }
.cta h2 { max-width: 560px; margin: 0 auto 30px; }
.cta p { color: #222; font-size: .95rem; margin-bottom: 40px; }

/* Services */
.services { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
.services__intro { align-self: end; padding-right: 30px; }
.scard { border-radius: var(--radius); padding: 30px 24px; min-height: 260px; position: relative; overflow: hidden; }
.scard h3 { font-size: 1.5rem; }
.scard p { font-size: .9rem; }
.scard--orange { background: var(--orange); } .scard--orange p { color: #222; }
.scard--brown { background: var(--brown); color: #fff; } .scard--brown h3 { color: #fff; }
.scard--light { background: var(--cream); }
.scard--photo { background-size: cover; background-position: center; color: #fff; }
.scard--photo::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.scard--photo > * { position: relative; } .scard--photo h3 { color: #fff; font-size: 2rem; }
.scard__phone { color: var(--orange); font-family: var(--font-head); font-weight: 700; }
@media (min-width: 1025px) {
  .services { grid-template-columns: repeat(4, 1fr); }
  .services__intro { grid-column: 1 / 3; }
}

/* Carriers marquee */
.carriers { padding: 30px 0 60px; }
.carriers h3 { font-size: 1.1rem; margin-bottom: 30px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 50px; width: max-content; animation: scroll 140s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 80px; width: 170px; object-fit: contain; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Contact */
.contact { padding-top: 20px; }
.contact__box { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; border-radius: var(--radius); background-size: cover; background-position: center; padding: 0 60px 60px; margin-top: 60px; }
.contact__box::after { content: ""; position: absolute; right: 0; bottom: 0; width: 55%; height: 60px; background: var(--brown); border-top-left-radius: 50px; }
.contact__form { background: var(--orange); border-radius: 20px; padding: 30px; margin-top: -60px; position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; }
.contact__form h3 { font-size: 1.5rem; }
.contact__form input, .contact__form textarea { width: 100%; border: 0; border-radius: 4px; padding: 10px 12px; font-family: var(--font-body); font-size: 14px; }
.contact__form input:focus, .contact__form textarea:focus { outline: 2px solid var(--brown); }
.contact__form button { background: var(--brown); color: #fff; border: 0; border-radius: 50px; padding: 14px; font-family: var(--font-head); font-weight: 600; cursor: pointer; transition: .25s; }
.contact__form button:hover { background: #000; }
.contact__note { font-size: 12px; color: #4a2300; margin: 0; }
.contact__info { color: #fff; padding-top: 60px; }
.contact__info h2 { color: #fff; }
.ilist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ilist li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.ilist .ic { margin-top: 4px; }
.ilist a:hover { color: var(--orange); }

/* Footer */
.footer { background: var(--brown); color: #fff; padding: 80px 0 30px; border-radius: 50px 50px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer__logo { width: 120px; margin-bottom: 20px; }
.footer h4 { color: var(--orange); font-size: 1.2rem; }
.footer .ilist .ic { color: var(--orange); }
.flinks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.flinks a::before { content: "›"; color: var(--orange); margin-right: 12px; }
.flinks a:hover { color: var(--orange); }
.footer__copy { text-align: center; font-size: 13px; margin: 60px 0 0; }
.accent { color: var(--orange); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .marquee__track, .hero__slide { animation: none; transition: none; }
}

/* ==========  Responsive  ========== */
@media (max-width: 1024px) {
  .burger { display: block; }
  .btn-phone { display: none; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px 16px 20px; box-shadow: 0 10px 20px rgba(0,0,0,.08); display: none; }
  .nav.open { display: flex; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .fcard--light, .fcard--photo { margin-top: 0; }
  .services { grid-template-columns: 1fr 1fr; }
  .services__intro { grid-column: 1 / -1; }
  .split, .split--reverse { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 2; }
  .contact__box { grid-template-columns: 1fr; padding: 0 30px 80px; }
  .contact__info { padding-top: 0; }
}
@media (max-width: 640px) {
  .topbar__inner { gap: 4px 16px; font-size: 12px; }
  .hero__box { min-height: 520px; }
  .hero__content { padding: 70px 24px 90px; }
  .hero__notch { left: 30px; width: 150px; height: 30px; }
  .hero__corner { width: 140px; height: 50px; }
  .dual-btn a { padding: 14px 22px; font-size: .85rem; }
  .features__grid, .services { grid-template-columns: 1fr; }
  .cta { padding: 70px 24px 50px; }
  .contact__box { padding: 0 16px 80px; }
  .footer__grid { grid-template-columns: 1fr; }
}
