/* ======================================================
   نور الهدى للتبريد والتكييف - Main Stylesheet
   Brand: #0A2540 / #40E0D0 / #FFFFFF / #F5F7FA
   ====================================================== */

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

/* ===== Variables ===== */
:root {
  --primary: #0A2540;
  --primary-dark: #061a30;
  --primary-light: #143a63;
  --secondary: #40E0D0;
  --secondary-dark: #2bbfb1;
  --secondary-light: #6aebde;
  --white: #FFFFFF;
  --light-gray: #F5F7FA;
  --gray: #6b7785;
  --dark-gray: #2d3748;
  --border: #e2e8f0;
  --success: #16a34a;
  --whatsapp: #25D366;
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 16px 48px rgba(10, 37, 64, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Cairo', 'Poppins', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark-gray);
  background: var(--white);
  overflow-x: hidden;
}
html[lang="en"] body { font-family: 'Poppins', 'Cairo', system-ui, sans-serif; }

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 { line-height: 1.2; color: var(--primary); font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.2; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; }

/* ===== Language switching ===== */
[data-i18n-en],
[data-i18n-en].block { display: none; }
html[lang="en"] [data-i18n-ar],
html[lang="en"] [data-i18n-ar].block { display: none; }
html[lang="en"] [data-i18n-en] { display: inline; }
html[lang="en"] [data-i18n-en].block { display: block; }
html[lang="en"] body { text-align: left; }

/* ===== Container ===== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 50px; font-weight: 600;
  transition: all var(--transition); white-space: nowrap;
  font-size: 1rem;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--secondary); color: var(--primary); }
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-outline-primary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: var(--white); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }

/* ===== Top Bar ===== */
.topbar {
  background: var(--primary-dark); color: var(--white);
  font-size: 0.875rem; padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar a { color: var(--secondary-light); }
.topbar a:hover { color: var(--white); }
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.lang-toggle {
  background: var(--secondary); color: var(--primary); padding: 4px 14px;
  border-radius: 20px; font-weight: 700; font-size: 0.85rem;
}
.lang-toggle:hover { background: var(--white); }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; min-width: 0; }
.logo-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center; color: var(--secondary);
  flex-shrink: 0; overflow: hidden;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.15);
}
.logo-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-icon svg { width: 30px; height: 30px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; gap: 4px; min-width: 0; }
.logo-name { font-weight: 800; color: var(--primary); font-size: 1.1rem; line-height: 1.2; white-space: nowrap; }
.logo-slogan { font-size: 0.78rem; color: var(--gray); line-height: 1.2; margin-top: 2px; white-space: nowrap; }

/* ===== Nav ===== */
.nav { display: flex; align-items: center; gap: 4px; }
.nav-list { display: flex; gap: 4px; align-items: center; }
.nav-item { position: relative; }
.nav-link {
  display: block; padding: 10px 14px; font-weight: 600; color: var(--primary);
  border-radius: 8px; font-size: 0.95rem;
}
.nav-link:hover, .nav-link.active { color: var(--secondary-dark); background: var(--light-gray); }
.has-dropdown > .nav-link::after {
  content: '▾'; margin-inline-start: 6px; font-size: 0.7rem; opacity: 0.6;
}
.dropdown {
  position: absolute; top: 100%; inset-inline-start: 0;
  background: var(--white); box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md); padding: 10px; min-width: 280px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all var(--transition); z-index: 50;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: var(--primary); font-weight: 500; font-size: 0.9rem;
}
.dropdown a:hover { background: var(--light-gray); color: var(--secondary-dark); }
.cta-nav { background: var(--secondary); color: var(--primary); padding: 10px 18px; border-radius: 50px; font-weight: 700; }
.cta-nav:hover { background: var(--primary); color: var(--white); }

/* Mobile menu */
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; background: var(--light-gray); align-items: center; justify-content: center; }
.menu-toggle svg { width: 24px; height: 24px; color: var(--primary); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 92vh; padding: 100px 0 80px;
  color: var(--white); overflow: hidden; display: flex; align-items: center;
  background: var(--primary-dark);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg .slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.2s ease;
  transform: scale(1.05);
}
.hero-bg .slide.active { opacity: 1; transform: scale(1); transition: opacity 1.2s ease, transform 8s ease-out; }
.hero-bg .slide img,
.hero-bg .slide video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(120deg, rgba(10,37,64,0.85) 0%, rgba(10,37,64,0.55) 60%, rgba(10,37,64,0.75) 100%),
    radial-gradient(circle at 80% 20%, rgba(64, 224, 208, 0.18), transparent 55%);
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 30px; max-width: 800px; }
.hero h1 { color: var(--white); margin-bottom: 20px; text-shadow: 0 2px 14px rgba(0,0,0,0.35); }
.hero h1 span { color: var(--secondary); }
.hero-tag {
  display: inline-block; background: rgba(64, 224, 208, 0.18); color: var(--secondary);
  padding: 6px 16px; border-radius: 30px; font-size: 0.9rem; font-weight: 600;
  margin-bottom: 18px; border: 1px solid rgba(64, 224, 208, 0.4);
  backdrop-filter: blur(6px);
}
.hero p { font-size: 1.1rem; opacity: 0.95; margin-bottom: 30px; max-width: 640px; text-shadow: 0 1px 8px rgba(0,0,0,0.3); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
  display: flex; gap: 36px; margin-top: 50px; padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.18); flex-wrap: wrap;
}
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--secondary); line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.stat-label { font-size: 0.9rem; opacity: 0.9; margin-top: 4px; }

