/* Carpet Tampa Bay — Professional Carpet Installer Theme */
:root {
  --bg: #faf9f7;
  --bg-alt: #f0eeeb;
  --card: #ffffff;
  --text: #2d2a26;
  --heading: #1a1714;
  --muted: #6b6560;
  --line: #e0dcd7;
  --brand: #1a6b5a;
  --brand-light: #228b73;
  --brand-dark: #145548;
  --accent: #c8842a;
  --accent-light: #daa03d;
  --success: #1a7a3a;
  --error: #b8242a;
  --header-bg: #1a1714;
  --shadow-sm: 0 2px 8px rgba(26, 23, 20, 0.06);
  --shadow: 0 8px 24px rgba(26, 23, 20, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 23, 20, 0.12);
  --radius: 10px;
  --radius-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

/* --- Skip link (a11y) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--brand);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* --- Links --- */
a { color: var(--brand-light); transition: color 0.2s; }
a:hover { color: var(--brand); }
a:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --- Container --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ==========  HEADER  ========== */
header {
  background: var(--header-bg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 62px;
  gap: 16px;
}
.site-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.site-title:hover { color: #fff; opacity: 0.88; }
.nav nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.nav nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 7px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.nav .phone-link {
  color: var(--accent-light);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 7px 14px;
  border: 1px solid rgba(200, 132, 42, 0.35);
  border-radius: 6px;
  text-decoration: none;
  margin-left: 4px;
  white-space: nowrap;
}
.nav .phone-link:hover {
  background: rgba(200, 132, 42, 0.12);
  color: #fff;
}

/* ==========  HERO  ========== */
.hero {
  background: linear-gradient(135deg, #1a1714 0%, #1a6b5a 60%, #228b73 100%);
  color: #fff;
  padding: 72px 0 64px;
  text-align: center;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  margin: 0 0 14px;
  line-height: 1.18;
}
.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.08rem;
  max-width: 620px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.hero .cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.hero .cta:hover {
  background: var(--accent-light);
  color: #fff;
  transform: translateY(-1px);
}
.hero .cta:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

/* ==========  SECTION / PAGE  ========== */
section { padding: 40px 0; }
section.container {
  padding-top: 40px !important;
  padding-bottom: 56px !important;
}

/* ==========  TYPOGRAPHY  ========== */
h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.24;
  letter-spacing: -0.015em;
}
h1 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  margin: 0.2rem 0 0.7rem;
}
h2 {
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  margin: 1.8rem 0 0.7rem;
}
h3 {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  margin: 1.4rem 0 0.45rem;
}
p { margin: 0.6rem 0; }
.muted { color: var(--muted); }
.lead {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 66ch;
  line-height: 1.7;
}

section.container > p:not(.muted),
section.container > h2,
section.container > h3 { max-width: 72ch; }

/* ==========  GRID & CARDS  ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 1.2rem 0 1.5rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: var(--shadow);
}
.card img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

/* Service icon cards */
.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.5rem;
  color: #fff;
}

/* Linked card */
a.card {
  text-decoration: none;
  color: inherit;
  display: block;
}
a.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
a.card h3 { color: var(--brand); margin-top: 0; }

/* ==========  TRUST BAR  ========== */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 20px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.trust-bar strong { color: var(--heading); }

/* ==========  STATS BAR  ========== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 36px 0;
  text-align: center;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ==========  PROCESS STEPS  ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 1.5rem 0;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  margin-bottom: 12px;
}
.step h3 { margin-top: 0; }

/* ==========  TESTIMONIALS  ========== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 1.2rem 0;
}
.testimonial {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial blockquote {
  margin: 0;
  font-style: italic;
  color: var(--text);
  line-height: 1.65;
  font-size: 0.95rem;
}
.testimonial cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 600;
  color: var(--brand);
  font-size: 0.88rem;
}
.stars {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

/* ==========  CTA SECTION  ========== */
.cta-section {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.cta-section h2 {
  color: #fff;
  margin-top: 0;
}
.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin: 0 auto 24px;
}
.cta-section .cta-link {
  background: var(--accent);
  color: #fff;
}
.cta-section .cta-link:hover {
  background: var(--accent-light);
  color: #fff;
}

/* ==========  CTA LINK  ========== */
.cta-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}
.cta-link:hover {
  background: var(--brand-light);
  color: #fff;
  transform: translateY(-1px);
}
.cta-link:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 3px;
}
.cta-link--accent {
  background: var(--accent);
}
.cta-link--accent:hover {
  background: var(--accent-light);
}

