/* =========================================================
   HC Interiors – Luxury Design & Mobile Responsive System
   ========================================================= */

:root {
  --bg: #ffffff;
  --tint: #f6f4ef;
  --ink: #0d0d0d;
  --muted: #5f5f5a;
  --line: #e7e3da;
  --gold: #c9a45c;
  --gold-d: #a98336;
  --radius: 20px;
  --shadow: 0 20px 50px -20px rgba(13, 13, 13, 0.12);
  --gutter: clamp(16px, 4vw, 40px);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip; /* Cleanly traps horizontal overflow without disabling sticky */
}

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  position: relative;
}

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

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

h1, h2, h3, h4 {
  font-family: 'Sora', 'Manrope', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Base Layout Constraints */
.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  padding-block: clamp(48px, 8vw, 110px);
}

/* Sections that do NOT wrap content inside .wrap get gutter padding directly */
section:not(:has(.wrap)) {
  padding-inline: var(--gutter);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-d);
  margin-bottom: 12px;
}
.section-badge::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-head {
  max-width: 700px;
  margin-bottom: clamp(28px, 5vw, 56px);
}
.section-head h2 {
  font-size: clamp(1.85rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-head p {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 999px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1.5px solid var(--ink);
  min-height: 48px;
  touch-action: manipulation;
  max-width: 100%;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}
.btn-nav {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--tint);
  font-weight: 700;
}

/* Site Header */
.site-header {
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0;
  width: 100%;
  z-index: 1000;
  padding-block: 12px;
  padding-top: calc(12px + env(safe-area-inset-top));
  padding-inline: var(--gutter);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}
.brand-mark { color: var(--gold); }
.brand-sub { color: var(--ink); font-size: 0.8rem; font-weight: 500; }

.main-nav { display: flex; gap: 24px; align-items: center; }
.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  z-index: 1100;
  touch-action: manipulation;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(clamp(90px, 14vh, 140px) + env(safe-area-inset-top));
  padding-bottom: clamp(40px, 8vh, 60px);
  overflow: hidden;
  isolation: isolate;
  width: 100%;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  background: #09090b;
}
.hero-native-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  opacity: 0.65;
  filter: brightness(0.95);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(9, 9, 11, 0.65) 0%,
    rgba(9, 9, 11, 0.75) 50%,
    rgba(9, 9, 11, 0.90) 100%
  );
}
.hero-content {
  max-width: 820px;
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-d);
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  max-width: 100%;
}
.hero-tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