.hero-dots {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; padding: 0;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: all var(--transition);
}
.hero-dots button.active { background: var(--secondary); width: 32px; border-radius: 5px; }
.hero-dots button:hover { background: rgba(255,255,255,0.7); }

/* ===== Section ===== */
.section { padding: 80px 0; }
.section-light { background: var(--light-gray); }
.section-dark { background: var(--primary); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-tag {
  display: inline-block; color: var(--secondary-dark); font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 10px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p { color: var(--gray); font-size: 1.05rem; }
.section-dark .section-header p { color: rgba(255,255,255,0.85); }

/* ===== Cards ===== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--white); border-radius: var(--radius-md); padding: 28px;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  border: 1px solid var(--border); height: 100%;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--secondary); }

.service-card { text-align: center; }
.service-icon {
  width: 70px; height: 70px; border-radius: 18px; margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); transition: all var(--transition);
}
.service-icon svg { width: 36px; height: 36px; }
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--secondary); transform: scale(1.05);
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--gray); font-size: 0.95rem; flex: 1; }
.service-card .more {
  margin-top: 18px; color: var(--secondary-dark); font-weight: 700; font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.service-card .more::after { content: '←'; transition: transform var(--transition); }
html[lang="en"] .service-card .more::after { content: '→'; }
.service-card:hover .more::after { transform: translateX(-4px); }
html[lang="en"] .service-card:hover .more::after { transform: translateX(4px); }

/* ===== Feature row ===== */
.feature {
  display: flex; gap: 18px; align-items: flex-start; padding: 20px;
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--border); transition: all var(--transition);
}
.feature:hover { border-color: var(--secondary); transform: translateX(-4px); }
html[lang="en"] .feature:hover { transform: translateX(4px); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--gray); font-size: 0.9rem; margin: 0; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-image {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3; box-shadow: var(--shadow-lg);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-content h2 { margin-bottom: 16px; }
.about-content p { margin-bottom: 18px; color: var(--gray); }
.about-list { display: grid; gap: 12px; margin: 24px 0; }
.about-list li {
  padding-inline-start: 32px; position: relative; font-weight: 500;
  color: var(--dark-gray);
}
.about-list li::before {
  content: '✓'; position: absolute; inset-inline-start: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; background: var(--secondary);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.75rem;
}

/* ===== Government CTA ===== */
.gov-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white); border-radius: var(--radius-lg); padding: 50px;
  display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: center;
  position: relative; overflow: hidden;
}
.gov-cta::before {
  content: ''; position: absolute; top: -50%; inset-inline-end: -10%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 224, 208, 0.18), transparent 70%);
}
.gov-cta h2 { color: var(--white); margin-bottom: 12px; position: relative; }
.gov-cta p { opacity: 0.92; margin-bottom: 20px; position: relative; }
.gov-cta-actions { display: flex; flex-direction: column; gap: 12px; position: relative; }

/* ===== Steps ===== */
.steps { counter-reset: step; }
.step { position: relative; padding-inline-start: 70px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-inline-start: 0; top: 0;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--secondary); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem;
}

/* ===== Portfolio ===== */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.portfolio-item {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer; box-shadow: var(--shadow-sm);
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,37,64,0.92), transparent 60%);
  display: flex; align-items: flex-end; padding: 20px; color: var(--white);
  opacity: 0; transition: opacity var(--transition);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h4 { color: var(--white); font-size: 1.1rem; margin: 0; }

/* ===== Forms ===== */
.form-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; margin-bottom: 8px; font-weight: 600;
  color: var(--primary); font-size: 0.95rem;
}
.form-group label .req { color: #e53e3e; }
.form-control {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border);
  border-radius: 10px; background: var(--white); transition: all var(--transition);
  font-size: 0.95rem;
}
.form-control:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(64,224,208,0.15); }
textarea.form-control { min-height: 130px; resize: vertical; }
.form-success {
  display: none; padding: 14px; background: #d1fae5; color: #065f46;
  border-radius: 10px; margin-bottom: 16px; font-weight: 600;
}
.form-success.show { display: block; }

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white); padding: 80px 0 60px; text-align: center;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(64,224,208,0.15), transparent 60%);
}
.page-header h1 { color: var(--white); position: relative; }
.page-header p { opacity: 0.9; max-width: 700px; margin: 14px auto 0; position: relative; }
.breadcrumb {
  display: inline-flex; gap: 8px; align-items: center; margin-top: 18px;
  font-size: 0.9rem; opacity: 0.85; position: relative;
}
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb span { opacity: 0.6; }

