/* Good Choice Interiors — main theme layout */

:root {
  --gci-cta: #e85d2a;
  --gci-cta-dark: #cf4f1f;
  --gci-bg: #ffffff;
  --gci-muted: #5c6664;
  --gci-line: #e8eceb;
  --font-display: 'Poppins', system-ui, sans-serif;
  --font: 'Poppins', system-ui, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--gci-bg);
  color: #2a3230;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Top bar */
.top-bar {
  background: #1a2422;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  padding: 0.45rem 0;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-bar a {
  color: #fff;
  font-weight: 600;
}

.top-bar a:hover { color: var(--primary); }

.top-bar span { opacity: 0.75; }

.top-bar-phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
}

.top-bar-sep {
  opacity: 0.6;
  user-select: none;
}

.contact-phones {
  margin: 0;
  line-height: 1.65;
}

.contact-phones a {
  color: var(--primary, #1a7a6e);
  font-weight: 500;
}

/* Header tweaks */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--gci-line);
  backdrop-filter: none;
}

.page-hero,
.project-hero,
.hero:not(.gci-hero) {
  margin-top: 0 !important;
}

.header-inner { height: 68px; }

.nav-cta {
  background: var(--gci-cta) !important;
  box-shadow: none !important;
  border-radius: 6px !important;
}

.nav-cta:hover {
  background: var(--gci-cta-dark) !important;
}

.nav-link.active { color: var(--gci-cta); }

.btn-primary {
  background: var(--gci-cta);
  box-shadow: 0 6px 20px rgba(232, 93, 42, 0.28);
}

.btn-primary:hover {
  background: var(--gci-cta-dark);
  box-shadow: 0 8px 24px rgba(232, 93, 42, 0.35);
}

/* Hero */
.gci-hero {
  position: relative;
  margin-top: 0;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1a2422;
}

.gci-hero-bg {
  position: absolute;
  inset: 0;
}

.gci-hero-bg img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.gci-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 36, 34, 0.88) 0%, rgba(26, 36, 34, 0.55) 55%, rgba(26, 36, 34, 0.25) 100%);
}

.gci-hero-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 380px;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 1.25rem 3.75rem;
}

.gci-hero-text { color: #fff; }

.gci-hero-text h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  font-weight: 600;
}

.gci-hero-text p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.gci-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.gci-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.gci-lead-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.gci-lead-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: #1a2422;
}

.gci-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.gci-contact-form {
  position: relative;
}

.gci-contact-form--compact .form-group {
  margin-bottom: 0.75rem;
}

.gci-contact-form--compact textarea {
  min-height: 72px;
}

.gci-contact-form--compact .gci-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.gci-form-success:not(.show) {
  display: none;
}

.gci-form-success.show {
  display: block;
  margin-top: 0.75rem;
}

.gci-lead-section {
  background: #f7f9f8;
  border-top: 1px solid var(--gci-line);
  padding: 3rem 0;
}

.gci-lead-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.gci-lead-copy h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin: 0.35rem 0 0.75rem;
}

.gci-lead-copy p {
  color: var(--gci-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .gci-lead-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.gci-lead-card > p {
  font-size: 0.88rem;
  color: var(--gci-muted);
  margin-bottom: 1.25rem;
}

.btn-gci {
  width: 100%;
  border-radius: 6px;
  padding: 0.95rem 1rem;
  font-size: 0.95rem;
}

.gci-phone-stack {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.gci-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gci-cta);
}

.gci-phone-secondary {
  font-size: 0.85rem;
  opacity: 0.92;
}

.gci-phone:hover { color: var(--gci-cta-dark); }

/* Why choose us strip */
.gci-why {
  background: #f7f9f8;
  border-bottom: 1px solid var(--gci-line);
  padding: 2rem 0;
}

.gci-why h2 {
  text-align: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.gci-why-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.gci-why-item {
  flex: 0 0 150px;
  scroll-snap-align: start;
  text-align: center;
  padding: 1rem 0.75rem;
  background: #fff;
  border: 1px solid var(--gci-line);
  border-radius: 8px;
}

.gci-why-item strong {
  display: block;
  font-size: 1.05rem;
  color: var(--gci-cta);
  margin-bottom: 0.25rem;
}

.gci-why-item span {
  font-size: 0.78rem;
  color: var(--gci-muted);
  line-height: 1.35;
}

/* Section headings */
.gci-section {
  padding: 3rem 0;
}

.gci-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.gci-section-head h2 {
  font-size: 1.45rem;
  margin: 0;
}

.gci-section-head a {
  color: var(--gci-cta);
  font-weight: 600;
  font-size: 0.88rem;
}

.gci-section-head a:hover { text-decoration: underline; }

/* Horizontal design cards */
.gci-scroll-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.gci-design-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--gci-line);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.gci-design-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.gci-design-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}

