/* ========================================================
   Vanmathi Construction — Main Stylesheet
   ======================================================== */

:root {
  --navy: #10233f;
  --navy-dark: #0a1728;
  --navy-light: #1c3459;
  --gold: #d98e2b;
  --gold-dark: #b8741c;
  --light: #f5f6f8;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 4px 18px rgba(16, 35, 63, 0.10);
  --shadow-lg: 0 12px 32px rgba(16, 35, 63, 0.18);
  --font: 'Segoe UI', 'Poppins', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.65;
  background: var(--white);
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

.section-tag {
  display: inline-block;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.25;
}

.section-desc {
  color: var(--gray);
  max-width: 650px;
  font-size: 16px;
}

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

.section-head .section-desc { margin: 0 auto; }

.bg-light { background: var(--light); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy .section-title { color: var(--white); }
.bg-navy .section-desc { color: #c8d0dd; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: .3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
}

.btn-primary { background: var(--gold); color: var(--navy-dark); }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); }

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

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

.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #c8d0dd;
  font-size: 13.5px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.topbar a { color: #c8d0dd; }
.topbar a:hover { color: var(--gold); }

.topbar-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-left span { display: inline-flex; align-items: center; gap: 6px; }

.topbar-social { display: flex; gap: 14px; }
.topbar-social a { font-weight: 600; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 500;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--navy);
}

.logo .logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.footer-mark {
  width: 40px;
  height: 40px;
}

.logo small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 1.5px;
}

nav.main-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}

nav.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  padding: 6px 0;
  position: relative;
}

nav.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}

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

nav.main-nav a.active { color: var(--gold-dark); }

.nav-cta { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(120deg, rgba(10,23,40,.92), rgba(16,35,63,.78)),
              url('../images/photos/photo-1541976590-713941681591.jpg') center/cover no-repeat;
}

.hero .container { position: relative; z-index: 2; max-width: 640px; }

.hero .section-tag { color: var(--gold); }

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}

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

