/* ================================================================
   KAHULUI CARPET & DRAPERY — MAIN STYLESHEET
   Organized by section. Vanilla CSS, no frameworks.
   ================================================================ */

/* ----------------------------------------------------------------
   CSS CUSTOM PROPERTIES (Design Tokens)
---------------------------------------------------------------- */
:root {
  --color-ocean:      #1a4f72;   /* Primary deep ocean blue */
  --color-gold:       #c8a96e;   /* Warm sandy gold accent */
  --color-green:      #2d6a4f;   /* Tropical green secondary */
  --color-orange:     #e07b2a;   /* Phoenix orange hot accent */
  --color-bg:         #fdf8f2;   /* Light warm off-white background */
  --color-text:       #1a1a1a;   /* Dark body text */
  --color-white:      #ffffff;
  --color-gold-dark:  #a8803e;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', Arial, sans-serif;

  --nav-height: 72px;
  --container-max: 1200px;
  --border-radius: 8px;
  --transition: 0.3s ease;
  --shadow-soft: 0 4px 20px rgba(26, 79, 114, 0.12);
  --shadow-nav:  0 2px 20px rgba(26, 79, 114, 0.25);
}

/* ----------------------------------------------------------------
   RESET & BASE
---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

/* ----------------------------------------------------------------
   UTILITY CLASSES
---------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 60px 0;
}

/* Section headings */
.section__heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-ocean);
  margin-bottom: 16px;
  position: relative;
}

.section__heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-gold);
  border-radius: 2px;
  margin-top: 12px;
}

.section__heading--dark {
  color: var(--color-text);
}

.section__heading--dark::after {
  background: var(--color-ocean);
}

.section__intro {
  font-size: 1.1rem;
  color: #444;
  max-width: 720px;
  margin-bottom: 28px;
  line-height: 1.8;
}

.section__cta-block {
  text-align: center;
  margin-top: 32px;
}

