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

:root {
  /* === BRAND === */
  --primary: #f2b637;
  --primary-hover: #d4991f;
  --primary-glow: rgba(242,182,55,0.18);
  --accent: #1490d7;
  --dark: #1e1e27;

  /* === LIGHT THEME === */
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --green: #22c55e;
  --green-dim: rgba(34,197,94,0.10);
  --amber: #f59e0b;
  --amber-dim: rgba(245,158,11,0.10);
  --blue: #3b82f6;
  --blue-dim: rgba(59,130,246,0.10);
  --purple: #a855f7;
  --purple-dim: rgba(168,85,247,0.10);
  --cyan: #06b6d4;
  --cyan-dim: rgba(6,182,212,0.10);
  --text: #1e1e27;
  --text-secondary: #5a596a;
  --text-dim: #9a99a5;
  --text-light: #c2c1ca;
  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.15);
  --shadow: 0 6px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --max-width: 1140px;
  --font: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #0d6ebd; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px; display: flex; align-items: center;
  background: var(--dark);
  transition: background 0.3s ease;
}
.nav-inner { max-width: var(--max-width); margin: 0 auto; width: 100%; display: flex; align-items: center; padding: 0 24px; }
.nav-logo { font-size: 1.1rem; font-weight: 700; color: #fff; letter-spacing: 1.5px; text-transform: uppercase; }
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; gap: 32px; margin-left: auto; list-style: none; align-items: center; }
.nav-links a { color: var(--text-light); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.3px; transition: color var(--transition); }
.nav-links a:hover { color: #fff; }
/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; right: 0; padding-top: 8px;
  z-index: 200;
}
.dropdown-menu-inner {
  background: var(--dark); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius);
  min-width: 240px; padding: 8px 0; box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.dropdown-menu a {
  display: block; padding: 8px 18px; font-size: 0.75rem; color: var(--text-light);
  transition: all 0.2s ease; white-space: nowrap;
}
.dropdown-menu a:hover { background: rgba(255,255,255,0.06); color: var(--primary); }
.nav-dropdown:hover .dropdown-menu { display: block; }
.nav-dropdown.open .dropdown-menu { display: block; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; margin-left: auto; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; transition: transform var(--transition), opacity 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 BANNER === */
.hero-banner {
  margin-top: 64px; padding-top: 20px; width: 100%; overflow: hidden;
  background: #f4f4f4;
}
.hero-banner img {
  width: 100%; max-height: 560px; object-fit: cover; object-position: center;
  display: block;
}
@media (min-width: 1024px) {
  .hero-banner img { max-height: none; object-fit: contain; }
}

/* === FEATURES BAR === */
.features-bar { background: var(--bg); padding: 32px 0; }
.features-grid {
  display: flex; justify-content: center; gap: 20px;
  max-width: var(--max-width); margin: 0 auto;
}
.feature-box {
  flex: 1; max-width: 200px; text-align: center; text-decoration: none; color: var(--text);
  padding: 24px 16px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: all var(--transition);
}
.feature-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(242,182,55,0.08);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; color: var(--primary); transition: all var(--transition);
}
.feature-box:hover .feature-icon { background: var(--primary); color: #fff; }
.feature-box h3 { font-size: 0.8rem; font-weight: 600; margin-bottom: 3px; }
.feature-box p { font-size: 0.7rem; color: var(--text-dim); line-height: 1.4; }

/* === INTRO LAYOUT === */
.intro-layout {
  display: flex; gap: 48px; align-items: center;
}
.intro-text { flex: 1; }
.intro-text h2 {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; margin-bottom: 16px;
  color: var(--dark);
}
.intro-text p {
  color: var(--text-secondary); font-size: 0.9rem; line-height: 1.8; margin-bottom: 16px;
}
.intro-image { flex: 0 0 400px; }

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 24px;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all var(--transition);
  font-family: var(--font); letter-spacing: 0.3px; text-transform: uppercase;
}
.btn svg { transition: transform var(--transition); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 24px var(--primary-glow); }
.btn-outline { background: transparent; color: var(--text-secondary); border-color: rgba(0,0,0,0.12); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* === SECTIONS === */
.section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 44px; }
.section-header h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; margin-bottom: 8px; letter-spacing: -0.3px; color: var(--dark); }
.section-header p { color: var(--text-secondary); font-size: 0.9rem; }
.section-alt { background: var(--bg-alt); }
.section-divider { width: 40px; height: 3px; background: var(--primary); border-radius: 2px; margin: 0 auto 20px; }

