/* =========================================
   BRIGHTEX SOLUTIONS - MAIN STYLESHEET
   ========================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;500;600;700;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg, video, canvas, iframe { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- Design Tokens --- */
:root {
  /* Colors */
  --primary:        #152238;
  --primary-hover:  #1c2f4f;
  --primary-light:  #1e3a5f;
  --primary-dark:   #0d1928;
  --accent:         #f9a825;
  --accent-hover:   #e09000;
  --accent-light:   #ffd054;
  --accent-pale:    #fff8e1;
  --text:           #1e2840;
  --text-muted:     #64748b;
  --text-light:     #94a3b8;
  --bg:             #f4f6f8;
  --bg-alt:         #eaecf0;
  --white:          #ffffff;
  --border:         #dde3eb;
  --border-light:   #eef1f5;
  --success:        #10b981;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(21,34,56,0.08);
  --shadow-sm:  0 4px 12px rgba(21,34,56,0.10);
  --shadow-md:  0 8px 24px rgba(21,34,56,0.12);
  --shadow-lg:  0 16px 48px rgba(21,34,56,0.16);
  --shadow-xl:  0 24px 64px rgba(21,34,56,0.20);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-base:   0.25s ease;
  --transition-slow:   0.4s ease;

  /* Layout */
  --container-max:  1280px;
  --container-md:   900px;
  --nav-height:     72px;
  --container-pad:  clamp(1rem, 3vw, 2rem);
}

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

.hero-content > *,
.services-grid > *,
.process-steps > *,
.work-grid > *,
.trust-stats > *,
.testimonials-grid > *,
.why-grid > *,
.service-detail > *,
.contact-grid > *,
.form-row > *,
.contact-send-btns > *,
.faq-grid > *,
.footer-grid > *,
.logo-grid > *,
.icon-grid > * {
  min-width: 0;
}

/* --- Section Spacing --- */
section { padding: var(--space-5xl) 0; }
@media (max-width: 1024px) { section { padding: var(--space-4xl) 0; } }
@media (max-width: 768px)  { section { padding: var(--space-3xl) 0; } }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--primary); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { color: var(--text-muted); line-height: 1.75; }

.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: var(--space-md);
}
.section-label::before {
  content: ''; display: block; width: 24px; height: 2px; background: var(--accent);
}
.section-title { margin-bottom: var(--space-md); }
.section-title span { color: var(--accent); }
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; margin-bottom: var(--space-2xl); }
.section-header { margin-bottom: var(--space-3xl); }
.text-center { text-align: center; }
.text-center .section-label { justify-content: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 700;
  border-radius: var(--radius-md); transition: all var(--transition-base);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--primary);
  box-shadow: 0 4px 14px rgba(249,168,37,0.35);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(249,168,37,0.4); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary); 
}
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }

.btn-outline-white {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); transform: translateY(-2px); }

.btn-ghost {
  background: transparent; color: var(--accent);
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--accent);
  border-radius: 0;
}
.btn-ghost:hover { gap: 0.75rem; }
.btn-ghost i { transition: transform var(--transition-base); }
.btn-ghost:hover i { transform: translateX(4px); }

.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.82rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: var(--radius-full); }

/* --- Cards --- */
.card {
  background: var(--white); border-radius: var(--radius-xl);
  border: 1px solid var(--border-light); padding: var(--space-2xl);
  transition: all var(--transition-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-accent { border-top: 3px solid var(--accent); }

/* --- Badge --- */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.3rem 0.85rem; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
}
.badge-primary { background: rgba(21,34,56,0.1); color: var(--primary); }
.badge-accent  { background: var(--accent-pale); color: #8a5a00; }

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height); display: flex; align-items: center;
  transition: all var(--transition-slow);
}
.navbar.scrolled {
  background: var(--white); box-shadow: var(--shadow-sm);
}
.navbar.dark-initial { /* used on non-hero pages */
  background: var(--white); box-shadow: var(--shadow-sm);
}
.nav-container {
  width: 100%; max-width: var(--container-max);
  margin: 0 auto; padding: 0 var(--container-pad);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; height: 84px; }
.nav-logo img { height: 100%; width: auto; max-width: min(400px, 72vw); object-fit: contain; }
.logo-scrolled { display: none; }
.logo-initial { display: block; }
.navbar.scrolled .logo-initial { display: none; }
.navbar.scrolled .logo-scrolled { display: block; }
.navbar.dark-initial .logo-initial { display: none; }
.navbar.dark-initial .logo-scrolled { display: block; }

.nav-links { display: flex; align-items: center; gap: var(--space-xl); }
.nav-link {
  font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.85);
  position: relative; transition: color var(--transition-fast);
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent); transform: scaleX(0);
  transition: transform var(--transition-base);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--white); }
.navbar.scrolled .nav-link, .navbar.dark-initial .nav-link { color: var(--text-muted); }
.navbar.scrolled .nav-link:hover, .navbar.dark-initial .nav-link:hover { color: var(--primary); }
.navbar.scrolled .nav-link.active, .navbar.dark-initial .nav-link.active { color: var(--primary); }