.gci-design-card figcaption {
  padding: 0.85rem 1rem 1rem;
}

.gci-design-card h3 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.35;
}

.gci-design-card p {
  font-size: 0.78rem;
  color: var(--gci-muted);
}

/* Estimate duo */
.gci-estimate {
  background: linear-gradient(180deg, #f0f5f4 0%, #fff 100%);
  padding: 3rem 0;
}

.gci-estimate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.gci-estimate-card {
  background: #fff;
  border: 1px solid var(--gci-line);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.gci-estimate-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.gci-estimate-card p {
  color: var(--gci-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* Design session steps */
.gci-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gci-step {
  background: #fff;
  border: 1px solid var(--gci-line);
  border-radius: 8px;
  padding: 1.25rem;
  position: relative;
}

.gci-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.gci-step h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.gci-step p {
  font-size: 0.82rem;
  color: var(--gci-muted);
  line-height: 1.5;
}

/* 6-step move-in process */
.gci-process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gci-process-card {
  background: #fff;
  border: 1px solid var(--gci-line);
  border-radius: 8px;
  padding: 1.35rem;
  border-top: 3px solid var(--gci-cta);
}

.gci-process-card span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gci-cta);
}

.gci-process-card h3 {
  font-size: 0.95rem;
  margin: 0.5rem 0 0.35rem;
}

.gci-process-card p {
  font-size: 0.82rem;
  color: var(--gci-muted);
  line-height: 1.5;
}

/* Gallery — keep lightbox grid */
#gallery .gallery-grid {
  grid-template-columns: repeat(3, 1fr);
}

#gallery .gallery-item {
  border-radius: 8px;
  border: 1px solid var(--gci-line);
}

/* Testimonials */
.testimonial-card {
  border-radius: 8px;
  border-color: var(--gci-line);
}

/* FAQ + footer CTA band */
.gci-faq-cta {
  background: #1a2422;
  color: #fff;
  text-align: center;
  padding: 2.5rem 1.25rem;
  margin-top: 2rem;
}

