/* ===================== Design Tokens ===================== */
:root {
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 20px 45px rgba(0,0,0,.16);
  --transition: 200ms ease;

  --accent: #2f6fed;
  --accent-2: #12b886;
  --accent-contrast: #ffffff;
}

:root[data-theme="light"] {
  --bg: #f7f8fb;
  --bg-elevated: #ffffff;
  --bg-muted: #eef1f7;
  --text: #12172b;
  --text-muted: #57607a;
  --border: #e3e7f0;
  --header-bg: rgba(247, 248, 251, .85);
}

:root[data-theme="dark"] {
  --bg: #0b0e17;
  --bg-elevated: #131728;
  --bg-muted: #1a1f34;
  --text: #eef1fb;
  --text-muted: #a4acc7;
  --border: #262c46;
  --header-bg: rgba(11, 14, 23, .85);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--text-muted); }
ul { padding: 0; margin: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff;
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 20px; font-size: .875rem; }

/* ===================== Header ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }

.brand-logo { height: 38px; width: auto; display: block; }
.brand-footer .brand-logo { height: 32px; }
.brand-logo-white { display: none; }
:root[data-theme="dark"] .brand-logo-color { display: none; }
:root[data-theme="dark"] .brand-logo-white { display: block; }
.brand-tagline {
  font-family: var(--font-body); font-weight: 500; font-size: .66rem;
  letter-spacing: .03em; color: var(--text-muted); white-space: nowrap;
}
.brand-footer .brand-tagline { font-size: .64rem; }

.main-nav { min-width: 0; }
.main-nav .nav-menu { display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; }
.main-nav .nav-menu a { position: relative; font-weight: 500; font-size: .875rem; color: var(--text-muted); transition: color var(--transition); white-space: nowrap; }
.main-nav .nav-menu a:hover { color: var(--accent); }
.main-nav .nav-menu a.active { color: var(--accent); font-weight: 600; }
.main-nav .nav-menu > li > a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -22px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.dropdown-menu a.active { color: var(--accent); font-weight: 600; background: var(--bg-muted); }

.has-dropdown { position: relative; }
.has-dropdown > a::after { content: ' ▾'; font-size: .7em; opacity: .7; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; margin-top: 0;
  min-width: 240px; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md); padding: 8px; z-index: 50;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu li + li { margin-top: 2px; }
.dropdown-menu a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); font-size: .88rem; }
.dropdown-menu a:hover { background: var(--bg-muted); }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color var(--transition), transform var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(10deg); }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }

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

/* ===================== Breadcrumbs ===================== */
.breadcrumbs { padding: 14px 0; border-bottom: 1px solid var(--border); }
.breadcrumbs ol { display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--text-muted); }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 8px; opacity: .5; }
.breadcrumbs a:hover { color: var(--accent); }

/* ===================== Hero (full-width slider with overlay caption) ===================== */
.hero-full { position: relative; width: 100%; }

.hero-slider {
  position: relative; width: 100%; overflow: hidden;
  height: min(680px, 88vh); min-height: 520px;
}
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0; margin: 0; opacity: 0;
  transition: opacity 900ms ease;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6,10,20,.82) 0%, rgba(6,10,20,.55) 40%, rgba(6,10,20,.22) 75%, rgba(6,10,20,.1) 100%),
    linear-gradient(0deg, rgba(6,10,20,.35) 0%, transparent 35%);
}

.hero-content {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 100px; padding-bottom: 40px; overflow: hidden;
}
.hero-content .eyebrow {
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.45);
  color: #fff; backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.hero-content h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; max-width: 18ch; }
.hero-content h1 .accent { color: var(--accent); }
.hero-content .hero-lede { color: rgba(255,255,255,.88); font-size: 1.1rem; max-width: 46ch; }
.hero-content .hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-content .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.hero-content .btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,255,255,.08); }
.hero-content .hero-stats { display: flex; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.hero-content .hero-stats div strong { display: block; font-size: 1.6rem; font-family: var(--font-display); color: #fff; }
.hero-content .hero-stats div span { font-size: .82rem; color: rgba(255,255,255,.7); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--bg-elevated); border: 1px solid var(--border); font-size: .8rem; font-weight: 600;
  color: var(--accent); margin-bottom: 20px; width: fit-content;
}

.hero-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.15); color: #fff; font-size: 1.5rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); transition: background var(--transition);
}
.hero-slider-arrow:hover { background: rgba(255,255,255,.3); }
.hero-slider-arrow.prev { left: 20px; }
.hero-slider-arrow.next { right: 20px; }

