/* =============================================
   CodeCosuins — Design System
   ============================================= */

:root {
  --navy: #0f172a;
  --navy-2: #16213e;
  --navy-soft: #1e293b;
  --gold: #d97706;
  --gold-light: #f59e0b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-alt-2: #f1f5f9;
  --text: #1e293b;
  --text-soft: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

@media (max-width: 768px) {
  section { padding: 64px 0; }
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { color: var(--text-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(217, 119, 6, 0.08);
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head p { margin-top: 14px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { background: #b45309; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--navy);
}
.btn-outline:hover { border-color: var(--navy); transform: translateY(-2px); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
}

.brand .mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-weight: 800;
  font-size: 1.05rem;
}

.brand span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-soft);
  position: relative;
  padding: 6px 0;
  transition: color .15s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--navy); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 0; }
  .nav-actions .btn { display: none; }
  .nav-links .mobile-cta { display: inline-flex; margin-top: 10px; }
  .nav-toggle { display: flex; }
}

@media (min-width: 901px) {
  .mobile-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 110px;
  background: var(--bg-alt);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(217,119,6,0.12), transparent 70%);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { margin-bottom: 20px; }
.hero-lead { font-size: 1.15rem; max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats .stat-num { font-size: 1.7rem; font-weight: 800; color: var(--navy); }
.hero-stats .stat-label { font-size: 0.85rem; color: var(--text-muted); }

.hero-visual {
  position: relative;
}

.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 80px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(217,119,6,0.25), transparent 70%);
}
.page-hero h1 { color: #fff; position: relative; z-index: 1; }
.page-hero p { color: #cbd5e1; max-width: 600px; margin: 16px auto 0; position: relative; z-index: 1; }
.breadcrumb { color: #94a3b8; font-size: 0.9rem; margin-bottom: 14px; position: relative; z-index: 1; }
.breadcrumb a { color: #cbd5e1; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(217,119,6,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
}
.icon-box svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.card-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

/* ---------- Sections bg ---------- */
.bg-alt { background: var(--bg-alt); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy p { color: #cbd5e1; }

/* ---------- Process / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step { position: relative; padding-top: 8px; }
.step-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 8px;
}
.step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step p { font-size: 0.92rem; }

/* ---------- Logos / trust strip ---------- */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-strip span { color: var(--text-muted); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; }

/* ---------- Stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
@media (max-width: 760px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }
.stats-band .num { font-size: 2.3rem; font-weight: 800; color: var(--gold-light); }
.stats-band .label { color: #cbd5e1; font-size: 0.9rem; margin-top: 4px; }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
}
.team-card .role { color: var(--gold); font-weight: 600; font-size: 0.88rem; margin-bottom: 10px; }
.team-card .social { display: flex; gap: 12px; justify-content: center; margin-top: 14px; }
.team-card .social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-alt-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  transition: background .15s ease, color .15s ease;
}
.team-card .social a:hover { background: var(--navy); color: #fff; }
.team-card .social svg { width: 16px; height: 16px; }

/* ---------- Values / about ---------- */
.value-item { display: flex; gap: 18px; align-items: flex-start; }
.value-item .icon-box { flex-shrink: 0; margin-bottom: 0; }
.value-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.value-item p { font-size: 0.92rem; }

.about-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.timeline { border-left: 2px solid var(--border); padding-left: 28px; display: flex; flex-direction: column; gap: 32px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-item .year { color: var(--gold); font-weight: 700; font-size: 0.85rem; margin-bottom: 4px; }

/* ---------- Pricing / service detail ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag-list li {
  background: var(--bg-alt-2);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.96rem;
  color: var(--text-soft);
}
.check-list svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold); margin-top: 1px; }

.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.service-detail:nth-child(even) .service-text { order: 2; }
@media (max-width: 760px) { .service-detail { grid-template-columns: 1fr; } .service-detail .service-text { order: 0 !important; } }
.service-num { font-size: 0.85rem; font-weight: 800; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 10px; }

.service-visual {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-visual svg { width: 100%; max-width: 280px; color: var(--navy); }

/* ---------- Testimonials ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.stars { color: var(--gold-light); margin-bottom: 14px; letter-spacing: 2px; }
.testimonial p.quote { font-size: 1rem; color: var(--text); margin-bottom: 20px; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-author .avatar { width: 44px; height: 44px; font-size: 0.95rem; margin: 0; }
.t-author .name { font-weight: 700; font-size: 0.92rem; color: var(--navy); }
.t-author .role { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  gap: 16px;
}
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .2s ease; color: var(--gold); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding-top: 14px; font-size: 0.94rem; }
.faq-item.open .faq-a { max-height: 300px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(217,119,6,0.25), transparent 70%);
}
.cta-band h2 { color: #fff; position: relative; z-index: 1; }
.cta-band p { color: #cbd5e1; max-width: 520px; margin: 14px auto 30px; position: relative; z-index: 1; }
.cta-band .hero-actions { justify-content: center; position: relative; z-index: 1; }
@media (max-width: 640px) { .cta-band { padding: 44px 24px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
}
.contact-info-card h3 { color: #fff; margin-bottom: 6px; }
.contact-info-card p { color: #cbd5e1; margin-bottom: 28px; font-size: 0.94rem; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-row .icon-box { background: rgba(217,119,6,0.18); margin-bottom: 0; flex-shrink: 0; width: 44px; height: 44px; }
.contact-row .icon-box svg { width: 20px; height: 20px; }
.contact-row .label { font-size: 0.8rem; color: #94a3b8; }
.contact-row .value { font-weight: 600; color: #fff; font-size: 0.95rem; }
.social-row { display: flex; gap: 12px; margin-top: 30px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .15s ease;
}
.social-row a:hover { background: var(--gold); }
.social-row svg { width: 17px; height: 17px; }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-alt);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 14px; text-align: center; }
.form-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 380px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 14px; }
.footer-brand span { color: var(--gold-light); }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 18px; }
.footer-col a { display: block; color: #94a3b8; font-size: 0.92rem; margin-bottom: 12px; transition: color .15s ease; }
.footer-col a:hover { color: var(--gold-light); }
.footer-desc { font-size: 0.92rem; max-width: 300px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--gold); }
.footer-social svg { width: 16px; height: 16px; color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  font-size: 0.85rem;
  color: #64748b;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: var(--gold-light); }
.footer-bottom-links { display: flex; gap: 24px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.gap-10 { gap: 10px; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 999;
  box-shadow: var(--shadow-md);
  border: none;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }
