/* ===================== TOKENS ===================== */
:root{
  --primary: #D62839;
  --primary-dark: #AE1F2D;
  --secondary: #12172B;
  --accent: #B08D3F;
  --bg: #FCFBF8;
  --surface: #F1EFE9;
  --panel: #171C31;
  --ink: #12172B;
  --text: #22273A;
  --muted: #6B6F80;
  --line: rgba(18,23,43,0.10);
  --radius: 14px;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22,.9,.32,1);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.001ms !important; transition-duration:0.001ms !important;}
}

body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img,svg{display:block; max-width:100%;}
a{color:inherit; text-decoration:none;}
ul{list-style:none; margin:0; padding:0;}
button{font-family:inherit; cursor:pointer;}

::selection{background:var(--primary); color:#fff;}

:focus-visible{outline:2px solid var(--primary); outline-offset:3px;}

.grain{
  position:fixed; inset:0; pointer-events:none; z-index:9998; opacity:.025; mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress-line{
  position:fixed; top:0; left:0; height:2px; width:0%; background:var(--primary); z-index:9999; transition:width .1s linear;
}

section{padding: clamp(64px, 9vw, 128px) clamp(24px, 6vw, 72px);}

.section-label{
  font-size:.8rem; letter-spacing:.02em; color:var(--primary); font-weight:600; margin:0 0 14px;
}
.section-title{
  font-family:var(--serif); font-weight:500; line-height:1.08;
  font-size:clamp(2rem, 4vw, 3.1rem); margin:0 0 20px; color:var(--ink);
}
.section-title em{font-style:italic; color:var(--primary);}

/* ===================== BUTTONS ===================== */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 26px; border-radius:999px; font-weight:600; font-size:.95rem;
  border:1px solid transparent; transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .3s ease, color .3s ease;
  white-space:nowrap;
}
.btn .arrow{display:inline-block; transition:transform .3s var(--ease);}
.btn:hover .arrow{transform:translateX(5px);}
.btn-primary{background:var(--primary); color:#fff; box-shadow:0 10px 24px -12px rgba(214,40,57,.55);}
.btn-primary:hover{transform:translateY(-2px); box-shadow:0 16px 30px -12px rgba(214,40,57,.6);}
.btn-ghost{background:transparent; color:var(--ink); border-color:var(--line);}
.btn-ghost:hover{border-color:var(--ink); transform:translateY(-2px);}
.btn-small{padding:10px 20px; font-size:.85rem;}
.btn-large{padding:18px 34px; font-size:1.05rem;}
.btn-block{width:100%; justify-content:center;}

.text-link{display:inline-flex; align-items:center; gap:6px; font-weight:600; color:var(--ink); border-bottom:1px solid var(--line); padding-bottom:2px;}
.text-link .arrow{transition:transform .3s var(--ease);}
.text-link:hover .arrow{transform:translateX(5px);}
.text-link:hover{color:var(--primary); border-color:var(--primary);}

/* ===================== NAVBAR ===================== */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease), backdrop-filter .4s var(--ease);
}
.nav-inner{display:flex; align-items:center; justify-content:space-between; gap:24px;}
.nav.scrolled{
  background:rgba(252,251,248,0.78);
  backdrop-filter:blur(14px);
  box-shadow:0 1px 0 var(--line);
  padding:12px clamp(20px, 5vw, 56px);
}

.brand{display:flex; align-items:center; gap:10px;}
.brand-mark{width:26px; color:var(--primary);}
.brand-text{font-family:var(--serif); font-size:1.25rem; font-weight:500; color:var(--ink); letter-spacing:.01em;}
.brand-text em{font-style:normal; color:var(--primary);}

.nav-links{display:flex; gap:30px;}
.nav-links a{font-size:.95rem; 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:1.5px; background:var(--primary);
  transition:width .3s var(--ease);
}
.nav-links a:hover::after{width:100%;}

.nav-actions{display:flex; align-items:center; gap:16px;}

