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

:root {
  --primary: #1a3a5c;
  --primary-light: #2a5a8c;
  --accent: #e8a838;
  --accent-hover: #d4942e;
  --bg-light: #f8f9fa;
  --bg-dark: #1a3a5c;
  --text: #333;
  --text-light: #666;
  --white: #fff;
  --border: #dee2e6;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 8px;
  --max-width: 1140px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); line-height: 1.6; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* HEADER */
.top-bar {
  background: var(--primary);
  color: var(--white);
  font-size: 0.85rem;
  padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: var(--white); text-decoration: none; }
.top-bar a:hover { color: var(--accent); }
.top-bar .phone { font-weight: 700; font-size: 1rem; }
.top-bar .phone i { margin-right: 4px; }

/* HEADER MAIN */
.header-main {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-main .container { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; }
.logo img { height: 50px; width: auto; }
.logo h1 { font-size: 1.3rem; color: var(--primary); }
.logo h1 span { color: var(--accent); }

/* NAV */
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); padding: 8px; }
.nav-menu { display: flex; list-style: none; gap: 4px; align-items: center; }
.nav-menu li { position: relative; }
.nav-menu a {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.nav-menu a:hover, .nav-menu a.active { background: var(--primary); color: var(--white); }
.nav-menu .has-children > a::after { content: '\25BE'; margin-left: 4px; font-size: 0.7rem; }
.nav-menu .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  list-style: none;
  z-index: 200;
  padding: 8px 0;
}
.nav-menu .has-children:hover .submenu { display: block; }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { font-size: 2.6rem; margin-bottom: 16px; font-weight: 700; }
.hero p { font-size: 1.15rem; max-width: 700px; margin: 0 auto 24px; opacity: 0.95; }
.hero-cta { display: inline-block; background: var(--accent); color: var(--white); padding: 14px 36px; border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: 1.05rem; transition: all 0.2s; box-shadow: 0 4px 15px rgba(232,168,56,0.4); }
.hero-cta:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,168,56,0.5); }

/* HERO SMALL */
.hero-small {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-small-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}
.hero-small > .container { position: relative; z-index: 1; }
.hero-small h1 { font-size: 2.2rem; margin-bottom: 8px; }
.hero-small p { opacity: 0.9; max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* SECTIONS */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 1.8rem; color: var(--primary); margin-bottom: 10px; }
.section-title p { color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* SERVICES GRID */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  text-align: center;
  transition: transform 0.2s;
}
.service-card:hover { transform: translateY(-4px); }
.service-card .icon { font-size: 2.2rem; color: var(--accent); margin-bottom: 16px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--primary); }
.service-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 16px; }
.service-card .btn { display: inline-block; background: var(--primary); color: var(--white); padding: 8px 20px; border-radius: var(--radius); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: background 0.2s; }
.service-card .btn:hover { background: var(--primary-light); }

/* ABOUT / CONTENT */
.content-area { max-width: 800px; margin: 0 auto; }
.content-area h2 { color: var(--primary); margin: 30px 0 12px; font-size: 1.5rem; }
.content-area h3 { color: var(--primary-light); margin: 20px 0 10px; font-size: 1.2rem; }
.content-area p { margin-bottom: 14px; }
.content-area ul { margin: 10px 0 20px 20px; }
.content-area ul li { margin-bottom: 8px; }
.content-area ul li i { color: var(--accent); margin-right: 8px; }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 30px 0; }
.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--border);
}
.pricing-card .header {
  background: var(--primary);
  color: var(--white);
  padding: 20px;
}
.pricing-card .header h3 { font-size: 1.2rem; margin-bottom: 4px; color: var(--white); }
.pricing-card .price { font-size: 2.2rem; font-weight: 700; }
.pricing-card .price span { font-size: 0.9rem; font-weight: 400; opacity: 0.8; }
.pricing-card .body { padding: 24px; }
.pricing-card .body ul { list-style: none; margin: 0; }
.pricing-card .body ul li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.pricing-card .footer { padding: 16px 24px; }
.pricing-card .btn { display: inline-block; background: var(--accent); color: var(--white); padding: 10px 28px; border-radius: var(--radius); text-decoration: none; font-weight: 600; transition: background 0.2s; }
.pricing-card .btn:hover { background: var(--accent-hover); }

/* STATS */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; }
.stat-item .number { font-size: 2.5rem; font-weight: 700; color: var(--accent); }
.stat-item .label { font-size: 0.95rem; color: var(--text-light); margin-top: 4px; }

/* CONTACT PAGE */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h3 { color: var(--primary); margin-bottom: 16px; }
.contact-info p { margin-bottom: 10px; }
.contact-info i { color: var(--accent); width: 24px; margin-right: 8px; }

