/* ═══════════════════════════════════════════════════════════
   dekreddy.com — shared stylesheet v2
   Fonts loaded per-page via Google Fonts link tag
════════════════════════════════════════════════════════════ */

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

:root {
  --navy:   #07101f;
  --navy2:  #0d1b2e;
  --navy3:  #142238;
  --card:   #111e30;
  --gold:   #c9a84c;
  --gold2:  #e8c76a;
  --teal:   #2dd4bf;
  --white:  #f0f4ff;
  --muted:  #7a8fa8;
  --border: rgba(201,168,76,0.15);
  --radius: 12px;
  --nav-h:  72px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }

/* ── Labels / titles / dividers ── */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.section-label::before { content: ''; display: block; width: 20px; height: 2px; background: var(--gold); }
.section-title { font-size: clamp(26px, 3.5vw, 38px); font-weight: 700; line-height: 1.15; color: var(--white); margin-bottom: 10px; }
.section-sub   { font-size: 15px; color: var(--muted); max-width: 540px; margin-bottom: 36px; line-height: 1.7; }
.gold-divider  { width: 40px; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); border-radius: 2px; margin-bottom: 28px; }

/* ── Buttons ── */
.btn-primary {
  background: var(--gold); color: var(--navy);
  padding: 13px 26px; border-radius: 9px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px;
  transition: background .2s, transform .15s, box-shadow .2s;
  display: inline-flex; align-items: center; gap: 7px;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,.25); }

.btn-secondary {
  background: transparent; border: 1px solid var(--border); color: var(--white);
  padding: 13px 26px; border-radius: 9px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px;
  transition: border-color .2s, transform .15s, background .2s;
}
.btn-secondary:hover { border-color: var(--gold); transform: translateY(-2px); background: rgba(201,168,76,.05); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--gold);
  transition: color .2s, gap .2s;
}
.btn-ghost:hover { color: var(--gold2); gap: 10px; }
.btn-ghost svg { width: 16px; height: 16px; stroke: currentColor; transition: transform .2s; }
.btn-ghost:hover svg { transform: translateX(3px); }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

/* ═══════════════════════════════════════════════════════════
   NAV
════════════════════════════════════════════════════════════ */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(7,16,31,.94);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
#main-nav.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,.4); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); max-width: 1100px; margin: 0 auto; padding: 0 32px;
}
.nav-logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 22px; flex-shrink: 0; }
.nav-logo span { color: var(--gold); }

.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 7px 13px; border-radius: 7px;
  transition: color .2s, background .2s;
}
.nav-links a:hover        { color: var(--white); background: rgba(255,255,255,.04); }
.nav-links a.active       { color: var(--white); background: rgba(201,168,76,.1); }
.nav-links .nav-cta       {
  background: var(--gold); color: var(--navy) !important;
  padding: 8px 18px; border-radius: 7px;
  font-weight: 600; font-size: 13px;
  transition: background .2s;
}
.nav-links .nav-cta:hover { background: var(--gold2); }

/* Hamburger button */
.nav-hamburger {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; width: 42px; height: 42px;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-hamburger span { display: block; width: 18px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .2s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(7,16,31,.98); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border); z-index: 999; padding: 12px 0 20px;
}
.nav-drawer.open { display: block; }
.nav-drawer ul { list-style: none; }
.nav-drawer ul li a {
  display: block; padding: 14px 32px; font-size: 16px; font-weight: 500;
  color: var(--muted); border-left: 2px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}
.nav-drawer ul li a:hover,
.nav-drawer ul li a.active { color: var(--white); background: rgba(201,168,76,.05); border-left-color: var(--gold); }
.drawer-cta { margin: 12px 32px 0; }
.drawer-cta a {
  display: block; text-align: center; background: var(--gold); color: var(--navy);
  padding: 14px; border-radius: 9px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px;
}

/* ═══════════════════════════════════════════════════════════
   PAGE HERO (inner pages)
════════════════════════════════════════════════════════════ */
.page-hero {
  padding: 140px 0 80px;
  background:
    radial-gradient(ellipse 50% 70% at 85% 40%, rgba(201,168,76,.08) 0%, transparent 65%),
    radial-gradient(ellipse 35% 50% at 10% 60%, rgba(45,212,191,.04) 0%, transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy2) 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(201,168,76,.08) 1px, transparent 1px);
  background-size: 36px 36px; pointer-events: none;
}
.page-hero-inner { position: relative; }
.page-hero h1,
.page-hero-inner h1 { font-size: clamp(32px, 4vw, 52px); font-weight: 700; line-height: 1.1; margin-bottom: 16px; }
.page-hero h1 em,
.page-hero-inner h1 em { font-style: normal; background: linear-gradient(90deg, var(--gold), var(--gold2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-hero > .container > p,
.page-hero-inner p { font-size: 17px; color: var(--muted); max-width: 580px; line-height: 1.75; margin-bottom: 32px; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--gold); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold2); }
.breadcrumb svg { width: 14px; height: 14px; stroke: var(--muted); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
footer { background: var(--navy2); border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.footer-top {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.footer-logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; }
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 13px; color: var(--muted); margin-top: 4px; }
.footer-links { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { font-size: 13px; color: var(--muted); padding: 5px 10px; border-radius: 6px; transition: color .2s, background .2s; }
.footer-links a:hover { color: var(--white); background: rgba(255,255,255,.05); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; color: var(--muted); }
.footer-social a { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); transition: color .2s; }
.footer-social a:hover { color: var(--gold); }
.footer-social svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ═══════════════════════════════════════════════════════════
   SHARED COMPONENTS
════════════════════════════════════════════════════════════ */

/* Highlight cards (About) */
.highlight-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; border-left: 3px solid var(--gold);
  display: flex; gap: 16px; align-items: flex-start;
  transition: transform .2s;
}
.highlight-card:hover { transform: translateX(4px); }
.highlight-icon { width: 38px; height: 38px; border-radius: 9px; background: rgba(201,168,76,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.highlight-icon svg { stroke: var(--gold); width: 18px; height: 18px; }
.highlight-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.highlight-card p  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Service cards */
.service-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-5px); border-color: rgba(201,168,76,.4); box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.service-icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(201,168,76,.1); border: 1px solid rgba(201,168,76,.18); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.service-icon svg { stroke: var(--gold); }
.service-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.service-card p  { font-size: 13px; color: var(--muted); line-height: 1.65; }
.service-list { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.service-list li { font-size: 12px; color: var(--muted); display: flex; align-items: flex-start; gap: 8px; }
.service-list li::before { content: '→'; color: var(--gold); flex-shrink: 0; margin-top: 1px; }

/* Stack tags */
.stack-group { display: flex; flex-direction: column; }
.stack-group h4 { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.stack-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-tag {
  background: var(--card); border: 1px solid var(--border); padding: 7px 13px;
  border-radius: 7px; font-size: 12px; font-weight: 500; color: var(--white);
  transition: border-color .2s, background .2s, transform .15s;
}
.stack-tag:hover { border-color: var(--gold); background: rgba(201,168,76,.06); transform: translateY(-1px); }
.stack-tag.ai { border-color: rgba(45,212,191,.4); color: var(--teal); }
.stack-tag.ai:hover { background: rgba(45,212,191,.06); }

/* Testimonial cards */
.testimonial-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform .25s, border-color .25s;
}
.testimonial-card:hover { transform: translateY(-4px); border-color: rgba(201,168,76,.3); }
.author-avatar-wrap { position: relative; margin-bottom: 18px; }
.author-avatar { width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; display: block; background: var(--navy3); }
.author-avatar-ring { position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(201,168,76,.25); pointer-events: none; }
.quote-icon { margin-bottom: 12px; }
.quote-icon svg { stroke: var(--gold); opacity: .4; width: 28px; height: 28px; }
.testimonial-text { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 18px; font-style: italic; }
.author-name { font-size: 15px; font-weight: 600; }
.author-role { font-size: 12px; color: var(--gold); margin-top: 3px; }

/* Insight cards */
.insight-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .25s, border-color .25s; display: flex; flex-direction: column; }
.insight-card:hover { transform: translateY(-5px); border-color: rgba(201,168,76,.4); }
.insight-thumb { height: 110px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy3), var(--navy2)); }
.insight-thumb svg { stroke: var(--gold); opacity: .6; width: 48px; height: 48px; }
.insight-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.insight-tag { display: inline-flex; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); background: rgba(201,168,76,.1); padding: 3px 9px; border-radius: 100px; margin-bottom: 10px; align-self: flex-start; }
.insight-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.insight-card p  { font-size: 13px; color: var(--muted); line-height: 1.65; flex: 1; }
.insight-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.insight-date   { font-size: 11px; color: var(--muted); }
.insight-read   { font-size: 12px; font-weight: 600; color: var(--gold); transition: color .2s; }
.insight-read:hover { color: var(--gold2); }

/* Contact items */
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(201,168,76,.1); border: 1px solid rgba(201,168,76,.18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { stroke: var(--gold); width: 20px; height: 20px; }
.contact-item-label { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.contact-item-value { font-size: 14px; font-weight: 500; }
.contact-item-value a { transition: color .2s; }
.contact-item-value a:hover { color: var(--gold); }

/* Form */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-group:last-of-type { margin-bottom: 20px; }
.form-group label,
.form-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.form-group input, .form-group textarea, .form-group select,
.form-input {
  background: var(--card); border: 1px solid var(--border); border-radius: 9px;
  padding: 14px 16px; color: var(--white);
  font-family: 'Inter', sans-serif; font-size: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus,
.form-input:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.08);
}
.form-group textarea,
.form-textarea { resize: vertical; min-height: 140px; }
.form-group select option,
.form-input option { background: var(--navy2); }
.form-submit {
  background: var(--gold); color: var(--navy); border: none;
  padding: 15px 30px; border-radius: 9px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px;
  cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s;
  align-self: flex-start;
}
.form-submit:hover { background: var(--gold2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,.25); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy3), #0f1e34);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 64px 0;
}
.cta-band-inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta-band-inner h2 { font-size: clamp(22px, 2.5vw, 30px); font-weight: 700; margin-bottom: 8px; }
.cta-band-inner p  { font-size: 15px; color: var(--muted); max-width: 520px; }
.cta-band-actions  { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .section { padding: 60px 0; }
  .nav-links    { display: none; }
  .nav-hamburger { display: flex; }
  .footer-top   { grid-template-columns: 1fr; gap: 16px; }
  .footer-links { justify-content: flex-start; }
  .page-hero    { padding: 110px 0 60px; }
  .cta-band-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .nav-inner  { padding: 0 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .page-hero  { padding: 100px 0 48px; }
}