.hamburger{
  display:none; flex-direction:column; justify-content:center; gap:5px; width:34px; height:34px;
  background:none; border:none; padding:0;
}
.hamburger span{width:100%; height:2px; background:var(--ink); border-radius:2px; transition:transform .3s var(--ease), opacity .3s ease;}
.hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.hamburger.open span:nth-child(2){opacity:0;}
.hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

.mobile-menu{
  display:flex; flex-direction:column; gap:2px; max-height:0; overflow:hidden;
  transition:max-height .45s var(--ease); background:var(--bg);
}
.mobile-menu.open{max-height:420px; padding-top:14px;}
.mobile-menu a{padding:14px 4px; border-bottom:1px solid var(--line); font-weight:500;}
.mobile-menu .btn{margin-top:14px; align-self:flex-start;}

@media (max-width:880px){
  .nav-links{display:none;}
  .hamburger{display:flex;}
  .nav-actions .btn-small{display:none;}
}

/* ===================== HERO ===================== */
.hero{
  padding-top: clamp(140px, 18vw, 190px);
  padding-bottom: 60px;
  position:relative;
}
.hero-inner{
  display:grid; grid-template-columns:1.1fr .9fr; gap:60px; align-items:center;
  max-width:1320px; margin:0 auto;
}
.eyebrow{color:var(--primary); font-weight:600; font-size:.85rem; margin:0 0 22px; letter-spacing:.01em;}
.hero-title{
  font-family:var(--serif); font-weight:500; line-height:1.06;
  font-size:clamp(2.4rem, 5vw, 4.1rem); margin:0 0 26px; color:var(--ink);
}
.hero-title .line{display:block; overflow:hidden;}
.hero-title .line em{font-style:italic; color:var(--primary);}
.hero-sub{font-size:1.05rem; line-height:1.65; color:var(--muted); max-width:46ch; margin:0 0 34px;}
.hero-actions{display:flex; gap:16px; flex-wrap:wrap;}

