/* ============================================================
   i-KEYZ HOME STUDIO — HOMEPAGE
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw; /* 16:9 */
  min-height: 100vh;
  min-width: 177.78vh; /* 16:9 */
  pointer-events: none;
  border: none;
}

/* Mobile: vertical video */
@media (max-width: 768px) {
  .hero__video iframe {
    width: 177.78vh;
    height: 100vh;
    min-width: unset;
    min-height: unset;
  }
  .hero__video iframe.desktop-video {
    display: none;
  }
  .hero__video iframe.mobile-video {
    display: block;
    width: 100vw;
    height: 100svh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (min-width: 769px) {
  .hero__video iframe.mobile-video {
    display: none;
  }
  .hero__video iframe.desktop-video {
    display: block;
  }
}

/* Fallback poster when video not loaded */
.hero__poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('/images/showroom/showroom-exterior.jpg');
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(6, 28, 22, 0.72) 0%,
    rgba(6, 28, 22, 0.45) 50%,
    rgba(6, 28, 22, 0.60) 100%
  );
}

/* Subtle grain texture overlay */
.hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding-inline: var(--container-pad);
  max-width: 860px;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  opacity: 0;
  animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero__label-line {
  width: 32px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.8;
}

.hero__label-text {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: var(--space-5);
  opacity: 0;
  animation: hero-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero__title em {
  font-style: italic;
  color: var(--color-gold);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-10);
  opacity: 0;
  animation: hero-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  opacity: 0;
  animation: hero-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

/* Mute toggle */
.hero__mute-btn {
  position: absolute;
  bottom: var(--space-8);
  left: var(--space-8);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  color: rgba(255,255,255,0.7);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(8px);
}

.hero__mute-btn:hover {
  background: rgba(255,255,255,0.14);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.4);
}

.hero__mute-btn svg {
  width: 14px;
  height: 14px;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.45);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  animation: hero-fade-up 1s ease 1.4s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(201,169,110,0.6), transparent);
  animation: scroll-line 2s ease-in-out infinite 2s;
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scroll-line {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.5); opacity: 0.4; }
}

/* ── Trust Bar ────────────────────────────────────────────── */
.trust-bar {
  background: var(--color-teal-deeper);
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  padding-block: var(--space-6);
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-inline: var(--space-4);
}

.trust-item + .trust-item {
  border-left: 1px solid rgba(201, 169, 110, 0.15);
}

.trust-item__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--color-gold);
  opacity: 0.9;
}

.trust-item__text {}

.trust-item__title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.3;
}

.trust-item__sub {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
  .trust-item + .trust-item {
    border-left: none;
  }
  .trust-item:nth-child(odd) + .trust-item:nth-child(even) {
    border-left: 1px solid rgba(201, 169, 110, 0.15);
  }
}

/* ── Products Grid ────────────────────────────────────────── */
.products-section {
  background: var(--color-teal-deeper);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.products-grid .product-card:first-child {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.product-card__badge {
  display: inline-block;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

.product-card__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.2;
}

@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid .product-card:first-child {
    grid-column: span 2;
    aspect-ratio: 16/7;
  }
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .products-grid .product-card:first-child {
    grid-column: span 1;
    aspect-ratio: 3/2;
  }
}

/* ── Who We Serve ─────────────────────────────────────────── */
.serve-section {
  background: var(--color-cream);
}

.serve-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}

.serve-card {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  border: var(--border-light);
  border-radius: var(--radius-md);
  background: var(--color-white);
  transition: all var(--transition-luxury);
  cursor: default;
}

.serve-card:hover {
  border-color: rgba(201, 169, 110, 0.5);
  background: var(--color-off-white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.serve-card__icon {
  width: 40px;
  height: 40px;
  color: var(--color-teal);
  margin: 0 auto var(--space-4);
  opacity: 0.8;
  transition: all var(--transition-base);
}

.serve-card:hover .serve-card__icon {
  color: var(--color-gold);
  opacity: 1;
}

.serve-card__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: var(--space-2);
}

.serve-card__sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .serve-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .serve-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── About Teaser ─────────────────────────────────────────── */
.about-teaser {
  background: var(--color-white);
  overflow: hidden;
}

.about-teaser__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 520px;
}

.about-teaser__image {
  position: relative;
  overflow: hidden;
}

.about-teaser__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-luxury);
}

.about-teaser:hover .about-teaser__image img {
  transform: scale(1.03);
}

.about-teaser__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,92,73,0.15), transparent);
}

