/* ============================================================
   Seitatolo Electrical and Projects — Main Stylesheet
   Professional layout modelled on DRC Attorneys (drcattorneys.co.za)
   Colours: Navy #1a2a4e | Burgundy #8b1a2b | Gold #c9a84c
   Fonts: Playfair Display (headings) + Inter (body)
   ============================================================ */

:root {
  --primary: #8b1a2b;
  --primary-dark: #6a1422;
  --primary-light: #a52238;
  --accent: #c9a84c;
  --accent-light: #dfc06a;
  --accent-dark: #a88b35;
  --navy: #1a2a4e;
  --navy-light: #2c3e6b;
  --navy-dark: #111d35;
  --text-dark: #1C1C1C;
  --text-body: #4A4A4A;
  --text-muted: #7A7A7A;
  --text-light: #FFFFFF;
  --bg-white: #FFFFFF;
  --bg-cream: #FAF7F2;
  --bg-light: #F5F0EA;
  --bg-dark: #1a2a4e;
  --border: #E8E0D5;
  --whatsapp: #25D366;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', -apple-system, sans-serif; line-height: 1.7; color: var(--text-body); background: var(--bg-white); overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.25; color: var(--text-dark); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { font-family: 'Inter', sans-serif; font-weight: 400; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: 'Inter', sans-serif; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ========== ANIMATIONS ========== */
.fade-up { opacity: 0; transform: translateY(25px); transition: all 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes msgSlide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ========== BUTTONS ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 2rem; border-radius: 50px; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: var(--transition); text-align: center; }
.btn-primary { background: var(--primary); color: var(--bg-white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139,26,43,0.3); }
.btn-accent, .btn-gold { background: var(--accent); color: var(--text-dark); }
.btn-accent:hover, .btn-gold:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,0.3); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--bg-white); }
.btn-outline-light { background: transparent; border: 2px solid rgba(255,255,255,0.4); color: var(--bg-white); }
.btn-outline-light:hover { background: var(--bg-white); color: var(--primary); }
.btn-outline-dark { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--bg-white); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ========== TOP BAR ========== */
.top-bar { background: var(--navy); color: rgba(255,255,255,0.85); font-family: 'Inter', sans-serif; font-size: 0.85rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.top-bar-left { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.top-bar-left a { color: rgba(255,255,255,0.85); display: flex; align-items: center; gap: 0.4rem; }
.top-bar-left a:hover { color: var(--accent); }
.top-bar-left i { color: var(--accent); font-size: 0.9rem; }
.top-bar-left span { display: flex; align-items: center; gap: 0.4rem; }
.top-bar-right { display: flex; align-items: center; gap: 1rem; }
.top-bar-right span { display: flex; align-items: center; gap: 0.4rem; }
.top-bar-right i { color: var(--accent); }
.top-bar-right a { color: rgba(255,255,255,0.7); font-size: 1rem; }
.top-bar-right a:hover { color: var(--accent); }
.top-social { display: flex; gap: 8px; }
.top-social a { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: rgba(255,255,255,0.7); }
.top-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--navy-dark); }

/* ========== HEADER / NAV ========== */
.main-header { background: var(--bg-white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000; transition: var(--transition); }
.main-header.scrolled { box-shadow: var(--shadow-md); }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 0; }
.logo-link { display: flex; align-items: center; gap: 0.75rem; }
.logo-link img { height: 60px; width: auto; }
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-firm { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.logo-sub { font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 600; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 3px; }
.nav-links { display: flex; list-style: none; gap: 0.25rem; align-items: center; }
.nav-links a { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.9rem; color: var(--text-dark); padding: 0.6rem 1rem; border-radius: var(--radius-sm); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: rgba(139,26,43,0.05); }
.nav-links a.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 2px; background: var(--accent); border-radius: 2px; }
.nav-cta { background: var(--primary) !important; color: var(--bg-white) !important; padding: 0.6rem 1.4rem !important; border-radius: 50px !important; font-weight: 600 !important; }
.nav-cta:hover { background: var(--primary-dark) !important; color: var(--bg-white) !important; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(139,26,43,0.3); }
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--bg-white); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); min-width: 220px; padding: 8px 0; z-index: 200; border-top: 3px solid var(--primary); }
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 20px; font-size: 0.88rem; color: var(--text-body); }
.dropdown-menu a:hover { background: rgba(139,26,43,0.06); color: var(--primary); padding-left: 24px; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; color: var(--navy); cursor: pointer; padding: 0.5rem; }

