/* ═══════════════════════════════════════════════════════════
   ELEGANT STORIES — Custom CSS (works WITH Tailwind CDN)
   Tailwind handles: layout, spacing, typography, flex, grid
   This file handles: brand colors, animations, components
   KEY FIX: No * reset here — let Tailwind do it via preflight
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,600;1,700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ── Brand CSS Variables (used alongside Tailwind) ── */
:root {
  --gold:      #B8962E;
  --gold2:     #C9A84C;
  --gold-bg:   #C9A133;
  --gold-dark: #8B6914;
  --cream:     #F5F0E8;
  --cream2:    #EDE8DD;
  --dark:      #1C1407;
  --dark2:     #2A1E08;
  --text:      #2C2010;
  --text-lt:   #8C7A5A;
  --border:    rgba(184,150,46,0.22);
}

/* ── Font overrides (Tailwind uses system fonts by default) ── */
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  overflow-x: hidden;
}
.font-playfair { font-family: 'Playfair Display', serif; }
.font-dm { font-family: 'DM Sans', sans-serif; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--gold); }

/* ── Scroll reveal (Tailwind can't do intersection observer) ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ── TOP BAR ── */
.top-bar { background: var(--gold-bg); }
.top-bar a { color: #fff; transition: opacity 0.2s; }
.top-bar a:hover { opacity: 0.75; }
.top-bar-sep { color: rgba(255,255,255,0.35); margin: 0 10px; }

/* ── NAVBAR ── */
#navbar {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  position: sticky; top: 0; z-index: 999;
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.09); }
.nav-link {
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.5px;
  color: var(--text); transition: color 0.25s;
  display: flex; align-items: center; gap: 4px;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700; color: var(--gold);
  letter-spacing: -0.5px; text-decoration: none;
}
.nav-logo em { font-style: italic; }
.btn-estimate {
  background: var(--dark); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 11px 20px;
  border: none; cursor: pointer; transition: background 0.3s;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; white-space: nowrap;
}
.btn-estimate:hover { background: var(--gold-bg); }

/* ── MEGA DROPDOWN ── */
.nav-item { position: static; }
.dropdown-wrapper {
  position: fixed;
  top: 112px; left: 0; right: 0;
  background: #fff;
  border-top: 2px solid var(--gold);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  z-index: 998;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.nav-item:hover .dropdown-wrapper {
  opacity: 1; visibility: visible;
  pointer-events: all; transform: none;
}
.dd-backdrop {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,0.18);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s;
}
.dd-backdrop.show { opacity: 1; visibility: visible; pointer-events: all; }
.dd-col-head {
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px; margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.dd-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 10px; margin-bottom: 2px;
  transition: background 0.2s; text-decoration: none;
  color: var(--text); border-radius: 2px;
}
.dd-item:hover { background: var(--cream); color: var(--gold); }
.dd-item-icon {
  width: 30px; height: 30px; background: var(--cream2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dd-item-title { font-size: 12.5px; font-weight: 600; line-height: 1.3; margin-bottom: 1px; }
.dd-item-sub { font-size: 10.5px; color: var(--text-lt); }

/* ── MOBILE MENU ── */
.mob-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 1998; display: none;
}
.mob-overlay.open { display: block; }
.mob-nav {
  position: fixed; top: 0; right: -100%;
  width: 80%; max-width: 320px; height: 100vh;
  background: var(--dark); z-index: 1999;
  transition: right 0.4s ease;
  padding: 64px 32px 40px; overflow-y: auto;
}
.mob-nav.open { right: 0; }
.mob-link {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 1.25rem; color: rgba(255,255,255,0.8);
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.3s; text-decoration: none;
}
.mob-link:hover { color: var(--gold2); }

/* ── HERO SLIDER ── */
#hero { position: relative; overflow: hidden; height: calc(100vh - 112px); min-height: 560px; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.05) 100%);
}
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 44px; height: 44px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; backdrop-filter: blur(4px);
  transition: all 0.3s;
}
.hero-arrow:hover { background: var(--gold); border-color: var(--gold); }
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35); border: none;
  cursor: pointer; transition: all 0.3s; padding: 0;
}
.hero-dot.active { background: var(--gold); transform: scale(1.3); }

/* ── THUMBNAIL STRIP ── */
.thumb-strip { border-top: 2px solid var(--gold); }
.thumb-item { position: relative; overflow: hidden; aspect-ratio: 16/9; cursor: pointer; }
.thumb-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s; filter: brightness(0.55);
}
.thumb-item:hover img, .thumb-item.active img { filter: brightness(0.85); transform: scale(1.05); }
.thumb-item.active::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--gold);
}
.thumb-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px 6px 7px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  font-size: 8px; letter-spacing: 1px; color: #fff;
  text-transform: uppercase; text-align: center;
}
.thumb-item.active .thumb-label { color: var(--gold2); }

/* ── USP BAR ── */
.usp-bar { background: var(--gold-bg); }
.usp-item { border-right: 1px solid rgba(255,255,255,0.2); }
.usp-item:last-child { border-right: none; }

/* ── OFFERING CARDS ── */
.offering-card { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 3/2.4; }
.offering-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.offering-card:hover img { transform: scale(1.06); }
.offering-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
}
.offering-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 18px 14px; }
.offering-info h3 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.offering-info span { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold2); }
.gold-line {
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2.5px; background: var(--gold);
  transition: width 0.4s;
}
.offering-card:hover .gold-line { width: 100%; }