.cta-phone {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.cta-phone a {
  color: var(--color-ocean);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-love {
  font-size: 1.15rem;
  font-style: italic;
  color: #555;
  margin-bottom: 16px;
}

/* ----------------------------------------------------------------
   BUTTONS
---------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: all var(--transition);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-ocean);
  color: var(--color-white);
  border: 2px solid var(--color-ocean);
}

.btn--primary:hover,
.btn--primary:focus {
  background: #0e3450;
  border-color: #0e3450;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 79, 114, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn--outline:hover,
.btn--outline:focus {
  background: var(--color-white);
  color: var(--color-ocean);
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-text);
  border: 2px solid var(--color-gold);
}

.btn--gold:hover,
.btn--gold:focus {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  transform: translateY(-2px);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn--outline-light:hover,
.btn--outline-light:focus {
  background: var(--color-white);
  color: var(--color-ocean);
}

.btn--review {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 24px;
  background: #fff;
  border: 2px solid var(--color-gold);
  color: var(--color-ocean);
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.btn--review:hover {
  background: var(--color-gold);
  color: var(--color-white);
}

.btn--submit {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  background: var(--color-orange);
  border: 2px solid var(--color-orange);
  color: var(--color-white);
  border-radius: var(--border-radius);
}

.btn--submit:hover,
.btn--submit:focus {
  background: #c56620;
  border-color: #c56620;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 123, 42, 0.35);
}

/* ----------------------------------------------------------------
   PLACEHOLDER IMAGES
   Shown when real images are not yet uploaded.
   Replace the <img> src with your actual photo.
---------------------------------------------------------------- */
.placeholder-img {
  position: relative;
  background: #e8ddd0;
  border: 2px dashed var(--color-gold);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* When image is missing, .placeholder-label shows */
.placeholder-label {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #6b5a45;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 12px;
  pointer-events: none;
}

/* Image loaded = hide placeholder label */
.placeholder-img img:not([src=""]):not([src$="placeholder"]) + .placeholder-label {
  display: none;
}

/* Sizing variants */
.placeholder-img--tall        { width: 100%; aspect-ratio: 9/20; min-height: 300px; }
.placeholder-img--tall-sm     { width: 100%; aspect-ratio: 9/20; }
.placeholder-img--landscape-guide { width: 100%; aspect-ratio: 11/6; }
.placeholder-img--wide        { width: 100%; aspect-ratio: 16/9; }
.placeholder-img--card        { width: 100%; aspect-ratio: 3/2; }
.placeholder-img--gallery     { width: 100%; aspect-ratio: 3/2; }
.placeholder-img--history     { width: 100%; aspect-ratio: 3/2; }
.placeholder-img--round       { width: 180px; height: 180px; border-radius: 50%; }

/* Guide photo containers — transparent PNG characters blend into section background */
.our-story__image .placeholder-img,
.window-coverings__guide .placeholder-img,
.gallery__guide .placeholder-img,
.classic-maui__guide .placeholder-img,
.contact__guide .placeholder-img {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

/* Individual aspect ratios matching actual PNG dimensions */
.our-story__image .placeholder-img    { aspect-ratio: 702/1305; width: 100%; }
.gallery__guide .placeholder-img      { aspect-ratio: 650/1303; width: 100%; }
.contact__guide .placeholder-img      { aspect-ratio: 382/600;  width: 100%; }
.classic-maui__guide .placeholder-img { aspect-ratio: 321/600;  width: 100%; }
.window-coverings__guide .placeholder-img { aspect-ratio: 256/600; width: 120px; }

/* Guide photos — !important needed: .placeholder-img img (specificity 11) beats .guide-photo (10) */
.guide-photo {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
}

.guide-photo--round {
  border-radius: 50%;
}

.guide-caption {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-top: 10px;
  font-size: 0.95rem;
}

/* Sepia filter for history images */
.sepia-img {
  filter: sepia(70%) contrast(0.9) brightness(1.05);
}

/* ----------------------------------------------------------------
   BADGES & LICENSE
---------------------------------------------------------------- */
.license-badge {
  background: #f0ebe3;
  border-left: 4px solid var(--color-gold);
  border-radius: 4px;
  padding: 16px 20px;
  margin: 28px 0;
  font-size: 0.95rem;
}

.license-badge p {
  margin-bottom: 6px;
}

.badge-certified {
  display: inline-block;
  background: var(--color-green);
  color: var(--color-white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 4px;
}

.license-text {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 8px;
}

/* Brand chips */
.brands {
  margin: 32px 0 0;
  text-align: center;
}

.brands__heading {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-ocean);
  margin-bottom: 16px;
}

.brands__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.brand-chip {
  background: var(--color-ocean);
  color: var(--color-white);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-chip--local {
  background: var(--color-green);
}

/* ----------------------------------------------------------------
   FADE-IN ANIMATIONS (triggered by IntersectionObserver in JS)
---------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ================================================================
   STICKY NAVIGATION
================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-ocean);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-nav);
}

.navbar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo in nav */
.navbar__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.navbar__logo img {
  height: 52px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3));
}

/* Center nav links */
.navbar__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.navbar__nav ul {
  display: flex;
  gap: 8px;
  align-items: center;
}

.navbar__nav a {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.navbar__nav a:hover,
.navbar__nav a:focus {
  color: var(--color-gold);
  background: rgba(255,255,255,0.08);
}

/* Phone link */
.navbar__phone {
  flex-shrink: 0;
  color: var(--color-gold);
  font-weight: 900;
  font-size: 0.95rem;
  white-space: nowrap;
  padding: 8px 16px;
  border: 2px solid var(--color-gold);
  border-radius: var(--border-radius);
  transition: all var(--transition);
}

.navbar__phone:hover {
  background: var(--color-gold);
  color: var(--color-text);
}

/* Hamburger button */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

/* Hamburger open state (X) */
.navbar__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav dropdown */
.navbar__mobile {
  background: #0e3450;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.navbar__mobile.is-open {
  max-height: 400px;
}

.navbar__mobile ul {
  padding: 12px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.navbar__mobile a {
  display: block;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition);
}

.navbar__mobile a:hover {
  color: var(--color-gold);
}

.navbar__mobile .mobile-phone {
  color: var(--color-gold);
  font-size: 1.05rem;
}


/* ================================================================
   HERO SECTION
================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

/* Background image */
.hero__bg-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-ocean) 0%, #0a2a3d 50%, #1a3a2a 100%);
  z-index: 0;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark overlay for text readability */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 25, 40, 0.55) 0%,
    rgba(10, 25, 40, 0.70) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Hero logo */
.hero__logo {
  margin-bottom: 0;
}

.hero__logo img {
  height: 180px;
  width: auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Company name + guide side by side */
.hero__name-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.hero__welcome-guide {
  height: 280px;
  width: auto;
  flex-shrink: 0;
}

/* Hawaiian welcome greeting */
.hero__welcome {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.4rem, 4vw, 3rem);
  font-style: italic;
  color: var(--color-gold);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

/* Company name — largest text on the site */
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Primary tagline */
.hero__tagline {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--color-white);
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* Secondary tagline */
.hero__sub-tagline {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.82);
  font-style: italic;
}

/* Badge / ribbon */
.hero__badge {
  background: var(--color-orange);
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: 30px;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 16px rgba(224, 123, 42, 0.45);
}

/* CTA buttons */
.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* Hero phone */
.hero__phone {
  color: var(--color-gold);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero__phone:hover {
  color: #e8c87e;
}


/* ================================================================
   INTRO TAGLINE STRIP
================================================================ */
.tagline-strip {
  background: var(--color-green);
  padding: 0;
}

.tagline-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.tagline-strip__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 32px;
  color: var(--color-white);
  border-right: 1px solid rgba(255,255,255,0.15);
}

.tagline-strip__item:last-child {
  border-right: none;
}

.tagline-strip__icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.tagline-strip__text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}


/* ================================================================
   OUR STORY
================================================================ */
.our-story {
  background: var(--color-bg);
}

.our-story__layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}