.hero-title {
  font-size: clamp(2.1rem, 6.5vw, 4.8rem);
  font-weight: 700;
  color: #ffffff; /* was var(--ink) */
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub {
  margin-top: 16px;
  font-size: clamp(0.95rem, 1.2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.78); /* was var(--muted) */
  max-width: 58ch;
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

/* Ticker (Overflow Safe) */
.ticker {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  overflow: hidden;
  width: 100%;
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  gap: 20px;
  width: max-content;
  animation: marquee 35s linear infinite;
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  will-change: transform;
}
.ticker-track .sep { color: var(--gold); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* About Section */
.about { background: #fff; }
.about-grid {
  max-width: var(--max-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  width: 100%;
}
.about-copy h2 { font-size: clamp(1.65rem, 3.5vw, 2.8rem); margin-bottom: 16px; }
.about-copy p { color: var(--muted); margin-bottom: 14px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.stat-number {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  font-weight: 700;
  color: var(--gold);
}
.stat-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
}
.about-visual .image-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
  background: var(--tint);
  width: 100%;
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; }

/* Handover Cards */
.recent-projects-sec {
  background: var(--tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  width: 100%;
}
.handover-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 24px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s, border-color 0.25s;
  width: 100%;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  width: fit-content;
}
.status-badge.active-badge {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.status-badge.active-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 1.6s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.status-badge.delivered-badge {
  background: var(--tint);
  color: var(--muted);
  border: 1px solid var(--line);
}
.timeline-info {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.timeline-info strong { color: var(--ink); }
.handover-card h3 { font-size: 19px; margin-bottom: 6px; }
.handover-card p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.handover-card .view-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-d);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

/* =========================================================
   CENTER CAROUSEL (Guarded from Overflow)
   ========================================================= */
.work { 
  background: #fff; 
  overflow: hidden; 
  width: 100%;
}
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%; /* Fix: Replaced 100vw to eliminate scrollbar bleed */
  margin-inline: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.carousel-track-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 30px 0;
}
.carousel-track {
  display: flex;
  align-items: center;
  will-change: transform;
}
.carousel-card {
  flex: 0 0 clamp(220px, 30vw, 360px);
  margin-inline: clamp(6px, 1.5vw, 16px);
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--tint);
  border: 1px solid var(--line);
  cursor: pointer;
  transform: translate3d(0, 0, 0) scale(0.9);
  opacity: 0.45;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease;
  user-select: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.carousel-card.active {
  transform: translate3d(0, 0, 0) scale(1.04);
  opacity: 1;
  border-color: var(--gold);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
  z-index: 5;
}
.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.carousel-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 16px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 13, 13, 0.95) 100%);
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.carousel-card.active .carousel-caption {
  opacity: 1;
  transform: translateY(0);
}
.carousel-caption h3 { font-size: 1.05rem; margin-bottom: 2px; }
.carousel-caption span { font-size: 0.78rem; color: var(--gold); }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dot.active {
  width: 22px;
  border-radius: 10px;
  background: var(--gold);
}

/* Team */
.team { 
  background: var(--tint); 
  border-top: 1px solid var(--line); 
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
  width: 100%;
}
.team-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: 100%;
}
.team-photo-wrap { aspect-ratio: 4/5; overflow: hidden; background: #eee; width: 100%; }
.team-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.team-info { padding: 18px; }
.team-role { color: var(--gold-d); font-size: 11px; font-weight: 700; text-transform: uppercase; margin: 4px 0 6px; }
.team-bio { color: var(--muted); font-size: 13.5px; }

/* Contact */
.contact { 
  background: #fff; 
  border-top: 1px solid var(--line); 
}
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  width: 100%;
}
.contact-methods { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.method-item { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.method-item .label { display: block; font-size: 11px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.method-item .val { font-size: 1rem; font-weight: 700; color: var(--ink); word-break: break-word; }

.contact-card {
  background: var(--tint);
  border: 1px solid var(--line);
  padding: clamp(16px, 4vw, 32px);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.form-group { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.form-group label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea {
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  min-height: 48px;
  width: 100%;
}
.form-group textarea { min-height: 110px; resize: vertical; }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  font-weight: 700;
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  font-size: 15px;
  touch-action: manipulation;
}

/* Footer */
.site-footer {
  background: #000;
  color: #bdb8aa;
  padding-block: 32px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
  padding-inline: var(--gutter);
  width: 100%;
  overflow-x: clip;
}
.footer-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  width: 100%;
}
.footer-brand { display: flex; gap: 8px; font-weight: 700; color: #fff; }
.footer-brand .brand-mark { color: var(--gold); }

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */
@media (max-width: 860px) {
  .about-grid, .contact-container { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .btn-nav { display: none; }
  .nav-toggle { display: flex; }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }

  /* Drawer Navigation Menu */
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(300px, 85vw);
    max-width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: calc(80px + env(safe-area-inset-top)) 24px 24px;
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }
  .main-nav a {
    font-size: 16px;
    padding: 10px 0;
    width: 100%;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle.open span:first-child { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:last-child { transform: translateY(-8px) rotate(-45deg); }

  .carousel-card {
    flex: 0 0 clamp(200px, 72vw, 290px);
  }
  .carousel-btn { display: none; }
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }
  .recent-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}