/*
File: /var/www/rrrupholstery.com/public/style.css
Version: 2.1
Revised: 2026-03-29 GMT
Purpose: Shared stylesheet for Triple R Upholstery website
*/

:root {
  --bg: #f6f6f4;
  --panel: #ffffff;
  --text: #1f1f1d;
  --muted: #5f5f59;
  --line: #ddddd6;
  --accent: #2f5d50;
  --accent-dark: #24473d;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

img,
video {
  border: 0;
}

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

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  width: 210px;
  max-width: 90%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.back-link {
  color: var(--accent);
  font-weight: bold;
  font-size: 0.95rem;
}

.hero {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f6f6f4 100%);
}

.hero-simple {
  padding: 2.6rem 0 1.4rem;
  background: linear-gradient(180deg, #ffffff 0%, #f6f6f4 100%);
}

.hero-grid,
.project-grid,
.feature-grid,
.categories {
  display: grid;
  gap: 1.1rem;
}

.hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.categories {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2rem;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.6rem;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

.lead {
  font-size: 1.08rem;
  color: #333;
  max-width: 58ch;
}

.lead-centered {
  max-width: 52rem;
  margin: 0.9rem auto 0;
  text-align: center;
  color: #333;
}

.hero-card,
.card,
.feature,
.contact-box {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: 18px;
  padding: 1rem;
}

.hero-card img {
  border-radius: 12px;
  background: #efefeb;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.25rem;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.2s ease;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
}

section {
  padding: 2.4rem 0;
}

.section-head {
  max-width: 72ch;
  margin-bottom: 1.5rem;
}

.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.card {
  border-radius: 16px;
  overflow: hidden;
  transition: 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ecece7;
}

.card-body {
  padding: 1rem;
}

.category-card .card-body {
  text-align: center;
}

.category-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.category-card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.feature {
  border-radius: 14px;
  padding: 1rem;
}

.contact-box {
  border-radius: 18px;
  padding: 1.4rem;
  max-width: 680px;
}

.content {
  text-align: center;
  padding: 1.5rem;
  max-width: 900px;
  margin: auto;
}

.content p {
  margin: 0 0 1rem;
}

.contact {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #444;
}

.contact p {
  margin: 0.2rem 0;
}

footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.footer-note {
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .project-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    justify-content: center;
    align-items: center;
  }

  .lead-centered {
    max-width: 32rem;
  }
}

.lead-centered p {
  margin: 0.15rem 0;
  font-size: 1rem;
  line-height: 1.45;
}