/* ========== HERO SLIDESHOW ========== */
.hero-slideshow { position: relative; min-height: 85vh; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 50%, var(--navy-light) 100%); }
.hero-slides { position: relative; width: 100%; min-height: inherit; }
.hero-slide { position: absolute; inset: 0; min-height: inherit; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s ease; z-index: 0; }
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,42,78,0.92) 0%, rgba(139,26,43,0.88) 50%, rgba(44,62,107,0.90) 100%); z-index: 1; }
.hero-slide .container { position: relative; z-index: 2; min-height: inherit; display: flex; align-items: center; }
.hero-slide .hero-content { max-width: 700px; padding: 6rem 0; }

.hero-slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); color: var(--bg-white); font-size: 1.2rem; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: var(--transition); }
.hero-slider-nav:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-50%) scale(1.05); }
.hero-slider-nav.prev { left: 24px; }
.hero-slider-nav.next { right: 24px; }
.hero-slider-dots { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.6); cursor: pointer; transition: var(--transition); }
.hero-dot.active, .hero-dot:hover { background: var(--accent); border-color: var(--accent); width: 34px; border-radius: 6px; }

.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.3); padding: 0.5rem 1.2rem; border-radius: 50px; font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 500; color: var(--accent-light); margin-bottom: 1.5rem; }
.hero-slide h1 { color: var(--bg-white); margin-bottom: 1.25rem; font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
.hero-slide h1 span { color: var(--accent); }
.hero-slide p { color: rgba(255,255,255,0.8); font-size: 1.15rem; margin-bottom: 2rem; line-height: 1.8; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-stats .stat-item { text-align: center; }
.hero-stats .stat-number { display: block; font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--accent); }
.hero-stats .stat-label { font-family: 'Inter', sans-serif; font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; }

/* ========== STATS BAR ========== */
.stats-bar { background: var(--navy); padding: 3rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stats-bar .stat-number { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; color: var(--accent); line-height: 1.1; }
.stats-bar .stat-label { font-family: 'Inter', sans-serif; font-size: 0.85rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 2px; margin-top: 0.5rem; }

/* ========== SECTIONS ========== */
section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .overline, .section-subtitle { display: inline-block; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 3px; color: var(--accent-dark); margin-bottom: 0.75rem; }
.section-header h2, .section-title { margin-bottom: 1rem; }
.section-header p, .section-desc { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.05rem; line-height: 1.7; }
.section-header .divider { width: 60px; height: 3px; background: var(--accent); margin: 1rem auto; border-radius: 2px; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--accent); margin: 1rem auto 0; border-radius: 2px; }

/* ========== PRACTICE / SERVICE AREAS ========== */
.practice-section { background: var(--bg-cream); }
.practice-grid, .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.practice-card, .service-card { background: var(--bg-white); padding: 2rem; border-radius: var(--radius-md); border: 1px solid var(--border); transition: var(--transition); position: relative; }
.practice-card::before, .service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.practice-card:hover, .service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(139,26,43,0.1); }
.practice-card:hover::before, .service-card:hover::before { transform: scaleX(1); }
.practice-icon, .service-icon { width: 56px; height: 56px; background: linear-gradient(135deg, rgba(139,26,43,0.08), rgba(201,168,76,0.08)); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.5rem; color: var(--primary); }
.practice-card h3, .service-card h4, .service-title { font-size: 1.15rem; margin-bottom: 0.75rem; color: var(--text-dark); }
.practice-card p, .service-card p, .service-desc { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }
.service-link { color: var(--primary); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.service-link:hover { gap: 10px; color: var(--primary-dark); }

/* ========== CATEGORY FILTER ========== */
.category-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; justify-content: center; }
.category-filter a { padding: 8px 20px; border-radius: 50px; border: 2px solid var(--border); font-size: 0.88rem; font-weight: 500; color: var(--text-body); transition: var(--transition); font-family: 'Inter', sans-serif; }
.category-filter a:hover, .category-filter a.active { background: var(--primary); color: var(--bg-white); border-color: var(--primary); }