/* ===== Service detail ===== */
.service-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: flex-start; }
.service-detail-main h2 { margin-top: 32px; margin-bottom: 14px; }
.service-detail-main h2:first-child { margin-top: 0; }
.service-detail-main p { margin-bottom: 14px; color: var(--dark-gray); }
.service-detail-main ul { display: grid; gap: 10px; margin: 16px 0; }
.service-detail-main ul li {
  padding-inline-start: 30px; position: relative;
}
.service-detail-main ul li::before {
  content: '✓'; position: absolute; inset-inline-start: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--secondary);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.7rem;
}
.service-image-main {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10;
  margin-bottom: 24px; box-shadow: var(--shadow-md);
}
.service-image-main img { width: 100%; height: 100%; object-fit: cover; }
.service-sidebar { position: sticky; top: 100px; }
.sidebar-card {
  background: var(--light-gray); border-radius: var(--radius-md);
  padding: 24px; margin-bottom: 20px;
}
.sidebar-card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.sidebar-services li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.sidebar-services li:last-child { border-bottom: none; }
.sidebar-services a { color: var(--primary); font-weight: 500; display: flex; justify-content: space-between; }
.sidebar-services a:hover { color: var(--secondary-dark); }
.sidebar-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white); text-align: center;
}
.sidebar-cta h3 { color: var(--white); }
.sidebar-cta p { opacity: 0.9; margin-bottom: 14px; font-size: 0.9rem; }

/* ===== Steps Visual ===== */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: stepc; }
.step-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 24px 20px; text-align: center; border: 2px solid var(--border);
  position: relative; transition: all var(--transition);
}
.step-card:hover { border-color: var(--secondary); transform: translateY(-4px); }
.step-num {
  counter-increment: stepc; content: counter(stepc, decimal-leading-zero);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--secondary); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; margin: 0 auto 14px;
}
.step-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; color: var(--gray); margin: 0; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-info { display: grid; gap: 16px; }
.contact-card {
  background: var(--white); border-radius: var(--radius-md); padding: 22px;
  border: 1px solid var(--border); display: flex; gap: 16px; align-items: flex-start;
  transition: all var(--transition);
}
.contact-card:hover { border-color: var(--secondary); box-shadow: var(--shadow-sm); }
.contact-card-icon {
  width: 50px; height: 50px; border-radius: 12px; flex-shrink: 0;
  background: var(--light-gray); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.contact-card-icon svg { width: 24px; height: 24px; }
.contact-card h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-card a, .contact-card p { color: var(--gray); font-size: 0.95rem; margin: 0; }
.contact-card a:hover { color: var(--secondary-dark); }

.map-frame { border-radius: var(--radius-md); overflow: hidden; height: 300px; box-shadow: var(--shadow-sm); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ===== Blog ===== */
.blog-card { padding: 0; overflow: hidden; }
.blog-image { aspect-ratio: 16/9; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-image img { transform: scale(1.06); }
.blog-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { font-size: 0.85rem; color: var(--gray); margin-bottom: 8px; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.blog-card p { color: var(--gray); font-size: 0.95rem; flex: 1; }
.blog-card .more { margin-top: 14px; color: var(--secondary-dark); font-weight: 700; font-size: 0.9rem; }

/* ===== Footer ===== */
.footer {
  background: var(--primary-dark); color: rgba(255,255,255,0.8); padding: 60px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 40px;
}
.footer h4 { color: var(--white); margin-bottom: 18px; font-size: 1.05rem; }
.footer-about p { font-size: 0.92rem; line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--secondary); color: var(--primary); }
.footer-social svg { width: 18px; height: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.92rem; transition: all var(--transition); }
.footer-links a:hover { color: var(--secondary); padding-inline-start: 6px; }
.footer-contact li {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px;
  font-size: 0.92rem;
}
.footer-contact svg { width: 18px; height: 18px; color: var(--secondary); flex-shrink: 0; margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0;
  text-align: center; font-size: 0.88rem;
}

/* ===== Video Section ===== */
.video-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 16/9; background: var(--primary-dark);
}
.video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-overlay {
  position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,37,64,0.35), rgba(10,37,64,0.15));
  pointer-events: none; transition: opacity var(--transition);
}
.video-wrap.playing .video-overlay { opacity: 0; }

/* ===== Floating Action Buttons (Call + WhatsApp) ===== */
.float-actions {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 99996;
  display: flex; flex-direction: column; gap: 14px;
}
.float-whatsapp,
.float-call {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: transform var(--transition), background 0.3s ease;
  position: relative;
}
.float-whatsapp svg,
.float-call svg { width: 30px; height: 30px; }
.float-whatsapp:hover,
.float-call:hover { transform: scale(1.08); color: var(--white); }

