@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&family=Playfair+Display:wght@400;600;700;800&display=swap');

:root {
  /* Colors */
  --primary-color: #1a2744;     /* Deep navy */
  --bg-color: #f8f6f1;          /* Warm white */
  --accent-color: #d4922a;      /* Amber/gold */
  --text-dark: #222222;
  --text-light: #555555;
  --white: #ffffff;
  --whatsapp-color: #25D366;
  --whatsapp-hover: #1EBE5D;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;

  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(26, 39, 68, 0.1);

  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Section Spacing */
  --section-pad: 100px 0;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; margin-bottom: 1rem; }

p { margin-bottom: 1.5rem; color: var(--text-light); }

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #be801f;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(212, 146, 42, 0.3);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--bg-color);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: var(--white);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast), padding var(--transition-fast);
  padding: 25px 0;
}

header.scrolled {
  background-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  padding: 15px 0;
}

header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 30px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.5px;
}

.logo span {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: center;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 16px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  justify-content: flex-end;
}

.header-cta .phone {
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #111a2d 100%);
  color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  overflow: hidden;
}

/* CSS gradient with geometric pattern as placeholder */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: radial-gradient(circle at 80% 50%, rgba(255,255,255,0.03) 0%, transparent 40%),
                    radial-gradient(circle at 20% 80%, rgba(212,146,42,0.05) 0%, transparent 40%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  color: var(--white);
}

.hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-badges {
  display: flex;
  gap: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-icon {
  color: var(--accent-color);
  font-size: 24px;
}

.badge-text {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.hero-image {
  position: relative;
  height: 600px;
  border-radius: 12px;
  background: linear-gradient(45deg, rgba(212,146,42,0.1), rgba(26,39,68,0.3));
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image::after {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 20px);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

/* Sections General */
section {
  padding: var(--section-pad);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-subtitle {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border-bottom: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--accent-color);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(212, 146, 42, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--accent-color);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.service-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 18px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 15px;
  margin-top: 15px;
}

.service-link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.service-card:hover .service-link::after {
  transform: translateX(5px);
}

/* How It Works (Timeline) */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgba(26, 39, 68, 0.1);
  z-index: 0;
}

.timeline-step {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 250px;
}

.step-number {
  width: 80px;
  height: 80px;
  background-color: var(--white);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all var(--transition-normal);
}

.timeline-step:hover .step-number {
  background-color: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
}

/* Stats Counter */
.stats {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  color: var(--accent-color);
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 10px;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

/* Districts Grid */
.districts-section {
  background-color: var(--white);
}

.districts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.district-link {
  display: block;
  padding: 15px 20px;
  background-color: var(--bg-color);
  border-radius: 4px;
  color: var(--primary-color);
  font-weight: 500;
  transition: all var(--transition-fast);
  border: 1px solid rgba(0,0,0,0.05);
}

.district-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateX(5px);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.blog-cover {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}

.stars {
  color: #FFB800;
  margin-bottom: 15px;
  font-size: 18px;
}

.testimonial-text {
  font-style: italic;
  font-size: 16px;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* CTA Banner */
.cta-banner {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 100px 20px;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Footer */
footer {
  background-color: #111a2d;
  color: rgba(255,255,255,0.7);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-logo {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-about {
  max-width: 400px;
}

.footer-heading {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 25px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-contact i {
  color: var(--accent-color);
  margin-top: 5px;
}

.footer-bottom {
  text-align: center;
  padding: 25px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp-color);
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-whatsapp 2s infinite;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: var(--whatsapp-hover);
  transform: scale(1.1);
}

/* Phone Floating Button */
.phone-float {
  position: fixed;
  bottom: 40px;
  left: 40px;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 26px;
  box-shadow: 0 4px 10px rgba(26, 39, 68, 0.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse-phone 2s infinite;
}

.phone-float:hover {
  background-color: var(--accent-color);
  transform: scale(1.1);
}

@keyframes pulse-phone {
  0%   { box-shadow: 0 0 0 0 rgba(26, 39, 68, 0.6); }
  70%  { box-shadow: 0 0 0 14px rgba(26, 39, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 39, 68, 0); }
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Inner Page Header */
.page-header {
  padding: 210px 0 110px;
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 15px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
}

.breadcrumb a {
  color: var(--white);
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-box {
  background-color: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Accordion */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border: 1px solid #eee;
  margin-bottom: 15px;
  border-radius: 4px;
  overflow: hidden;
}

.accordion-title {
  padding: 20px;
  background-color: var(--white);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-content {
  padding: 0 20px;
  background-color: var(--white);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
  padding: 20px;
  max-height: 500px;
  border-top: 1px solid #eee;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Map Embed */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 40px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ================================================
   RESPONSIVE
================================================ */

/* Tablet: 992px */
@media (max-width: 992px) {
  .hero-content {
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .trust-badges {
    justify-content: center;
    flex-wrap: wrap;
  }

  .header-cta {
    gap: 8px;
  }

  .header-cta .phone {
    font-size: 14px;
  }

  .header-cta .btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  /* Header grid compact on tablet */
  header .container {
    column-gap: 15px;
  }

  .timeline {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .timeline::before {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

/* Mobile: 768px */
@media (max-width: 768px) {

  /* --- Header: switch back to flex so grid doesn't break --- */
  header {
    padding: 14px 0;
  }

  header.scrolled {
    padding: 10px 0;
  }

  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 0;
  }

  /* Shrink logo so it never wraps */
  .logo {
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 60px);
  }

  /* Nav: off-canvas drawer */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 80vw);
    height: 100vh;
    background-color: var(--primary-color);
    flex-direction: column;
    padding-top: 80px;
    gap: 20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    justify-content: flex-start;
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1002;
    flex-shrink: 0;
  }

  /* --- Header mobile: show Hemen Ara button, hide phone text --- */
  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .logo {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 18px;
  }

  .header-cta {
    display: flex;
    flex-shrink: 0;
    gap: 0;
  }

  .header-cta .phone {
    display: none;
  }

  .header-cta .btn {
    padding: 8px 13px;
    font-size: 13px;
    border-radius: 4px;
  }

  /* --- Hero --- */
  .hero {
    clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
    padding-top: 80px;
    min-height: auto;
    padding-bottom: 80px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .hero p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  .trust-badges {
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 24px;
  }

  /* --- Page Header (inner pages) --- */
  .page-header {
    padding: 120px 0 60px;
  }

  .page-header h1 {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

  /* --- Sections --- */
  section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  /* --- Services --- */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 28px;
  }

  /* --- Stats --- */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-item h3 {
    font-size: 36px;
  }

  /* --- Timeline --- */
  .timeline {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .timeline::before {
    display: none;
  }

  .timeline-step {
    width: 100%;
    max-width: 320px;
  }

  /* --- Districts --- */
  .districts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* --- Contact --- */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* --- Testimonials --- */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* --- CTA Banner --- */
  .cta-banner {
    padding: 60px 20px;
  }

  .cta-banner h2 {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .cta-banner p {
    font-size: 16px;
  }

  /* --- Footer --- */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-about {
    max-width: 100%;
  }

  /* --- WhatsApp float button --- */
  .whatsapp-float {
    bottom: 24px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
}

/* Small phones: 480px */
@media (max-width: 480px) {
  .logo {
    font-size: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .districts-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .contact-info-box {
    padding: 24px 20px;
  }

  .testimonial-card {
    padding: 24px 20px;
  }

  .service-card {
    padding: 24px 20px;
  }
}