/* ========== ABOUT PREVIEW ========== */
.about-preview, .about-section { background: var(--bg-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-image { position: relative; }
.about-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; height: 450px; object-fit: cover; }
.about-image::after { content: ''; position: absolute; top: -15px; right: -15px; width: 120px; height: 120px; border: 3px solid var(--accent); border-radius: var(--radius-md); z-index: -1; }
.about-badge { position: absolute; bottom: 20px; left: 20px; background: var(--primary); color: var(--bg-white); padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 700; font-size: 1.1rem; font-family: 'Inter', sans-serif; }
.about-content .overline, .about-content .section-subtitle { display: inline-block; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 3px; color: var(--accent-dark); margin-bottom: 0.75rem; }
.about-content h2 { margin-bottom: 1.25rem; font-size: 2rem; }
.about-content h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--accent); margin: 14px 0 0; border-radius: 2px; }
.about-content p { margin-bottom: 1.25rem; color: var(--text-body); font-size: 1rem; line-height: 1.8; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.about-feature { display: flex; align-items: center; gap: 0.6rem; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.9rem; color: var(--text-dark); }
.about-feature i { color: var(--accent-dark); font-size: 0.9rem; }

/* ========== LOCATIONS / OFFICES ========== */
.locations-section, .offices-section { background: var(--navy); color: var(--text-light); }
.locations-section .section-header h2, .offices-section .section-title { color: var(--text-light); }
.locations-section .section-header p, .offices-section .section-desc { color: rgba(255,255,255,0.6); }
.locations-section .overline, .offices-section .section-subtitle { color: var(--accent-light); }
.locations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.location-card, .office-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); padding: 2rem; transition: var(--transition); }
.location-card:hover, .office-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-4px); }
.location-card.head-office { border-color: rgba(201,168,76,0.3); }
.location-badge, .office-badge { display: inline-block; background: rgba(201,168,76,0.2); color: var(--accent-light); font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 0.25rem 0.75rem; border-radius: 50px; margin-bottom: 1rem; }
.location-card h3, .office-card h3 { color: var(--bg-white); font-size: 1.25rem; margin-bottom: 1rem; }
.location-detail, .office-card p { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; font-family: 'Inter', sans-serif; font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.location-detail i, .office-card i { color: var(--accent); margin-top: 0.2rem; flex-shrink: 0; width: 16px; text-align: center; margin-right: 4px; }
.location-detail a, .office-card a { color: rgba(255,255,255,0.75); }
.location-detail a:hover, .office-card a:hover { color: var(--accent); }
/* Single office centering */
.single-office-grid { display: flex; justify-content: center; }
.single-office-grid .office-card, .single-office-grid .location-card { max-width: 500px; width: 100%; }

/* ========== GALLERY SECTION ========== */
.gallery-section { background: var(--bg-cream); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.gallery-item { position: relative; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(26,42,78,0.85) 0%, transparent 60%); display: flex; align-items: flex-end; padding: 1.25rem; opacity: 0; transition: opacity 0.4s ease; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--bg-white); font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem; }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(26,42,78,0.9)); color: var(--bg-white); padding: 20px; opacity: 0; transition: var(--transition); }
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-caption h4 { color: var(--bg-white); font-size: 1rem; margin-bottom: 4px; }
.gallery-zoom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(26,42,78,0.6); color: var(--bg-white); font-size: 2rem; opacity: 0; transition: var(--transition); }
.gallery-item:hover .gallery-zoom { opacity: 1; }