.float-whatsapp {
  background: var(--whatsapp);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  animation: pulse-wa 2.4s infinite;
}
.float-call {
  background: var(--secondary-dark);
  box-shadow: 0 8px 24px rgba(64, 224, 208, 0.45);
  animation: pulse-call 2.4s infinite 0.6s;
}
.float-call:hover { background: var(--secondary); color: var(--primary); }

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes pulse-call {
  0% { box-shadow: 0 0 0 0 rgba(64, 224, 208, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(64, 224, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(64, 224, 208, 0); }
}

@media (max-width: 640px) {
  .float-actions { gap: 10px; bottom: 18px; inset-inline-end: 18px; }
  .float-whatsapp,
  .float-call { width: 54px; height: 54px; }
  .float-whatsapp svg,
  .float-call svg { width: 26px; height: 26px; }
}

/* ===== Clickable map overlay ===== */
.map-frame { position: relative; }
.map-link {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 37, 64, 0); color: var(--white);
  text-decoration: none; transition: background 0.35s ease;
}
.map-link span {
  background: var(--primary);
  color: var(--white); padding: 14px 26px;
  border-radius: 50px; font-weight: 700; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 12px 30px rgba(10, 37, 64, 0.35);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.map-link span svg { width: 18px; height: 18px; }
.map-link:hover { background: rgba(10, 37, 64, 0.35); color: var(--white); }
.map-link:hover span { opacity: 1; transform: translateY(0); background: var(--secondary); color: var(--primary); }

/* ===== Animations: enter on scroll (strong) ===== */
.fade-in,
[data-anim] {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.05s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s ease;
  will-change: opacity, transform;
}
.fade-in { transform: translateY(48px); }
[data-anim="up"] { transform: translateY(80px); }
[data-anim="down"] { transform: translateY(-80px); }
[data-anim="left"] { transform: translateX(-90px) rotate(-2deg); }
[data-anim="right"] { transform: translateX(90px) rotate(2deg); }
[data-anim="zoom"] { transform: scale(0.7); }
[data-anim="zoom-out"] { transform: scale(1.18); }
[data-anim="blur"] { filter: blur(22px); transform: translateY(40px) scale(0.96); }
[data-anim="rotate"] { transform: rotate(-8deg) translateY(60px) scale(0.9); }
[data-anim="flip"] { transform: perspective(900px) rotateX(-55deg); transform-origin: bottom; }
[data-anim="pop"] { transform: scale(0.4); }
[data-anim="up"], [data-anim="down"], [data-anim="zoom"], [data-anim="pop"] {
  transition: opacity 1s cubic-bezier(0.34, 1.4, 0.5, 1), transform 1.05s cubic-bezier(0.34, 1.4, 0.5, 1), filter 0.9s ease;
}

.fade-in.visible,
[data-anim].visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Stagger children - stronger */
[data-stagger] > * {
  opacity: 0; transform: translateY(55px) scale(0.94);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.95s cubic-bezier(0.34, 1.3, 0.5, 1);
}
[data-stagger].visible > * { opacity: 1; transform: none; }
[data-stagger].visible > *:nth-child(1) { transition-delay: 0.06s; }
[data-stagger].visible > *:nth-child(2) { transition-delay: 0.16s; }
[data-stagger].visible > *:nth-child(3) { transition-delay: 0.26s; }
[data-stagger].visible > *:nth-child(4) { transition-delay: 0.36s; }
[data-stagger].visible > *:nth-child(5) { transition-delay: 0.46s; }
[data-stagger].visible > *:nth-child(6) { transition-delay: 0.56s; }
[data-stagger].visible > *:nth-child(7) { transition-delay: 0.66s; }
[data-stagger].visible > *:nth-child(8) { transition-delay: 0.76s; }
[data-stagger].visible > *:nth-child(9) { transition-delay: 0.86s; }
[data-stagger].visible > *:nth-child(10) { transition-delay: 0.96s; }
[data-stagger].visible > *:nth-child(11) { transition-delay: 1.06s; }
[data-stagger].visible > *:nth-child(12) { transition-delay: 1.16s; }

/* ===== Product cards ===== */
.product-card { padding: 0; overflow: hidden; }
.product-image {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: var(--light-gray);
}
.product-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .product-image img { transform: scale(1.1); }
.product-tag {
  position: absolute; top: 14px; inset-inline-start: 14px;
  background: var(--secondary); color: var(--primary);
  padding: 6px 14px; border-radius: 30px;
  font-size: 0.78rem; font-weight: 800;
  box-shadow: 0 6px 16px rgba(64, 224, 208, 0.4);
}
.product-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.15rem; margin-bottom: 10px; }
.product-body p { color: var(--gray); font-size: 0.93rem; flex: 1; margin-bottom: 16px; }

/* ===== Splash / Intro Loader ===== */
.splash {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  overflow: hidden;
}
.splash::before, .splash::after {
  content: ''; position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 224, 208, 0.25), transparent 70%);
  filter: blur(40px); pointer-events: none;
  animation: splashGlow 4s ease-in-out infinite alternate;
}
.splash::before { width: 500px; height: 500px; top: -10%; inset-inline-start: -10%; }
.splash::after { width: 400px; height: 400px; bottom: -10%; inset-inline-end: -10%; animation-delay: 1s; }
@keyframes splashGlow {
  from { transform: translate(0, 0) scale(1); opacity: 0.6; }
  to { transform: translate(20px, 20px) scale(1.15); opacity: 1; }
}

