/* ============================================
   AVA Interior Design — Luxury Stylesheet
   ============================================ */

:root {
  --bg: #fbf9f5;
  --bg-alt: #f3ede3;
  --beige: #e9dfce;
  --warm-gray: #8a8278;
  --ink: #1a1a1a;
  --ink-soft: #2b2b2b;
  --muted: #6b675f;
  --gold: #c9a35b;
  --gold-soft: #d9bc7d;
  --line: rgba(26, 26, 26, 0.12);
  --shadow-soft: 0 20px 60px -20px rgba(26, 26, 26, 0.18);
  --shadow-card: 0 30px 80px -30px rgba(26, 26, 26, 0.35);
  --radius: 4px;
  --container: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ----- Typography ----- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }

/* ----- Layout ----- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.section-head .lead { margin: 1rem auto 0; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 1.5rem 0;
  transition: all .4s var(--ease);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(251, 249, 245, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.18em; font-weight: 500; color: var(--ink); }
.logo img { height: 40px; width: auto; }
.logo span small { display: block; font-family: var(--font-body); font-size: 0.55rem; letter-spacing: 0.4em; color: var(--muted); margin-top: 2px; font-weight: 500; }

.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  color: var(--ink-soft); position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .4s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }

.hamburger { display: none; width: 32px; height: 32px; position: relative; z-index: 110; }
.hamburger span { position: absolute; left: 4px; right: 4px; height: 1.5px; background: var(--ink); transition: all .4s var(--ease); }
.hamburger span:nth-child(1) { top: 11px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger.open span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { top: 15px; transform: rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.7) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 900px; padding-top: 4rem; }
.hero h1 { color: #fff; font-weight: 400; }
.hero h1 em { font-style: italic; color: var(--gold-soft); font-weight: 400; }
.hero .lead { color: rgba(255,255,255,.85); font-size: 1.15rem; margin-top: 1.5rem; max-width: 540px; }
.hero-cta { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,.7); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.scroll-indicator::after {
  content: ""; width: 1px; height: 50px; background: rgba(255,255,255,.5);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); } }

/* Page hero (smaller) */
.page-hero {
  position: relative; min-height: 60vh; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden; padding-top: 6rem;
}
.page-hero .hero-bg::after { background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.55)); }
.page-hero h1 { color: #fff; font-weight: 400; }
.page-hero p { color: rgba(255,255,255,.85); margin-top: 1rem; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 1rem 2.2rem; font-size: 0.78rem; letter-spacing: 0.25em; text-transform: uppercase;
  font-weight: 500; border: 1px solid currentColor; position: relative; overflow: hidden;
  transition: all .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary::before { background: var(--gold); }
.btn-primary:hover { color: var(--ink); border-color: var(--gold); }
.btn-light { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-light::before { background: #fff; }
.btn-light:hover { color: var(--ink); border-color: #fff; }
.btn-ghost { color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { color: #fff; }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem;
}
.service-card {
  padding: 2.5rem 2rem; background: #fff; border: 1px solid var(--line);
  transition: all .5s var(--ease); position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--gold);
  transition: width .5s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }
.service-card:hover::before { width: 100%; }
.service-icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold); color: var(--gold); margin-bottom: 1.5rem;
  transition: all .4s var(--ease);
}
.service-card:hover .service-icon { background: var(--gold); color: #fff; }
.service-card h3 { margin-bottom: 0.8rem; }
.service-card p { color: var(--muted); font-size: 0.95rem; }

/* ============================================
   ABOUT / SPLIT
   ============================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.split-image { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.split-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.split-image:hover img { transform: scale(1.05); }
.split-image::before {
  content: ""; position: absolute; inset: -20px; border: 1px solid var(--gold); z-index: -1;
  transform: translate(20px, 20px);
}
.split-text h2 { margin-bottom: 1.5rem; }
.split-text p { color: var(--muted); margin-bottom: 1rem; }
.split-text .btn { margin-top: 1.5rem; }

/* ============================================
   PROJECTS GRID
   ============================================ */
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.project-card {
  position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 4/5;
  background: var(--bg-alt);
}
.project-card.tall { grid-row: span 1; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project-card:hover img { transform: scale(1.08); }
.project-overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem;
  color: #fff; opacity: 0; transition: opacity .5s var(--ease);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay .cat { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 0.5rem; }
.project-overlay h3 { color: #fff; transform: translateY(15px); transition: transform .5s var(--ease); }
.project-card:hover .project-overlay h3 { transform: translateY(0); }

/* Filterable */
.filter-bar {
  display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 3rem; flex-wrap: wrap;
}
.filter-btn {
  padding: 0.7rem 1.6rem; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); transition: all .3s var(--ease);
}
.filter-btn:hover { color: var(--ink); border-color: var(--ink); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.project-card.hide { display: none; }
.project-card { animation: fadeUp .6s var(--ease) backwards; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { background: var(--bg-alt); }
.testimonial-track { position: relative; max-width: 800px; margin: 0 auto; min-height: 240px; }
.testimonial {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease);
  text-align: center; padding: 0 1rem;
}
.testimonial.active { opacity: 1; position: relative; }
.testimonial blockquote {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.4;
  font-style: italic; color: var(--ink); margin-bottom: 2rem;
}
.testimonial blockquote::before { content: '"'; color: var(--gold); font-size: 4rem; display: block; line-height: 0.5; margin-bottom: 1rem; }
.testimonial cite { font-style: normal; font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.testimonial cite strong { color: var(--ink); display: block; margin-bottom: 0.3rem; letter-spacing: 0.15em; }
.testimonial-dots { display: flex; justify-content: center; gap: 0.6rem; margin-top: 2.5rem; }
.testimonial-dots button {
  width: 30px; height: 2px; background: var(--line); transition: background .3s;
}
.testimonial-dots button.active { background: var(--gold); }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  position: relative; padding: 8rem 0; text-align: center; color: #fff; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: url('../images/project-4.jpg') center/cover;
  filter: brightness(.4);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; font-style: italic; max-width: 800px; margin: 0 auto 2rem; }

/* ============================================
   COUNTERS
   ============================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat .num { font-family: var(--font-display); font-size: clamp(3rem, 5vw, 4.5rem); color: var(--ink); line-height: 1; display: block; }
.stat .num::after { content: "+"; color: var(--gold); }
.stat .label { font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); margin-top: 1rem; display: block; }

/* ============================================
   TEAM
   ============================================ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 3/4; overflow: hidden; margin-bottom: 1.2rem; background: var(--bg-alt);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: all .6s var(--ease); }
.team-card:hover .team-photo img { filter: grayscale(0); transform: scale(1.05); }
.team-card h4 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.3rem; }
.team-card .role { font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); }

/* ============================================
   CONTACT
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; }
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-info .info-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.contact-info .info-item .icon { color: var(--gold); flex-shrink: 0; margin-top: 4px; }
.contact-info .info-item h5 { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; font-weight: 500; }
.contact-info .info-item p { color: var(--ink); }
.socials { display: flex; gap: 1rem; margin-top: 2rem; }
.socials a {
  width: 42px; height: 42px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all .3s var(--ease);
}
.socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.contact-form { background: #fff; padding: 3rem; border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.form-group { position: relative; margin-bottom: 1.5rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 1rem 0; background: transparent; border: none; border-bottom: 1px solid var(--line);
  font-family: inherit; font-size: 0.95rem; color: var(--ink); outline: none; transition: border-color .3s;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group label {
  position: absolute; left: 0; top: 1rem; font-size: 0.85rem; color: var(--muted);
  pointer-events: none; transition: all .3s var(--ease); letter-spacing: 0.05em;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group input:focus + label, .form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label, .form-group textarea:not(:placeholder-shown) + label {
  top: -0.5rem; font-size: 0.7rem; color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase;
}

/* MAP */
.map-section { padding: 0; }
.map-wrap { aspect-ratio: 21/9; background: var(--bg-alt); position: relative; overflow: hidden; filter: grayscale(.3) contrast(1.1); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; padding: 1.8rem 0; text-align: left; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-size: 1.3rem; color: var(--ink);
}
.faq-q .plus { width: 24px; height: 24px; position: relative; flex-shrink: 0; }
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; background: var(--gold); transition: transform .4s var(--ease);
}
.faq-q .plus::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.faq-q .plus::after { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.faq-item.open .faq-q .plus::before { transform: translateX(-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); color: var(--muted); }
.faq-a-inner { padding: 0 0 1.8rem; max-width: 90%; }
.faq-item.open .faq-a { max-height: 300px; }

/* ============================================
   FOOTER
   ============================================ */
footer { background: #0e0e0e; color: rgba(255,255,255,.7); padding: 5rem 0 2rem; margin-top: 0; }
footer .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
footer .logo { color: #fff; }
footer h5 { font-family: var(--font-body); color: #fff; font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 1.5rem; font-weight: 500; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.7rem; }
footer ul li a { font-size: 0.9rem; }
footer ul li a:hover { color: var(--gold); }
footer .footer-about p { font-size: 0.9rem; max-width: 320px; margin-top: 1.5rem; }
footer .socials a { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.7); }
footer .socials a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
footer .copy { padding-top: 2rem; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,.4); letter-spacing: 0.1em; }

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.95); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 2rem;
  animation: fadeIn .3s var(--ease);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90%; max-height: 90vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 2rem; right: 2rem; color: #fff; font-size: 2rem; width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; transition: all .3s; }
.lightbox-close:hover { background: var(--gold); border-color: var(--gold); }

/* ============================================
   BACK TO TOP
   ============================================ */
.to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; width: 48px; height: 48px;
  background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center;
  z-index: 90; opacity: 0; transform: translateY(20px); transition: all .4s var(--ease);
  border: 1px solid var(--ink);
}
.to-top.show { opacity: 1; transform: translateY(0); }
.to-top:hover { background: var(--gold); border-color: var(--gold); }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(80vw, 360px);
    background: var(--bg); flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 4rem 3rem; gap: 1.8rem; transform: translateX(100%); transition: transform .5s var(--ease);
    box-shadow: var(--shadow-card);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1rem; }
  .hamburger { display: block; }
  .split { grid-template-columns: 1fr; gap: 3rem; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 2rem; }
}
@media (max-width: 560px) {
  .container { padding: 0 1.25rem; }
  .projects-grid { grid-template-columns: 1fr; }
  footer .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .split-image::before { display: none; }
}