.nav-cta { display: flex; align-items: center; gap: var(--space-md); }
.nav-btn-outline {
  font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.4); border-radius: var(--radius-md);
  padding: 0.5rem 1.25rem; transition: all var(--transition-base);
}
.nav-btn-outline:hover { color: var(--white); border-color: var(--white); background: rgba(255,255,255,0.1); }
.navbar.scrolled .nav-btn-outline, .navbar.dark-initial .nav-btn-outline {
  color: var(--primary); border-color: var(--primary);
}
.navbar.scrolled .nav-btn-outline:hover, .navbar.dark-initial .nav-btn-outline:hover {
  background: var(--primary); color: var(--white);
}

.nav-btn-accent {
  font-size: 0.85rem; font-weight: 700; color: var(--primary);
  background: var(--accent); border-radius: var(--radius-md);
  padding: 0.55rem 1.3rem; transition: all var(--transition-base);
}
.nav-btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 4px;
  cursor: pointer; z-index: 100;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px; border-radius: 2px;
  background: var(--white); transition: all var(--transition-base);
}
.navbar.scrolled .nav-toggle span, .navbar.dark-initial .nav-toggle span { background: var(--primary); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Drawer */
.nav-drawer {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--border);
  padding: var(--space-xl); z-index: 999;
  box-shadow: var(--shadow-lg); flex-direction: column; gap: var(--space-lg);
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.nav-drawer.open { display: flex; }
.nav-drawer .nav-link { color: var(--text); font-size: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border-light); }
.nav-drawer .nav-link:last-of-type { border-bottom: none; }
.nav-drawer .btn { width: 100%; justify-content: center; }

@media (max-width: 1024px) { .nav-links { display: none; } .nav-cta { display: none; } .nav-toggle { display: flex; } }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--primary-dark); color: rgba(255,255,255,0.75);
  padding: var(--space-5xl) 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl); padding-bottom: var(--space-4xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {}
.footer-logo { height: 64px; margin-bottom: var(--space-lg); }
.footer-tagline { font-size: 0.92rem; color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 280px; margin-bottom: var(--space-xl); }
.footer-social { display: flex; gap: var(--space-md); }
.social-link {
  width: 38px; height: 38px; border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 0.85rem; transition: all var(--transition-base);
}
.social-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.footer-col h4 {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--white);
  margin-bottom: var(--space-lg); 
}
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-link {
  font-size: 0.88rem; color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast); position: relative; padding-left: 0;
}
.footer-link:hover { color: var(--accent); padding-left: 4px; transition: all var(--transition-base); }

.footer-contact-item {
  display: flex; align-items: flex-start; gap: 0.65rem;
  font-size: 0.87rem; color: rgba(255,255,255,0.6); margin-bottom: 0.75rem;
}
.footer-contact-item i { color: var(--accent); width: 16px; flex-shrink: 0; margin-top: 3px; }
.footer-contact-item a:hover { color: var(--accent); }
.footer-contact-item a { overflow-wrap: anywhere; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-lg) 0; font-size: 0.82rem; color: rgba(255,255,255,0.4);
}
.footer-bottom-links { display: flex; gap: var(--space-lg); }
.footer-bottom-link { color: rgba(255,255,255,0.4); transition: color var(--transition-fast); }
.footer-bottom-link:hover { color: var(--accent); }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); } }
@media (max-width: 640px)  {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
  .footer-bottom-links { justify-content: center; }
}

/* =========================================
   UTILITY CLASSES
   ========================================= */
.bg-primary { background: var(--primary); }
.bg-primary-dark { background: var(--primary-dark); }
.bg-accent { background: var(--accent); }
.bg-light { background: var(--bg); }
.bg-white { background: var(--white); }
.text-white { color: var(--white) !important; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-white h1, .text-white h2, .text-white h3, .text-white h4 { color: var(--white); }
.text-white p { color: rgba(255,255,255,0.75); }
.text-white .section-label { color: var(--accent-light); }

.divider { width: 48px; height: 3px; background: var(--accent); border-radius: var(--radius-full); margin: var(--space-md) 0 var(--space-xl); }
.divider-center { margin-left: auto; margin-right: auto; }

.tag {
  display: inline-flex; align-items: center;
  padding: 0.28rem 0.75rem; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  background: var(--bg-alt); color: var(--text-muted);
}

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Page-top offset for sticky nav */
.page-top { padding-top: var(--nav-height); }

/* =========================================
   HERO INNER (shared for inner pages)
   ========================================= */
.hero-inner {
  background: var(--primary); padding: calc(var(--nav-height) + var(--space-4xl)) 0 var(--space-4xl);
  position: relative; overflow: hidden;
}
.hero-inner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(249,168,37,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner-content { position: relative; z-index: 1; max-width: 700px; }
.hero-inner .section-label { color: var(--accent-light); }
.hero-inner h1 { color: var(--white); margin-bottom: var(--space-lg); }
.hero-inner p { color: rgba(255,255,255,0.72); font-size: 1.1rem; max-width: 580px; }

/* =========================================
   WHATSAPP FLOAT BUTTON
   ========================================= */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  width: 56px; height: 56px; border-radius: var(--radius-full);
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  transition: all var(--transition-base);
  animation: pulse-green 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 24px rgba(37,211,102,0.5); }
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 6px 28px rgba(37,211,102,0.6); }
}

@media (max-width: 640px) {
  .nav-logo { height: 68px; }
  .nav-logo img { max-width: min(320px, 78vw); }
  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
  .footer-logo { height: 52px; }
  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
  }
}
