/* ============================================================
   BOSTONCLOUD.AI — Global Stylesheet
   Palette: Navy · Steel Teal · Bright Teal · Amber Gold · Burnt Orange · Warm Cream
   Font: Lexend (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #1D3557;
  --navy-deep:   #111D2C;
  --navy-mid:    #243d63;
  --teal-mid:    #2E7A8C;
  --teal-bright: #3A9FA8;
  --teal-pale:   rgba(58,159,168,0.10);
  --gold:        #D4922A;
  --gold-pale:   rgba(212,146,42,0.10);
  --orange:      #D95E2B;
  --orange-pale: rgba(217,94,43,0.10);
  --cream:       #E8E0D5;
  --cream-light: #F5F1EC;
  --white:       #FFFFFF;
  --body:        #2C3E50;
  --muted:       #6B7A8D;
  --rule:        #D5CBBD;
  --rule-light:  #EAE4DC;
  --font:        'Lexend', system-ui, sans-serif;
  --max-w:       1240px;
  --pad:         0 6%;
  --ease:        cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--cream-light); color: var(--body); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { color: var(--navy); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2rem,4vw,3.4rem); }
h2 { font-size: clamp(1.7rem,3vw,2.6rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { color: var(--body); line-height: 1.75; }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: var(--pad); }
.section    { padding: 90px 6%; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

/* ── EYEBROW ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-mid); margin-bottom: 1rem;
}
.eyebrow::before { content:''; width:22px; height:2px; background:var(--teal-mid); border-radius:2px; display:block; }
.eyebrow.light { color: var(--teal-bright); }
.eyebrow.light::before { background: var(--teal-bright); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.82rem 1.9rem; border-radius: 5px;
  font-family: var(--font); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: all 0.25s var(--ease);
  border: 2px solid transparent; letter-spacing: 0.02em;
}
.btn-primary   { background:var(--navy);   color:#fff; border-color:var(--navy); }
.btn-primary:hover { background:var(--navy-mid); transform:translateY(-2px); box-shadow:0 8px 24px rgba(29,53,87,0.25); }
.btn-orange    { background:var(--orange);  color:#fff; border-color:var(--orange); }
.btn-orange:hover { background:#c04e20; transform:translateY(-2px); box-shadow:0 8px 24px rgba(217,94,43,0.3); }
.btn-gold      { background:var(--gold);    color:#fff; border-color:var(--gold); }
.btn-gold:hover { background:#c07c1e; transform:translateY(-2px); }
.btn-outline   { background:transparent; color:var(--navy); border-color:var(--navy); }
.btn-outline:hover { background:var(--navy); color:#fff; transform:translateY(-2px); }
.btn-outline-light { background:transparent; color:#fff; border-color:rgba(255,255,255,0.45); }
.btn-outline-light:hover { background:rgba(255,255,255,0.1); border-color:rgba(255,255,255,0.8); transform:translateY(-2px); }
.btn svg { width:16px; height:16px; transition:transform 0.2s; }
.btn:hover svg { transform:translateX(3px); }

/* ── BADGE ── */
.badge { display:inline-block; font-size:0.7rem; font-weight:600; letter-spacing:0.07em; text-transform:uppercase; padding:0.28rem 0.75rem; border-radius:3px; }
.badge-teal   { color:var(--teal-mid); background:var(--teal-pale); border:1px solid rgba(46,122,140,0.25); }
.badge-navy   { color:var(--navy); background:rgba(29,53,87,0.07); border:1px solid rgba(29,53,87,0.18); }
.badge-gold   { color:var(--gold); background:var(--gold-pale); border:1px solid rgba(212,146,42,0.25); }
.badge-orange { color:var(--orange); background:var(--orange-pale); border:1px solid rgba(217,94,43,0.25); }
.badge-dark   { color:rgba(255,255,255,0.75); background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.15); }

