/* ============================================
   Acme Plumbing — v2
   Aesthetic: Industrial Craft
   Dark navy + warm copper, bold typography,
   textured backgrounds, confident layout
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  --copper: #c67a3c;
  --copper-light: #e8a66a;
  --copper-glow: rgba(198, 122, 60, 0.15);
  --navy: #0c1829;
  --navy-light: #142236;
  --navy-mid: #1a2d45;
  --slate: #94a3b8;
  --cream: #f5f0eb;
  --white: #ffffff;
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-dark: #1e293b;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  --max-width: 1200px;
  --radius: 4px;
  --radius-lg: 8px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.4s;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12, 24, 41, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(198, 122, 60, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
}

.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 72px; left: 0; right: 0;
  background: var(--navy);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(198, 122, 60, 0.15);
}
.nav-menu.active { display: flex; }
.nav-menu a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--slate);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--copper-light); }
.nav-cta { margin: var(--space-xs) var(--space-md); }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  padding: 4px;
}
.hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--copper-light);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
  border: 2px solid transparent;
  line-height: 1;
}
.btn-primary {
  background: var(--copper);
  color: var(--white);
  border-color: var(--copper);
}
.btn-primary:hover {
  background: var(--copper-light);
  border-color: var(--copper-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(198, 122, 60, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: var(--copper-light);
  color: var(--copper-light);
}
.btn-outline-dark {
  background: transparent;
  color: var(--copper);
  border-color: var(--copper);
}
.btn-outline-dark:hover {
  background: var(--copper);
  color: var(--white);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(198, 122, 60, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(20, 34, 54, 0.9) 0%, transparent 70%);
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(198, 122, 60, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 122, 60, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 72px;
}
.hero-content { max-width: 680px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--copper-glow);
  border: 1px solid rgba(198, 122, 60, 0.25);
  border-radius: 100px;
  color: var(--copper-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--copper);
  border-radius: 50%;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  color: var(--copper-light);
}

.hero-text {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 520px;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--copper-light);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: var(--space-xl) 0; }
.section-dark { background: var(--navy); color: var(--text); }
.section-cream { background: var(--cream); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: var(--space-sm);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 550px;
  line-height: 1.6;
}
.section-header { margin-bottom: var(--space-lg); }
.section-header-center {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.section-header-center .section-subtitle { margin: 0 auto; }

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
.service-card {
  background: var(--white);
  border: 1px solid #e8e0d8;
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(12, 24, 41, 0.08);
  border-color: rgba(198, 122, 60, 0.2);
}
.service-card-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--copper-glow);
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.service-card .price {
  display: inline-block;
  margin-top: var(--space-xs);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--copper);
}
.services-cta {
  text-align: center;
  margin-top: var(--space-lg);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
.testimonial-card {
  background: var(--navy-light);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border: 1px solid rgba(198, 122, 60, 0.08);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--copper);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem; left: 1.25rem;
  line-height: 1;
}
.testimonial-stars {
  color: var(--copper-light);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xs);
}
.testimonial-card blockquote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}
.testimonial-author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
}
.testimonial-title {
  font-size: 0.8rem;
  color: var(--slate);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: var(--copper);
  color: var(--white);
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0,0,0,0.1) 0%, transparent 50%);
}
.cta-banner .container { position: relative; }
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--white);
  margin-bottom: var(--space-xs);
}
.cta-banner p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: var(--space-md);
}
.cta-banner .btn-outline { border-color: var(--white); color: var(--white); }
.cta-banner .btn-outline:hover { background: var(--white); color: var(--copper); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy);
  color: var(--slate);
  padding: var(--space-xl) 0 var(--space-md);
}
.footer-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-lg);
}
.footer-col h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}
.footer-col p, .footer-col a {
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.8;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--copper-light); }
.footer-col ul li { margin-bottom: 0.25rem; }
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--space-sm);
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy-mid);
  color: var(--slate);
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--copper); color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 0.8rem;
}

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
  background: var(--navy);
  padding: calc(72px + var(--space-xl)) 0 var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(198, 122, 60, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 122, 60, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  margin-bottom: var(--space-xs);
}
.page-header p {
  color: var(--slate);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-content {
  max-width: 720px;
  margin: 0 auto;
}
.about-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

/* --- Team --- */
.team-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
.team-card {
  text-align: center;
  padding: var(--space-md);
}
.team-card-initials {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--copper-glow);
  color: var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 0 auto var(--space-sm);
  border: 2px solid rgba(198, 122, 60, 0.2);
}
.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.team-card .role {
  color: var(--copper);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}
.team-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 300px;
  margin: 0 auto;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}
.contact-form-wrapper h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}
.contact-form-wrapper .text-light {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem 1rem;
  border: 1px solid #d4ccc4;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px var(--copper-glow);
}
.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
}
.form-group .error-message {
  color: #ef4444;
  font-size: 0.8rem;
  display: none;
}
.form-group .error-message.visible { display: block; }
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.form-status {
  padding: var(--space-sm);
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}
.form-status.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.form-status.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* --- Contact Info Sidebar --- */
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}
.contact-detail {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  align-items: flex-start;
}
.contact-detail-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-detail strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.contact-detail a {
  color: var(--navy);
  font-weight: 500;
  transition: color 0.2s;
}
.contact-detail a:hover { color: var(--copper); }

/* --- Hours Table --- */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-sm);
}
.hours-table tr {
  border-bottom: 1px solid #e8e0d8;
}
.hours-table td {
  padding: 0.5rem 0;
  font-size: 0.9rem;
}
.hours-table td:first-child {
  font-weight: 500;
  color: var(--text-dark);
}
.hours-table td:last-child {
  text-align: right;
  color: var(--text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================
   RESPONSIVE — Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-section { grid-template-columns: 1.2fr 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    border: none;
    align-items: center;
    gap: 0;
  }
  .nav-menu a { padding: 0.5rem 1rem; }
  .hamburger { display: none; }
}

/* ============================================
   RESPONSIVE — Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .section { padding: var(--space-2xl) 0; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .hero-content { max-width: 720px; }
}