.splash-inner {
  position: relative; z-index: 2; text-align: center;
  animation: splashScale 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes splashScale {
  0% { opacity: 0; transform: scale(0.6) rotate(-6deg); }
  60% { opacity: 1; transform: scale(1.05) rotate(0); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

.splash-logo {
  width: 160px; height: 160px; border-radius: 28px;
  background: var(--white); padding: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(64,224,208,0.18);
  margin: 0 auto 22px;
  animation: splashFloat 2.4s ease-in-out infinite;
  position: relative; overflow: hidden;
}
.splash-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 18px; display: block; }
.splash-logo::after {
  content: ''; position: absolute; inset: 0; border-radius: 28px;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: splashShine 2.4s ease-in-out infinite 0.4s;
}
@keyframes splashFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes splashShine {
  to { transform: translateX(100%); }
}

.splash-title {
  color: var(--white); font-size: 1.7rem; font-weight: 800;
  margin-bottom: 6px; letter-spacing: 0.02em;
  animation: splashTextIn 1s ease 0.4s both;
}
.splash-sub {
  color: var(--secondary); font-size: 1rem; font-weight: 600;
  animation: splashTextIn 1s ease 0.6s both;
}
@keyframes splashTextIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.splash-loader {
  width: 64px; height: 4px; margin: 28px auto 0;
  border-radius: 2px; overflow: hidden;
  background: rgba(255,255,255,0.18);
  position: relative;
}
.splash-loader::after {
  content: ''; position: absolute; inset: 0;
  width: 40%; background: var(--secondary);
  border-radius: 2px;
  animation: splashBar 1.2s ease-in-out infinite;
}
@keyframes splashBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

body.splash-active { overflow: hidden; }
.splash.hidden { opacity: 0; visibility: hidden; }

/* ===== Counter ===== */
.stat-num { font-variant-numeric: tabular-nums; }

/* ===== Card hover refinements ===== */
.card { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease, border-color 0.5s ease; }
.service-card { position: relative; overflow: hidden; }
.service-card::before {
  content: ''; position: absolute; inset: -2px; z-index: -1;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border-radius: var(--radius-md); opacity: 0;
  transition: opacity 0.4s ease;
}
.service-card:hover { transform: translateY(-8px); }

/* Btn shine */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ''; position: absolute; top: 0; inset-inline-start: -120%;
  width: 70%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: inset-inline-start 0.7s ease;
  pointer-events: none;
}
.btn:hover::after { inset-inline-start: 130%; }

/* Logo entry animation in header */
.header .logo { animation: logoIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes logoIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Section headings underline accent */
.section-header h2 { position: relative; display: inline-block; padding-bottom: 14px; }
.section-header h2::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
}

/* Hero text rhythm */
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 900; }
.hero p { font-size: 1.08rem; line-height: 1.75; }
.section-header p { font-size: 1rem; }

/* Smoother section padding */
.section { padding: 100px 0; }
@media (max-width: 992px) { .section { padding: 70px 0; } }

/* Floating decorative shapes for sections */
.section.has-shapes { position: relative; overflow: hidden; }
.section.has-shapes::before,
.section.has-shapes::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(64,224,208,0.08), transparent 70%);
  filter: blur(30px);
}
.section.has-shapes::before { width: 380px; height: 380px; top: -100px; inset-inline-start: -100px; }
.section.has-shapes::after { width: 320px; height: 320px; bottom: -100px; inset-inline-end: -100px; }

/* Scroll indicator on hero */
.scroll-indicator {
  position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 46px; border: 2px solid rgba(255,255,255,0.45);
  border-radius: 14px; z-index: 3;
}
.scroll-indicator::after {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: var(--secondary);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; transform: translate(-50%, 12px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-anim] { opacity: 1 !important; transform: none !important; filter: none !important; }
}

@media (max-width: 768px) {
  .scroll-indicator { display: none; }
  .splash-logo { width: 130px; height: 130px; border-radius: 24px; }
  .splash-title { font-size: 1.4rem; }
  .splash-sub { font-size: 0.9rem; }
}