/* ==========  SERVICE PAGE LAYOUT  ========== */
.service-hero {
  background: linear-gradient(135deg, #1a1714 0%, #1a6b5a 55%, #228b73 100%);
  color: #fff;
  padding: 48px 0 40px;
  text-align: center;
}
.service-hero h1 {
  color: #fff;
  margin-bottom: 10px;
}
.service-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.benefits-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  line-height: 1.6;
}
.benefits-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Two-col content */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin: 1.5rem 0;
}

/* ==========  AREA TAGS  ========== */
.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1rem 0;
}
.area-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
}
.area-tag:hover {
  background: var(--line);
  color: var(--brand-dark);
}

/* ==========  FAQ  ========== */
.faq-list { margin: 1rem 0; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 6px;
  font-size: 1rem;
}
.faq-a {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==========  GALLERY  ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 1.2rem 0;
}
.gallery-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery-item .gallery-img {
  width: 100%;
  height: 220px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.gallery-item .gallery-caption {
  padding: 14px 16px;
}
.gallery-item .gallery-caption h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}
.gallery-item .gallery-caption p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ==========  CONTACT GRID & FORM  ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 1.2rem 0;
}
.contact-card { padding: 28px; }

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lead-form label {
  font-weight: 620;
  font-size: 0.93rem;
  color: var(--heading);
}
.lead-form .required { color: var(--error); }
.lead-form input,
.lead-form select,
.lead-form textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26, 107, 90, 0.12);
}
.lead-form button {
  align-self: flex-start;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.lead-form button:hover {
  background: var(--brand-light);
  transform: translateY(-1px);
}
.lead-form button:disabled { opacity: 0.6; cursor: wait; }
.form-msg { font-size: 0.93rem; min-height: 1.4em; }
.form-msg.success { color: var(--success); }
.form-msg.error { color: var(--error); }

/* Inline form (service pages) */
.inline-form-wrap {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 2rem 0;
}
.inline-form-wrap h3 { margin-top: 0; }

/* ==========  FOOTER  ========== */
footer {
  background: var(--header-bg);
  color: rgba(255, 255, 255, 0.75);
  padding: 36px 0;
  margin-top: 36px;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}
.footer-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.86rem;
  transition: all 0.2s;
}
.footer-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.footer-info {
  width: 100%;
  text-align: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ==========  ALIASES (class variations used in HTML)  ========== */
.btn { display: inline-block; font-weight: 700; font-size: 1rem; padding: 14px 32px; border-radius: 8px; text-decoration: none; transition: background 0.2s, transform 0.15s; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: #fff; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 1.2rem 0 1.5rem; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 1.2rem 0 1.5rem; }
.service-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); transition: box-shadow 0.25s, transform 0.25s; }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card h3 { margin-top: 0; color: var(--brand); }
.service-card img { display: block; width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius); margin-bottom: 12px; }
.service-card .cta-link { margin-top: 12px; font-size: 0.88rem; padding: 8px 20px; }
.bg-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-items { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.trust-item { text-align: center; font-size: 0.9rem; color: var(--muted); }
.trust-item strong { display: block; color: var(--heading); font-size: 1.05rem; }
.col-text, .col-card { min-width: 0; }
.stats-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 20px; text-align: center; }
.stats-card .stat strong { display: block; font-size: 2rem; color: var(--brand); line-height: 1.1; }
.stats-card .stat span { font-size: 0.88rem; color: var(--muted); }
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin: 1.5rem 0; counter-reset: step; }
.process-steps .step { counter-increment: step; }
.step-number { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--brand); color: #fff; font-weight: 700; font-size: 1rem; border-radius: 50%; margin-bottom: 12px; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; display: block; }
.cta-section a { color: #fff; text-decoration: none; }

/* ==========  RESPONSIVE  ========== */
@media (max-width: 1024px) {
  .nav {
    min-height: auto;
    padding: 12px 0;
    flex-direction: column;
    align-items: flex-start;
  }
  .site-title { font-size: 1rem; }
  .nav nav {
    width: 100%;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .nav nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 1.55rem; }

  .contact-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .lead-form button { width: 100%; }

  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-bar { gap: 24px; }

  .trust-bar { gap: 16px; font-size: 0.85rem; }

  section.container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .nav .phone-link { margin-left: 0; }

  .gallery-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ==========  LANGUAGE TOGGLE  ========== */
.lang-toggle {
  color: rgba(255, 255, 255, 0.6) !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 4px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  margin-left: 4px;
  letter-spacing: 0.05em;
}
.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}
