/* ============================================================
   DINMAR LABS — Main Stylesheet
   Bright & Clinical Design System
   ============================================================ */

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

/* ---------- CSS Variables ---------- */
:root {
  --primary:        #0077CC;
  --primary-light:  #1A9EE5;
  --primary-dark:   #005FA3;
  --accent:         #00BCD4;
  --accent-light:   #E0F7FA;
  --white:          #FFFFFF;
  --bg-light:       #F4FAFF;
  --bg-panel:       #E8F4FD;
  --bg-panel2:      #EEF8FF;
  --text-dark:      #0D2137;
  --text-mid:       #2E4A62;
  --text-light:     #627F96;
  --border:         #C5DFF5;
  --border-light:   #DDF0FB;
  --success:        #16A34A;
  --error:          #DC2626;
  --shadow-sm:      0 2px 8px rgba(0,119,204,0.08);
  --shadow-md:      0 6px 24px rgba(0,119,204,0.12);
  --shadow-lg:      0 16px 48px rgba(0,119,204,0.14);
  --radius:         10px;
  --radius-lg:      18px;
  --transition:     0.25s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--text-mid); font-size: 1rem; line-height: 1.75; }

/* ---------- Layout Helpers ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 80px 0;
}
.section-light { background: var(--bg-light); }
.section-panel { background: var(--bg-panel); }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid #B2EBF2;
  border-radius: 50px;
  padding: 4px 14px;
  margin-bottom: 14px;
}
.section-title {
  margin-bottom: 14px;
}
.section-intro {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 680px;
  margin: 0 auto 50px;
}
.divider {
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  margin: 14px auto 20px;
}
.divider-left { margin-left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-white {
  background: white;
  color: var(--primary);
  border-color: white;
}
.btn-white:hover {
  background: var(--bg-panel);
  color: var(--primary-dark);
}
.btn-sm { font-size: 0.85rem; padding: 9px 20px; }

/* ============================
   NAVIGATION
   ============================ */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 12px rgba(0,119,204,0.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-logo img { height: 44px; width: auto; }
.nav-logo { display: flex; align-items: center; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--bg-panel);
}
.nav-links a.nav-cta {
  background: var(--primary);
  color: white;
  padding: 8px 18px;
  margin-left: 8px;
}
.nav-links a.nav-cta:hover {
  background: var(--primary-dark);
  color: white;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================
   HERO SECTION
   ============================ */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #E8F4FD 0%, #F0F9FF 40%, #E0F7FA 100%);
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.18;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,119,204,0.08) 0%, rgba(0,188,212,0.04) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text .section-label { margin-bottom: 18px; }
.hero-text h1 {
  margin-bottom: 20px;
  color: var(--text-dark);
}
.hero-text h1 span { color: var(--primary); }
.hero-text p {
  font-size: 1.15rem;
  color: var(--text-mid);
  margin-bottom: 34px;
  max-width: 500px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.hero-stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label { font-size: 0.78rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.08em; }

.hero-image-wrap {
  position: relative;
}
.hero-image-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}
.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}
.hero-badge-icon { font-size: 1.8rem; }
.hero-badge-text strong { display: block; font-size: 0.9rem; color: var(--text-dark); }
.hero-badge-text span { font-size: 0.75rem; color: var(--text-light); }

/* ============================
   CARDS
   ============================ */
.card-grid {
  display: grid;
  gap: 24px;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}
.card-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-panel);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { font-size: 0.92rem; }

/* ============================
   PAGE HERO (interior pages)
   ============================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
  color: white;
  padding: 80px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { color: white; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { opacity: 0.5; }

/* ============================
   ABOUT PAGE
   ============================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }

.value-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}
.value-icon { font-size: 1.5rem; flex-shrink: 0; }
.value-item h4 { margin-bottom: 4px; font-size: 1rem; }
.value-item p { font-size: 0.88rem; margin: 0; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.team-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.team-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center top;
}
.team-card-body { padding: 20px; }
.team-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.team-card .title { font-size: 0.82rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.team-card p { font-size: 0.87rem; }

/* Partners */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}
.partner-logo {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 36px;
  font-weight: 700;
  color: var(--text-mid);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  min-width: 200px;
}
.partner-logo span { display: block; font-size: 0.75rem; color: var(--text-light); font-weight: 400; margin-top: 2px; }

/* Timeline */
.timeline { position: relative; padding: 20px 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: translateX(-50%);
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 24px;
  width: 14px; height: 14px;
  background: var(--primary);
  border: 3px solid white;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 3px var(--border);
}
.timeline-left { text-align: right; padding-right: 30px; }
.timeline-right { padding-left: 30px; }
.timeline-year { font-size: 0.8rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.timeline-item h4 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline-item p { font-size: 0.88rem; }

/* ============================
   TECHNOLOGY PAGE
   ============================ */
.tech-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}
.tech-split.reverse { direction: rtl; }
.tech-split.reverse > * { direction: ltr; }
.tech-split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }

.stat-highlight {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin: 8px 8px 8px 0;
}
.stat-highlight .num { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-highlight .label { font-size: 0.82rem; color: var(--text-light); }

.tech-process {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.process-step {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.process-step:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); transform: translateY(-3px); }
.step-number {
  width: 36px; height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.process-step h4 { margin-bottom: 8px; font-size: 1rem; }
.process-step p { font-size: 0.85rem; }

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.comparison-table thead { background: linear-gradient(90deg, var(--primary-dark), var(--primary)); }
.comparison-table th { color: white; padding: 16px 20px; font-size: 0.88rem; text-align: left; font-weight: 600; }
.comparison-table td { padding: 14px 20px; font-size: 0.88rem; border-top: 1px solid var(--border-light); }
.comparison-table tbody tr:nth-child(even) { background: var(--bg-light); }
.comparison-table tbody tr:hover { background: var(--bg-panel); }
.td-ai { color: var(--primary); font-weight: 600; }
.td-human { color: var(--text-light); }
.badge-better {
  background: #D1FAE5;
  color: #065F46;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ============================
   BLOG
   ============================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--primary-light); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-img-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--text-light); margin-bottom: 10px; flex-wrap: wrap; }
.blog-tag {
  background: var(--bg-panel);
  color: var(--primary);
  border-radius: 20px;
  padding: 2px 10px;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.blog-card h3 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.4; }
.blog-card p { font-size: 0.87rem; flex: 1; margin-bottom: 18px; }
.blog-card .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.blog-card .read-more:hover { gap: 8px; }

/* Year filter tabs */
.year-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.year-tab {
  padding: 8px 20px;
  border-radius: 50px;
  border: 2px solid var(--border);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  background: white;
  color: var(--text-mid);
  transition: all var(--transition);
}
.year-tab.active, .year-tab:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

/* Blog Post Single */
.blog-post-content {
  max-width: 800px;
  margin: 0 auto;
}
.blog-post-content h2 { margin: 40px 0 16px; font-size: 1.6rem; }
.blog-post-content h3 { margin: 30px 0 12px; font-size: 1.25rem; }
.blog-post-content p { margin-bottom: 20px; font-size: 1.05rem; line-height: 1.8; }
.blog-post-content ul, .blog-post-content ol { margin: 0 0 20px 24px; }
.blog-post-content li { margin-bottom: 8px; font-size: 1.05rem; color: var(--text-mid); line-height: 1.7; }
.blog-post-content img { border-radius: var(--radius); box-shadow: var(--shadow-md); margin: 30px 0; width: 100%; }

.post-header { margin-bottom: 40px; }
.post-meta { display: flex; gap: 16px; align-items: center; font-size: 0.85rem; color: var(--text-light); margin-bottom: 18px; flex-wrap: wrap; }
.post-featured-img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); margin: 32px 0; }
.post-featured-img-placeholder { width: 100%; height: 360px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); margin: 32px 0; display: flex; align-items: center; justify-content: center; font-size: 5rem; }

.pullquote {
  border-left: 4px solid var(--primary);
  background: var(--bg-panel);
  padding: 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0;
}
.pullquote p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-dark);
  margin: 0;
}
.pullquote cite { display: block; font-size: 0.85rem; color: var(--text-light); font-style: normal; margin-top: 10px; }

/* ============================
   CONTACT PAGE
   ============================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: flex-start;
}
.contact-info-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}
.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.contact-info-item:last-child { border: none; margin: 0; padding: 0; }
.contact-info-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-info-item h4 { font-size: 0.88rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.contact-info-item p { font-size: 0.95rem; color: var(--text-dark); margin: 0; }

/* Form */
.form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}
label span { color: var(--error); }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,119,204,0.12);
  background: white;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230077CC' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.8rem; color: var(--text-light); margin-top: 5px; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 24px;
}
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }

/* ============================
   CTA BAND
   ============================ */
.cta-band {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--accent) 100%);
  color: white;
  padding: 70px 0;
  text-align: center;
}
.cta-band h2 { color: white; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-band .btn-white { margin: 0 8px; }

/* ============================
   FOOTER
   ============================ */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-white { filter: brightness(0) invert(1) opacity(0.9); height: 40px; }
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-top: 14px;
  max-width: 280px;
  line-height: 1.7;
}
.footer-col h4 { color: white; font-size: 0.9rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: white; }
.footer-address { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.8; margin-top: 10px; }
.footer-address strong { color: rgba(255,255,255,0.9); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: white; }

/* ============================
   UTILITIES & ANIMATIONS
   ============================ */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.highlight-box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 500;
  cursor: pointer;
  border: none;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-image-wrap { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .card-grid-3 { grid-template-columns: 1fr 1fr; }
}

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

  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--border); padding: 12px 20px 20px; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .nav-toggle { display: flex; }
  .nav-inner { position: relative; }

  .hero { min-height: auto; }
  .hero-content { padding: 56px 1.5rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }

  .about-grid, .contact-layout, .tech-split, .tech-split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .tech-split.reverse { direction: ltr; }
  .blog-grid { grid-template-columns: 1fr; }
  .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .timeline::before { left: 18px; }
  .timeline-item { grid-template-columns: 1fr; padding-left: 50px; gap: 8px; }
  .timeline-left { text-align: left; padding-right: 0; }
  .timeline-right { padding-left: 0; }
  .timeline-item::before { left: 12px; }
  .contact-info-box { position: static; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .year-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
}