.hero p {
  font-size: 17px;
  color: #dbe1ea;
  margin-bottom: 30px;
  max-width: 540px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Page header (inner pages) */
.page-header {
  position: relative;
  padding: 90px 0 60px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(120deg, rgba(10,23,40,.92), rgba(16,35,63,.82)),
              url('../images/photos/photo-1503387762-592deb58ef4e.jpg') center/cover no-repeat;
}

.page-header h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 10px; }
.page-header .crumbs { color: #c8d0dd; font-size: 14px; }
.page-header .crumbs a { color: var(--gold); }

/* ---------- Stats ---------- */
.stats-strip {
  background: var(--navy);
  color: var(--white);
  padding: 46px 0;
}

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

.stat-num {
  font-size: 38px;
  font-weight: 800;
  color: var(--gold);
}

.stat-label { font-size: 14px; color: #c8d0dd; margin-top: 6px; letter-spacing: .5px; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .25s ease;
}

.service-card-img {
  height: 170px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.service-card:hover .service-card-img img { transform: scale(1.08); }

.service-card > .service-icon,
.service-card > h3,
.service-card > p,
.service-card > ul,
.service-card > a.learn {
  margin-left: 28px;
  margin-right: 28px;
}

.service-card > .service-icon { margin-top: 24px; }
.service-card > ul { padding-bottom: 28px; }
.service-card > a.learn { display: inline-block; margin-bottom: 28px; }

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

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(217,142,43,0.12);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.service-card h3 { font-size: 19px; margin-bottom: 10px; font-weight: 700; }
.service-card p { color: var(--gray); font-size: 14.5px; margin-bottom: 14px; }
.service-card .learn { color: var(--gold-dark); font-weight: 700; font-size: 14px; }

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.why-list { display: grid; gap: 20px; margin-top: 24px; }

.why-item { display: flex; gap: 16px; align-items: flex-start; }

.why-item .num {
  min-width: 44px; height: 44px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}

.why-item h4 { font-size: 16.5px; margin-bottom: 4px; }
.why-item p { color: var(--gray); font-size: 14.5px; }

.why-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---------- Projects ---------- */
.filter-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-tabs button {
  padding: 10px 22px;
  border-radius: 30px;
  border: 2px solid var(--gray-light);
  background: var(--white);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
}

.filter-tabs button.active,
.filter-tabs button:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  transition: transform .25s ease, box-shadow .25s ease;
}

.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.project-img { position: relative; height: 220px; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .project-img img { transform: scale(1.08); }

.project-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.project-body { padding: 20px 22px; }
.project-body h3 { font-size: 18px; margin-bottom: 6px; }
.project-body .loc { color: var(--gray); font-size: 13.5px; margin-bottom: 10px; }
.project-body .loc::before { content: '📍 '; }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.testi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.testi-stars { color: var(--gold); margin-bottom: 12px; font-size: 15px; }
.testi-card p { color: var(--navy); font-size: 14.5px; margin-bottom: 20px; font-style: italic; }

.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.testi-person h5 { font-size: 14.5px; }
.testi-person span { font-size: 12.5px; color: var(--gray); }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.cta-band h2 { font-size: clamp(24px, 3.5vw, 32px); margin-bottom: 12px; }
.cta-band p { color: #c8d0dd; margin-bottom: 26px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14.5px;
  color: var(--navy);
  background: var(--white);
}

.field textarea { resize: vertical; min-height: 110px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-note { font-size: 12.5px; color: var(--gray); margin-top: 6px; }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 44px;
}

.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 30px;
}

.contact-info-card h3 { font-size: 20px; margin-bottom: 22px; }

.contact-row {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.contact-row .ic {
  width: 42px; height: 42px;
  background: rgba(217,142,43,0.18);
  color: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-row h5 { font-size: 14.5px; margin-bottom: 3px; }
.contact-row p, .contact-row a { color: #c8d0dd; font-size: 14px; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 30px;
}

.map-embed iframe { width: 100%; height: 300px; border: 0; display: block; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-grid .g-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  position: relative;
}

.gallery-grid .g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.gallery-grid .g-item:hover img { transform: scale(1.1); }

.g-item.tall { grid-row: span 2; aspect-ratio: 1/2.05; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-dark); color: #c8d0dd; }

.footer-top { padding: 64px 0 40px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
}

.footer-logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 20px; margin-bottom: 16px; }
.footer-col h4 { color: var(--white); font-size: 15.5px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; font-size: 14px; }
.footer-col ul a:hover { color: var(--gold); }
.footer-col p { font-size: 14px; margin-bottom: 16px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.footer-social a:hover { background: var(--gold); color: var(--navy-dark); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a:hover { color: var(--gold); }

/* ---------- Sticky action bar (mobile) ---------- */
.sticky-actions {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  display: none;
  z-index: 600;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}
.sticky-actions .container { display: flex; padding: 0; max-width: 100%; }
.sticky-actions a {
  flex: 1;
  text-align: center;
  padding: 13px 6px;
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.sticky-actions a:last-child { border-right: none; }
.sticky-actions a.whatsapp { background: #25d366; color: #fff; }
.sticky-actions a .ic { display: block; font-size: 18px; margin-bottom: 2px; }

/* Floating WhatsApp (desktop) */
.float-whatsapp {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 550;
  transition: transform .2s ease;
}
.float-whatsapp:hover { transform: scale(1.08); }

/* ---------- Utility ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.badge-row { display: flex; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.badge-row .b { text-align: left; }
.badge-row .b strong { display: block; font-size: 26px; color: var(--gold-dark); }
.badge-row .b span { font-size: 13px; color: var(--gray); }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card { text-align: center; padding: 28px 18px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.value-card .service-icon { margin: 0 auto 16px; }
.value-card h4 { font-size: 15.5px; margin-bottom: 8px; }
.value-card p { font-size: 13.5px; color: var(--gray); }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.team-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-align: center; }
.team-card img { height: 260px; object-fit: cover; }
.team-card .info { padding: 20px; }
.team-card h4 { font-size: 16.5px; margin-bottom: 4px; }
.team-card span { font-size: 13px; color: var(--gold-dark); font-weight: 600; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-card { text-align: center; }
.process-card .num-circle {
  width: 60px; height: 60px; margin: 0 auto 16px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; color: var(--gold-dark);
}
.process-card h4 { font-size: 15.5px; margin-bottom: 8px; }
.process-card p { font-size: 13.5px; color: var(--gray); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .services-grid, .projects-grid, .testi-grid, .values-grid, .team-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid, .two-col, .contact-wrap { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn span.hide-mobile { display: none; }
  .sticky-actions { display: block; }
  body { padding-bottom: 54px; }
  .services-grid, .projects-grid, .testi-grid, .values-grid, .team-grid, .process-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 56px 0; }
  .topbar-left span:nth-child(3) { display: none; }
}

/* Mobile nav drawer */
nav.main-nav.open {
  display: block;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 10px 24px 24px;
}
nav.main-nav.open ul { flex-direction: column; align-items: flex-start; gap: 4px; }
nav.main-nav.open ul li { width: 100%; }
nav.main-nav.open a { display: block; padding: 12px 0; border-bottom: 1px solid var(--gray-light); }
