/* =============================================
   PRIME MARKETING — MAIN STYLESHEET
   Real Estate Company | Islamabad, Pakistan
   Version: 1.0
   ============================================= */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Brand Colors */
  --navy:        #0d1f3c;
  --navy-mid:    #162847;
  --navy-light:  #1e3a5f;
  --gold:        #c9a84c;
  --gold-dark:   #b8962e;
  --gold-light:  #dfc278;
  --white:       #ffffff;
  --off-white:   #f8f7f3;
  --light-gray:  #f1f0eb;
  --border:      #e5e7eb;

  /* Text */
  --text-dark:   #0d1f3c;
  --text-mid:    #374151;
  --text-light:  #6b7280;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows */
  --shadow-xs:    0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.11);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.15);
  --shadow-hover: 0 16px 48px rgba(0,0,0,0.18);

  /* Transitions */
  --tr:      all 0.3s ease;
  --tr-fast: all 0.18s ease;
  --tr-slow: all 0.5s ease;

  /* Spacing & Layout */
  --container-max: 1180px;
  --radius:    4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 50px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* must be on html AND body for reliable mobile clipping */
}
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--tr); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); line-height: 1.2; color: var(--text-dark); }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { font-size: 1rem; line-height: 1.75; color: var(--text-mid); }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: 88px 0; overflow: hidden; }
.section-bg { background-color: var(--off-white); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header p { margin-top: 14px; max-width: 560px; margin-left: auto; margin-right: auto; }

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title { color: var(--navy); }
.section-title.white { color: var(--white); }
.section-title .gold-italic { color: var(--gold); font-style: italic; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--tr);
  white-space: nowrap;
}
.btn-sm  { padding: 9px 20px; font-size: 0.82rem; }
.btn-lg  { padding: 16px 44px; font-size: 0.95rem; }

.btn-gold {
  background: var(--gold); color: var(--navy); border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark); border-color: var(--gold-dark);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}
.btn-navy {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-mid); transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn-outline-white {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: var(--white); color: var(--navy); transform: translateY(-2px);
}
.btn-outline-navy {
  background: transparent; color: var(--navy); border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy); color: var(--white); transform: translateY(-2px);
}
.btn-outline-gold {
  background: transparent; color: var(--gold); border-color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold); color: var(--navy); transform: translateY(-2px);
}
.btn-whatsapp {
  background: #25d366; color: var(--white); border-color: #25d366;
}
.btn-whatsapp:hover {
  background: #1da851; border-color: #1da851;
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.35);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease;
  /* Allow mobile dropdown to extend below navbar */
  overflow: visible;
}
.navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 24px rgba(0,0,0,0.18);
}
/* Pages without hero get solid nav from the start */
.navbar.nav-solid {
  background: var(--navy);
}

.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.nav-logo {
  font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700;
  color: var(--white); letter-spacing: 0.02em; flex-shrink: 0;
}
.nav-logo .logo-accent { color: var(--gold); }