/* Page header polish */
.page-header {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 50%, var(--primary-light));
}
.page-header h1 {
  animation: pageHeaderIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.page-header p {
  animation: pageHeaderIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
.page-header .breadcrumb {
  animation: pageHeaderIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
@keyframes pageHeaderIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hover lift on portfolio items */
.portfolio-item { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease; }
.portfolio-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ===== Services Trio (3 Pillars) ===== */
.services-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.service-pillar {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease, border-color 0.5s ease;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.service-pillar::before {
  content: ''; position: absolute; top: 0; inset-inline-start: 0; right: 0;
  height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
html[dir="rtl"] .service-pillar::before { transform-origin: right; }
.service-pillar:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}
.service-pillar:hover::before { transform: scaleX(1); }

/* Featured (middle) pillar - elevated style */
.service-pillar--featured {
  background: linear-gradient(180deg, #ffffff, #f0fdfa);
  border-color: rgba(64, 224, 208, 0.4);
  box-shadow: 0 14px 40px rgba(64, 224, 208, 0.18);
  transform: translateY(-8px);
}
.service-pillar--featured::before {
  transform: scaleX(1);
  height: 5px;
}
.service-pillar--featured:hover { transform: translateY(-14px); }

.pillar-badge {
  position: absolute; top: 16px; inset-inline-end: 16px;
  background: var(--secondary); color: var(--primary);
  padding: 5px 12px; border-radius: 30px;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.5px; text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(64, 224, 208, 0.4);
}

.pillar-head {
  text-align: center;
  padding-bottom: 22px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--border);
}
.pillar-icon {
  width: 72px; height: 72px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  color: var(--primary);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(64, 224, 208, 0.3);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-pillar:hover .pillar-icon { transform: rotate(-6deg) scale(1.06); }
.pillar-icon svg { width: 36px; height: 36px; }
.pillar-head h3 { font-size: 1.25rem; margin-bottom: 6px; }
.pillar-head p { color: var(--gray); font-size: 0.9rem; margin: 0; }

.pillar-list { list-style: none; padding: 0; margin: 0; flex: 1; }
.pillar-list li { margin-bottom: 8px; }
.pillar-list li:last-child { margin-bottom: 0; }
.pillar-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-radius: 12px;
  background: var(--light-gray);
  color: var(--primary); font-weight: 600; font-size: 0.92rem;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease, padding 0.35s ease;
}
.pillar-list a i {
  font-style: normal; font-size: 1rem;
  opacity: 0.4; transition: all 0.35s ease;
}
html[lang="en"] .pillar-list a i { transform: rotate(180deg); }
.pillar-list a:hover {
  background: var(--primary); color: var(--white);
  padding-inline-start: 22px;
}
.pillar-list a:hover i {
  opacity: 1; color: var(--secondary); transform: translateX(-4px);
}
html[lang="en"] .pillar-list a:hover i { transform: rotate(180deg) translateX(-4px); }

@media (max-width: 992px) {
  .services-trio { grid-template-columns: 1fr; gap: 18px; }
  .service-pillar--featured { transform: translateY(0); }
  .service-pillar--featured:hover { transform: translateY(-6px); }
}

/* ===== Custom Cursor ===== */
@media (hover: hover) and (pointer: fine) {
  html, body { cursor: none; }
  a, button, [data-cursor], .service-card, .feature, .card, .portfolio-item, .contact-card, .hero-dots button, .lang-toggle, .float-whatsapp, .float-call, .menu-toggle, .nav-link, label { cursor: none; }
  /* Keep native cursors on form controls so users can see where they're typing */
  input, textarea, select, video, iframe { cursor: auto; }
  input[type="submit"], input[type="button"], button[type="submit"] { cursor: none; }
}
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 99998;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform, width, height, background;
}
.cursor-dot {
  width: 8px; height: 8px; background: var(--secondary);
  transition: transform 0.06s linear, background 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 0 12px rgba(64, 224, 208, 0.6);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 2px solid var(--secondary);
  background: rgba(64, 224, 208, 0.06);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.35s ease,
              border-color 0.35s ease,
              opacity 0.3s ease;
  backdrop-filter: blur(2px);
}
.cursor-ring.is-hover {
  width: 70px; height: 70px;
  background: rgba(64, 224, 208, 0.18);
  border-color: var(--secondary);
}
.cursor-ring.is-text {
  width: 24px; height: 24px;
  background: rgba(64, 224, 208, 0.4);
  border-color: transparent;
}
.cursor-dot.is-hover { background: var(--white); transform: translate3d(-50%, -50%, 0) scale(0.5); }
.cursor-down { transform: translate3d(-50%, -50%, 0) scale(0.7) !important; }
.cursor-hidden { opacity: 0 !important; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 9999;
  background: rgba(10, 37, 64, 0.08);
}
.scroll-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
  box-shadow: 0 0 10px rgba(64, 224, 208, 0.55);
  transition: width 0.1s linear;
}

/* ===== Larger Page Header ===== */
.page-header {
  padding: 130px 0 100px;
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(64, 224, 208, 0.20), transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(64, 224, 208, 0.12), transparent 55%);
  pointer-events: none;
}
.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.page-header p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 760px;
  line-height: 1.7;
}
.page-header .breadcrumb { font-size: 0.95rem; margin-top: 24px; }