/* FOOTER */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 40px 0 20px;
}
footer .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
footer h4 { color: var(--white); margin-bottom: 12px; font-size: 1rem; }
footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer ul { list-style: none; }
footer ul li { margin-bottom: 6px; font-size: 0.9rem; }
footer .bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 30px; padding-top: 16px; text-align: center; font-size: 0.85rem; }

/* BREADCRUMB */
.breadcrumb { background: var(--bg-light); padding: 10px 0; font-size: 0.85rem; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-light); }

/* IMAGE BANNER */
.img-banner {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 24px 0;
  display: block;
}

/* IMAGE FLOATING */
.img-float-right {
  float: right;
  max-width: 45%;
  margin: 0 0 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.img-float-left {
  float: left;
  max-width: 45%;
  margin: 0 24px 16px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* SERVICE CARD WITH IMAGE */
.service-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
}
.service-card { overflow: hidden; padding: 0; }
.service-card .icon { font-size: 2.2rem; color: var(--accent); margin-bottom: 16px; }
.service-card .card-body { padding: 24px; }
.service-card .card-body h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--primary); }
.service-card .card-body p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 16px; }
.service-card .card-body .btn { display: inline-block; background: var(--primary); color: var(--white); padding: 8px 20px; border-radius: var(--radius); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: background 0.2s; }
.service-card .card-body .btn:hover { background: var(--primary-light); }

/* TEAM SECTION */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px; }
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--border);
}
.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.team-card .card-body { padding: 20px; }
.team-card .name { font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.team-card .role { color: var(--accent); font-size: 0.9rem; margin-top: 4px; }

/* TEAM HISTORY GALLERY */
.history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.history-grid figure {
  margin: 0;
  text-align: center;
}
.history-grid img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 3px solid var(--border);
  transition: transform 0.3s;
}
.history-grid img:hover { transform: scale(1.08); }
.history-grid figcaption { font-size: 0.85rem; color: var(--text-light); margin-top: 8px; font-weight: 500; }

/* REVIEWS SECTION */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid var(--border);
  text-align: center;
}
.review-card .stars { color: var(--accent); font-size: 1.3rem; margin-bottom: 12px; letter-spacing: 2px; }
.review-card .text { font-style: italic; color: var(--text-light); font-size: 0.9rem; line-height: 1.6; margin-bottom: 12px; }
.review-card .author { font-weight: 600; color: var(--primary); font-size: 0.9rem; }
.review-card .platform { font-size: 0.8rem; color: var(--text-light); }

/* SOCIAL BUTTONS */
.social-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  color: var(--white);
}
.social-btn.facebook { background: #1877f2; }
.social-btn.facebook:hover { background: #0d65d9; }
.social-btn.google { background: #ea4335; }
.social-btn.google:hover { background: #d33426; }
.social-btn.maps { background: #34a853; }
.social-btn.maps:hover { background: #2d9249; }

/* WHATSAPP BUTTON */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  margin-top: 8px;
}
.whatsapp-btn:hover { background: #20bd5a; transform: translateY(-1px); }
.whatsapp-btn svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.whatsapp-btn .phone-num { font-weight: 400; opacity: 0.9; font-size: 0.8rem; }

/* TEAM PHONE */
.team-phone { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }

/* GOOGLE MAPS EMBED */
.map-container {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 24px 0;
}
.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
  display: block;
}

/* IMAGE GALLERY */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.gallery-grid img:hover { transform: scale(1.03); }

/* CONTENT IMAGE SIDE-BY-SIDE */
.content-with-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 30px 0;
}
.content-with-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.content-with-img.reversed { direction: rtl; }
.content-with-img.reversed > * { direction: ltr; }

/* FEATURE ROW */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 40px 0;
}
.feature-row img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* CARD ICON IMAGE */
.card-icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 16px;
}

/* HERO RATING BADGE */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 99;
  transition: opacity 0.3s;
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { background: var(--primary-light); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--white);
    padding: 10px 0;
    border-top: 1px solid var(--border);
  }
  .nav-menu.open { display: flex; }
  .nav-menu .submenu { position: static; box-shadow: none; display: none; padding-left: 20px; }
  .nav-menu .has-children:hover .submenu { display: none; }
  .nav-menu .has-children.open > .submenu { display: block; }
  
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 1.8rem; }
  .hero-small h1 { font-size: 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 1.4rem; }
  .top-bar .container { flex-direction: column; text-align: center; }
  .pricing-grid { grid-template-columns: 1fr; }
  footer .container { grid-template-columns: 1fr; }
  .content-with-img { grid-template-columns: 1fr; gap: 20px; }
  .feature-row { grid-template-columns: 1fr; gap: 20px; }
  .img-float-right, .img-float-left { float: none; max-width: 100%; margin: 16px 0; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .team-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .history-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (max-width: 480px) {
  :root { font-size: 14px; }
  .hero { padding: 50px 0; }
  .section { padding: 40px 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid img { height: 150px; }
}