/* ========== CTA BANNER ========== */
.cta-banner, .cta-section { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 4rem 0; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before, .cta-section::before { content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px; background: rgba(201,168,76,0.08); border-radius: 50%; }
.cta-banner::after, .cta-section::after { content: ''; position: absolute; bottom: -30%; left: -5%; width: 300px; height: 300px; background: rgba(201,168,76,0.05); border-radius: 50%; }
.cta-banner h2, .cta-section h2 { color: var(--bg-white); margin-bottom: 1rem; font-size: 2.2rem; }
.cta-banner p, .cta-section p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 2rem; max-width: 550px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.cta-banner .btn, .cta-btns .btn { margin: 0 0.5rem; }
.cta-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========== PAGE BANNER ========== */
.page-banner { position: relative; min-height: 320px; background: linear-gradient(135deg, var(--navy), var(--primary-dark)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.page-banner-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,42,78,0.9), rgba(139,26,43,0.7)); }
.page-banner .container { position: relative; z-index: 1; text-align: center; color: var(--bg-white); }
.page-banner h1 { color: var(--bg-white); font-size: 2.5rem; margin-bottom: 10px; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; font-size: 0.9rem; color: rgba(255,255,255,0.7); font-family: 'Inter', sans-serif; }
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { color: var(--bg-white); }
.breadcrumb span { color: var(--accent); }

/* ========== MISSION / VISION ========== */
.mission-vision { background: var(--bg-cream); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.mv-card { background: var(--bg-white); padding: 2.5rem; border-radius: var(--radius-md); border: 1px solid var(--border); border-top: 4px solid var(--primary); }
.mv-card.accent-top { border-top-color: var(--accent); }
.mv-card h3 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--primary); }
.mv-card p { line-height: 1.8; color: var(--text-body); }

/* ========== VALUES ========== */
.values-section { background: var(--bg-white); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.value-card { text-align: center; padding: 2rem 1.5rem; background: var(--bg-cream); border-radius: var(--radius-md); border: 1px solid var(--border); transition: var(--transition); }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-icon { width: 50px; height: 50px; margin: 0 auto 1rem; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--bg-white); font-size: 1.2rem; }
.value-card h4 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--primary); }
.value-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ========== SERVICE DETAIL ========== */
.service-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; }
.service-detail-icon { width: 80px; height: 80px; border-radius: var(--radius-md); background: linear-gradient(135deg, rgba(139,26,43,0.08), rgba(201,168,76,0.08)); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--primary); margin-bottom: 20px; }
.service-detail-content h2 { font-size: 1.8rem; margin-bottom: 10px; }
.service-category-badge { display: inline-block; background: rgba(139,26,43,0.1); color: var(--primary); padding: 4px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px; font-family: 'Inter', sans-serif; }
.service-detail-text { line-height: 1.8; margin-bottom: 24px; }
.service-detail-text p { margin-bottom: 14px; }
.sidebar-card { background: var(--bg-white); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 20px; border: 1px solid var(--border); }
.sidebar-card h3 { font-size: 1.1rem; margin-bottom: 16px; color: var(--navy); }
.sidebar-links a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--text-body); transition: var(--transition); }
.sidebar-links a:hover, .sidebar-links a.active { background: rgba(139,26,43,0.06); color: var(--primary); }
.sidebar-links a i { color: var(--primary); width: 18px; text-align: center; }
.sidebar-cta { background: var(--navy); color: var(--bg-white); }
.sidebar-cta h3 { color: var(--bg-white); }
.sidebar-cta p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 16px; }
.services-category { margin-bottom: 48px; }
.category-title { font-size: 1.4rem; margin-bottom: 8px; color: var(--navy); }
.category-title i { color: var(--primary); margin-right: 8px; }
.category-desc { color: var(--text-muted); margin-bottom: 24px; }

