/* ============================================================
   THE CREST GROUP - website stylesheet
   Palette, type and components derived from the brand guide.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700;800&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root{
  --ink:#1A2A38;
  --ink-deep:#0F1C26;
  --gold:#B08D57;
  --gold-soft:#C9A876;
  --stone:#F0EEEA;
  --stone-line:#E4E1DB;
  --slate:#333333;
  --grey:#5A6470;
  --white:#FFFFFF;
  --display:'Playfair Display',Georgia,serif;
  --body:'Source Sans 3','Segoe UI',Arial,sans-serif;
  --maxw:1180px;
  --ease:cubic-bezier(.22,.61,.36,1);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--body);
  color:var(--slate);
  background:var(--white);
  line-height:1.65;
  font-size:17px;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{max-width:var(--maxw);margin:0 auto;padding:0 28px}

/* ---------- Type ---------- */
h1,h2,h3,h4{font-family:var(--display);color:var(--ink);font-weight:700;line-height:1.15}
.eyebrow{
  font-family:var(--body);font-weight:700;font-size:.72rem;letter-spacing:.22em;
  text-transform:uppercase;color:var(--gold);margin-bottom:1rem;display:inline-block;
}
.lead{font-size:1.22rem;color:var(--grey);font-weight:300;line-height:1.7}

/* ---------- Header / nav ---------- */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.92);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--stone-line);
}
.nav{display:flex;align-items:center;justify-content:space-between;height:78px}
.nav__logo img{height:42px;width:auto}
.nav__links{display:flex;gap:34px;align-items:center}
.nav__links a{
  font-size:.86rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;
  color:var(--ink);position:relative;padding:4px 0;transition:color .2s;
}
.nav__links a::after{
  content:"";position:absolute;left:0;bottom:-2px;width:0;height:2px;
  background:var(--gold);transition:width .28s var(--ease);
}
.nav__links a:hover{color:var(--gold)}
.nav__links a:hover::after,.nav__links a.active::after{width:100%}
.nav__links a.active{color:var(--gold)}
.nav__cta{
  background:var(--ink);color:var(--white)!important;padding:11px 22px;border-radius:2px;
  font-size:.8rem;letter-spacing:.06em;transition:background .25s;
}
.nav__cta:hover{background:var(--gold)}
.nav__cta::after{display:none}
.nav__toggle{display:none;background:none;border:0;cursor:pointer;flex-direction:column;gap:5px}
.nav__toggle span{width:26px;height:2px;background:var(--ink);transition:.3s}

