/* ============================================================
   LEGACY REAL ESTATE — Theme B (Minimal)
   Navy #1C2D52 · Gold #C9A84C · White dominant
   Fonts: DM Serif Display + DM Sans
   ============================================================ */

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── Custom Properties ──────────────────────────────────── */
:root {
  --primary:    #1C2D52;
  --primary2:   #101C35;
  --accent:     #C9A84C;
  --accent2:    #A88A3C;
  --light:      #F8F7F4;
  --light2:     #EDEAE5;
  --white:      #ffffff;
  --gray:       #6b7280;
  --gray-light: #9ca3af;
  --font-head:  'DM Serif Display', Georgia, serif;
  --font-body:  'DM Sans', system-ui, sans-serif;
  --ease:       cubic-bezier(.4, 0, .2, 1);
  --radius:     2px;
  --container:  1280px;
}

/* ─── Base ───────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  color: var(--primary);
  background: var(--white);
  overflow-x: hidden;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ─── Scroll Progress ────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 1001;
  width: 0%;
  transition: width .1s linear;
}

/* ─── Scroll Reveals ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-l {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-r {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible,
.reveal-l.visible,
.reveal-r.visible  { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }
.reveal-d5 { transition-delay: .5s; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  border-radius: 0;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary2); border-color: var(--primary2); }
.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }
.btn-accent {
  background: var(--accent);
  color: var(--primary2);
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent2); border-color: var(--accent2); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.45);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* ─── Section Typography ─────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.section-heading {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  color: var(--primary);
}
.section-heading.on-dark { color: var(--white); }
.section-sub {
  font-size: .9375rem;
  color: var(--gray);
  line-height: 1.75;
  max-width: 52ch;
}
.section-sub.on-dark { color: rgba(255,255,255,.6); }

/* ─── Navbar ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 1.25rem 0;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#navbar.scrolled {
  border-bottom-color: var(--light2);
  box-shadow: 0 1px 20px rgba(28,45,82,.07);
  padding: .9rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}
.nav-logo-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 400;
  color: var(--primary);
  font-style: italic;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}
.nav-links li a {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gray);
  padding: .45rem .9rem;
  transition: color .2s;
}
.nav-links li a:hover { color: var(--primary); }
.nav-phone {
  margin-left: 1.5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  padding: .6rem 1.25rem;
  border: 1.5px solid var(--primary);
  transition: background .2s, color .2s;
}
.nav-phone:hover { background: var(--primary); color: var(--white); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: .5rem;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 2.5rem;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mob-close {
  position: absolute;
  top: 1.5rem; right: 1.75rem;
  color: var(--primary);
  font-size: 1.4rem;
  line-height: 1;
  padding: .5rem;
  opacity: .5;
  transition: opacity .2s;
}
.mob-close:hover { opacity: 1; }
.mob-nav-links { width: 100%; margin-bottom: 3rem; }
.mob-nav-links li { border-bottom: 1px solid var(--light2); }
.mob-nav-links li a {
  display: block;
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-style: italic;
  color: var(--primary);
  padding: .9rem 0;
  transition: color .2s, padding-left .2s;
}
.mob-nav-links li a:hover { color: var(--accent); padding-left: .4rem; }
.mob-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #25d366;
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .85rem 1.75rem;
  transition: background .2s;
}
.mob-wa-btn:hover { background: #1db954; }

/* ─── Hero — Split Layout ────────────────────────────────── */
#home { min-height: 100vh; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.hero-text-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 9rem 3.5rem 5rem;
  background: var(--white);
  position: relative;
}
.hero-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}
.hero-heading {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.75;
  max-width: 44ch;
  margin-bottom: 3rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-divider {
  position: absolute;
  bottom: 3rem;
  left: 3.5rem;
  right: 3.5rem;
  height: 1px;
  background: var(--light2);
}
.hero-tagline-strip {
  position: absolute;
  bottom: 1.25rem;
  left: 3.5rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-light);
}
.hero-img-col {
  position: relative;
  overflow: hidden;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }
.hero-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .4rem;
  z-index: 2;
}
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .3s, transform .3s;
}
.hero-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* ─── Stats ──────────────────────────────────────────────── */
#stats {
  background: var(--light);
  padding: 5rem 0;
  border-top: 1px solid var(--light2);
  border-bottom: 1px solid var(--light2);
}
.stats-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2.5rem;
}
.stat-item {
  text-align: center;
  flex: 1;
  padding: 1.5rem 1rem;
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--light2);
}
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .5rem;
}
.stat-suffix { color: var(--primary); font-style: normal; }
.stat-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ─── About ──────────────────────────────────────────────── */
#about { padding: 8rem 0; background: var(--white); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2.5rem;
}
.about-img-col { position: relative; }
.about-sticky { position: sticky; top: 100px; }
.about-img-main {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.about-img-accent {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 48%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid var(--white);
}
.about-text-col { padding-top: 1rem; }
.about-body {
  font-size: .9375rem;
  color: var(--gray);
  line-height: 1.85;
  margin: 1.5rem 0 2.5rem;
}
.about-highlights {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 3rem;
  padding-left: 0;
}
.about-highlight-item {
  display: flex;
  align-items: center;
  gap: .875rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--primary);
}
.about-highlight-item::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}
.about-founded {
  display: inline-block;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--light2);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gray-light);
}
.about-founded span {
  display: block;
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
  letter-spacing: 0;
  text-transform: none;
  margin-top: .25rem;
}

/* ─── Services ───────────────────────────────────────────── */
#services { background: var(--light); padding: 8rem 0; }
.services-header {
  max-width: var(--container);
  margin: 0 auto 4rem;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
}
.services-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--light2);
}
.service-card {
  background: var(--white);
  padding: 2.75rem 2.5rem;
  border-top: 3px solid transparent;
  text-decoration: none;
  display: block;
  transition: border-color .25s var(--ease), background .25s;
  position: relative;
}
.service-card:hover {
  border-top-color: var(--accent);
  background: var(--white);
}
.service-card-num {
  font-family: var(--font-head);
  font-size: .85rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.service-card-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: .75rem;
  transition: color .2s;
}
.service-card:hover .service-card-title { color: var(--accent2); }
.service-card-desc {
  font-size: .875rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.service-card-arrow {
  font-size: 1rem;
  color: var(--gray-light);
  transition: color .25s, transform .25s;
  display: inline-block;
}
.service-card:hover .service-card-arrow {
  color: var(--accent);
  transform: translateX(5px);
}

/* ─── Projects ───────────────────────────────────────────── */
#projects { padding: 8rem 0; background: var(--white); }
.projects-header {
  max-width: var(--container);
  margin: 0 auto 2.5rem;
  padding: 0 2.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.filter-bar {
  max-width: var(--container);
  margin: 0 auto 3rem;
  padding: 0 2.5rem;
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--light2);
}
.filter-btn {
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .75rem 1.5rem;
  color: var(--gray);
  background: transparent;
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.filter-btn:hover { color: var(--primary); }
.filter-btn.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}
.projects-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.project-card { background: var(--white); position: relative; }
.project-img-wrap {
  overflow: hidden;
  position: relative;
}
.project-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform .55s var(--ease);
}
.project-card:hover .project-img { transform: scale(1.04); }
.project-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .75rem;
}
.badge-completed { background: var(--white); color: var(--primary); }
.badge-ongoing   { background: var(--accent); color: var(--primary2); }
.badge-upcoming  { background: var(--primary); color: var(--white); }
.project-info {
  padding: 1.25rem 0 .5rem;
  border-bottom: 1px solid var(--light2);
}
.project-type-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}
.project-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: .3rem;
}
.project-meta {
  font-size: .78rem;
  color: var(--gray-light);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.project-wa {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 38px; height: 38px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.8);
  transition: all .25s var(--ease);
}
.project-card:hover .project-wa { opacity: 1; transform: scale(1); }
.project-wa svg { width: 18px; height: 18px; }