.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-link {
  font-size: 0.88rem; font-weight: 500;
  color: rgba(255,255,255,0.82);
  position: relative; padding: 4px 0;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--gold); transition: var(--tr);
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta { margin-left: 8px; padding: 9px 22px; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px; transition: var(--tr);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HOME HERO ===== */
.hero {
  position: relative; height: 100vh; min-height: 620px;
  display: flex; align-items: center; overflow: hidden;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover; background-position: center; background-attachment: fixed;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(130deg, rgba(13,31,60,0.88) 0%, rgba(13,31,60,0.65) 60%, rgba(13,31,60,0.78) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.hero-label::before {
  content: ''; width: 32px; height: 2px; background: var(--gold); flex-shrink: 0;
}
.hero-title {
  font-family: var(--font-heading); font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 700; color: var(--white); line-height: 1.0; margin-bottom: 22px;
}
.hero-tagline {
  font-size: 1.08rem; color: rgba(255,255,255,0.82);
  margin-bottom: 40px; max-width: 480px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Scroll indicator */
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2; animation: bounceY 2.2s ease-in-out infinite;
}
.hero-scroll span {
  display: block; width: 28px; height: 46px;
  border: 2px solid rgba(255,255,255,0.45); border-radius: 14px;
  position: relative;
}
.hero-scroll span::after {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--gold); border-radius: 2px;
  animation: scrollDot 2.2s ease-in-out infinite;
}
@keyframes bounceY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}
@keyframes scrollDot {
  0%   { top: 6px; opacity: 1; }
  80%  { top: 24px; opacity: 0; }
  100% { top: 6px; opacity: 0; }
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  position: relative; height: 58vh; min-height: 400px;
  display: flex; align-items: center; overflow: hidden;
  background-size: cover; background-position: center;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,31,60,0.88) 0%, rgba(13,31,60,0.72) 100%);
}
.page-hero-content {
  position: relative; z-index: 2; text-align: center; width: 100%;
}
.page-hero-content .hero-label { justify-content: center; }
.page-hero-content h1 { color: var(--white); }
.page-hero-content p {
  color: rgba(255,255,255,0.78); font-size: 1.05rem; margin-top: 16px;
  max-width: 580px; margin-left: auto; margin-right: auto;
}

/* ===== FEATURED PROJECTS ===== */
.projects-grid {
  display: grid; gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.project-card {
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); transition: var(--tr);
  display: flex; flex-direction: column;
}
.project-card:hover {
  transform: translateY(-7px); box-shadow: var(--shadow-hover);
}
.project-card.hidden { display: none; }

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

.card-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 12px; border-radius: var(--radius-full);
  background: var(--navy); color: var(--white);
}
.badge-residential { background: var(--navy); color: var(--white); }
.badge-commercial  { background: #1e3a5f; color: var(--white); }
.badge-plots       { background: var(--gold); color: var(--navy); }

.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-desc { flex: 1; }
.card-title {
  font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600;
  color: var(--navy); margin-bottom: 5px;
}
.card-location {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.8rem; color: var(--text-light); margin-bottom: 10px;
}
.card-location i { color: var(--gold); font-size: 0.72rem; }
.card-desc {
  font-size: 0.86rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 18px;
}
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.card-actions .btn { flex: 1; text-align: center; justify-content: center; }

.section-cta { text-align: center; margin-top: 48px; }

/* ===== STATS / WHY CHOOSE US ===== */
.stats-section { background: var(--navy); padding: 88px 0; overflow: hidden; }
.stats-inner {
  display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center;
}
.stats-heading { color: var(--white); line-height: 1.25; }
.stats-subtext {
  color: rgba(255,255,255,0.65); font-size: 0.95rem; margin-top: 14px; line-height: 1.7;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.stat-item {
  padding: 26px 24px; border-radius: var(--radius-md);
  border: 1px solid rgba(201,168,76,0.2);
  background: rgba(255,255,255,0.04); transition: var(--tr);
}
.stat-item:hover {
  background: rgba(201,168,76,0.07); border-color: rgba(201,168,76,0.45);
}
.stat-icon { font-size: 1.5rem; color: var(--gold); margin-bottom: 12px; }
.stat-number {
  font-family: var(--font-heading); font-size: 1.9rem; font-weight: 700;
  color: var(--white); line-height: 1; margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.stat-desc { font-size: 0.84rem; color: rgba(255,255,255,0.6); line-height: 1.6; margin: 0; }

/* ===== ABOUT PREVIEW ===== */
.about-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.split-image { position: relative; }
.split-image img {
  width: 100%; height: 480px; object-fit: cover;
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
}
.exp-badge {
  position: absolute; bottom: -18px; right: -18px;
  width: 108px; height: 108px; background: var(--gold); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; box-shadow: var(--shadow-md); padding: 10px;
}
.exp-badge .num {
  font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700;
  color: var(--navy); line-height: 1;
}
.exp-badge .lbl {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--navy); margin-top: 4px; line-height: 1.3;
}

.split-content .section-tag { display: block; margin-bottom: 10px; }
.split-content .section-title { margin-bottom: 20px; }
.split-content p { margin-bottom: 14px; }
.split-content .btn { margin-top: 10px; }

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

.team-card {
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: var(--tr); background: var(--white);
}
.team-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-hover); }
.team-card.is-featured { border-color: var(--gold); box-shadow: 0 4px 28px rgba(201,168,76,0.15); }
.team-card.is-featured .team-info { background: var(--navy); }
.team-card.is-featured .team-name { color: var(--white); }
.team-card.is-featured .team-role { color: var(--gold); }
.team-card.is-featured .team-bio  { color: rgba(255,255,255,0.7); }

