/*
Theme Name: Tonto Flooring
Theme URI: https://tontoflooring.com
Author: Tonto Flooring
Description: Custom theme for Tonto Flooring - Family-owned flooring company serving all of Arizona.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: tonto-flooring
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --maroon: #5E1A2E;
  --maroon-dark: #3D1120;
  --maroon-light: #7A2E44;
  --sage: #6B8E5A;
  --sage-dark: #4F6E42;
  --sage-light: #8AAE78;
  --tan: #C4AA6A;
  --tan-light: #D9C48E;
  --gray: #D4D0CB;
  --off-white: #FAF6F0;
  --cream: #F2EDE5;
  --text-dark: #2E1A1F;
  --text-muted: #7A6B6E;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.05;
}

h1 { font-size: clamp(48px, 6vw, 82px); }
h2 { font-size: clamp(34px, 4vw, 52px); }
h3 { font-size: 22px; letter-spacing: 1px; font-weight: 700; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  padding: 10px 32px;
  background: rgba(62, 17, 32, 0.97);
  backdrop-filter: blur(12px);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.navbar__logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--tan);
  font-family: var(--font-heading);
  letter-spacing: 1px;
  background: var(--maroon);
}

.navbar__logo-img {
  flex-shrink: 0;
  line-height: 0;
}

.navbar__logo-img img,
.navbar__logo-img .custom-logo {
  height: 44px;
  width: auto;
  max-width: 44px;
  display: block;
  object-fit: contain;
}

.navbar__logo-img a {
  display: block;
  line-height: 0;
}

.footer .navbar__logo-img img,
.footer .navbar__logo-img .custom-logo {
  height: 36px;
  max-width: 36px;
}

.navbar__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--tan);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
}

.navbar__tagline {
  font-size: 10px;
  color: var(--sage-light);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 500;
}

.navbar__links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.navbar__link {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--font-heading);
  transition: color 0.3s;
}

.navbar__link:hover {
  color: var(--tan);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-heading);
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
  border: none;
  cursor: pointer;
}

.btn--sage {
  background: var(--sage);
  color: #fff;
}

.btn--sage:hover {
  transform: translateY(-1px);
  background: var(--sage-dark);
  box-shadow: 0 4px 16px rgba(107,142,90,0.4);
}

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

.btn--tan-outline:hover {
  background: var(--tan);
  color: var(--maroon);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 16px;
  letter-spacing: 1.5px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: calc(100vh - 52px);
  min-height: calc(100dvh - 52px);
  background: linear-gradient(165deg, rgba(62,17,32,0.94) 0%, rgba(62,17,32,0.78) 50%, rgba(62,17,32,0.6) 100%),
              url('') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 100px 60px 60px;
  position: relative;
  overflow: hidden;
}

.hero__accent-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sage), var(--tan), var(--sage));
  opacity: 0.6;
}

.hero__glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(107,142,90,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero__content {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-block;
  background: rgba(107,142,90,0.2);
  border: 1px solid rgba(107,142,90,0.35);
  border-radius: 2px;
  padding: 6px 18px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--sage-light);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-family: var(--font-heading);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero h1 {
  color: #fff;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero h1 span {
  color: var(--tan);
}

.hero__desc {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 540px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  opacity: 0;
  animation: fadeUp 0.8s ease 1s forwards;
}

.hero__stat-num {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--tan);
  letter-spacing: 1px;
}

.hero__stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
  background: var(--maroon-dark);
  border-top: 3px solid var(--sage);
  padding: 22px 60px;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  box-shadow: 0 4px 0 0 var(--maroon-dark);
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.trust-bar__diamond {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--sage);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-label {
  font-size: 13px;
  color: var(--sage);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--off-white);
  padding: 64px 60px;
}

.services__grid {
  max-width: 1100px;
  margin: 0 auto;
}

.services__header {
  text-align: center;
  margin-bottom: 40px;
}

.services__header h2 {
  color: var(--maroon);
  margin-bottom: 16px;
}

.services__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all 0.4s ease;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.service-card:hover {
  background: var(--maroon);
  border-color: var(--maroon);
  box-shadow: 0 20px 50px rgba(94,26,46,0.2);
  transform: translateY(-4px);
}

.service-card__img {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.service-card__img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, #fff);
  transition: background 0.4s;
}

.service-card:hover .service-card__img::after {
  background: linear-gradient(transparent, var(--maroon));
}

.service-card__body {
  padding: 20px 24px 28px;
}

.service-card__title {
  color: var(--maroon);
  margin-bottom: 10px;
  transition: color 0.4s;
}

.service-card:hover .service-card__title {
  color: var(--tan);
}

.service-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  transition: color 0.4s;
}

.service-card:hover .service-card__desc {
  color: rgba(255,255,255,0.7);
}

.service-card__feature {
  font-size: 13px;
  color: #9A8F83;
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.4s;
}

.service-card:hover .service-card__feature {
  color: rgba(255,255,255,0.5);
}

.service-card__feature-dot {
  color: var(--sage);
  font-size: 8px;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--maroon);
  padding: 64px 60px;
  position: relative;
  overflow: hidden;
}

.about__glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,142,90,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.about__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  gap: 48px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about__image {
  flex: 0 0 400px;
  min-height: 480px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  border: 3px solid var(--sage);
  align-self: stretch;
}

.about__text {
  flex: 1;
  min-width: 340px;
}

.about__text .section-label {
  color: var(--sage);
}

.about__text h2 {
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.1;
}

.about__text h2 span {
  color: var(--tan);
}

.about__text p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about__values {
  display: flex;
  gap: 32px;
  margin-top: 12px;
}

.about__value-num {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--tan);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about__value-label {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  background: var(--cream);
  padding: 64px 60px;
}

.testimonials__grid {
  max-width: 1100px;
  margin: 0 auto;
}

.testimonials__header {
  text-align: center;
  margin-bottom: 40px;
}

.testimonials__header h2 {
  color: var(--maroon);
}

.testimonials__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  border: 1px solid var(--gray);
  position: relative;
  overflow: hidden;
}

.testimonial-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--maroon), var(--sage));
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.testimonial-card__star {
  color: var(--tan);
  font-size: 16px;
}

.testimonial-card__text {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--tan);
  font-family: var(--font-heading);
}

.testimonial-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--maroon);
}

.testimonial-card__location {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   CTA
   ============================================ */