.our-story__text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: #333;
  line-height: 1.85;
}

.our-story__image {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}


/* ================================================================
   FLOORING SECTION
================================================================ */
.flooring {
  background: #f5ede0;
}

.flooring__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.flooring__card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.flooring__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(26, 79, 114, 0.18);
}

.flooring__card-body {
  padding: 24px;
}

.flooring__card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-ocean);
  margin-bottom: 10px;
}

.flooring__card-body p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ================================================================
   WINDOW COVERINGS
================================================================ */
.window-coverings {
  background: var(--color-bg);
}

.window-coverings__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.window-coverings__media {
  position: relative;
}

.window-coverings__guide {
  position: absolute;
  bottom: -20px;
  right: -20px;
  z-index: 2;
}

.window-coverings__content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-ocean);
  margin-bottom: 16px;
}

.window-coverings__note {
  margin-top: 20px;
  font-style: italic;
  color: #555;
  border-left: 3px solid var(--color-green);
  padding-left: 16px;
}

.window-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}


/* ================================================================
   WHO WE SERVE
================================================================ */
.who-we-serve {
  background: var(--color-ocean);
  color: var(--color-white);
}

.who-we-serve .section__heading {
  color: var(--color-gold);
}

.who-we-serve .section__heading::after {
  background: var(--color-gold);
}

.who-we-serve .section__intro {
  color: rgba(255,255,255,0.85);
}

.who__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.who__card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--border-radius);
  padding: 32px 24px;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
}

.who__card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-4px);
}

.who__icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 16px;
}

.who__card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.who__card p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

.who__islands-statement {
  text-align: center;
  background: rgba(255,255,255,0.06);
  border-radius: var(--border-radius);
  padding: 28px 40px;
  margin-bottom: 32px;
  font-size: 1.1rem;
  color: var(--color-white);
  line-height: 1.7;
}

.who__commercial-callout {
  background: #0e3450;
  border: 1px solid rgba(200, 169, 110, 0.35);
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
}

.who__commercial-callout p {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.who__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}


/* ================================================================
   GALLERY
================================================================ */
.gallery {
  background: #f5ede0;
}

.gallery__header {
  margin-bottom: 32px;
}