/* ─── Why Us ─────────────────────────────────────────────── */
#why-us { background: var(--primary); padding: 8rem 0; }
.why-header {
  max-width: var(--container);
  margin: 0 auto 5rem;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
}
.why-items {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 0;
}
.why-item {
  padding: 3rem 2.5rem 3rem 0;
  border-right: 1px solid rgba(255,255,255,.08);
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.why-item:last-child { border-right: none; padding-right: 0; }
.why-item:nth-child(n+2) { padding-left: 2.5rem; }
.why-item-num {
  font-family: var(--font-head);
  font-size: 1rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.why-item-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
  color: var(--white);
  margin-bottom: .875rem;
  line-height: 1.2;
}
.why-item-desc {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  line-height: 1.75;
}
.why-cta {
  max-width: var(--container);
  margin: 4rem auto 0;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ─── Testimonials ───────────────────────────────────────── */
#testimonials { background: var(--light); padding: 8rem 0; }
.test-header {
  max-width: var(--container);
  margin: 0 auto 4rem;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
}
.test-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.test-card {
  background: var(--white);
  padding: 2.75rem;
  position: relative;
  transition: box-shadow .25s var(--ease);
}
.test-card:hover { box-shadow: 0 8px 40px rgba(28,45,82,.08); }
.test-quote-mark {
  font-family: var(--font-head);
  font-size: 5rem;
  font-style: italic;
  line-height: .8;
  color: var(--accent);
  opacity: .25;
  margin-bottom: .5rem;
  user-select: none;
}
.test-text {
  font-size: .9rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-style: italic;
}
.test-rule {
  width: 32px;
  height: 1.5px;
  background: var(--accent);
  margin-bottom: 1.25rem;
}
.test-author {
  display: flex;
  align-items: center;
  gap: .875rem;
}
.test-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.test-name {
  font-size: .875rem;
  font-weight: 700;
  color: var(--primary);
}
.test-role {
  font-size: .75rem;
  color: var(--gray-light);
  margin-top: .1rem;
}

/* ─── Contact ────────────────────────────────────────────── */
#contact { background: var(--white); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.contact-left {
  padding: 7rem 4rem 7rem 2.5rem;
  max-width: 640px;
  margin-left: auto;
  width: 100%;
  border-right: 1px solid var(--light2);
}
.contact-right {
  padding: 7rem 2.5rem 7rem 4rem;
  max-width: 640px;
  width: 100%;
}
.contact-detail {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--light2);
  transition: border-color .2s;
}
.contact-detail:hover { border-left-color: var(--accent); }
.contact-detail-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: .35rem;
}
.contact-detail-value {
  font-size: .9rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.55;
}
.contact-detail-value a { color: var(--primary); transition: color .2s; }
.contact-detail-value a:hover { color: var(--accent2); }
.map-wrap {
  width: 100%;
  height: 240px;
  overflow: hidden;
  margin-top: 3rem;
  border: 1px solid var(--light2);
}
.map-wrap iframe { width: 100%; height: 100%; }

/* Form */
.contact-form-heading {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: .5rem;
}
.contact-form-sub {
  font-size: .875rem;
  color: var(--gray);
  margin-bottom: 3rem;
  line-height: 1.6;
}
#contact-form { width: 100%; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-group { margin-bottom: 1.75rem; }
.form-group label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: .6rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 0;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--light2);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: .9rem;
  outline: none;
  border-radius: 0;
  transition: border-color .2s;
  appearance: none;
}
.form-group select option { background: var(--white); color: var(--primary); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-light); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-bottom-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  margin-top: .75rem;
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background .25s;
}
.form-submit:hover { background: var(--primary2); }

/* ─── Footer ─────────────────────────────────────────────── */
#footer {
  background: var(--primary2);
  padding: 5rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2.5rem 4rem;
}
.footer-logo-img {
  height: 44px;
  width: auto;
  margin-bottom: 1.25rem;
}
.footer-tagline {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .875rem;
}
.footer-about {
  font-size: .83rem;
  color: rgba(255,255,255,.38);
  line-height: 1.75;
  max-width: 30ch;
  margin-bottom: 1.75rem;
}
.footer-socials { display: flex; gap: .5rem; }
.footer-social {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  font-size: .8rem;
  transition: border-color .2s, color .2s;
}
.footer-social:hover { border-color: var(--accent); color: var(--accent); }
.footer-col-title {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  margin-bottom: 1.5rem;
}
.footer-links li { margin-bottom: .55rem; }
.footer-links li a {
  font-size: .83rem;
  color: rgba(255,255,255,.45);
  transition: color .2s;
  display: inline-block;
}
.footer-links li a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  gap: .75rem;
  margin-bottom: 1rem;
}
.footer-contact-icon { color: var(--accent); font-size: .85rem; margin-top: .15rem; flex-shrink: 0; }
.footer-contact-text { font-size: .83rem; color: rgba(255,255,255,.45); line-height: 1.55; }
.footer-contact-text a { color: rgba(255,255,255,.45); transition: color .2s; }
.footer-contact-text a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.5rem 2.5rem;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy { font-size: .76rem; color: rgba(255,255,255,.2); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: .76rem; color: rgba(255,255,255,.2); transition: color .2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.5); }

/* ─── WhatsApp Float ─────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 900;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  animation: wa-pulse 3s infinite;
  transition: transform .25s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
  50%       { box-shadow: 0 4px 40px rgba(37,211,102,.7); }
}

/* ─── Responsive ─────────────────────────────────────────── */