.gci-faq-cta h2 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.gci-faq-cta p {
  opacity: 0.8;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.gci-faq-cta .btn-primary { min-width: 220px; }

.footer {
  background: #141c1a;
  margin-top: 0;
}

.page-hero {
  background: #f7f9f8;
  border-bottom: 1px solid var(--gci-line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
}

/* Interior / portfolio cards */
.portfolio-card,
.service-card,
.promise-card {
  border-radius: 8px;
}

.portfolio-category-divider {
  grid-column: 1 / -1;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark, #152220);
  margin: 2rem 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light, #ddf5f1);
}

.portfolio-category-divider:first-child {
  margin-top: 0;
}

.portfolio-grid-page .portfolio-category-divider.hidden {
  display: none;
}

.portfolio-grid-page.gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.portfolio-grid-page .gallery-item {
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid var(--gci-line, #e8eceb);
  overflow: hidden;
}

.portfolio-grid-page .gallery-item.hidden {
  display: none;
}

.portfolio-grid-page .gallery-item .gallery-overlay {
  display: none;
}

@media (max-width: 992px) {
  .gci-hero {
    min-height: min(88dvh, 780px);
  }

  .gci-hero-bg img {
    object-position: 62% center;
  }

  .gci-hero-bg::after {
    background: linear-gradient(
      180deg,
      rgba(26, 36, 34, 0.92) 0%,
      rgba(26, 36, 34, 0.78) 42%,
      rgba(26, 36, 34, 0.55) 100%
    );
  }

  .gci-hero-wrap {
    grid-template-columns: 1fr;
    padding: 2.25rem 1rem 2.75rem;
    gap: 1.5rem;
  }

  .gci-estimate-grid { grid-template-columns: 1fr; }
  .gci-steps { grid-template-columns: 1fr 1fr; }
  .gci-process-grid { grid-template-columns: 1fr 1fr; }

  /* Category / service cards: grid instead of sideways scroll */
  .gci-scroll-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    overflow-x: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }

  .gci-design-card {
    flex: unset;
    width: 100%;
    min-width: 0;
  }

  .gci-design-card img {
    height: auto;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .top-bar-inner > span:last-child {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .gci-hero {
    min-height: auto;
  }

  .gci-hero-text h1 {
    font-size: clamp(1.55rem, 6.5vw, 2rem);
  }

  .gci-hero-text p {
    font-size: 0.95rem;
    max-width: none;
  }

  .gci-lead-card {
    padding: 1.25rem;
    margin-left: 0;
    margin-right: 0;
  }

  .gci-section {
    padding: 2.25rem 0;
  }

  .gci-section-head h2 {
    font-size: 1.25rem;
  }

  .portfolio-grid-page.gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .gci-scroll-row {
    grid-template-columns: 1fr;
  }

  .gci-design-card img {
    aspect-ratio: 16 / 10;
  }

  .gci-hero-badges {
    gap: 0.35rem;
  }

  .gci-pill {
    font-size: 0.68rem;
    padding: 0.3rem 0.55rem;
  }

  #gallery .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .portfolio-grid-page.gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile drawer menu & bottom actions ── */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(26, 36, 34, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-head {
  display: none;
}

/* Links live in .mobile-nav-scroll after JS init — must stay visible on desktop */
.mobile-nav-scroll {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: flex-end;
  padding: 0;
  overflow: visible;
}

.mobile-action-bar {
  display: none;
}

@media (max-width: 768px) {
  .gci-steps,
  .gci-process-grid { grid-template-columns: 1fr; }

  #gallery .gallery-grid { grid-template-columns: 1fr 1fr; }

  body.has-mobile-actions {
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  }

  body.menu-open .mobile-action-bar {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
  }

  .whatsapp-float {
    display: none;
  }

  .menu-toggle {
    position: relative;
    z-index: 1003;
  }

  .header {
    z-index: 1002;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    width: min(20.5rem, 88vw);
    max-height: none;
    height: 100%;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 1002;
    background: #fff;
    border: none;
    border-left: 1px solid var(--gci-line);
    box-shadow: -12px 0 48px rgba(26, 36, 34, 0.18);
    transform: translateX(105%);
    opacity: 1;
    visibility: visible;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
  }

  .nav.open {
    transform: translateX(0);
  }

  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--gci-line);
    background: linear-gradient(135deg, #1a2422 0%, #243330 100%);
    color: #fff;
    flex-shrink: 0;
  }

  .mobile-nav-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
  }

  .mobile-nav-title {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
  }

  .mobile-nav-sub {
    font-size: 0.75rem;
    opacity: 0.75;
    font-weight: 500;
  }

  .mobile-nav-close {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
  }

  .mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.22);
  }

  .mobile-nav-scroll {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0.85rem 1.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .nav-link,
  .nav-dropdown-toggle {
    padding: 0.95rem 1rem;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 10px;
    color: #2a3230;
  }

  .nav-link:hover,
  .nav-dropdown-toggle:hover,
  .nav-link.active {
    background: rgba(232, 93, 42, 0.08);
    color: var(--gci-cta);
  }

  .nav-cta {
    margin: 0.75rem 0 0 !important;
    text-align: center !important;
    background: var(--gci-cta) !important;
    color: #fff !important;
    border-radius: 10px;
    padding: 1rem !important;
    font-weight: 600;
  }

  .nav-cta:hover {
    background: var(--gci-cta-dark) !important;
    color: #fff !important;
  }

  .nav-dropdown .dropdown-menu {
    border-radius: 8px;
    margin: 0.25rem 0 0.5rem;
    padding: 0.35rem 0;
  }

  .nav-dropdown .dropdown-menu a {
    padding: 0.75rem 1rem 0.75rem 1.35rem;
    font-size: 0.9375rem;
  }

  .mobile-action-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: #fff;
    border-top: 1px solid var(--gci-line);
    box-shadow: 0 -8px 32px rgba(26, 36, 34, 0.08);
    padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .mobile-action-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.45rem 0.25rem;
    border-radius: 12px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #3d4846;
    text-align: center;
    min-width: 0;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .mobile-action-item:active {
    background: #f4f6f5;
  }

  .mobile-action-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-action-icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .mobile-action-call .mobile-action-icon {
    background: rgba(26, 122, 110, 0.12);
    color: var(--primary, #1a7a6e);
  }

  .mobile-action-chat .mobile-action-icon {
    background: rgba(37, 211, 102, 0.15);
    color: #128c7e;
  }

  .mobile-action-estimate .mobile-action-icon {
    background: rgba(232, 93, 42, 0.12);
    color: var(--gci-cta);
  }

  .mobile-action-estimate .mobile-action-icon svg {
    width: 1.35rem;
    height: 1.35rem;
  }

  .mobile-action-label {
    line-height: 1.2;
    white-space: nowrap;
  }
}