/* Bigger section headers too */
.section-header h2 { font-size: clamp(1.9rem, 4vw, 3rem); padding-bottom: 18px; }
.section-header h2::after { width: 80px; height: 5px; }

/* Subtle scroll-triggered scaling for headings */
.page-header h1, .section-header h2 { transform-origin: center; }

/* ===== Magnetic button (slight pull toward cursor) ===== */
.btn { transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow var(--transition); }

/* ===== Service icon enhancements ===== */
.service-icon {
  width: 76px; height: 76px; border-radius: 20px;
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  position: relative; overflow: visible;
  box-shadow: 0 8px 24px rgba(64, 224, 208, 0.25);
}
.service-icon::after {
  content: ''; position: absolute; inset: -8px;
  border-radius: 28px;
  border: 2px dashed rgba(64, 224, 208, 0.35);
  opacity: 0; animation: none;
  transition: opacity 0.4s ease;
}
.service-card:hover .service-icon::after {
  opacity: 1;
  animation: iconRing 8s linear infinite;
}
@keyframes iconRing {
  to { transform: rotate(360deg); }
}
.service-icon svg { width: 38px; height: 38px; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.service-card:hover .service-icon svg { transform: rotate(-8deg) scale(1.1); }

/* Feature icon on hover */
.feature-icon { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s ease, color 0.4s ease; }
.feature:hover .feature-icon {
  transform: rotate(-6deg) scale(1.06);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--secondary);
}

/* Smoother hero h1 entry */
.hero h1 span { display: inline-block; }

/* Form inputs hover/focus polish */
.form-control:hover { border-color: var(--secondary-light); }

/* Make sure custom cursor stays above splash & whatsapp */
.splash { z-index: 99997; }
.float-actions { z-index: 99996; }

/* ===== Responsive ===== */
/* ============================================
   RESPONSIVE — Tablet & Mobile (professional)
   ============================================ */