.team-photo { height: 280px; overflow: hidden; }
.team-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 0.5s ease;
}
.team-card:hover .team-photo img { transform: scale(1.06); }

.team-info { padding: 24px; background: var(--white); }
.team-name { font-family: var(--font-heading); font-size: 1.1rem; color: var(--navy); margin-bottom: 4px; }
.team-role {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.team-bio { font-size: 0.86rem; color: var(--text-mid); line-height: 1.6; margin: 0; }

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #0a2248 100%);
  padding: 80px 0; text-align: center; overflow: hidden;
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p {
  color: rgba(255,255,255,0.72); font-size: 1.05rem; margin-bottom: 36px;
  max-width: 540px; margin-left: auto; margin-right: auto;
}
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { background: #080f1f; padding-top: 64px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.6fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  font-family: var(--font-heading); font-size: 1.45rem; font-weight: 700;
  color: var(--white); display: block; margin-bottom: 14px;
}
.footer-logo .acc { color: var(--gold); }
.footer-tagline { font-size: 0.86rem; color: rgba(255,255,255,0.52); line-height: 1.7; margin-bottom: 22px; }

.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 0.82rem; transition: var(--tr);
}
.social-link:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.1); }

.footer-col h4 {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white); margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.86rem; color: rgba(255,255,255,0.55); }
.footer-col ul li a:hover { color: var(--gold); padding-left: 3px; }

.footer-contact-list { display: flex; flex-direction: column; gap: 13px; }
.footer-contact-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.84rem; color: rgba(255,255,255,0.55);
}
.footer-contact-list li i { color: var(--gold); width: 14px; flex-shrink: 0; margin-top: 3px; }
.footer-contact-list li a { color: rgba(255,255,255,0.55); }
.footer-contact-list li a:hover { color: var(--gold); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; font-size: 0.8rem; color: rgba(255,255,255,0.32);
}
.footer-bottom i { color: var(--gold); }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 990;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.65rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45); transition: var(--tr);
  animation: waPulse 2.8s ease-in-out infinite;
}
.wa-float:hover {
  background: #1da851; transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55); animation: none;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 10px rgba(37,211,102,0.1); }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up, .fade-left, .fade-right {
  opacity: 0; transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up    { transform: translateY(32px); }
.fade-left  { transform: translateX(-32px); }
.fade-right { transform: translateX(32px); }
.fade-up.visible, .fade-left.visible, .fade-right.visible {
  opacity: 1; transform: none;
}
/* Stagger */
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity 0.5s ease, transform 0.5s ease; }
.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.15s; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.25s; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.35s; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.45s; }
.stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.55s; }

