/* style.css — IPW Construction Dark Theme */

/* ===== FONTS ===== */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@200,300,400,500,600,700&f[]=satoshi@300,400,500,700&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Clash Display', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
}

/* ===== DARK MODE (DEFAULT) ===== */
:root, [data-theme="dark"] {
  --color-bg:             #0a0e1a;
  --color-surface:        #0f1525;
  --color-surface-2:      #141c30;
  --color-surface-offset: #0d1220;
  --color-surface-offset-2: #1a2340;
  --color-surface-dynamic: #1e2a4a;
  --color-divider:        #1e2a4a;
  --color-border:         #2a3655;
  --color-text:           #f0f0f0;
  --color-text-muted:     #8a94a8;
  --color-text-faint:     #4a5568;
  --color-text-inverse:   #0a0e1a;
  --color-primary:        #c8102e;
  --color-primary-hover:  #e01535;
  --color-primary-active: #a00d24;
  --color-primary-highlight: #2a1520;
  --color-warning:        #f59e0b;
  --color-error:          #ef4444;
  --color-success:        #10b981;
  --color-blue:           #3b82f6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
  --color-bg:             #f5f5f7;
  --color-surface:        #ffffff;
  --color-surface-2:      #fafafa;
  --color-surface-offset: #eef0f4;
  --color-surface-offset-2: #e8eaf0;
  --color-surface-dynamic: #dde0e8;
  --color-divider:        #d1d5db;
  --color-border:         #c5cad5;
  --color-text:           #0a0e1a;
  --color-text-muted:     #555e70;
  --color-text-faint:     #9ca3af;
  --color-text-inverse:   #f5f5f7;
  --color-primary:        #c8102e;
  --color-primary-hover:  #a00d24;
  --color-primary-active: #8a0a1e;
  --color-primary-highlight: #fce4e8;
  --color-warning:        #d97706;
  --color-error:          #dc2626;
  --color-success:        #059669;
  --color-blue:           #2563eb;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
}

/* ===== GLOBAL STYLES ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary-hover);
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-4) 0;
  background: #ffffff;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled {
  background: #ffffff;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}
[data-theme="dark"] .site-header {
  background: rgba(255,255,255,0.95);
}
[data-theme="dark"] .site-header.scrolled {
  background: rgba(255,255,255,0.95);
}
[data-theme="dark"] .site-header .nav-links a {
  color: #0a0e1a;
}
[data-theme="dark"] .site-header .nav-links a:hover {
  color: var(--color-primary);
}
[data-theme="dark"] .site-header .hamburger span {
  background: #0a0e1a;
}
[data-theme="light"] .site-header .nav-links a {
  color: #0a0e1a;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo img {
  height: 40px;
  width: auto;
  background: transparent;
}
.nav-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: #0a0e1a;
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: var(--space-1);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-interactive);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a:hover {
  color: var(--color-primary);
}

/* Theme toggle */
.theme-toggle {
  color: #555;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.theme-toggle:hover {
  color: #0a0e1a;
  background: rgba(0,0,0,0.05);
}
[data-theme-toggle] {
  color: #555;
}
[data-theme-toggle]:hover {
  color: #0a0e1a;
}

/* Mobile nav */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .hamburger span {
    background: #0a0e1a;
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a {
    font-size: var(--text-xl);
    color: #0a0e1a;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 14, 26, 0.7) 0%,
    rgba(10, 14, 26, 0.85) 50%,
    rgba(10, 14, 26, 0.95) 100%
  );
}
[data-theme="light"] .hero-bg::after {
  background: linear-gradient(
    to bottom,
    rgba(245, 245, 247, 0.6) 0%,
    rgba(245, 245, 247, 0.8) 50%,
    rgba(245, 245, 247, 0.95) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-8);
}
.hero-title {
  font-size: var(--text-hero);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}
.hero-tagline {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  font-weight: 400;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: none;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
  box-shadow: 0 4px 20px rgba(200, 16, 46, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  text-align: center;
  padding-block: var(--space-8);
}
.stat-item .stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-item .stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

/* ===== SECTION HEADINGS ===== */
.section-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.section-title {
  font-size: var(--text-2xl);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 600px;
}

/* ===== CARDS ===== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive),
              border-color var(--transition-interactive);
}
.card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-lg);
}
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-body {
  padding: var(--space-6);
}
.card-title {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.card-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}
.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out);
}
.service-card:hover .service-card-bg {
  transform: scale(1.05);
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,14,26,0.9) 0%, rgba(10,14,26,0.3) 60%, transparent 100%);
  z-index: 1;
}
.service-card-content {
  position: relative;
  z-index: 2;
  padding: var(--space-6);
  color: #fff;
}
.service-card-content h3 {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: #fff;
}
.service-card-content p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
}

/* ===== CLIENT LOGOS ===== */
.clients-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.clients-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
}
.client-logo {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.6);
  opacity: 0.5;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
