/* ===================================================
   Crown Wave Solutions — stylesheet
   Fonts: Marcellus (display) / Jost (body) / Work Sans (eyebrow labels)
   =================================================== */

:root{
  --red: #98080F;
  --red-dark: #700509;
  --red-tint: #FBEAEA;
  --green: #084B20;
  --green-light: #0F6E31;
  --green-tint: #E9F3EC;
  --ink: #1D2229;
  --muted: #5B6470;
  --paper: #FFFFFF;
  --cream: #FBF9F6;
  --line: #E7E3DD;

  --font-display: "Marcellus", serif;
  --font-body: "Jost", sans-serif;
  --font-label: "Work Sans", sans-serif;

  --container: 1200px;
  --radius: 14px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
}
p{ margin: 0 0 1em; }
.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section{ padding: 96px 0; }
@media (max-width: 768px){
  section{ padding: 60px 0; }
}

/* Eyebrow / section title pattern (from template) */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.eyebrow::before{
  content:"";
  width: 28px; height: 2px;
  background: var(--green);
  display:inline-block;
}
.section-head{ max-width: 700px; margin-bottom: 56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size: 40px; }
.section-head p{ color: var(--muted); font-size: 17px; margin-top: 12px;}
@media (max-width: 768px){
  .section-head h2{ font-size: 28px; }
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor:pointer;
  transition: all .25s ease;
}
.btn-primary{ background: var(--red); color:#fff; }
.btn-primary:hover{ background: var(--red-dark); }
.btn-outline{ background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover{ background: var(--ink); color:#fff; }
.btn-white{ background:#fff; color: var(--green); }
.btn-white:hover{ background: var(--cream); }
.btn-arrow{ width:18px; height:18px; }

/* ---------------- Header ---------------- */
.site-header{
  position: sticky; top:0; z-index: 500;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand img{ height:56px; width:auto; }
.nav-links{ display:flex; align-items:center; gap:36px; }
.nav-links a{
  font-family: var(--font-label);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:0; width:0; height:2px;
  background: var(--red); transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }
.nav-links a.active{ color: var(--red); }
.nav-cta{ display:flex; align-items:center; gap:18px; }
.nav-toggle{ display:none; background:none; border:0; cursor:pointer; padding:6px; }
.nav-toggle span{ display:block; width:26px; height:2px; background: var(--ink); margin:6px 0; }

@media (max-width: 992px){
  .nav-links{
    position:fixed; inset:0 0 0 auto; width: 78%; max-width: 340px;
    background:#fff; flex-direction:column; align-items:flex-start;
    padding: 100px 32px 32px; gap: 26px;
    transform: translateX(100%); transition: transform .3s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,.08);
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-toggle{ display:block; }
  .nav-cta .btn-outline{ display:none; }
}

/* ---------------- Hero ---------------- */
.hero{
  position: relative;
  overflow: hidden;
  padding: 90px 0 110px;
  background: var(--cream);
}
.hero .container{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items:center;
}
.hero h1{
  font-size: 54px;
  margin-bottom: 22px;
}
.hero h1 em{
  font-style: normal;
  color: var(--red);
}
.hero p.lead{
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
}
.hero-actions{ display:flex; gap:16px; margin-top: 34px; flex-wrap:wrap; }
.hero-stats{
  display:flex; gap:40px; margin-top:56px; flex-wrap:wrap;
}
.hero-stats div{ max-width: 150px; }
.hero-stats div strong{
  display:block; font-family: var(--font-display); font-size: 30px; color: var(--green); margin-bottom:4px;
}
.hero-stats div span{
  display:block; font-family: var(--font-label); font-size: 12.5px; color: var(--muted); text-transform:uppercase; letter-spacing:.04em; line-height:1.4;
}
.hero-art{ position:relative; display:flex; align-items:center; justify-content:center; }
.hero-art svg{ width:100%; max-width: 460px; height:auto; }

/* Ribbon strip (four brand pillars, from infographic footer) */
.pillars{
  background: var(--ink);
}
.pillars ul{
  display:grid; grid-template-columns: repeat(4,1fr);
}
.pillars li{
  padding: 26px 22px;
  border-right: 1px solid rgba(255,255,255,.12);
  display:flex; align-items:center; gap:14px;
}
.pillars li:last-child{ border-right:0; }
.pillars li .dot{
  width:10px; height:10px; border-radius:50%; flex-shrink:0;
}
.pillars li:nth-child(1) .dot{ background: var(--red); }
.pillars li:nth-child(2) .dot{ background: var(--green-light); }
.pillars li:nth-child(3) .dot{ background: var(--red); }
.pillars li:nth-child(4) .dot{ background: var(--green-light); }
.pillars strong{
  display:block; color:#fff; font-family: var(--font-label); font-size: 13.5px; font-weight:600; letter-spacing:.02em;
}
@media (max-width: 900px){
  .pillars ul{ grid-template-columns: repeat(2,1fr); }
  .pillars li{ border-right:0; border-bottom:1px solid rgba(255,255,255,.12); }
}

/* ---------------- About preview / split blocks ---------------- */
.split{
  display:grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items:center;
}
.split.reverse{ grid-template-columns: 1.1fr .9fr; }
.split.reverse .split-media{ order:2; }
@media (max-width: 900px){
  .split, .split.reverse{ grid-template-columns: 1fr; }
  .split.reverse .split-media{ order:0; }
}
.split-media{
  position: relative;
  border-radius: var(--radius);
  overflow:hidden;
  background: var(--green);
  aspect-ratio: 4/5;
  display:flex; align-items:center; justify-content:center;
}
.split-media svg{ width: 62%; }
.check-list li{
  display:flex; gap:12px; align-items:flex-start; margin-bottom: 14px; font-size: 15.5px;
}
.check-list li i{
  flex-shrink:0; width:22px; height:22px; border-radius:50%;
  background: var(--green-tint); color: var(--green);
  display:flex; align-items:center; justify-content:center; font-size:12px; margin-top:3px;
}

/* ---------------- Pillar / value cards ---------------- */
.value-grid{
  display:grid; grid-template-columns: repeat(4,1fr); gap: 24px;
}
@media (max-width: 992px){ .value-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .value-grid{ grid-template-columns: 1fr; } }
.value-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  background: var(--paper);
}
.value-card .num{
  font-family: var(--font-display); font-size: 15px; color: var(--red);
  margin-bottom: 14px; display:block;
}
.value-card h3{ font-size: 20px; margin-bottom: 8px; }
.value-card p{ color: var(--muted); font-size: 15px; margin:0; }

/* ---------------- Service cards ---------------- */
.services-grid{
  display:grid; grid-template-columns: repeat(3,1fr); gap: 26px;
}
@media (max-width: 992px){ .services-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .services-grid{ grid-template-columns: 1fr; } }
.service-card{
  border-radius: var(--radius);
  padding: 34px 28px;
  background: var(--cream);
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  display:flex; flex-direction:column; height:100%;
}
.service-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(18,25,20,.08);
  background: #fff;
}
.service-card .icon{
  width:56px; height:56px; border-radius:50%;
  background: var(--paper);
  border: 1.5px solid var(--red);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 22px;
}
.service-card:nth-child(even) .icon{ border-color: var(--green); }
.service-card .icon{ color: var(--red); }
.service-card:nth-child(even) .icon{ color: var(--green); }
.service-card .icon svg{ width:26px; height:26px; }
.service-card h3{ font-size: 21px; margin-bottom: 10px; }
.service-card p{ color: var(--muted); font-size: 15px; flex-grow:1; }
.service-card .tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.service-card .tags span{
  font-family: var(--font-label); font-size: 12px; font-weight:500;
  background: rgba(0,0,0,.04); padding: 6px 12px; border-radius:999px; color: var(--muted);
}
.service-card .more{
  margin-top:20px; font-family: var(--font-label); font-weight:600; font-size:14px; color: var(--red);
  display:inline-flex; align-items:center; gap:8px;
}

/* Detailed service block (services page) */
.service-detail{
  border-top: 1px solid var(--line);
  padding: 64px 0;
  display:grid; grid-template-columns: .8fr 1.2fr; gap: 56px;
}
.service-detail:last-child{ border-bottom: 1px solid var(--line); }
@media (max-width: 900px){ .service-detail{ grid-template-columns: 1fr; gap: 26px; } }
.service-detail .sd-head .icon{
  width:64px; height:64px; border-radius:16px;
  background: var(--red-tint); display:flex; align-items:center; justify-content:center; margin-bottom:20px;
}
.service-detail:nth-child(even) .sd-head .icon{ background: var(--green-tint); }
.service-detail .sd-head .icon{ color: var(--red); }
.service-detail:nth-child(even) .sd-head .icon{ color: var(--green); }
.service-detail .sd-head .icon svg{ width:30px; height:30px; }
.service-detail .sd-head span.kicker{
  font-family: var(--font-label); text-transform:uppercase; letter-spacing:.08em; font-size:12.5px; color:var(--red); font-weight:600;
}
.service-detail .sd-head h3{ font-size: 27px; margin-top:6px; }
.sd-cols{
  display:grid; grid-template-columns: 1fr 1fr; gap: 30px;
}
@media (max-width: 620px){ .sd-cols{ grid-template-columns: 1fr; } }
.sd-cols h4{
  font-family: var(--font-label); font-size:14px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; color: var(--green);
  margin-bottom: 14px;
}

/* ---------------- Who we serve chips ---------------- */
.persona-grid{
  display:grid; grid-template-columns: repeat(3,1fr); gap: 22px;
}
@media (max-width: 900px){ .persona-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .persona-grid{ grid-template-columns: 1fr; } }
.persona-card{
  padding: 26px; border-radius: var(--radius); background:#fff; border:1px solid var(--line);
}
.persona-card h4{ font-size:17px; margin-bottom:6px; }
.persona-card p{ font-size:14px; color:var(--muted); margin:0; }

/* ---------------- CTA banner ---------------- */
.cta-banner{
  background: var(--green);
  color:#fff;
  border-radius: 24px;
  padding: 64px 56px;
  display:flex; align-items:center; justify-content:space-between; gap: 30px; flex-wrap:wrap;
  position:relative; overflow:hidden;
}
.cta-banner h2{ color:#fff; font-size:34px; max-width:520px; margin:0; }
.cta-banner p{ color: rgba(255,255,255,.8); margin-top:10px; }
.cta-banner::after{
  content:""; position:absolute; right:-60px; top:-60px; width:220px; height:220px;
  border-radius:50%; border: 40px solid rgba(255,255,255,.06);
}

/* ---------------- Footer ---------------- */
.site-footer{ background: var(--ink); color: rgba(255,255,255,.75); padding-top: 80px; }
.footer-grid{
  display:grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand img{ height:56px; margin-bottom:16px; filter: brightness(0) invert(1); opacity:.95; }
.footer-brand p{ font-size:14px; max-width: 280px; }
.site-footer h5{
  color:#fff; font-family: var(--font-label); font-size:14px; letter-spacing:.06em; text-transform:uppercase;
  margin-bottom: 20px; font-weight:600;
}
.site-footer ul li{ margin-bottom: 12px; font-size:14.5px; }
.site-footer ul li a:hover{ color:#fff; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; padding: 24px 0; flex-wrap:wrap; gap:10px;
  font-size: 13.5px;
}
.social{ display:flex; gap:12px; }
.social a{
  width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,.2);
  display:flex; align-items:center; justify-content:center;
}
.social a:hover{ background: var(--red); border-color: var(--red); }

/* ---------------- Page header (inner pages) ---------------- */
.page-header{
  background: var(--cream);
  padding: 70px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-header .eyebrow{ margin-bottom: 12px; }
.page-header h1{ font-size:44px; margin-bottom:10px; }
.breadcrumb{
  font-family: var(--font-label); font-size:13.5px; color: var(--muted);
}
.breadcrumb a{ color: var(--red); }

/* ---------------- Contact page ---------------- */
.contact-wrap{
  display:grid; grid-template-columns: .9fr 1.1fr; gap: 56px;
}
@media (max-width: 900px){ .contact-wrap{ grid-template-columns: 1fr; } }
.contact-info-card{
  background: var(--green); color:#fff; border-radius: var(--radius); padding: 44px 36px;
}
.contact-info-card h3{ color:#fff; font-size:24px; }
.contact-info-card .item{ display:flex; gap:16px; margin-top:28px; align-items:flex-start; }
.contact-info-card .item .ic{
  width:42px; height:42px; border-radius:50%; background: rgba(255,255,255,.12);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.contact-info-card .item h6{ margin:0 0 4px; font-family: var(--font-label); font-size:14px; letter-spacing:.03em; color: rgba(255,255,255,.7); text-transform:uppercase; }
.contact-info-card .item p{ margin:0; font-size:15.5px; }
.contact-form{
  background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 40px;
}
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
@media (max-width:560px){ .form-row{ grid-template-columns: 1fr; } }
.field{ margin-bottom: 20px; }
.field label{
  display:block; font-family: var(--font-label); font-size:13.5px; font-weight:600; margin-bottom:8px; color: var(--ink);
}
.field input, .field select, .field textarea{
  width:100%; border:1px solid var(--line); border-radius:10px; padding:13px 16px;
  font-family: var(--font-body); font-size:15px; color: var(--ink); background: var(--cream);
}
.field textarea{ resize: vertical; min-height:130px; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline: 2px solid var(--red); outline-offset:1px; background:#fff;
}
.form-note{ font-size:13px; color: var(--muted); margin-top:6px; }

/* Utility */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.badge-note{
  display:inline-block; background: var(--red-tint); color: var(--red); font-family: var(--font-label);
  font-size:12.5px; font-weight:600; padding:5px 12px; border-radius:999px; margin-bottom:10px;
}