.hero-slider-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 4; display: flex; gap: 8px;
}
.hero-slider-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255,255,255,.5); cursor: pointer; transition: background var(--transition), transform var(--transition);
}
.hero-slider-dots button.is-active { background: #fff; transform: scale(1.25); }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

@media (max-width: 720px) {
  .hero-slider { height: min(560px, 92vh); }
  .hero-content h1 { max-width: none; }
  .hero-content .hero-stats { gap: 20px; }
}

/* ===================== Sections ===================== */
.section { padding: 88px 0; }
.section-muted { background: var(--bg-muted); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

/* Feature / value cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 32px; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); margin-bottom: 18px;
}
.card h3 { font-size: 1.1rem; }
.card p { margin-bottom: 0; font-size: .93rem; }

/* Services grid (4 cols) */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* About split */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.checklist li { display: flex; gap: 10px; margin-bottom: 12px; font-size: .95rem; }
.checklist li::before { content: '✓'; color: var(--accent-2); font-weight: 800; }

/* Testimonials */
.testimonial-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 32px; height: 100%;
}
.testimonial-card .stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg-muted);
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent);
}
.testimonial-author strong { display: block; font-size: .92rem; }
.testimonial-author span { font-size: .8rem; color: var(--text-muted); }

/* Blog */
.blog-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.blog-card-body { padding: 24px; }
.blog-card time { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.blog-card h3 { font-size: 1.05rem; margin-top: 8px; }
.blog-thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

.thumb-icon {
  aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--tint-from, var(--accent)), var(--tint-to, var(--accent-2)));
  position: relative; overflow: hidden;
}
.thumb-icon::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 55%);
}
.thumb-icon svg { width: 30%; height: 30%; color: #fff; opacity: .95; position: relative; z-index: 1; }

.photo-thumb {
  position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-muted);
}
.photo-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 450ms ease;
}
.card:hover .photo-thumb img,
.blog-card:hover .photo-thumb img,
a.card:hover .photo-thumb img { transform: scale(1.06); }
.photo-badge {
  position: absolute; bottom: 12px; left: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.photo-badge svg { width: 20px; height: 20px; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-radius: var(--radius-lg); padding: 56px; color: #fff; text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.9); }
.cta-banner .btn-primary { background: #fff; color: var(--accent); }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text); font-family: inherit; font-size: .95rem;
  transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--accent); }
textarea.form-control { min-height: 130px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .9rem; }
.alert-success { background: color-mix(in srgb, var(--accent-2) 16%, transparent); color: var(--accent-2); border: 1px solid color-mix(in srgb, var(--accent-2) 40%, transparent); }
.alert-error { background: color-mix(in srgb, #e5484d 16%, transparent); color: #e5484d; border: 1px solid color-mix(in srgb, #e5484d 40%, transparent); }

.info-list { margin-top: 24px; }
.info-list li { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.info-list .card-icon { flex: none; width: 40px; height: 40px; }

/* ===================== Footer ===================== */
.site-footer {
  background: #0a1e42; border-top: 1px solid rgba(255,255,255,.12); padding-top: 64px;
  color: rgba(255,255,255,.85);
}
.site-footer .brand-logo-color { display: none; }
.site-footer .brand-logo-white { display: block; }
.site-footer p { color: rgba(255,255,255,.72); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-col h3 { font-size: .95rem; margin-bottom: 16px; color: #fff; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: rgba(255,255,255,.72); font-size: .9rem; transition: color var(--transition); }
.footer-col ul a:hover { color: #fff; }
.footer-col address { font-style: normal; font-size: .9rem; color: rgba(255,255,255,.72); }
.footer-col address a { color: rgba(255,255,255,.9); }
.footer-col address a:hover { color: #fff; }
.brand-footer { margin-bottom: 14px; }
.brand-footer .brand-tech { color: #fff; }
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.social-links a svg { width: 17px; height: 17px; }
.social-links a:hover { background: #fff; color: #0a1e42; border-color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: rgba(255,255,255,.6); }
.back-to-top { background: none; border: none; color: rgba(255,255,255,.6); cursor: pointer; font-size: .82rem; }
.back-to-top:hover { color: #fff; }

/* ===================== Responsive ===================== */
@media (max-width: 960px) {
  .hero-inner, .split, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .brand-tagline { font-size: .58rem; }
  .main-nav .nav-menu {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg-elevated); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height var(--transition);
  }
  .main-nav .nav-menu.open { max-height: 600px; overflow-y: auto; }
  .main-nav .nav-menu li { border-top: 1px solid var(--border); }
  .main-nav .nav-menu a { display: block; padding: 16px 24px; }
  .dropdown-menu {
    display: block; position: static; margin: 0; border: none; box-shadow: none;
    border-radius: 0; padding: 0; background: var(--bg-muted);
  }
  .dropdown-menu a { padding: 12px 24px 12px 36px; font-size: .85rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 380px) {
  .brand-tagline { display: none; }
}