/* ========== CONTACT PAGE ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.contact-info-list { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
.contact-info-item { display: flex; gap: 16px; }
.contact-info-icon { width: 50px; height: 50px; border-radius: 50%; background: rgba(139,26,43,0.1); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.1rem; flex-shrink: 0; }
.contact-info-item h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 4px; }
.contact-info-item p { font-size: 0.9rem; color: var(--text-muted); }
.contact-social { margin-top: 32px; }
.contact-social h4 { font-size: 1rem; margin-bottom: 12px; color: var(--navy); }
.contact-social-links { display: flex; gap: 12px; }
.contact-social-links a { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--bg-white); display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: var(--transition); }
.contact-social-links a:hover { background: var(--primary); transform: translateY(-3px); }
.contact-form-wrap { background: var(--bg-cream); padding: 2.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.contact-form-wrap h3 { margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.9rem; color: var(--text-dark); margin-bottom: 0.4rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.95rem; transition: var(--transition); background: var(--bg-white); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,26,43,0.08); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; font-size: 0.9rem; }
.alert-success { background: #e6f9ee; color: #1e8449; border: 1px solid #a9dfbf; }
.alert-error { background: #ffe6e6; color: #c0392b; border: 1px solid #f5c6cb; }

/* ========== BRANCHES / MAPS ========== */
.branches-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; }
.branch-card { background: var(--bg-white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.branch-map { height: 200px; background: var(--bg-light); }
.branch-map iframe { width: 100%; height: 100%; border: none; }
.branch-info { padding: 24px; }
.branch-info h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--navy); }
.head-office-badge { display: inline-block; background: var(--accent); color: var(--text-dark); font-family: 'Inter', sans-serif; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 0.2rem 0.6rem; border-radius: 50px; margin-left: 0.5rem; vertical-align: middle; }
.branch-info p { font-size: 0.9rem; color: var(--text-body); margin-bottom: 6px; }
.branch-info i { color: var(--primary); margin-right: 8px; width: 16px; text-align: center; }
.maps-section { padding-top: 0; }
.maps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }
.map-card { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.map-card h4 { font-family: 'Inter', sans-serif; font-size: 0.95rem; padding: 0.75rem 1rem; background: var(--bg-cream); border-bottom: 1px solid var(--border); color: var(--primary); }
.map-card iframe { width: 100%; height: 280px; border: none; }

/* ========== COMMUNITY ========== */
.community-projects-list { display: flex; flex-direction: column; gap: 48px; }
.community-project-full { background: var(--bg-white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.community-project-content { padding: 36px; }
.community-project-content h3 { font-size: 1.4rem; margin-bottom: 10px; }
.project-location { color: var(--primary); font-weight: 500; margin-bottom: 10px; font-family: 'Inter', sans-serif; }
.project-location i { margin-right: 6px; }
.project-description { line-height: 1.8; margin-bottom: 10px; color: var(--text-body); }
.project-date { color: var(--text-muted); font-size: 0.9rem; font-family: 'Inter', sans-serif; }
.project-date i { color: var(--accent); margin-right: 6px; }
.project-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; padding: 0 36px 36px; }
.project-gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.project-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-gallery-item:hover img { transform: scale(1.05); }
.project-gallery-item .gallery-zoom { position: absolute; inset: 0; background: rgba(139,26,43,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; text-decoration: none; }
.project-gallery-item:hover .gallery-zoom { opacity: 1; }
.project-gallery-item .gallery-zoom i { color: white; font-size: 1.2rem; background: rgba(255,255,255,0.2); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 3rem; color: var(--border); margin-bottom: 16px; display: block; }

/* ========== TESTIMONIALS ========== */
.testimonials-section { background: var(--bg-cream); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }
.testimonial-card { background: var(--bg-white); padding: 2rem; border-radius: var(--radius-md); border: 1px solid var(--border); border-top: 4px solid var(--accent); transition: var(--transition); }
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-stars { color: var(--accent); font-size: 0.9rem; margin-bottom: 1rem; }
.testimonial-text { font-style: italic; font-size: 1rem; line-height: 1.75; color: var(--text-body); margin-bottom: 1.25rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar { width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--bg-white); font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.85rem; }
.testimonial-info h4, .testimonial-name { font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 600; }
.testimonial-info span, .testimonial-role { font-family: 'Inter', sans-serif; font-size: 0.8rem; color: var(--text-muted); }

/* ========== FOOTER ========== */
.main-footer, .footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-brand .footer-logo img { height: 50px; }
.footer-brand .footer-logo-text { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--bg-white); }
.footer-brand .footer-logo-sub { font-family: 'Inter', sans-serif; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); }
.footer-brand p, .footer-about p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 1rem; }
.footer-brand .tagline { color: var(--accent); font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.85rem; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1); color: var(--bg-white); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.footer-social a:hover { background: var(--accent); color: var(--navy-dark); }
.footer-section, .footer-col { }
.footer-section h4, .footer-col h4 { color: var(--bg-white); font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; position: relative; padding-bottom: 10px; }
.footer-section h4::after, .footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 3px; background: var(--accent); border-radius: 2px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-family: 'Inter', sans-serif; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact-item, .footer-contact li { display: flex; gap: 0.6rem; margin-bottom: 0.75rem; font-family: 'Inter', sans-serif; font-size: 0.88rem; }
.footer-contact-item i, .footer-contact i { color: var(--accent); margin-top: 0.15rem; width: 14px; text-align: center; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; text-align: center; font-family: 'Inter', sans-serif; font-size: 0.82rem; color: rgba(255,255,255,0.4); margin-top: 40px; }
.footer-logo-img { height: 50px; margin-bottom: 16px; }