/* ── MARQUEE ── */
.marquee-track {
  display: flex; gap: 0; white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: #5C4A2A; padding: 0 24px;
  display: inline-flex; align-items: center; gap: 16px;
}
.marquee-track span::after { content: '•'; color: var(--gold); }
@keyframes marquee { 0%{ transform: translateX(0); } 100%{ transform: translateX(-50%); } }

/* ── ESTIMATOR CARDS ── */
.est-card {
  background: #fff; padding: 28px 20px; text-align: center;
  border: 1.5px solid transparent; transition: all 0.35s;
}
.est-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(184,150,46,0.1);
}
.est-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--cream); margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.btn-est {
  display: inline-block; padding: 9px 20px;
  background: var(--gold-bg); color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; border: none; cursor: pointer;
  transition: background 0.3s;
}
.btn-est:hover, .btn-est.dark:hover { background: var(--dark); }
.btn-est.dark { background: var(--dark); }
.btn-est.dark:hover { background: var(--gold-bg); }
.est-badge {
  position: absolute; top: 20px; right: 20px;
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--gold-bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

/* ── PROCESS STEPS ── */
.step-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  margin: 0 auto 16px; display: flex;
  align-items: center; justify-content: center; position: relative;
}
.step-num {
  position: absolute; top: -6px; right: -4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--gold);
  font-size: 9px; font-weight: 700; color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}

/* ── HAPPY HOMES ── */
.happy-item { overflow: hidden; aspect-ratio: 4/3; }
.happy-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.happy-item:hover img { transform: scale(1.04); }

/* ── SOLUTIONS GRID ── */
.sol-card { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 1; }
.sol-card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.72); transition: all 0.4s; }
.sol-card:hover img { transform: scale(1.07); filter: brightness(0.55); }
.sol-card h4 {
  position: absolute; bottom: 10px; left: 10px; right: 10px;
  font-size: 11.5px; font-weight: 600; color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* ── TESTIMONIAL CARDS ── */
.testi-card { background: #fff; padding: 36px 28px; }
.testi-quote {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem; color: var(--gold);
  line-height: 0.5; margin-bottom: 24px; opacity: 0.28;
}
.testi-div { height: 1px; background: var(--border); margin-bottom: 16px; }

/* ── NEWS LOGOS ── */
.news-logo {
  padding: 28px 20px;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.news-logo:hover { background: var(--cream); }

/* ── FAQ ── */
.faq-item { background: #fff; }
.faq-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 20px 22px;
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 13.5px;
  font-weight: 600; color: var(--text); text-align: left; gap: 12px;
  transition: color 0.3s;
}
.faq-btn:hover { color: var(--gold); }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 16px; flex-shrink: 0; transition: all 0.3s;
}
.faq-item.open .faq-icon { background: var(--gold); color: #fff; transform: rotate(45deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-body p { font-size: 13px; color: var(--text-lt); line-height: 1.8; padding: 0 22px 20px; }
.faq-item.open .faq-body { max-height: 220px; }

/* ── CONTACT FORM ── */
.form-input {
  width: 100%; padding: 12px 14px;
  border: 1px solid rgba(44,32,16,0.15);
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  color: var(--text); background: #fff;
  outline: none; transition: border-color 0.3s;
  appearance: none; -webkit-appearance: none;
}
.form-input:focus { border-color: var(--gold); }
.form-input::placeholder { color: var(--text-lt); }
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238C7A5A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; cursor: pointer;
}
.btn-submit {
  width: 100%; padding: 16px;
  background: var(--gold-bg); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; border: none; cursor: pointer;
  margin-top: 8px; transition: background 0.3s;
}
.btn-submit:hover { background: var(--dark); }

/* ── FOOTER ── */
footer { background: var(--dark); }
.footer-link { display: block; font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 12px; font-style: italic; transition: color 0.3s; }
.footer-link:hover { color: var(--gold2); }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45); transition: all 0.3s; cursor: pointer;
}
.social-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ── WhatsApp FAB ── */
.wa-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 997;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.3s; text-decoration: none;
}
.wa-fab:hover { transform: scale(1.1); }

/* ── INNER PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 65%, #3a2a0a 100%);
  min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23C9A133' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── DESIGN CARDS ── */
.d-card { position: relative; overflow: hidden; cursor: pointer; transition: transform 0.35s, box-shadow 0.35s; }
.d-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.d-card-img { width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.d-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.d-card:hover .d-card-img img { transform: scale(1.06); }

/* ── SERVICE CARDS ── */
.svc-card { transition: transform 0.3s, box-shadow 0.3s; }
.svc-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0,0,0,0.07); }

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 60px; }
.timeline::before {
  content: ''; position: absolute; left: 22px; top: 0; bottom: 0;
  width: 1px; background: var(--border);
}
.t-num {
  position: absolute; left: -60px; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold-bg); color: #fff;
  font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── TEAM CARDS ── */
.team-img { width: 100%; aspect-ratio: 3/4; overflow: hidden; }
.team-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── CTA DARK ── */
.cta-dark {
  background: linear-gradient(135deg, var(--dark) 0%, #261A06 100%);
  position: relative; overflow: hidden;
}
.cta-dark::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23C9A84C' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── GALLERY ── */
.gallery-item { overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; display: block; }
.gallery-item:hover img { transform: scale(1.05); }
