/* ========================================
   Gundersen's Floors To Go — Rexburg, ID
   ======================================== */

:root {
  --color-bg: #faf9f7;
  --color-bg-alt: #ffffff;
  --color-bg-dark: #1a1a1a;
  --color-bg-warm: #f3efe8;
  --color-accent: #8b6914;
  --color-accent-light: #c9a84c;
  --color-accent-dim: rgba(139, 105, 20, 0.1);
  --color-text: #2c2c2c;
  --color-text-muted: #6b6b6b;
  --color-text-light: #999999;
  --color-text-on-dark: #f5f5f0;
  --color-border: #e5e0d8;
  --color-success: #4a7c59;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1200px;
  --nav-height: 80px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent-light); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s;
}
.nav.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}
.nav__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav__name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}
.nav__sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 0.15rem;
}
.nav__links { display: flex; gap: 2rem; align-items: center; }
.nav__links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--color-text); }
.nav__cta {
  background: var(--color-accent) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav__cta:hover { background: var(--color-accent-light) !important; }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}
.nav__hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Shared Section ── */
section { padding: 5rem clamp(1.5rem, 4vw, 3rem); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}
.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 3rem;
  line-height: 1.7;
}
.section-center { text-align: center; }
.section-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: linear-gradient(135deg, var(--color-bg-warm) 0%, var(--color-bg) 100%);
  position: relative;
  overflow: hidden;
}
.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}
.hero__content { z-index: 1; }
.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-dim);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}
.hero__title em {
  font-style: italic;
  color: var(--color-accent);
}
.hero__desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 500px;
}
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__info {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}
.hero__info-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text);
}
.hero__info-item span {
  font-size: 0.85rem;
  color: var(--color-text-light);
}
.hero__visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hero__img {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--color-border);
}
.hero__img:first-child { margin-top: 2rem; }
.hero__img:last-child { margin-top: -2rem; }
.hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.btn--primary:hover { box-shadow: 0 4px 16px rgba(139, 105, 20, 0.3); color: #fff; }
.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn--secondary:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ── Floors To Go Banner ── */
.ftg-banner {
  background: var(--color-bg-dark);
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}
.ftg-banner .section-inner { padding: 2.5rem 0; }
.ftg-banner__link {
  display: block;
  background: linear-gradient(135deg, #2a2517 0%, #1a1a1a 100%);
  border: 1px solid #3d3424;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  color: var(--color-text-on-dark);
  transition: border-color 0.3s, transform 0.2s;
}
.ftg-banner__link:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  opacity: 1;
}
.ftg-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.ftg-banner__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 0.4rem;
}
.ftg-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.ftg-banner__desc {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.6;
  max-width: 550px;
}
.ftg-banner__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}
.ftg-banner__link:hover .ftg-banner__cta { background: var(--color-accent-light); }

@media (max-width: 768px) {
  .ftg-banner__content { flex-direction: column; text-align: center; }
  .ftg-banner__desc { max-width: 100%; }
}

/* ── Services ── */
.services { background: var(--color-bg-alt); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--color-accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--color-accent);
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.service-card p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ── Products (Flooring) ── */
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
a.product-card { color: inherit; display: block; }
a.product-card:hover { opacity: 1; }
.product-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  transition: transform 0.25s, box-shadow 0.25s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.product-card__img {
  aspect-ratio: 16/10;
  background: var(--color-bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--color-accent);
  overflow: hidden;
}
.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .product-card__img img { transform: scale(1.05); }
.product-card__body { padding: 1.5rem; }
.product-card__body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.product-card__body p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.product-card__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-dim);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* ── About / Why Us ── */
.about { background: var(--color-bg-warm); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about__text p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.75;
}
.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.about__feature {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.about__feature-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--color-accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 0.9rem;
}
.about__feature h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.about__feature p {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 0;
  line-height: 1.5;
}
.about__visual {
  background: var(--color-border);
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--color-accent);
  overflow: hidden;
}
.about__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Gallery ── */
.gallery { background: var(--color-bg); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery__item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1rem 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ── Guarantees ── */
.guarantees { background: var(--color-bg-dark); color: var(--color-text-on-dark); }
.guarantees .section-label { color: var(--color-accent-light); }
.guarantees .section-subtitle { color: #aaa; }
.guarantees__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.guarantee-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid #333;
  border-radius: 12px;
  transition: border-color 0.25s;
}
.guarantee-card:hover { border-color: var(--color-accent); }
.guarantee-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.guarantee-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.guarantee-card p {
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Testimonials ── */
.testimonials { background: var(--color-bg-alt); }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
}
.testimonial-card__stars {
  color: var(--color-accent);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}
.testimonial-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.testimonial-card__author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  font-style: normal;
}

/* ── Contact ── */
.contact { background: var(--color-bg-warm); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact__info h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
.contact__detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact__detail-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}
.contact__detail h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.contact__detail p, .contact__detail a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.contact__map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16/10;
}
.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Footer ── */
.footer {
  background: var(--color-bg-dark);
  color: #999;
  padding: 3rem clamp(1.5rem, 4vw, 3rem);
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__brand .nav__name { color: var(--color-text-on-dark); }
.footer__brand .nav__sub { color: var(--color-accent-light); }
.footer p { font-size: 0.8rem; }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { color: #999; font-size: 0.85rem; }
.footer__links a:hover { color: #fff; }

/* ── Scroll Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile ── */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0; bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .nav__links.open { opacity: 1; pointer-events: all; }
  .nav__links a { font-size: 1.15rem; }
  .nav__hamburger { display: flex; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .hero__info { justify-content: center; }
  .hero__visual { display: none; }

  .services__grid { grid-template-columns: 1fr; }
  .products__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .guarantees__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .about__features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  section { padding: 3.5rem 1.25rem; }
  .hero__info { flex-direction: column; gap: 1rem; }
  .footer__inner { flex-direction: column; text-align: center; }
}