.about-teaser__content {
  padding: clamp(var(--space-10), 6vw, var(--space-20));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-teaser__quote {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  font-weight: 300;
  font-style: italic;
  color: var(--color-teal);
  line-height: 1.4;
  margin-bottom: var(--space-6);
  position: relative;
  padding-left: var(--space-6);
}

.about-teaser__quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
}

.about-teaser__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

@media (max-width: 768px) {
  .about-teaser__grid {
    grid-template-columns: 1fr;
  }
  .about-teaser__image {
    height: 280px;
  }
}

/* ── Brands Carousel ──────────────────────────────────────── */
.brands-section {
  background: var(--color-teal-deeper);
  overflow: hidden;
  padding-block: var(--space-12);
}

.brands-section__header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.brands-track-wrapper {
  overflow: hidden;
  position: relative;
}

/* Fade edges */
.brands-track-wrapper::before,
.brands-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.brands-track-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--color-teal-deeper), transparent);
}

.brands-track-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--color-teal-deeper), transparent);
}

.brands-track {
  display: flex;
  gap: var(--space-10);
  animation: brands-scroll 30s linear infinite;
  width: max-content;
}

.brands-track:hover {
  animation-play-state: paused;
}

.brands-track--clone {
  animation: brands-scroll 30s linear infinite;
}

@keyframes brands-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding-inline: var(--space-4);
  flex-shrink: 0;
}

.brand-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.4;
  transition: all var(--transition-base);
}

.brand-logo:hover img {
  opacity: 0.9;
  filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(5deg);
}

/* Text brand names fallback (until real logos provided) */
.brand-logo__text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition-base);
  white-space: nowrap;
}

.brand-logo:hover .brand-logo__text {
  color: var(--color-gold);
}

/* ── Dream Homes Teaser ───────────────────────────────────── */
.dream-teaser {
  background: var(--color-off-white);
  overflow: hidden;
}

.dream-teaser__inner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-teal-deeper);
  padding: clamp(var(--space-12), 8vw, var(--space-24));
  text-align: center;
  isolation: isolate;
}

/* Decorative background pattern */
.dream-teaser__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,169,110,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(10,92,73,0.3) 0%, transparent 60%);
  z-index: 0;
}

.dream-teaser__content {
  position: relative;
  z-index: 1;
}

.dream-teaser__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 6vw, var(--text-6xl));
  font-weight: 300;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.dream-teaser__title em {
  font-style: italic;
  color: var(--color-gold);
}

.dream-teaser__sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.6);
  max-width: 540px;
  margin: 0 auto var(--space-10);
  line-height: 1.75;
}

/* ── Visit Section ────────────────────────────────────────── */
.visit-section {
  background: var(--color-cream);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: start;
}

.visit-info {}

.visit-detail {
  display: flex;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  align-items: flex-start;
}

.visit-detail:first-of-type {
  padding-top: 0;
}

.visit-detail__icon {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.visit-detail__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.visit-detail__value {
  font-size: var(--text-base);
  color: var(--color-text-dark);
  line-height: 1.65;
}

.visit-detail__value a {
  color: var(--color-teal);
  transition: color var(--transition-fast);
}

.visit-detail__value a:hover {
  color: var(--color-gold-dark);
}

.visit-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

/* Map */
.visit-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: var(--border-light);
  aspect-ratio: 4/3;
}

.visit-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 768px) {
  .visit-grid {
    grid-template-columns: 1fr;
  }
  .visit-map {
    aspect-ratio: 16/9;
  }
}

/* ── FAQ Teaser ───────────────────────────────────────────── */
.faq-teaser {
  background: var(--color-white);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-light-gray);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text-dark);
  transition: color var(--transition-fast);
  list-style: none;
  user-select: none;
}

.faq-question:hover {
  color: var(--color-teal);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-gold);
  transition: transform var(--transition-base);
}

details[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: var(--space-5);
  padding-right: var(--space-8);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  animation: faq-open 0.3s ease;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq-teaser__footer {
  text-align: center;
  margin-top: var(--space-10);
}

/* ── Instagram Section ────────────────────────────────────── */
.instagram-section {
  background: var(--color-off-white);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.instagram-placeholder {
  aspect-ratio: 1;
  background: var(--color-light-gray);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--space-4);
}

.instagram-follow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.instagram-account {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border: var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  background: var(--color-white);
}

.instagram-account:hover {
  border-color: rgba(201, 169, 110, 0.5);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.instagram-account__icon {
  width: 28px;
  height: 28px;
  color: var(--color-teal);
}

.instagram-account__handle {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-dark);
}

.instagram-account__type {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
}