/* === SERVICE CARDS === */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 24px; transition: all var(--transition); position: relative; overflow: hidden;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-icon {
  margin-bottom: 14px; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(242,182,55,0.08); display: flex; align-items: center; justify-content: center;
  color: var(--primary); transition: all var(--transition);
}
.service-card:hover .service-icon { background: var(--primary); color: #fff; }
.service-card h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; color: var(--dark); }
.service-card p { color: var(--text-secondary); font-size: 0.8rem; line-height: 1.7; }

/* === GALLERY === */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-item {
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  aspect-ratio: 1; border: 1px solid var(--border);
  transition: all var(--transition); position: relative;
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.gallery-item:hover .caption { opacity: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .caption {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  padding: 10px; background: linear-gradient(transparent 50%, rgba(0,0,0,0.7));
  font-size: 0.65rem; color: rgba(255,255,255,0.9); font-weight: 500;
  opacity: 0; transition: opacity var(--transition);
}

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 16px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-size: 0.85rem; font-family: var(--font);
  margin-bottom: 10px; transition: all var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.contact-form textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* === FOOTER === */
.footer { background: var(--dark); padding: 56px 0 28px; color: #fff; }
.footer a { color: var(--text-light); }
.footer a:hover { color: var(--primary); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px;
  padding-bottom: 36px; margin-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer .nav-logo { color: #fff; }
.footer-bottom { text-align: center; }
.footer-bottom p { color: var(--text-light); font-size: 0.65rem; }

/* === STATS BAR === */
.stats-bar { background: var(--dark); color: #fff; padding: 48px 24px; }
.stats-bar-inner { display: grid; grid-template-columns: repeat(3, 1fr); max-width: var(--max-width); margin: 0 auto; }
.stat-item { text-align: center; }
.stat-num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--primary); letter-spacing: -1px; }
.stat-label { font-size: 0.7rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px; }

/* === BACK TO TOP === */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--dark); border: none;
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: all var(--transition); box-shadow: var(--shadow);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--primary); }

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--dark); padding: 20px 24px; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); max-height: 80vh; overflow-y: auto; }
  .nav-links.open .dropdown-menu { position: static; padding-top: 0; margin-top: 8px; }
  .nav-links.open .dropdown-menu-inner { box-shadow: none; border: none; background: rgba(255,255,255,0.04); border-radius: 8px; }
  .nav-links.open .dropdown-menu a { padding: 6px 16px; font-size: 0.7rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .features-bar { padding: 16px 0; }
  .features-grid { gap: 8px; }
  .feature-box { max-width: none; padding: 14px 6px; }
  .feature-box h3 { font-size: 0.65rem; }
  .feature-box p { display: none; }
  .feature-icon { width: 36px; height: 36px; margin-bottom: 6px; }
  .feature-icon svg { width: 18px; height: 18px; }
  .intro-layout { flex-direction: column; text-align: center; gap: 32px; }
  .intro-image { flex: none; width: 100%; max-width: 400px; order: -1; }
  .hero-buttons { justify-content: center; }
  .checklist { text-align: left; display: inline-block; columns: 1 !important; }
  .stats-bar-inner { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .features-bar { padding: 12px 0; }
  .features-grid { gap: 6px; }
  .feature-box { padding: 10px 4px; border-radius: 10px; }
  .feature-box h3 { font-size: 0.55rem; }
  .feature-icon { width: 30px; height: 30px; margin-bottom: 4px; }
  .feature-icon svg { width: 15px; height: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