/* ========== CHAT WIDGET ========== */
.chat-widget { position: fixed; bottom: 30px; left: 30px; z-index: 10000; }
.chat-toggle { width: 65px; height: 65px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; cursor: pointer; box-shadow: var(--shadow-lg); transition: var(--transition); border: 2px solid rgba(201,168,76,0.3); color: var(--text-light); position: relative; }
.chat-toggle:hover { transform: scale(1.1); border-color: var(--accent); }
.chat-toggle .badge { position: absolute; top: -5px; right: -5px; width: 20px; height: 20px; background: var(--accent); border-radius: 50%; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; color: var(--primary-dark); font-weight: 700; }
.chat-window { position: absolute; bottom: 85px; left: -10px; width: 350px; max-width: calc(100vw - 40px); background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; display: none; flex-direction: column; height: 500px; max-height: 80vh; border: 1px solid var(--border); }
.chat-window.active { display: flex; }
.chat-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--text-light); padding: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.chat-header-info { display: flex; align-items: center; gap: 0.75rem; }
.chat-avatar { width: 40px; height: 40px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.chat-header h3, .chat-header h4 { margin: 0; font-size: 1.1rem; color: var(--text-light); }
.chat-header .status, .chat-status { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.chat-status i { font-size: 0.5rem; margin-right: 4px; color: var(--accent); }
.chat-close { background: none; border: none; color: var(--text-light); font-size: 1.5rem; cursor: pointer; opacity: 0.7; transition: var(--transition); }
.chat-close:hover { opacity: 1; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1.5rem; background: var(--bg-cream); }
.message { margin-bottom: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius-md); max-width: 85%; animation: msgSlide 0.3s ease; font-size: 0.95rem; line-height: 1.6; font-family: 'Inter', sans-serif; }
.message.bot { background: var(--bg-white); color: var(--text-dark); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.message.user { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--text-light); margin-left: auto; border-bottom-right-radius: 4px; }
.chat-quick-actions { padding: 0.75rem 1.5rem; background: var(--bg-white); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 0.5rem; max-height: 120px; overflow-y: auto; }
.quick-action { padding: 0.5rem 1rem; background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.2); border-radius: 50px; font-size: 0.8rem; color: var(--text-dark); cursor: pointer; transition: var(--transition); font-family: 'Inter', sans-serif; }
.quick-action:hover { background: var(--accent); color: var(--primary-dark); }
.chat-input { padding: 1rem 1.5rem; background: var(--bg-white); border-top: 1px solid var(--border); display: flex; gap: 0.75rem; }
.chat-input input { flex: 1; padding: 0.9rem 1.25rem; border: 2px solid var(--border); border-radius: 50px; font-size: 0.95rem; outline: none; transition: var(--transition); }
.chat-input input:focus { border-color: var(--accent); }
.chat-input button { width: 45px; height: 45px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); border: none; border-radius: 50%; color: var(--primary-dark); font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); cursor: pointer; }
.chat-input button:hover { transform: scale(1.05); }