/* ===== PROJECTS PAGE ===== */
.projects-page-bg {
  background-image: url('../images/projects-hero-bg.jpg');
}
.filter-bar {
  background: var(--white); padding: 28px 0;
  border-bottom: 1px solid var(--border); position: sticky; top: 70px; z-index: 100;
  box-shadow: var(--shadow-xs);
}
.filter-inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-lbl {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-light); margin-right: 6px;
}
.filter-btn {
  padding: 8px 20px; border: 2px solid var(--border); border-radius: var(--radius-full);
  background: var(--white); font-size: 0.83rem; font-weight: 600;
  color: var(--text-mid); transition: var(--tr);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--navy); background: var(--navy); color: var(--white);
}

.projects-listing { padding: 72px 0; background: var(--off-white); }
.all-grid { grid-template-columns: repeat(3, 1fr); }

/* ===== ABOUT PAGE ===== */
.about-bg {
  background-image: url('../images/about-hero-bg.jpg');
}
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card {
  background: var(--navy); padding: 42px 40px;
  border-radius: var(--radius-md); border-left: 4px solid var(--gold);
}
.mv-icon { font-size: 1.8rem; color: var(--gold); margin-bottom: 14px; }
.mv-card h3 { color: var(--white); margin-bottom: 12px; }
.mv-card p  { color: rgba(255,255,255,0.68); font-size: 0.94rem; line-height: 1.75; margin: 0; }

/* ===== CONTACT PAGE ===== */
.contact-section { padding-bottom: 88px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  min-height: 680px;
  align-items: stretch;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(13,31,60,0.18);
}

/* --- Left: Dark Info Panel --- */
.contact-info {
  background: linear-gradient(155deg, #0d1f3c 0%, #07131f 100%);
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Decorative rings */
.contact-info::before {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  border: 64px solid rgba(201,168,76,0.07);
  border-radius: 50%;
  top: -110px; right: -110px;
  pointer-events: none;
}
.contact-info::after {
  content: '';
  position: absolute;
  width: 210px; height: 210px;
  border: 42px solid rgba(201,168,76,0.05);
  border-radius: 50%;
  bottom: -58px; left: -58px;
  pointer-events: none;
}
.contact-info .section-tag {
  display: block; margin-bottom: 12px;
  position: relative; z-index: 1;
}
.contact-info h2,
.contact-info .section-title {
  color: var(--white); margin-bottom: 14px;
  line-height: 1.2; position: relative; z-index: 1;
}
.contact-info > p {
  color: rgba(255,255,255,0.52); margin-bottom: 40px;
  font-size: 0.92rem; line-height: 1.8;
  position: relative; z-index: 1;
}

.cinfo-list { display: flex; flex-direction: column; flex: 1; position: relative; z-index: 1; }
.cinfo-item {
  display: flex; align-items: flex-start; gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cinfo-item:last-child { border-bottom: none; }
.cinfo-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 0.9rem;
}
.cinfo-text h4 {
  font-size: 0.67rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(201,168,76,0.75); margin-bottom: 4px;
}
.cinfo-text p, .cinfo-text a {
  font-size: 0.88rem; color: rgba(255,255,255,0.72); font-weight: 400; margin: 0;
  line-height: 1.65;
}
.cinfo-text a:hover { color: var(--gold); }

.contact-info-actions {
  display: flex; gap: 10px; margin-top: 36px;
  flex-wrap: wrap; position: relative; z-index: 1;
}
.contact-info-actions .btn { flex: 1; min-width: 130px; justify-content: center; }

/* --- Right: Form Panel --- */
.contact-form-wrap {
  background: var(--white);
  padding: 60px 52px;
  border-radius: 0;
  border: none;
  box-shadow: none;
}
.contact-form-wrap h3 {
  font-family: var(--font-heading); font-size: 1.65rem;
  color: var(--navy); font-weight: 700; margin-bottom: 4px;
}
.form-subtitle {
  font-size: 0.84rem; color: var(--text-light);
  margin-bottom: 32px; line-height: 1.5;
}

/* ── Form fields ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-mid); margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid transparent; border-radius: 8px;
  background: var(--off-white); font-family: var(--font-body);
  font-size: 0.93rem; color: var(--text-dark);
  outline: none; transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  -webkit-appearance: none; appearance: none;
}
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  background: var(--white);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-notice {
  font-size: 0.78rem; color: var(--text-light); margin-top: 10px; line-height: 1.5;
  display: flex; align-items: center; gap: 6px;
}
.form-success {
  display: none; text-align: center; padding: 24px;
  background: rgba(37,211,102,0.08); border: 1px solid rgba(37,211,102,0.3);
  border-radius: var(--radius); color: #1da851; font-weight: 600;
}
.form-success.show { display: block; }

/* ── Inquiry selector cards ── */
.inquiry-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.inquiry-option { cursor: pointer; }
.inquiry-option input[type="radio"] {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.inquiry-label {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); background: var(--white);
  font-size: 0.84rem; font-weight: 500; color: var(--text-mid);
  transition: var(--tr); cursor: pointer; user-select: none;
  min-height: 46px;
}
.inquiry-label i { color: var(--gold); font-size: 0.88rem; width: 15px; flex-shrink: 0; }
.inquiry-label:hover { border-color: var(--navy); background: rgba(13,31,60,0.04); color: var(--navy); }
.inquiry-option input[type="radio"]:checked + .inquiry-label {
  border-color: var(--navy); background: var(--navy); color: var(--white);
}
.inquiry-option input[type="radio"]:checked + .inquiry-label i { color: var(--gold-light); }

/* Field-level validation errors */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229,62,62,0.08);
}
.field-error-msg {
  display: none;
  font-size: 0.76rem;
  color: #c53030;
  font-weight: 500;
  margin-top: 5px;
}
.form-group.has-error .field-error-msg { display: block; }