[data-theme="light"] .client-logo {
  filter: grayscale(100%) brightness(0.8);
  opacity: 0.4;
}
.client-logo:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.project-card:hover img {
  transform: scale(1.05);
}
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,14,26,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-5);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-card:hover .project-card-overlay {
  opacity: 1;
}
.project-card-overlay h3 {
  color: #fff;
  font-size: var(--text-base);
  font-family: var(--font-display);
}
.project-card-overlay span {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-1);
}

/* ===== BLOG CARDS ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-surface-dynamic);
}
.blog-card-body {
  padding: var(--space-5);
}
.blog-card-meta {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.blog-card-category {
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-card-title {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.blog-card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #8a0a1e 100%);
  text-align: center;
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}
.cta-section h2 {
  color: #fff;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.cta-section p {
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-8);
  margin-inline: auto;
}
.cta-section .btn {
  background: #fff;
  color: var(--color-primary);
  border: none;
}
.cta-section .btn:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.footer-logo {
  /* In dark mode, brighten the logo for contrast on dark footer */
}
[data-theme="dark"] .footer-logo {
  filter: brightness(0) invert(1);
}
.footer-brand p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  line-height: 1.7;
}
.footer-col h4 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: var(--space-2);
}
.footer-col a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  transition: color var(--transition-interactive);
}
.footer-col a:hover {
  color: var(--color-primary);
}
.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom p,
.footer-bottom a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
  opacity: 1;
}

/* ===== PAGE HERO (non-home) ===== */
.page-hero {
  padding-top: calc(var(--space-32) + var(--space-8));
  padding-bottom: var(--space-12);
  text-align: center;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
}
.page-hero .section-label {
  margin-bottom: var(--space-3);
}
.page-hero h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.page-hero p {
  color: var(--color-text-muted);
  margin-inline: auto;
}

/* ===== FILTER BUTTONS ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-8);
}
.filter-btn {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-interactive);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ===== MODAL / LIGHTBOX ===== */
/* Breadcrumb */
.breadcrumb {
  padding: var(--space-4) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--color-text);
  text-decoration: underline;
}
.breadcrumb span {
  color: var(--color-text-muted);
}

/* Category cards — larger */
.category-card {
  min-height: 320px;
}
.category-card img {
  min-height: 320px;
}

/* Photo grid cards */
.photo-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.photo-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.photo-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}
.modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  color: var(--color-text-muted);
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-surface-dynamic);
}
.modal-close:hover {
  color: var(--color-text);
}
.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-3);
  padding: var(--space-6);
}
.modal-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.modal-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #fff;
  background: rgba(255,255,255,0.15);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  transition: background 0.2s;
  z-index: 3001;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  background: rgba(255,255,255,0.15);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  transition: background 0.2s;
  z-index: 3001;
}
.lightbox-nav:hover {
  background: rgba(255,255,255,0.3);
}
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-family: var(--font-body);
}
.modal-header {
  padding: var(--space-6);
  padding-bottom: 0;
}
.modal-header h2 {
  font-size: var(--text-xl);
  font-family: var(--font-display);
}
.modal-header p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.form-group {
  margin-bottom: var(--space-5);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.15);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ===== CONTACT INFO ===== */
.contact-info-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin-bottom: var(--space-6);
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary-highlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}
.contact-info-text h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.contact-info-text p,
.contact-info-text a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ===== MAP ===== */
.map-container {
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-divider);
  margin-top: var(--space-8);
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-divider);
}
.timeline-item {
  position: relative;
  margin-bottom: var(--space-8);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) - 5px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-bg);
}
.timeline-year {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.timeline-text {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ===== LICENSES GRID ===== */
.licenses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--space-6);
  justify-items: center;
}
.license-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.license-logo:hover {
  opacity: 1;
}

/* ===== VALUES GRID ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}
.value-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  text-align: center;
}
.value-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  color: var(--color-primary);
}
.value-card h3 {
  font-size: var(--text-base);
  font-family: var(--font-display);
  margin-bottom: var(--space-3);
}
.value-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== BLOG DETAIL ===== */
.blog-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: var(--space-12);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.blog-detail-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.blog-detail-content {
  background: var(--color-bg);
  max-width: 800px;
  width: 90%;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-12);
  position: relative;
}
.blog-detail-content h1 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}
.blog-detail-content .blog-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.blog-detail-content .blog-body {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text-muted);
}
.blog-detail-content .blog-body p {
  margin-bottom: var(--space-4);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
}
.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  color: var(--color-text-faint);
}
.empty-state h3 {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.empty-state p {
  color: var(--color-text-faint);
  margin-inline: auto;
}

/* ===== SERVICE DETAIL SECTIONS ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.service-detail.reverse {
  direction: rtl;
}
.service-detail.reverse > * {
  direction: ltr;
}
@media (max-width: 768px) {
  .service-detail {
    grid-template-columns: 1fr;
  }
  .service-detail.reverse {
    direction: ltr;
  }
}
.service-detail-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.service-detail-content h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}
.service-detail-content p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}
.service-features {
  list-style: none;
}
.service-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.service-features li svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ===== ABOUT HERO CONTENT ===== */
.about-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (max-width: 768px) {
  .about-content-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mt-8 { margin-top: var(--space-8); }