.gallery__body {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.gallery__guide {
  flex-shrink: 0;
  width: 130px;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.gallery__speech-bubble {
  background: var(--color-gold);
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 12px;
  border-bottom-right-radius: 2px;
  margin-top: 10px;
  text-align: center;
  position: relative;
}

.gallery__speech-bubble::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: var(--color-gold);
  border-top: 0;
}

/* 3-column responsive masonry grid */
.gallery__grid {
  flex: 1;
  columns: 3;
  column-gap: 16px;
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: 16px;
  cursor: pointer;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
}

.gallery__item::after {
  content: '🔍';
  position: absolute;
  inset: 0;
  background: rgba(26, 79, 114, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery__item:hover .gallery-photo {
  transform: scale(1.04);
}


/* ================================================================
   LIGHTBOX (Vanilla JS — no external libraries)
================================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox__content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.lightbox__close {
  position: fixed;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity var(--transition);
  z-index: 10000;
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__prev,
.lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255,255,255,0.25);
}


/* ================================================================
   TESTIMONIALS
================================================================ */
.testimonials {
  background: var(--color-gold);
  padding: 60px 0;
}

.testimonials .section__heading {
  color: var(--color-text);
  text-align: center;
  margin-bottom: 28px;
}

.testimonials .section__heading::after {
  background: var(--color-ocean);
  margin: 12px auto 0;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.testimonial__card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: relative;
}

.testimonial__shaka {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.testimonial__card blockquote {
  border: none;
  padding: 0;
  margin: 0 0 16px;
}

.testimonial__card blockquote p {
  font-size: 0.97rem;
  line-height: 1.8;
  color: #333;
  font-style: italic;
}

.testimonial__card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--color-ocean);
  font-size: 0.9rem;
}


/* ================================================================
   CLASSIC MAUI — NOSTALGIC LOOKBACK
================================================================ */
.classic-maui {
  background: #f9f0e3;
}

.classic-maui .section__heading {
  font-style: italic;
}

.classic-maui__subheading {
  color: #7a6347;
  font-style: italic;
}

.classic-maui__layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.classic-maui__guide {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

/* Alternating history blocks */
.history-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(200, 169, 110, 0.3);
}

.history-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.history-block--img-right .history-block__image {
  order: 2;
}

.history-block--img-right .history-block__text {
  order: 1;
}

.history-block__text h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-ocean);
  margin-bottom: 14px;
  font-style: italic;
}

.history-block__text p {
  color: #4a3a28;
  line-height: 1.85;
  font-size: 1rem;
}

.history-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}


/* ================================================================
   CONTACT
================================================================ */
.contact {
  background: var(--color-bg);
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Contact info column */
.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__detail a {
  color: var(--color-ocean);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact__detail a:hover {
  color: var(--color-orange);
}

.contact__social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  margin-bottom: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-ocean);
  color: var(--color-white);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
}

.social-icon svg {
  flex-shrink: 0;
}

.social-icon:hover {
  background: #0e3450;
  transform: translateY(-2px);
}

.contact__guide {
  margin-top: 32px;
  max-width: 160px;
}

/* Contact form column */
.contact__form-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-ocean);
  margin-bottom: 8px;
}

/* EmailMeForm — clip the blank rectangle at the top of the iframe */
.emf-wrap {
  overflow: hidden;
}

.emf-wrap iframe {
  display: block;
  margin-top: -65px;
}


.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__group label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #333;
  letter-spacing: 0.02em;
}

.form__group label span {
  color: var(--color-orange);
}

.form__group input,
.form__group select,
.form__group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: var(--border-radius);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--color-ocean);
  box-shadow: 0 0 0 3px rgba(26, 79, 114, 0.15);
}

.form__group textarea {
  resize: vertical;
  min-height: 120px;
}

.form__success {
  background: var(--color-green);
  color: var(--color-white);
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 16px;
}