/* ===== Tablet (≤ 992px) ===== */
@media (max-width: 992px) {
  .hero-grid, .about-grid, .service-detail-grid, .gov-cta, .contact-grid { grid-template-columns: 1fr; }
  .gov-cta { padding: 35px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; top: 0; inset-inline-end: -100%; width: 86%; max-width: 380px; height: 100vh;
    height: 100dvh;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 86px 22px 28px; transition: inset-inline-end var(--transition);
    box-shadow: -10px 0 40px rgba(0,0,0,0.22); overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.open { inset-inline-end: 0; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav-link { padding: 14px 14px; font-size: 1rem; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; padding: 0 0 0 14px; min-width: 0;
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
    background: var(--light-gray); border-radius: 10px;
  }
  .dropdown a { padding: 12px 14px; }
  .has-dropdown.open .dropdown { max-height: 900px; margin: 4px 0 6px; }
  .nav-overlay {
    position: fixed; inset: 0; background: rgba(10,37,64,0.55); z-index: 99;
    opacity: 0; visibility: hidden; transition: all var(--transition);
    backdrop-filter: blur(2px);
  }
  .nav-overlay.show { opacity: 1; visibility: visible; }
  .cta-nav { text-align: center; margin-top: 14px; padding: 14px 18px; }
  .service-sidebar { position: static; }
  .section { padding: 64px 0; }
}

/* ===== Mobile (≤ 768px) ===== */
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .section { padding: 52px 0; }

  /* Typography */
  h1 { font-size: clamp(1.85rem, 7vw, 2.4rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  h3 { font-size: 1.15rem; }
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: clamp(1.55rem, 6.5vw, 2.1rem); padding-bottom: 14px; }
  .section-header h2::after { width: 56px; height: 4px; }
  .section-header p { font-size: 0.95rem; }
  .section-tag { font-size: 0.78rem; }

  /* Top bar — keep phone only, compact */
  .topbar { padding: 7px 0; }
  .topbar .container { justify-content: space-between; }
  .topbar-info { gap: 14px; font-size: 0.78rem; }
  .topbar-info span:nth-child(2) { display: none; }

  /* Header / logo */
  .header-inner { padding: 11px 0; gap: 12px; }
  .logo { gap: 10px; }
  .logo-icon { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 3px 9px rgba(10,37,64,0.15); }
  .logo-text { gap: 1px; line-height: 1.2; }
  .logo-name { font-size: 0.98rem; }
  .logo-slogan { font-size: 0.68rem; margin-top: 0; }

  /* Hero */
  .hero { min-height: auto; padding: 56px 0 64px; }
  .hero-grid { gap: 22px; }
  .hero h1 { font-size: clamp(2rem, 8.5vw, 2.7rem); }
  .hero p { font-size: 1rem; line-height: 1.7; margin-bottom: 26px; }
  .hero-tag { font-size: 0.82rem; margin-bottom: 14px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta .btn { justify-content: center; width: 100%; padding: 15px 24px; }
  .hero-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px;
    margin-top: 34px; padding-top: 26px;
  }
  .stat-num { font-size: 1.85rem; }
  .stat-label { font-size: 0.82rem; }
  .scroll-indicator { display: none; }
  .hero-dots { bottom: 18px; }

  /* Page header */
  .page-header { padding: 78px 0 56px; }
  .page-header h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .page-header p { font-size: 1rem; }
  .breadcrumb { font-size: 0.85rem; flex-wrap: wrap; justify-content: center; }

  /* Cards & grids */
  .grid { gap: 16px; }
  .card { padding: 22px; }
  .service-icon { width: 64px; height: 64px; border-radius: 16px; }
  .service-icon svg { width: 32px; height: 32px; }

  /* Services trio */
  .service-pillar { padding: 28px 22px 20px; }
  .pillar-icon { width: 62px; height: 62px; }
  .pillar-icon svg { width: 30px; height: 30px; }
  .pillar-list a { padding: 13px 15px; }

  /* About */
  .about-grid { gap: 28px; }
  .about-content h2 { margin-bottom: 12px; }

  /* Government CTA */
  .gov-cta { padding: 30px 24px; gap: 22px; text-align: center; }
  .gov-cta-actions { align-items: stretch; }
  .gov-cta-actions .btn { justify-content: center; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 26px 20px; border-radius: var(--radius-md); }
  .form-control { padding: 13px 15px; font-size: 1rem; }

  /* Service detail */
  .service-detail-grid { gap: 30px; }
  .service-detail-main h2 { margin-top: 26px; }
  .service-image-main { aspect-ratio: 16/11; }

  /* Steps */
  .steps-grid { gap: 14px; }
  .step-card { padding: 22px 18px; }

  /* Contact */
  .contact-grid { gap: 22px; }
  .map-frame { height: 260px; }

  /* Footer */
  .footer { padding: 50px 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-about { grid-column: 1 / -1; }

  /* Splash */
  .splash-logo { width: 120px; height: 120px; }

  /* Sections built as 2-col grids collapse */
  .section-dark .grid-2 { gap: 28px; }
}

/* ===== Small Mobile (≤ 480px) ===== */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 44px 0; }

  .hero { padding: 44px 0 52px; }
  .hero h1 { font-size: 1.85rem; line-height: 1.25; }
  .hero p { font-size: 0.95rem; }
  .hero-tag { font-size: 0.78rem; padding: 5px 13px; }
  .hero-stats { gap: 16px 12px; margin-top: 28px; }
  .stat-num { font-size: 1.6rem; }
  .stat-label { font-size: 0.76rem; }

  .page-header { padding: 64px 0 46px; }
  .page-header h1 { font-size: 2rem; }
  .page-header p { font-size: 0.92rem; }

  .section-header h2 { font-size: 1.5rem; }
  h2 { font-size: 1.5rem; }

  .card { padding: 20px; }
  .service-pillar { padding: 24px 18px 18px; }
  .pillar-head h3 { font-size: 1.15rem; }

  .gov-cta { padding: 26px 18px; }
  .form-card { padding: 22px 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .footer-about { text-align: center; }
  .footer .logo { justify-content: center; }
  .footer-social { justify-content: center; }
  .footer-contact li { justify-content: flex-start; text-align: start; }
  .footer-links a:hover { padding-inline-start: 0; }

  .btn { padding: 13px 22px; font-size: 0.95rem; }

  /* Floating buttons — comfortable thumb reach */
  .float-actions { bottom: 16px; inset-inline-end: 16px; gap: 12px; }
  .float-whatsapp, .float-call { width: 52px; height: 52px; }
  .float-whatsapp svg, .float-call svg { width: 25px; height: 25px; }

  /* Topbar very compact */
  .topbar-info { font-size: 0.74rem; gap: 10px; }
  .lang-toggle { padding: 4px 11px; font-size: 0.8rem; }

  /* Logo on very small screens — icon + name only */
  .logo-icon { width: 42px; height: 42px; }
  .logo-name { font-size: 0.92rem; }
  .logo-slogan { font-size: 0.64rem; }

  /* Steps numbers */
  .step-card { padding: 20px 16px; }
  .step-num { width: 42px; height: 42px; font-size: 1.05rem; }

  /* Section dark CTA buttons stack */
  .section-dark div[style*="flex"] { flex-direction: column; }
  .section-dark div[style*="flex"] .btn { width: 100%; justify-content: center; }

  /* Map */
  .map-frame { height: 230px; }
  .map-link span { padding: 11px 18px; font-size: 0.85rem; }
}

/* ===== Reduce heavy animations on touch devices for performance ===== */
@media (hover: none) and (pointer: coarse) {
  [data-anim="left"], [data-anim="right"] { transform: translateY(40px); }
  [data-anim="rotate"], [data-anim="flip"] { transform: translateY(40px); }
  .has-shapes::before, .has-shapes::after { display: none; }
}

/* ===== Landscape phone tweak ===== */
@media (max-width: 900px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 60px 0; }
  .nav { padding-top: 70px; }
}