.cta {
  background: linear-gradient(135deg, rgba(62,17,32,0.95), rgba(62,17,32,0.88)),
              url('') center/cover no-repeat;
  padding: 64px 60px;
  text-align: center;
  position: relative;
}

.cta__accent-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sage), var(--tan), var(--sage));
  opacity: 0.6;
}

.cta__inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta h2 {
  color: #fff;
  margin-bottom: 20px;
}

.cta h2 span {
  color: var(--tan);
}

.cta__desc {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--maroon-dark);
  padding: 60px 60px 32px;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer__columns {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--tan);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer__brand-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  max-width: 280px;
  line-height: 1.6;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--sage);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer__col-item {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  padding: 4px 0;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.25);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--tan);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .navbar__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(62, 17, 32, 0.98);
    flex-direction: column;
    padding: 24px 32px;
    gap: 16px;
  }

  .navbar__links.active {
    display: flex;
  }

  .navbar__toggle {
    display: block;
  }

  .hero {
    padding: 100px 24px 60px;
    min-height: auto;
  }

  h1 { font-size: 42px; }

  .hero__stats {
    gap: 24px;
  }

  .services,
  .about,
  .testimonials,
  .cta {
    padding: 40px 24px;
  }

  .trust-bar {
    padding: 16px 24px;
    gap: 20px;
  }

  .about__inner {
    flex-direction: column;
  }

  .about__image {
    flex: none;
    width: 100%;
    min-height: 300px;
    height: auto;
  }

  .about__values {
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer {
    padding: 40px 24px 24px;
  }

  .footer__columns {
    flex-direction: column;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   SERVICE PAGE
   ============================================ */
.service-hero {
  min-height: 50vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 120px 60px 60px;
  position: relative;
}

.service-hero__content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.service-hero__back {
  display: inline-block;
  color: var(--sage-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-heading);
  margin-bottom: 20px;
  transition: color 0.3s;
}

.service-hero__back:hover {
  color: var(--tan);
}

.service-hero h1 {
  color: #fff;
  margin-bottom: 16px;
}

.service-hero__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 560px;
}

/* Service Content */
.service-content {
  background: var(--off-white);
  padding: 64px 60px;
}

.service-content__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.service-content__main {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
}

.service-content__main h2 {
  color: var(--maroon);
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 28px;
}

.service-content__main h3 {
  color: var(--maroon);
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 20px;
}

.service-content__main p {
  margin-bottom: 20px;
  color: var(--text-dark);
}

.service-content__main ul,
.service-content__main ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.service-content__main li {
  margin-bottom: 8px;
  color: var(--text-muted);
}

.service-content__main img {
  border-radius: 8px;
  margin: 24px 0;
}

/* Service Sidebar */
.service-content__sidebar {
  flex: 0 0 320px;
  position: sticky;
  top: 80px;
}

.service-sidebar-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--gray);
  padding: 28px 24px;
  margin-bottom: 20px;
}

.service-sidebar-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--maroon);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.service-sidebar-card ul {
  list-style: none;
  padding: 0;
}

.service-sidebar-card li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--gray);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-sidebar-card li:last-child {
  border-bottom: none;
}

.service-sidebar-card li::before {
  content: '\2666';
  color: var(--sage);
  font-size: 8px;
  flex-shrink: 0;
}

.service-sidebar-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-sidebar-card--cta {
  background: var(--maroon);
  border-color: var(--maroon);
}

.service-sidebar-card--cta h3 {
  color: var(--tan);
}

.service-sidebar-card--cta p {
  color: rgba(255,255,255,0.7);
}

/* Other Services */
.other-services {
  background: var(--cream);
  padding: 64px 60px;
}

.other-services__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.other-services h2 {
  color: var(--maroon);
  text-align: center;
  margin-bottom: 40px;
}

.other-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.other-service-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--gray);
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: block;
}

.other-service-card:hover {
  border-color: var(--maroon);
  box-shadow: 0 8px 24px rgba(94,26,46,0.12);
  transform: translateY(-2px);
}

.other-service-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--maroon);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.other-service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.other-service-card__link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.other-service-card:hover .other-service-card__link {
  color: var(--maroon);
}

/* Service page responsive */
@media (max-width: 768px) {
  .service-hero {
    padding: 100px 24px 40px;
    min-height: 40vh;
  }

  .service-content {
    padding: 40px 24px;
  }

  .service-content__inner {
    flex-direction: column;
  }

  .service-content__sidebar {
    flex: none;
    width: 100%;
    position: static;
  }

  .other-services {
    padding: 40px 24px;
  }
}