/* Prevent any horizontal overflow globally */
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; }

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .services-header { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Why-us: 2×2 on tablet */
  .why-items { grid-template-columns: repeat(2, 1fr); }
  .why-item:nth-child(2) { border-right: none; padding-right: 0; }
  .why-item:nth-child(3) { padding-left: 0; }
  .why-item:nth-child(3),
  .why-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,.08); }
}

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

  /* --- Nav --- */
  .nav-links, .nav-phone { display: none; }
  .hamburger { display: flex; }
  .nav-logo-img { height: 34px; }
  .nav-logo-name { font-size: .9rem; }

  /* --- Hero: stack vertically --- */
  .hero-inner {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  /* Text col shrinks to content; image fills the rest */
  .hero-text-col {
    flex: 0 0 auto;
    padding: 6rem 1.5rem 2.5rem;
    justify-content: flex-start;
  }
  .hero-img-col {
    flex: 1;
    min-height: 280px;
    width: 100%;
    overflow: hidden;
    position: relative;
  }
  .hero-divider,
  .hero-tagline-strip { display: none; }
  .hero-heading { font-size: clamp(2rem, 8vw, 2.8rem); max-width: none; }
  .hero-sub { font-size: .9rem; max-width: none; }

  /* --- Stats: 2-col grid --- */
  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    padding: 0;
  }
  .stat-item {
    padding: 2.5rem 1.25rem;
    flex: none;
  }
  .stat-item + .stat-item::before { display: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: 1px solid var(--light2); }
  .stat-item:nth-child(odd)  { border-right: 1px solid var(--light2); }
  .stat-number { font-size: 2.75rem; }

  /* --- About --- */
  #about { padding: 4rem 0; }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1.5rem;
  }
  .about-sticky { position: static; }
  .about-img-main { aspect-ratio: 3/2; height: auto; }
  .about-img-accent { display: none; }
  .about-text-col { padding-top: 0; }

  /* --- Services --- */
  #services { padding: 4rem 0; }
  .services-header,
  .services-list { padding: 0 1.5rem; }
  .services-header { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; background: transparent; gap: 1px; }
  .service-card { border-top: none; border-bottom: 1px solid var(--light2); border-left: 3px solid transparent; transition: border-left-color .25s; }
  .service-card:hover { border-left-color: var(--accent); border-top: none; }

  /* --- Projects --- */
  #projects { padding: 4rem 0; }
  .projects-header { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 0 1.5rem; }
  .filter-bar {
    padding: 0 1.5rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--light2);
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { white-space: nowrap; flex-shrink: 0; }
  .projects-grid {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
    gap: 2rem;
  }
  .project-img { aspect-ratio: 16/9; }

  /* --- Why Us --- */
  #why-us { padding: 4rem 0; }
  .why-header {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 1.5rem;
    margin-bottom: 2.5rem;
  }
  .why-items {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .why-item {
    border-right: none !important;
    border-top: none !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    padding: 2rem 0 !important;
  }
  .why-item:last-child { border-bottom: none !important; }
  .why-cta {
    padding: 0 1.5rem;
    justify-content: flex-start;
    margin-top: 2.5rem;
  }

  /* --- Testimonials --- */
  #testimonials { padding: 4rem 0; }
  .test-header {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 1.5rem;
    margin-bottom: 2.5rem;
  }
  .test-grid {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
    gap: 1.25rem;
  }

  /* --- Contact --- */
  #contact { background: var(--white); }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-left {
    padding: 4rem 1.5rem 3rem;
    max-width: none;
    border-right: none;
    border-bottom: 1px solid var(--light2);
    margin-left: 0;
  }
  .contact-right {
    padding: 3rem 1.5rem 5rem;
    max-width: none;
  }
  .map-wrap { height: 200px; }

  /* --- Footer --- */
  #footer { padding: 4rem 0 0; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1.5rem 3rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    padding: 1.5rem;
  }
  .footer-about { max-width: none; }

  /* --- Section containers: consistent side padding --- */
  .container { padding: 0 1.5rem; }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
  .hero-heading { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .section-heading { font-size: 1.6rem; }
  .stat-number { font-size: 2.4rem; }

  .form-row { grid-template-columns: 1fr; }

  /* Tighter section padding */
  #about,
  #services,
  #projects,
  #why-us,
  #testimonials { padding: 3.5rem 0; }

  .test-card { padding: 2rem; }
  .test-quote-mark { font-size: 4rem; }

  .service-card { padding: 2rem 1.5rem; }

  .footer-inner { gap: 2rem; }
  .footer-socials { flex-wrap: wrap; }
}