/* Map */
.contact__map {
  margin-top: 60px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.contact__map iframe {
  display: block;
}


/* ================================================================
   FOOTER
================================================================ */
.footer {
  background: var(--color-ocean);
  color: var(--color-white);
  padding: 48px 0 32px;
}

.footer__layout {
  display: grid;
  grid-template-columns: 120px 1fr 180px;
  gap: 40px;
  align-items: start;
}

.footer__logo img {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.footer__center {
  text-align: center;
}

.footer__center p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
}

.footer__license {
  color: var(--color-gold) !important;
  font-size: 0.85rem !important;
  margin-top: 8px;
}

.footer__social {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 16px 0 8px;
  flex-wrap: wrap;
}

.footer__social-link {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 700;
  transition: color var(--transition);
}

.footer__social-link:hover {
  color: var(--color-gold);
}

.footer__review-link {
  display: inline-block;
  color: var(--color-gold);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.footer__review-link:hover {
  color: #e8c87e;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-weight: 700;
  transition: color var(--transition);
  white-space: nowrap;
}

.footer__nav a:hover {
  color: var(--color-gold);
}


/* ================================================================
   RESPONSIVE — TABLET (max 1024px)
================================================================ */
@media (max-width: 1024px) {

  .navbar__nav a {
    font-size: 0.82rem;
    padding: 6px 8px;
  }

  .our-story__layout {
    grid-template-columns: 1fr 280px;
    gap: 40px;
  }

  .classic-maui__layout {
    grid-template-columns: 180px 1fr;
    gap: 32px;
  }

  .footer__layout {
    grid-template-columns: 100px 1fr 160px;
    gap: 28px;
  }

  .who__grid {
    gap: 20px;
  }

}

/* ================================================================
   RESPONSIVE — MOBILE (max 768px)
================================================================ */
@media (max-width: 768px) {

  /* Nav */
  .navbar__nav   { display: none; }
  .navbar__phone { display: none; }
  .navbar__hamburger { display: flex; }

  .navbar__inner {
    justify-content: space-between;
  }

  /* Hero */
  .hero__logo img { height: 130px; }
  .hero__title    { font-size: clamp(2rem, 10vw, 3.5rem); }
  .hero__ctas     { flex-direction: column; align-items: center; }
  .hero__ctas .btn { width: 100%; max-width: 300px; }
  .hero__welcome-guide { display: none; }

  /* Tagline strip */
  .tagline-strip__grid {
    grid-template-columns: 1fr;
  }
  .tagline-strip__item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 20px 24px;
  }
  .tagline-strip__item:last-child {
    border-bottom: none;
  }

  /* Our Story */
  .our-story__layout {
    grid-template-columns: 1fr;
  }
  .our-story__image {
    display: none;
  }

  /* Flooring */
  .flooring__grid {
    grid-template-columns: 1fr;
  }

  /* Window Coverings */
  .window-coverings__layout {
    grid-template-columns: 1fr;
  }
  .window-coverings__media {
    margin-bottom: 48px;
  }
  .window-coverings__guide {
    bottom: -30px;
    right: 0;
  }

  /* Who We Serve */
  .who__grid {
    grid-template-columns: 1fr;
  }
  .who__commercial-callout {
    padding: 28px 20px;
  }

  /* Gallery */
  .gallery__grid {
    columns: 2;
    width: 100%;
  }
  .gallery__guide {
    display: none;
  }

  /* Testimonials */
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  /* Classic Maui */
  .classic-maui__layout {
    grid-template-columns: 1fr;
  }
  .classic-maui__guide {
    display: none;
  }
  .history-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .history-block--img-right .history-block__image,
  .history-block--img-right .history-block__text {
    order: unset;
  }

  /* Contact */
  .contact__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact__guide {
    display: none;
  }

  /* Footer */
  .footer__layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__logo {
    text-align: center;
  }
  .footer__logo img {
    margin: 0 auto;
  }
  .footer__nav {
    align-items: center;
  }

}

/* ================================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
================================================================ */
@media (max-width: 480px) {

  .section { padding: 56px 0; }

  .gallery__grid { columns: 1; }

  .hero__badge { font-size: 0.8rem; padding: 8px 16px; }

  .who__commercial-callout { padding: 20px 16px; }

  .brands__chips { gap: 8px; }

  .btn { padding: 12px 24px; }

  .section__heading { font-size: 1.7rem; }

}

/* ================================================================
   SCROLL-TO-TOP (optional polish)
================================================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--color-ocean);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 900;
  box-shadow: 0 4px 16px rgba(26, 79, 114, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #0e3450;
}
