/* index.css — Chester Moore & Sons v2 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  --bg-primary:     #ffffff;
  --bg-secondary:   #f4f5f7;
  --bg-accent:      #e8e9ec;

  --text-primary:   #111827;
  --text-secondary: #4b5563;
  --text-muted:     #9ca3af;
  --text-inverse:   #ffffff;

  --border-light:   #d1d5db;
  --border-strong:  #9ca3af;

  /* Brand palette: deep forest green — matches the Chester Moore sign */
  --brand-primary:  #1a5c38;
  --brand-hover:    #145030;
  --brand-light:    #e8f3ed;
  --brand-dark:     #0f3a22;
  --brand-gold:     #c8922a;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.12);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

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

/* ─── Typography Utilities ───────────────────────────────────────────────── */
.text-center    { text-align: center; }
.text-brand     { color: var(--brand-primary); }
.text-secondary { color: var(--text-secondary); }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 6rem 0; }
.bg-secondary { background-color: var(--bg-secondary); }

/* Section header pattern */
.section-header { margin-bottom: 3.5rem; }
.section-header h2 {
  font-size: 2.75rem;
  margin: 0.5rem 0 1rem;
  color: var(--text-primary);
}
.section-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: var(--brand-light);
  border: 1px solid rgba(26,92,56,0.25);
  border-radius: 50px;
  padding: 0.25rem 0.9rem;
  margin-bottom: 0.5rem;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #ffffff !important;
  border-color: var(--brand-primary);
}
.btn-primary:hover {
  background-color: var(--brand-hover);
  border-color: var(--brand-hover);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-outline:hover {
  background-color: var(--brand-light);
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background-color: rgba(255,255,255,0.15);
  border-color: #ffffff;
}

/* ─── Header / Nav ───────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  height: 72px;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
}

.logo-mark {
  background: var(--brand-primary);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  cursor: pointer;
  user-select: none;
}
.nav-links a:hover { color: var(--brand-primary); }

/* Sticky phone CTA — high contrast enforced */
.cta-header {
  background-color: var(--brand-primary) !important;
  color: #ffffff !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.cta-header:hover {
  background-color: var(--brand-hover) !important;
  box-shadow: var(--shadow-md) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 30, 15, 0.92) 0%,
    rgba(15, 58, 34, 0.75) 50%,
    rgba(10, 30, 15, 0.45) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  color: #ffffff;
  padding: 3rem 0;
}

.hero-badge {
  display: inline-block;
  background: var(--brand-gold);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.7;
  opacity: 0.92;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.hero-meta span {
  font-size: 0.875rem;
  opacity: 0.85;
}

/* ─── Card / Industrial Style ────────────────────────────────────────────── */
.card-industrial {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--brand-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.card-industrial:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ─── Services Grid ──────────────────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2rem;
}

.service-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 2px solid var(--border-light);
}

.service-body {
  padding: 1.75rem;
  flex: 1;
}

.service-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--brand-primary);
}

.service-body p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

/* ─── About Split Layout ─────────────────────────────────────────────────── */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-light);
}

.about-caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

.about-content .section-label { display: block; margin-bottom: 0.5rem; }

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.about-content p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-md);
  margin-top: 2rem;
}

.stat { text-align: center; }

.stat-number {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ─── Photo Gallery ──────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.gallery-wide {
  grid-column: span 2;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-wide img { height: 280px; }

.gallery-item:hover img { transform: scale(1.04); }

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(10,30,15,0.85) 0%, transparent 100%);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 1.5rem 1rem 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ─── Reviews / Testimonials ─────────────────────────────────────────────── */
.review-cta {
  text-align: center;
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 500px;
  margin: 0 auto;
}

.stars-large {
  font-size: 2rem;
  color: #f59e0b;
  margin-bottom: 1rem;
  letter-spacing: 3px;
}

.review-cta p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background-color: #0f1f14;
  color: var(--text-inverse);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #c8d8cc;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col p, .footer-col a {
  color: #9ca3af;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  text-decoration: none;
  display: block;
  line-height: 1.7;
}

.footer-col strong { color: #e5e7eb; }

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #6b7280;
  font-size: 0.85rem;
}

/* ─── Contact Form ───────────────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: #e5e7eb;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #6b7280; }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--brand-primary);
  background: rgba(255,255,255,0.1);
}

.contact-form textarea { resize: vertical; }

.form-note {
  font-size: 0.75rem !important;
  color: #f59e0b !important;
  margin-top: 0.5rem !important;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-wide { grid-column: span 2; }
}

@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero h1 { font-size: 2.75rem; }
  .about-stats { gap: 1.5rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-md);
    z-index: 199;
  }
  .nav-toggle { display: block; }

  .hero { min-height: 100svh; }
  .hero h1 { font-size: 2.25rem; }
  .hero-meta { gap: 1rem; flex-direction: column; }
  .hero-actions { flex-direction: column; }

  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-wide { grid-column: span 1; }

  .section { padding: 4rem 0; }
  .grid-3 { grid-template-columns: 1fr; }
}