/* Form-level error box */
.form-error {
  display: none; text-align: center; padding: 20px;
  background: rgba(229,62,62,0.07); border: 1px solid rgba(229,62,62,0.28);
  border-radius: var(--radius); color: #c53030; font-weight: 600;
  margin-top: 16px;
}
.form-error.show { display: block; }

/* Map */
.map-wrap { height: 460px; overflow: hidden; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

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

/* iOS: background-attachment:fixed causes scroll glitches */
@media (max-width: 1024px) {
  .hero { background-attachment: scroll; }
}

/* ─── 1080px: Large tablet landscape ─── */
@media (max-width: 1080px) {
  .stats-inner { grid-template-columns: 1fr; gap: 48px; }
  .stats-heading { text-align: center; }
}

/* ─── 880px: Tablet portrait ─── */
@media (max-width: 880px) {
  .section { padding: 64px 0; }
  .grid-3, .all-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr; gap: 44px; }
  .about-split .split-image { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .split-image img { height: 340px; }
  .exp-badge { right: 16px; bottom: -12px; }
  .mv-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .page-hero { min-height: 340px; height: 48vh; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-info { padding: 52px 40px; }
  .contact-form-wrap { padding: 52px 40px; }
}

/* ─── 768px: Tablet — activate hamburger nav ─── */
@media (max-width: 768px) {
  /* Use position:absolute (relative to fixed navbar) — avoids iOS Safari
     bug where position:fixed breaks inside overflow:hidden ancestors */
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column; align-items: center;
    padding: 28px 20px; gap: 6px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
    box-shadow: 0 16px 48px rgba(0,0,0,0.35);
    z-index: 999;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-link {
    width: 100%; text-align: center; padding: 13px 24px;
    font-size: 0.95rem; border-radius: var(--radius);
    min-height: 48px; display: flex; align-items: center; justify-content: center;
  }
  .nav-link:hover, .nav-link.active { background: rgba(255,255,255,0.07); }
  .nav-link::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}

/* ─── 620px: Mobile ─── */
@media (max-width: 620px) {
  .container { padding: 0 18px; }

  /* ── Hero ── */
  .hero { min-height: 100svh; min-height: 100vh; }
  .hero-content { padding-top: 20px; }
  .hero-title { font-size: clamp(2.4rem, 11vw, 3.4rem); line-height: 1.05; }
  .hero-tagline { font-size: 0.95rem; margin-bottom: 32px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; min-height: 52px; font-size: 0.95rem; }
  .hero-scroll { display: none; }
  .hero-label { font-size: 0.68rem; }

  /* ── Page hero (inner pages) ── */
  .page-hero { min-height: 260px; height: auto; padding: 110px 0 52px; }
  .page-hero-content h1 { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .page-hero-content p { font-size: 0.9rem; margin-top: 10px; padding: 0 8px; }

  /* ── Sections ── */
  .section { padding: 52px 0; }
  .section-header { margin-bottom: 32px; }
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 2rem); }

  /* ── Grids ── */
  .grid-3, .all-grid, .team-grid { grid-template-columns: 1fr; }

  /* ── Stats (Why Choose Us) ── */
  .stats-section { padding: 52px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-item { padding: 18px 14px; }
  .stat-number { font-size: 1.55rem; }
  .stat-label { font-size: 0.72rem; }
  .stat-desc { font-size: 0.8rem; }
  .stats-heading { font-size: clamp(1.5rem, 6vw, 2rem); }

  /* ── About split ── */
  .about-split { grid-template-columns: 1fr; gap: 32px; }
  .about-split .split-image { order: -1; }
  .split-image img { height: 260px; }
  .exp-badge { width: 84px; height: 84px; right: 10px; bottom: -8px; }
  .exp-badge .num { font-size: 1.35rem; }
  .exp-badge .lbl { font-size: 0.5rem; }

  /* ── Team ── */
  .team-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }

  /* ── Mission / Vision cards ── */
  .mv-grid { grid-template-columns: 1fr; }
  .mv-card { padding: 30px 24px; }

  /* ── Projects filter bar ── */
  .filter-bar { top: 70px; }
  .filter-inner {
    overflow-x: auto; flex-wrap: nowrap; gap: 8px;
    padding-bottom: 4px; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-inner::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; white-space: nowrap; min-height: 40px; }
  .filter-lbl { display: none; }
  .projects-listing { padding: 44px 0; }

  /* ── Contact section ── */
  .contact-section { padding-bottom: 0; }
  .contact-grid { border-radius: 0; box-shadow: none; }
  .contact-info { padding: 52px 20px 44px; }
  .contact-form-wrap { padding: 44px 20px 52px; }
  .contact-info-actions { flex-direction: column; gap: 10px; }
  .contact-info-actions .btn { width: 100%; min-height: 52px; }

  /* ── Form ── */
  .form-row { grid-template-columns: 1fr; }
  /* Prevent iOS zoom on inputs (needs 16px minimum) */
  .form-group input,
  .form-group textarea,
  .form-group select { font-size: 16px; }
  .inquiry-options { grid-template-columns: 1fr; gap: 8px; }
  .inquiry-label { padding: 13px 16px; font-size: 0.88rem; min-height: 48px; }
  .btn[type="submit"] { min-height: 52px; font-size: 1rem; }

  /* ── CTA band ── */
  .cta-band { padding: 56px 0; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; min-height: 52px; justify-content: center; }
  .cta-band h2 { font-size: clamp(1.5rem, 6vw, 2rem); }

  /* ── Footer ── */
  .footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  /* ── Map ── */
  .map-wrap { height: 300px; }

  /* ── Floating WhatsApp ── */
  .wa-float { bottom: 16px; right: 16px; width: 52px; height: 52px; font-size: 1.45rem; }
}

/* ─── 400px: Small phones ─── */
@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .hero-title { font-size: 2.2rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .contact-info { padding: 44px 16px 36px; }
  .contact-form-wrap { padding: 36px 16px 44px; }
  .cta-band { padding: 48px 0; }
  .map-wrap { height: 260px; }
}