.hero-visual{position:relative; height:440px;}
.ribbon{position:absolute; border-radius:60px; filter:blur(0px); animation:float 9s ease-in-out infinite;}
.r1{width:230px; height:340px; right:60px; top:0; background:linear-gradient(160deg, var(--primary), var(--primary-dark)); transform:rotate(18deg); opacity:.96; animation-delay:0s;}
.r2{width:190px; height:300px; right:170px; top:70px; background:linear-gradient(160deg, var(--ink), #262c47); transform:rotate(-10deg); opacity:.92; animation-delay:1.4s;}
.r3{width:140px; height:220px; right:10px; top:150px; background:linear-gradient(160deg, var(--accent), #8a6d2b); transform:rotate(8deg); opacity:.85; animation-delay:2.6s;}
@keyframes float{
  0%,100%{transform:translateY(0) rotate(var(--r,0deg));}
  50%{transform:translateY(-16px) rotate(var(--r,0deg));}
}
.hero-card{
  position:absolute; left:0; bottom:20px; background:rgba(252,251,248,.9); backdrop-filter:blur(10px);
  border:1px solid var(--line); border-radius:var(--radius); padding:16px 20px;
  display:flex; flex-direction:column; gap:2px; box-shadow:0 20px 40px -20px rgba(18,23,43,.25);
}
.hero-card-label{font-size:.75rem; color:var(--muted);}
.hero-card-value{font-weight:600; color:var(--ink);}

@media (max-width:980px){
  .hero-inner{grid-template-columns:1fr; gap:44px;}
  .hero-visual{height:300px; order:-1;}
  .r1{width:170px; height:250px; right:30px;}
  .r2{width:140px; height:220px; right:120px; top:40px;}
  .r3{width:100px; height:160px; right:0; top:110px;}
}

/* ===================== TRUST ===================== */
.trust{
  padding: 30px clamp(24px,6vw,72px);
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.trust-list{
  max-width:1320px; margin:0 auto; display:flex; flex-wrap:wrap; gap:14px 40px; justify-content:space-between;
}
.trust-list li{display:flex; align-items:center; gap:10px; font-weight:500; color:var(--ink); font-size:.95rem;}
.check{color:var(--primary); font-weight:700;}

/* ===================== ABOUT ===================== */
.about-inner{
  max-width:1320px; margin:0 auto; display:grid; grid-template-columns:.85fr 1.15fr; gap:70px; align-items:center;
}
.about-visual{position:relative;}
.about-panel{
  position:relative; border-radius:24px; aspect-ratio:4/5; overflow:hidden;
  background:linear-gradient(145deg, var(--panel), #262c47);
  display:flex; align-items:center; justify-content:center;
}
.panel-glow{position:absolute; width:340px; height:340px; background:radial-gradient(circle, rgba(176,141,63,.35), transparent 70%); top:-60px; right:-60px;}
.panel-mark{width:38%; color:var(--primary); position:relative; z-index:1;}
.about-tag{
  position:absolute; left:-24px; bottom:-24px; background:var(--bg); border:1px solid var(--line);
  border-radius:var(--radius); padding:16px 20px; display:flex; flex-direction:column; gap:2px;
  box-shadow:0 20px 40px -20px rgba(18,23,43,.2);
}
.about-tag-title{font-size:.75rem; color:var(--muted);}
.about-tag-value{font-weight:600; color:var(--ink);}

.about-copy p{line-height:1.7; color:var(--muted); max-width:56ch; margin:0 0 16px;}
.about-highlights{margin:22px 0 26px;}
.about-highlights li{
  position:relative; padding-left:22px; margin-bottom:10px; color:var(--text); font-weight:500;
}
.about-highlights li::before{
  content:""; position:absolute; left:0; top:9px; width:8px; height:8px; border-radius:50%; background:var(--primary);
}

@media (max-width:900px){
  .about-inner{grid-template-columns:1fr; gap:60px;}
  .about-tag{position:static; margin-top:16px; width:fit-content;}
}

/* ===================== SERVICES ===================== */
.services-head{max-width:1320px; margin:0 auto 40px;}
.services-list{max-width:1320px; margin:0 auto; border-top:1px solid var(--line);}
.service-row{
  display:grid; grid-template-columns:100px 1fr 2fr 40px; gap:24px; align-items:center;
  padding:28px 10px; border-bottom:1px solid var(--line); position:relative; overflow:hidden;
  transition:padding-left .4s var(--ease);
}
.service-row::before{
  content:""; position:absolute; inset:0; background:var(--surface); transform:scaleX(0); transform-origin:left;
  transition:transform .45s var(--ease); z-index:0;
}
.service-row:hover::before{transform:scaleX(1);}
.service-row:hover{padding-left:24px;}
.service-index, .service-title, .service-desc, .service-arrow{position:relative; z-index:1;}
.service-index{font-family:var(--serif); font-style:italic; color:var(--primary); font-size:1.05rem;}
.service-title{font-weight:600; color:var(--ink); font-size:1.15rem;}
.service-desc{color:var(--muted); font-size:.95rem; line-height:1.55;}
.service-arrow{font-size:1.3rem; color:var(--ink); justify-self:end; transition:transform .35s var(--ease);}
.service-row:hover .service-arrow{transform:translateX(6px); color:var(--primary);}

@media (max-width:760px){
  .service-row{grid-template-columns:1fr 30px; row-gap:6px;}
  .service-index{grid-column:1; order:1;}
  .service-title{grid-column:1; order:2;}
  .service-desc{grid-column:1 / -1; order:4;}
  .service-arrow{grid-column:2; grid-row:1; order:3;}
}

/* ===================== WHY US ===================== */
.why{background:var(--surface);}
.why-inner{max-width:1320px; margin:0 auto; display:grid; grid-template-columns:.9fr 1.1fr; gap:60px;}
.why-sub{color:var(--muted); max-width:38ch; line-height:1.6; margin-top:10px;}
.why-list{display:flex; flex-direction:column;}
.why-item{display:flex; gap:20px; padding:26px 0; border-bottom:1px solid var(--line);}
.why-item:last-child{border-bottom:none;}
.why-line{width:2px; background:var(--line); position:relative; flex-shrink:0;}
.why-line::before{
  content:""; position:absolute; top:0; left:0; width:100%; height:0; background:var(--primary);
  transition:height .8s var(--ease);
}
.why-item.in-view .why-line::before{height:100%;}
.why-item h3{font-family:var(--serif); font-weight:500; font-size:1.3rem; margin:0 0 8px; color:var(--ink);}
.why-item p{color:var(--muted); line-height:1.6; margin:0; max-width:46ch;}

@media (max-width:900px){ .why-inner{grid-template-columns:1fr;} }

/* ===================== PROCESS ===================== */
.process-head{max-width:1320px; margin:0 auto 60px;}
.process-track{
  max-width:1320px; margin:0 auto; position:relative;
  display:grid; grid-template-columns:repeat(4,1fr); gap:30px;
}
.process-line{
  position:absolute; top:17px; left:0; right:0; height:1px; background:var(--line); z-index:0;
}
.process-line::before{
  content:""; position:absolute; top:0; left:0; height:100%; width:0%; background:var(--primary);
  transition:width 1.4s var(--ease);
}
.process-track.in-view .process-line::before{width:100%;}
.process-step{position:relative; z-index:1;}
.step-num{
  display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%;
  background:var(--bg); border:1px solid var(--line); font-size:.8rem; font-weight:700; color:var(--muted);
  margin-bottom:20px; transition:background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.process-step.in-view .step-num{background:var(--primary); color:#fff; border-color:var(--primary);}
.process-step h3{font-family:var(--serif); font-size:1.25rem; font-weight:500; margin:0 0 8px; color:var(--ink);}
.process-step p{color:var(--muted); line-height:1.55; margin:0; font-size:.95rem;}

@media (max-width:820px){
  .process-track{grid-template-columns:1fr 1fr; row-gap:44px;}
  .process-line{display:none;}
}

/* ===================== PARTNERS ===================== */
.partners{padding-top:50px; padding-bottom:50px; text-align:center;}
.partners-label{color:var(--muted); font-size:.85rem; letter-spacing:.02em; margin-bottom:26px;}
.partners-track{
  display:flex; flex-wrap:wrap; justify-content:center; gap:14px 34px; max-width:1100px; margin:0 auto;
}
.partners-track span{
  font-family:var(--serif); font-style:italic; color:var(--ink); opacity:.55; font-size:1.05rem;
  transition:opacity .3s ease;
}
.partners-track span:hover{opacity:1; color:var(--primary);}

/* ===================== TESTIMONIALS ===================== */
.testimonials-head{max-width:1320px; margin:0 auto 44px;}
.testi-slider{max-width:760px; margin:0 auto; position:relative; overflow:hidden;}
.testi-track{display:flex; transition:transform .6s var(--ease);}
.testi-card{
  min-width:100%; margin:0; background:var(--bg); border:1px solid var(--line); border-radius:20px;
  padding:44px; text-align:left;
}
.stars{color:var(--accent); letter-spacing:2px; font-size:.9rem;}
.testi-card p{
  font-family:var(--serif); font-size:1.3rem; line-height:1.5; color:var(--ink); margin:18px 0 26px; font-weight:500;
}
.testi-card footer{display:flex; flex-direction:column; gap:2px;}
.testi-card footer strong{color:var(--ink);}
.testi-card footer span{color:var(--muted); font-size:.85rem;}
.testi-dots{display:flex; justify-content:center; gap:10px; margin-top:26px;}
.testi-dots button{
  width:8px; height:8px; border-radius:50%; background:var(--line); border:none; padding:0; transition:background .3s ease, width .3s ease;
}
.testi-dots button.active{background:var(--primary); width:22px; border-radius:5px;}

/* ===================== CTA ===================== */
.cta{
  position:relative; background:var(--ink); color:#fff; text-align:left; overflow:hidden;
}
.cta-glow{
  position:absolute; width:600px; height:600px; border-radius:50%; top:-260px; right:-160px;
  background:radial-gradient(circle, rgba(214,40,57,.35), transparent 65%);
}
.cta-inner{position:relative; max-width:760px;}
.cta-inner h2{font-family:var(--serif); font-weight:500; font-size:clamp(2rem,4.5vw,3.2rem); line-height:1.1; margin:0 0 22px;}
.cta-inner p{color:rgba(255,255,255,.72); line-height:1.65; max-width:52ch; margin:0 0 34px;}

/* ===================== CONTACT ===================== */
.contact-inner{max-width:1320px; margin:0 auto; display:grid; grid-template-columns:.85fr 1.15fr; gap:70px;}
.contact-list{margin-top:28px; display:flex; flex-direction:column; gap:18px;}
.contact-list li{display:flex; flex-direction:column; gap:3px; padding-bottom:16px; border-bottom:1px solid var(--line);}
.contact-list li:last-child{border-bottom:none;}
.contact-k{font-size:.78rem; color:var(--muted); text-transform:capitalize;}
.contact-list a{font-weight:600; color:var(--ink); width:fit-content;}
.contact-list a:hover{color:var(--primary);}

.contact-form{background:var(--surface); border-radius:24px; padding:clamp(24px,4vw,44px); display:flex; flex-direction:column; gap:22px;}
.field{position:relative;}
.field input, .field textarea{
  width:100%; background:transparent; border:none; border-bottom:1.5px solid var(--line);
  padding:12px 2px 10px; font-family:var(--sans); font-size:1rem; color:var(--ink); resize:vertical;
  transition:border-color .3s ease;
}
.field textarea{min-height:90px;}
.field input:focus, .field textarea:focus{outline:none; border-color:var(--primary);}
.field label{
  position:absolute; left:2px; top:12px; color:var(--muted); font-size:1rem; pointer-events:none;
  transition:transform .25s var(--ease), font-size .25s var(--ease), color .25s var(--ease);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label{
  transform:translateY(-20px); font-size:.75rem; color:var(--primary);
}
.form-status{font-size:.9rem; color:var(--primary); min-height:1.2em; margin:0;}

@media (max-width:900px){ .contact-inner{grid-template-columns:1fr; gap:50px;} }

/* ===================== FOOTER ===================== */
.footer{background:var(--ink); color:rgba(255,255,255,.8); padding:70px clamp(24px,6vw,72px) 0;}
.footer-inner{
  max-width:1320px; margin:0 auto; display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:50px;
}
.footer .brand-text{color:#fff;}
.footer-brand p{margin-top:14px; color:rgba(255,255,255,.55); line-height:1.6; max-width:32ch;}
.footer-col h4{font-size:.85rem; color:rgba(255,255,255,.45); margin:0 0 16px; font-weight:600;}
.footer-col a, .footer-col span{display:block; margin-bottom:10px; color:rgba(255,255,255,.75); font-size:.95rem;}
.footer-col a:hover{color:var(--primary);}
.social-row{display:flex; gap:12px;}
.social-row a{
  width:36px; height:36px; border:1px solid rgba(255,255,255,.2); border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:.85rem; margin:0;
  transition:background .3s ease, border-color .3s ease;
}
.social-row a:hover{background:var(--primary); border-color:var(--primary);}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12); padding:22px clamp(24px,6vw,72px);
  margin:0 clamp(-24px,-6vw,-72px);
  display:flex; justify-content:space-between; align-items:center; font-size:.85rem; color:rgba(255,255,255,.5);
}
#toTop{
  width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,.25); background:transparent;
  color:#fff; font-size:1.1rem; transition:background .3s ease, transform .3s var(--ease);
}
#toTop:hover{background:var(--primary); border-color:var(--primary); transform:translateY(-3px);}

@media (max-width:760px){
  .footer-inner{grid-template-columns:1fr 1fr; gap:34px;}
}

/* ===================== SCROLL REVEAL ===================== */
.reveal{opacity:0; transform:translateY(24px); transition:opacity .8s var(--ease), transform .8s var(--ease);}
.reveal.in-view{opacity:1; transform:translateY(0);}