/* ── NAV ── */
.nav {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  background:var(--navy);
  border-bottom:1px solid rgba(255,255,255,0.07);
  height:66px; display:flex; align-items:center;
}
.nav-inner {
  max-width:var(--max-w); margin:0 auto; padding:0 6%;
  width:100%; display:flex; align-items:center; justify-content:space-between;
}
.nav-logo { font-size:1.35rem; font-weight:700; color:#fff; letter-spacing:-0.01em; display:flex; align-items:center; gap:9px; }
.nav-logo-mark { width:36px; height:auto; flex-shrink:0; }
.nav-logo-cloud { color:var(--orange); }
.nav-logo-sup   { font-size:0.55rem; color:var(--orange); margin-left:1px; vertical-align:super; }
.nav-links { display:flex; align-items:center; gap:2.2rem; list-style:none; }
.nav-links a { font-size:0.84rem; font-weight:400; color:rgba(255,255,255,0.65); transition:color 0.2s; position:relative; }
.nav-links a::after { content:''; position:absolute; bottom:-4px; left:0; right:0; height:2px; background:var(--orange); transform:scaleX(0); transition:transform 0.2s var(--ease); border-radius:1px; }
.nav-links a:hover, .nav-links a.active { color:#fff; }
.nav-links a:hover::after, .nav-links a.active::after { transform:scaleX(1); }
.nav-cta { font-size:0.82rem; font-weight:600; background:var(--gold); color:#fff; padding:0.55rem 1.4rem; border-radius:4px; transition:all 0.2s; white-space:nowrap; }
.nav-cta:hover { background:#c07c1e; transform:translateY(-1px); }
.nav-toggle { display:none; flex-direction:column; gap:5px; cursor:pointer; padding:4px; background:none; border:none; }
.nav-toggle span { display:block; width:24px; height:2px; background:#fff; border-radius:2px; transition:all 0.3s; }
.nav-links-cta { display:none; }

/* ── TRUST BAR ── */
.trust-bar { background:var(--white); border-bottom:1px solid var(--rule-light); padding:10px 6%; }
.trust-bar-inner { width:100%; display:flex; flex-direction:column; align-items:center; gap:8px; }
.trust-bar-row { display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:nowrap; width:100%; }
.trust-label { font-size:0.65rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--muted); flex-shrink:0; margin-right:2px; }
.trust-divider { width:1px; height:18px; background:var(--rule); margin:0 14px; flex-shrink:0; }
.trust-badge-tech { font-size:0.68rem; font-weight:600; color:var(--teal-mid); background:rgba(46,122,140,0.09); border:0.5px solid rgba(46,122,140,0.28); padding:4px 8px; border-radius:4px; transition:all 0.2s; display:inline-flex; align-items:center; justify-content:center; gap:5px; flex-shrink:0; }
.trust-badge-tech:hover { background:rgba(46,122,140,0.15); }
.trust-badge-ai { font-size:0.68rem; font-weight:600; color:var(--gold); background:rgba(212,146,42,0.09); border:0.5px solid rgba(212,146,42,0.28); padding:4px 8px; border-radius:4px; transition:all 0.2s; display:inline-flex; align-items:center; justify-content:center; gap:5px; flex-shrink:0; }
.trust-badge-ai:hover { background:rgba(212,146,42,0.15); }
.trust-badge-comp { font-size:0.68rem; font-weight:600; color:var(--navy); background:rgba(29,53,87,0.07); border:0.5px solid rgba(29,53,87,0.2); padding:4px 8px; border-radius:4px; transition:all 0.2s; flex-shrink:0; }
.trust-badge-comp:hover { background:rgba(29,53,87,0.12); }
.trust-logo { width:15px; height:15px; object-fit:contain; display:block; flex-shrink:0; }

/* ── PAGE HERO (inner pages) ── */
.page-hero { background:var(--navy); padding:70px 6% 50px; position:relative; overflow:hidden; min-height:360px; }
.page-hero::before { content:''; position:absolute; top:-100px; right:-100px; width:400px; height:400px; border:1px solid rgba(58,159,168,0.12); border-radius:50%; }
.page-hero::after  { content:''; position:absolute; top:-50px; right:-50px; width:250px; height:250px; border:1px solid rgba(58,159,168,0.08); border-radius:50%; }
.page-hero-inner { max-width:var(--max-w); margin:0 auto; position:relative; z-index:1; }
.page-hero h1 { color:#fff; margin-bottom:1rem; }
.page-hero p  { color:rgba(255,255,255,0.65); max-width:560px; font-size:1.05rem; }

/* ── METRICS STRIP ── */
.metrics-strip { background:var(--navy); border-top:3px solid var(--orange); padding:50px 6%; }
.metrics-grid { max-width:var(--max-w); margin:0 auto; display:grid; grid-template-columns:repeat(5,1fr); }
.metric-item { text-align:center; padding:0 1rem; border-right:1px solid rgba(255,255,255,0.08); }
.metric-item:last-child { border-right:none; }
.metric-num { font-size:2.2rem; font-weight:700; color:var(--orange); display:block; line-height:1; margin-bottom:0.5rem; }
.metric-label { font-size:0.72rem; font-weight:400; color:rgba(255,255,255,0.45); text-transform:uppercase; letter-spacing:0.07em; line-height:1.4; }

/* ── CTA BANNER ── */
.cta-banner { background:var(--navy); border-top:3px solid var(--orange); padding:80px 6%; text-align:center; }
.cta-banner h2 { color:#fff; margin-bottom:1rem; }
.cta-banner p  { color:rgba(255,255,255,0.6); margin-bottom:2rem; font-size:1.05rem; max-width:520px; margin-left:auto; margin-right:auto; }
.cta-actions   { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 3px solid var(--navy);
  padding: 16px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 24px rgba(29,53,87,0.12);
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
}
.cookie-banner.cookie-visible { transform: translateY(0); }
.cookie-text { font-size:0.85rem; color:var(--body); margin:0; flex:1; min-width:200px; line-height:1.55; }
.cookie-actions { display:flex; gap:8px; flex-wrap:wrap; flex-shrink:0; }
.cookie-btn { padding:0.5rem 1.1rem; border-radius:4px; font-size:0.8rem; font-weight:600; cursor:pointer; font-family:var(--font); transition:all 0.18s; white-space:nowrap; }
.cookie-btn-required { background:transparent; border:1.5px solid var(--rule); color:var(--body); }
.cookie-btn-required:hover { border-color:var(--navy); color:var(--navy); background:var(--cream-light); }
.cookie-btn-all { background:var(--navy); color:#fff; border:1.5px solid var(--navy); }
.cookie-btn-all:hover { background:var(--teal-mid); border-color:var(--teal-mid); }
.cookie-btn-decline { background:transparent; border:1.5px solid var(--rule); color:var(--muted); }
.cookie-btn-decline:hover { background:var(--cream-light); }

/* ── FOOTER ── */
.footer { background:var(--navy-deep); padding:60px 6% 28px; }
.footer-inner { max-width:var(--max-w); margin:0 auto; }
.footer-top { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:3rem; padding-bottom:2.5rem; border-bottom:1px solid rgba(255,255,255,0.07); margin-bottom:1.8rem; }
.footer-logo { font-size:1.25rem; font-weight:700; color:rgba(255,255,255,0.5); display:block; margin-bottom:1rem; }
.footer-logo span { color:var(--orange); }
.footer-brand p { font-size:0.86rem; color:rgba(255,255,255,0.35); line-height:1.7; max-width:270px; }
.footer-col h5 { font-family:var(--font); font-size:0.7rem; font-weight:600; letter-spacing:0.12em; text-transform:uppercase; color:rgba(255,255,255,0.35); margin-bottom:1.1rem; }
.footer-col ul { list-style:none; }
.footer-col ul li { margin-bottom:0.65rem; }
.footer-col ul li a { font-size:0.86rem; color:rgba(255,255,255,0.5); transition:color 0.2s; }
.footer-col ul li a:hover { color:var(--teal-bright); }
.footer-bottom { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; }
.footer-bottom p { font-size:0.76rem; color:rgba(255,255,255,0.25); }
.footer-bottom-links { display:flex; gap:1.5rem; }
.footer-bottom-links a { font-size:0.76rem; color:rgba(255,255,255,0.3); transition:color 0.2s; }
.footer-bottom-links a:hover { color:var(--teal-bright); }

/* ── CARDS ── */
.card { background:var(--white); border:1px solid var(--rule-light); border-radius:10px; padding:2rem; transition:all 0.3s var(--ease); }
.card:hover { transform:translateY(-4px); box-shadow:0 12px 36px rgba(29,53,87,0.10); border-color:var(--rule); }

/* ── SERVICE CARDS ── */
.svc-card { background:var(--white); border:1px solid var(--rule-light); border-radius:10px; padding:1.8rem 1.5rem; position:relative; overflow:hidden; transition:all 0.3s var(--ease); }
.svc-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; transition:height 0.3s; }
.svc-card:hover { transform:translateY(-5px); box-shadow:0 14px 40px rgba(29,53,87,0.10); }
.svc-card:hover::before { height:4px; }
.svc-card.c-teal::before   { background:var(--teal-bright); }
.svc-card.c-gold::before   { background:var(--gold); }
.svc-card.c-orange::before { background:var(--orange); }
.svc-card.c-teal2::before  { background:var(--teal-mid); }
.svc-card.c-navy::before   { background:var(--navy); }
.svc-icon { width:46px; height:46px; border-radius:10px; display:flex; align-items:center; justify-content:center; margin-bottom:1.1rem; }
.svc-icon svg { width:22px; height:22px; fill:none; stroke-width:1.5; }
.svc-card h3 { font-size:1.05rem; margin-bottom:0.6rem; }
.svc-card p { font-size:0.87rem; margin-bottom:1.1rem; }
.svc-link { font-size:0.82rem; font-weight:500; color:var(--teal-mid); display:inline-flex; align-items:center; gap:4px; transition:gap 0.2s; }
.svc-card:hover .svc-link { gap:8px; }

/* ── WHY CARDS ── */
.why-card { background:var(--white); border:1px solid var(--rule-light); border-radius:10px; padding:2.2rem 1.8rem; text-align:center; }
.why-icon { width:52px; height:52px; border-radius:50%; margin:0 auto 1.2rem; display:flex; align-items:center; justify-content:center; }
.why-icon svg { width:24px; height:24px; fill:none; stroke-width:1.5; }
.why-card h3 { margin-bottom:0.75rem; }
.why-card p { font-size:0.88rem; }

/* ── PROCESS STEPS ── */
.process-step { display:flex; gap:2rem; padding:2rem 0; border-bottom:1px solid var(--rule-light); }
.process-step:last-child { border-bottom:none; }
.process-num { font-size:3rem; font-weight:700; color:var(--cream); line-height:1; flex-shrink:0; width:60px; }
.process-content h3 { margin-bottom:0.6rem; }
.process-content p { font-size:0.9rem; }

/* ── CASE STUDY ── */
.cs-card { background:var(--white); border:1px solid var(--rule-light); border-radius:12px; overflow:hidden; transition:all 0.3s var(--ease); }
.cs-card:hover { transform:translateY(-4px); box-shadow:0 14px 40px rgba(29,53,87,0.10); }
.cs-card-top { padding:2rem; }
.cs-tag-row { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:1rem; }
.cs-card h3 { font-size:1.2rem; margin-bottom:0.75rem; }
.cs-card p { font-size:0.9rem; margin-bottom:1.2rem; }
.cs-result { display:flex; align-items:baseline; gap:8px; background:var(--cream-light); border-radius:6px; padding:0.75rem 1rem; margin-bottom:1.2rem; border-left:3px solid var(--orange); }
.cs-result-num { font-size:1.8rem; font-weight:700; color:var(--orange); line-height:1; }
.cs-result-label { font-size:0.82rem; color:var(--muted); }
.cs-card-foot { background:var(--cream-light); border-top:1px solid var(--rule-light); padding:1rem 2rem; display:flex; align-items:center; justify-content:space-between; }
.cs-client-label { font-size:0.72rem; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; color:var(--muted); }

/* ── FORM ── */
.form-group { display:flex; flex-direction:column; gap:0.4rem; }
.form-label { font-size:0.72rem; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; color:var(--muted); }
.form-input, .form-select, .form-textarea {
  width:100%; padding:0.82rem 1rem;
  border:1.5px solid var(--rule); border-radius:5px;
  font-family:var(--font); font-size:0.92rem; color:var(--navy);
  background:var(--cream-light); transition:all 0.2s; outline:none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color:var(--teal-mid); background:var(--white); box-shadow:0 0 0 3px rgba(46,122,140,0.1); }
.form-input::placeholder, .form-textarea::placeholder { color:#bcc4ce; }
.form-textarea { resize:vertical; min-height:120px; }
.form-submit {
  background:var(--navy); color:#fff; border:none; border-radius:5px;
  padding:0.95rem 2rem; font-size:0.92rem; font-family:var(--font);
  font-weight:600; cursor:pointer; transition:all 0.25s var(--ease);
  display:inline-flex; align-items:center; gap:8px;
}
.form-submit:hover { background:var(--navy-mid); transform:translateY(-2px); box-shadow:0 8px 24px rgba(29,53,87,0.25); }
.submit-dot { width:22px; height:22px; background:var(--orange); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; color:#fff; flex-shrink:0; }

/* ── FAQ ── */
.faq-item { border-bottom:1px solid var(--rule-light); }
.faq-q { display:flex; justify-content:space-between; align-items:center; gap:1rem; cursor:pointer; padding:1.4rem 0; }
.faq-q h4 { font-size:1rem; color:var(--navy); }
.faq-toggle { width:28px; height:28px; border-radius:50%; background:var(--cream); border:1px solid var(--rule); display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:all 0.25s; font-size:1.1rem; color:var(--teal-mid); line-height:1; }
.faq-item.open .faq-toggle { background:var(--teal-mid); color:#fff; transform:rotate(45deg); }
.faq-a { font-size:0.93rem; overflow:hidden; max-height:0; transition:max-height 0.35s ease, padding 0.3s ease; color:var(--body); }
.faq-item.open .faq-a { max-height:300px; padding-bottom:1.2rem; }

/* ── ANIMATIONS ── */
.fade-up { opacity:0; transform:translateY(28px); transition:opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.fade-up.visible { opacity:1; transform:translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width:1024px) {
  .metrics-grid { grid-template-columns:repeat(3,1fr); gap:1rem; }
  .footer-top { grid-template-columns:1fr 1fr; gap:2rem; }
}
@media (max-width:768px) {
  .nav-links, .nav-cta { display:none; }
  .nav-links.open { display:flex; flex-direction:column; position:fixed; top:66px; left:0; right:0; background:var(--navy); padding:1.5rem 6%; gap:1.2rem; border-bottom:1px solid rgba(255,255,255,0.1); z-index:999; }
  .nav-toggle { display:flex; }
  .nav-links-cta { display:block; padding-top:0.25rem; }
  .nav-links-cta a { display:block; background:var(--gold); color:#fff; padding:0.75rem 1.4rem; border-radius:4px; font-weight:600; font-size:0.88rem; text-align:center; }
  .nav-links-cta a::after { display:none !important; }
  .metrics-grid { grid-template-columns:1fr 1fr; }
  .footer-top { grid-template-columns:1fr; }
  .section { padding:65px 5%; }
}
@media (max-width:480px) {
  .metrics-grid { grid-template-columns:1fr 1fr; }
  .cta-actions { flex-direction:column; align-items:center; }
}