/* ---------- Hero ---------- */
.hero{
  position:relative;background:var(--ink-deep);color:var(--white);overflow:hidden;
  padding:130px 0 120px;
}
.hero__emblem{
  position:absolute;right:-160px;top:50%;transform:translateY(-50%);
  width:720px;opacity:.09;pointer-events:none;
}
.hero .container{position:relative;z-index:2}
.hero h1{color:var(--white);font-size:clamp(2.5rem,5.4vw,4.3rem);font-weight:800;letter-spacing:-.01em}
.hero h1 .accent{color:var(--gold-soft);font-style:italic;font-weight:600}
.hero__sub{max-width:620px;margin:1.6rem 0 2.4rem;font-size:1.2rem;color:#C9CDD2;font-weight:300}
.hero__tag{
  font-family:var(--body);font-weight:700;font-size:.78rem;letter-spacing:.28em;
  text-transform:uppercase;color:var(--gold-soft);margin-bottom:2rem;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-block;font-family:var(--body);font-weight:600;font-size:.9rem;
  letter-spacing:.05em;padding:14px 30px;border-radius:2px;cursor:pointer;
  transition:all .25s var(--ease);border:1.5px solid transparent;
}
.btn--gold{background:var(--gold);color:var(--white)}
.btn--gold:hover{background:var(--gold-soft);transform:translateY(-2px)}
.btn--ghost{border-color:rgba(255,255,255,.5);color:var(--white);margin-left:14px}
.btn--ghost:hover{border-color:var(--gold);color:var(--gold-soft)}
.btn--ink{background:var(--ink);color:var(--white)}
.btn--ink:hover{background:var(--gold)}

/* ---------- Section scaffolding ---------- */
.section{padding:96px 0}
.section--stone{background:var(--stone)}
.section--ink{background:var(--ink);color:var(--white)}
.section--ink h2,.section--ink h3{color:var(--white)}
.section__head{max-width:680px;margin-bottom:52px}
.section__head h2{font-size:clamp(2rem,3.6vw,2.9rem)}
.section__head.center{margin-left:auto;margin-right:auto;text-align:center}

/* ---------- Capability index (divisions) ---------- */
.divisions{display:grid;grid-template-columns:repeat(2,1fr);gap:0;border-top:1px solid var(--stone-line)}
.division{
  padding:36px 30px;border-bottom:1px solid var(--stone-line);
  display:flex;gap:22px;align-items:flex-start;transition:background .3s;position:relative;
}
.division:nth-child(odd){border-right:1px solid var(--stone-line)}
.division:hover{background:var(--stone)}
.division__num{
  font-family:var(--display);font-size:1.5rem;font-weight:700;color:var(--gold);
  line-height:1;min-width:44px;
}
.division__body h3{font-size:1.35rem;margin-bottom:.4rem}
.division__body p{color:var(--grey);font-size:1rem}

/* ---------- Feature / value grid ---------- */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:30px}
.card{
  background:var(--white);border:1px solid var(--stone-line);border-radius:4px;
  padding:34px 30px;transition:transform .3s var(--ease),box-shadow .3s;
}
.card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(26,42,56,.10)}
.card__icon{
  width:52px;height:52px;border-radius:50%;background:var(--ink);color:var(--gold);
  display:flex;align-items:center;justify-content:center;font-family:var(--display);
  font-weight:700;font-size:1.3rem;margin-bottom:20px;
}
.card h3{font-size:1.25rem;margin-bottom:.6rem}
.card p{color:var(--grey);font-size:1rem}