/* ========== WHATSAPP WIDGET ========== */
.whatsapp-widget { position: fixed; bottom: 30px; right: 30px; z-index: 10000; }
.whatsapp-btn { width: 65px; height: 65px; background: var(--whatsapp); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; cursor: pointer; box-shadow: 0 5px 25px rgba(37,211,102,0.4); transition: var(--transition); border: none; color: white; position: relative; }
.whatsapp-btn:hover { transform: scale(1.1); }
.whatsapp-btn .pulse { position: absolute; width: 100%; height: 100%; border-radius: 50%; background: var(--whatsapp); animation: waPulse 2s infinite; }
.whatsapp-float a { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; background: var(--whatsapp); border-radius: 50%; color: white; font-size: 1.6rem; box-shadow: 0 4px 15px rgba(37,211,102,0.4); transition: var(--transition); position: relative; }
.whatsapp-float a:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,0.5); }
.whatsapp-float .pulse { position: absolute; width: 100%; height: 100%; border-radius: 50%; background: var(--whatsapp); animation: waPulse 2s infinite; }
.whatsapp-popup { position: absolute; bottom: 85px; right: -10px; width: 400px; max-width: calc(100vw - 40px); background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; display: none; flex-direction: column; border: 1px solid var(--border); }
.whatsapp-popup.active { display: flex; animation: msgSlide 0.3s ease; }
.whatsapp-header { background: linear-gradient(135deg, #128c7e, var(--whatsapp)); color: white; padding: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.whatsapp-header h3 { margin: 0; font-size: 1.1rem; color: white; }
.whatsapp-header p { font-size: 0.8rem; opacity: 0.9; color: white; margin: 2px 0 0; }
.whatsapp-close { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; opacity: 0.8; }
.whatsapp-close:hover { opacity: 1; }
.whatsapp-body { padding: 1.5rem; }
.whatsapp-body .welcome { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 0.95rem; font-family: 'Inter', sans-serif; }
.whatsapp-body .name-input { width: 100%; padding: 0.9rem 1.25rem; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 1rem; margin-bottom: 1rem; outline: none; transition: var(--transition); font-family: 'Inter', sans-serif; }
.whatsapp-body .name-input:focus { border-color: var(--whatsapp); }
.whatsapp-body textarea { width: 100%; padding: 1rem; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 1rem; min-height: 120px; resize: vertical; margin-bottom: 1.25rem; font-family: 'Inter', sans-serif; outline: none; transition: var(--transition); }
.whatsapp-body textarea:focus { border-color: var(--whatsapp); }
.whatsapp-body .btn-whatsapp-send { width: 100%; justify-content: center; background: var(--whatsapp); color: white; display: flex; align-items: center; gap: 0.5rem; padding: 0.9rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: var(--transition); font-family: 'Inter', sans-serif; }
.whatsapp-body .btn-whatsapp-send:hover { background: #1ebc57; transform: translateY(-1px); }

/* ========== BACK TO TOP ========== */
.back-to-top { position: fixed; bottom: 110px; right: 30px; width: 50px; height: 50px; background: var(--primary); color: var(--text-light); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; transition: var(--transition); opacity: 0; visibility: hidden; z-index: 9999; box-shadow: var(--shadow-md); }
.back-to-top.visible, .back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ========== LIGHTBOX ========== */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 100000; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox-content img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; background: rgba(255,255,255,0.15); color: var(--bg-white); border: none; width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; transition: var(--transition); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .about-grid, .contact-grid, .mv-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .locations-grid { grid-template-columns: 1fr; }
  .maps-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .top-bar { display: none; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-white); flex-direction: column; padding: 1rem; border-top: 1px solid var(--border); box-shadow: var(--shadow-md); }
  .nav-links.active { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; }
  .nav-dropdown .dropdown-menu { position: static; box-shadow: none; border-top: none; padding-left: 20px; display: block; }
  .mobile-menu-btn { display: block; }
  .hero-slideshow { min-height: 78vh; }
  .hero-slide { min-height: inherit; }
  .hero-slide .hero-content { padding: 4rem 0; }
  .hero-slider-nav { width: 40px; height: 40px; font-size: 1rem; }
  .hero-slider-nav.prev { left: 12px; }
  .hero-slider-nav.next { right: 12px; }
  .hero-stats { gap: 1.5rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .about-features { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .practice-grid, .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .page-banner { min-height: 240px; }
  .page-banner h1 { font-size: 1.8rem; }
  .chat-window, .whatsapp-popup { width: calc(100vw - 40px); right: -10px; left: -10px; }
  .offices-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-slideshow { min-height: 760px; }
  .hero-slide { min-height: inherit; }
  .hero-slide .hero-content { padding: 5rem 0 4rem; }
  .hero-slider-nav { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 1.5rem; }
  .values-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .section-title, h2 { font-size: 1.6rem; }
}