/* ---------- Stat band ---------- */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;text-align:center}
.stat__num{font-family:var(--display);font-size:3.3rem;font-weight:700;color:var(--gold-soft);line-height:1}
.stat__label{font-size:.95rem;color:#C9CDD2;margin-top:.5rem;letter-spacing:.02em}

/* ---------- Process ---------- */
.process{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin-top:20px}
.step{text-align:center;padding:10px}
.step__num{
  width:60px;height:60px;border-radius:50%;background:var(--ink);color:var(--gold);
  font-family:var(--display);font-weight:700;font-size:1.5rem;
  display:flex;align-items:center;justify-content:center;margin:0 auto 16px;
}
.step h4{font-size:1.05rem;margin-bottom:.3rem}
.step p{font-size:.9rem;color:var(--grey)}

/* ---------- Split / CTA ---------- */
.cta-band{background:var(--ink);color:var(--white);text-align:center;padding:80px 0}
.cta-band h2{color:var(--white);font-size:clamp(1.8rem,3.4vw,2.6rem);margin-bottom:1rem}
.cta-band p{color:#C9CDD2;max-width:560px;margin:0 auto 2rem;font-weight:300;font-size:1.1rem}

/* ---------- Page hero (interior) ---------- */
.page-hero{background:var(--ink-deep);color:var(--white);padding:96px 0 76px;position:relative;overflow:hidden}
.page-hero__emblem{position:absolute;right:-120px;top:-60px;width:420px;opacity:.08}
.page-hero h1{color:var(--white);font-size:clamp(2.2rem,4.5vw,3.4rem);position:relative;z-index:2}
.page-hero p{color:#C9CDD2;max-width:600px;margin-top:1rem;font-weight:300;position:relative;z-index:2}
.breadcrumb{font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;color:var(--gold-soft);margin-bottom:1.2rem;position:relative;z-index:2}

/* ---------- Prose / about ---------- */
.prose p{margin-bottom:1.3rem;max-width:720px}
.prose h3{margin:2.2rem 0 .8rem;font-size:1.5rem}
.values-list{list-style:none;margin-top:1rem}
.values-list li{padding:16px 0;border-bottom:1px solid var(--stone-line);display:flex;gap:16px}
.values-list strong{color:var(--ink);min-width:150px;font-family:var(--display);font-weight:600}

/* ---------- Service detail ---------- */
.service-block{
  display:grid;grid-template-columns:80px 1fr;gap:28px;padding:40px 0;
  border-bottom:1px solid var(--stone-line);
}
.service-block__num{font-family:var(--display);font-size:2.6rem;font-weight:700;color:var(--gold);line-height:1}
.service-block h3{font-size:1.6rem;margin-bottom:.7rem}
.service-block ul{list-style:none;margin-top:1rem;columns:2;column-gap:36px}
.service-block li{padding:6px 0 6px 20px;position:relative;color:var(--grey);break-inside:avoid}
.service-block li::before{content:"";position:absolute;left:0;top:14px;width:7px;height:7px;background:var(--gold);border-radius:50%}

/* ---------- Contact ---------- */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:56px}
.field{margin-bottom:20px}
.field label{display:block;font-size:.8rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink);margin-bottom:7px}
.field input,.field textarea,.field select{
  width:100%;padding:13px 15px;border:1px solid var(--stone-line);border-radius:3px;
  font-family:var(--body);font-size:1rem;color:var(--slate);background:var(--white);transition:border .2s;
}
.field input:focus,.field textarea:focus,.field select:focus{outline:none;border-color:var(--gold)}
.contact-info{background:var(--stone);padding:38px 34px;border-radius:4px}
.contact-info h3{font-size:1.4rem;margin-bottom:1.4rem}
.contact-info .row{display:flex;gap:14px;padding:12px 0;border-bottom:1px solid var(--stone-line)}
.contact-info .row:last-child{border-bottom:0}
.contact-info .k{font-weight:600;color:var(--gold);min-width:96px;font-size:.85rem;letter-spacing:.05em;text-transform:uppercase;padding-top:2px}
.contact-info .v{color:var(--slate)}
.form-note{font-size:.85rem;color:var(--grey);margin-top:6px}

/* ---------- Footer ---------- */
.site-footer{background:var(--ink-deep);color:#AEB6BF;padding:70px 0 34px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.4fr;gap:40px;margin-bottom:48px}
.site-footer img{height:64px;margin-bottom:18px}
.site-footer h4{color:var(--white);font-family:var(--body);font-weight:700;font-size:.82rem;letter-spacing:.1em;text-transform:uppercase;margin-bottom:16px}
.site-footer ul{list-style:none}
.site-footer li{margin-bottom:9px}
.site-footer a{font-size:.95rem;transition:color .2s}
.site-footer a:hover{color:var(--gold-soft)}
.footer-about{font-size:.95rem;max-width:300px;line-height:1.7}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);padding-top:24px;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;
  font-size:.82rem;color:#7C858F;
}
.footer-bottom .tag{color:var(--gold-soft);letter-spacing:.15em;font-weight:600}

/* ---------- Reveal animation ---------- */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
.reveal.in{opacity:1;transform:none}

/* ---------- Responsive ---------- */
@media(max-width:900px){
  .nav__links{
    position:fixed;inset:78px 0 auto 0;background:var(--white);flex-direction:column;
    gap:0;padding:12px 0;border-bottom:1px solid var(--stone-line);
    transform:translateY(-120%);transition:transform .35s var(--ease);
  }
  .nav__links.open{transform:none}
  .nav__links a{padding:14px 28px;width:100%}
  .nav__toggle{display:flex}
  .footer-grid{grid-template-columns:1fr 1fr}
  .contact-grid{grid-template-columns:1fr}
}
@media(max-width:720px){
  .divisions,.grid-3,.grid-2,.stats,.process{grid-template-columns:1fr}
  .division:nth-child(odd){border-right:0}
  .process{gap:26px}
  .service-block{grid-template-columns:1fr;gap:10px}
  .service-block ul{columns:1}
  .footer-grid{grid-template-columns:1fr}
  .hero{padding:90px 0 80px}
}
