/*
Theme Name: WL Painting Inc
Theme URI: https://wlpaintinginc.com
Author: WL Painting Inc
Author URI: https://wlpaintinginc.com
Description: One-page custom theme for WL Painting Inc — commercial and residential painting experts in Silver Spring, MD. Includes Hero, Services, About, Gallery, Testimonials and Contact sections.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wlpainting
Tags: one-page, business, custom-colors, custom-logo, custom-menu, featured-images, theme-options
*/

/* =========================================================
   Design tokens
   ========================================================= */
:root {
  --color-navy: #0b1f3a;
  --color-navy-deep: #061327;
  --color-navy-foreground: #f4f7ff;
  --color-gold: #d4a93c;
  --color-gold-foreground: #1a1300;
  --color-bg: #ffffff;
  --color-foreground: #0f172a;
  --color-muted: #5b6577;
  --color-secondary: #f3f5fa;
  --color-border: #e3e6ee;
  --shadow-card: 0 6px 18px rgba(11, 31, 58, 0.08);
  --shadow-card-hover: 0 18px 40px rgba(11, 31, 58, 0.18);
  --shadow-cta: 0 10px 24px rgba(212, 169, 60, 0.35);
  --radius: 12px;
  --container: 1200px;
}

/* =========================================================
   Reset & base
   ========================================================= */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Figtree', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--color-foreground);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: 'Archivo', system-ui, sans-serif; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1rem; }

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 0.75rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  background: var(--color-gold);
  border-radius: 4px;
  margin: 1rem auto 0;
}
.section-subtitle { text-align: center; color: var(--color-muted); max-width: 640px; margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 700; font-size: 0.95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--color-gold); color: var(--color-gold-foreground); box-shadow: var(--shadow-cta); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--color-navy-foreground); border: 1px solid rgba(244,247,255,.3); }
.btn-outline:hover { background: rgba(244,247,255,.08); }

/* =========================================================
   Header / Navbar
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.site-logo img { height: 56px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav a { font-weight: 600; font-size: 0.9rem; color: rgba(15,23,42,.8); transition: color .2s; }
.main-nav a:hover { color: var(--color-navy); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; }

@media (max-width: 860px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; padding: 1rem; border-top: 1px solid var(--color-border); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.75rem 0; width: 100%; }
  .nav-toggle { display: block; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  color: var(--color-navy-foreground);
  overflow: hidden;
}
.hero .grid {
  display: grid; gap: 2.5rem; align-items: center;
  padding: 4rem 0;
}
@media (min-width: 860px) { .hero .grid { grid-template-columns: 1fr 1fr; padding: 6rem 0; } }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.hero h1 .accent { color: var(--color-gold); }
.hero p { margin: 1.25rem 0 2rem; font-size: 1.1rem; opacity: .9; max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-img-wrap { position: relative; }
.hero-img-wrap::before { content:''; position: absolute; inset: -12px; background: rgba(212,169,60,.18); filter: blur(40px); border-radius: 16px; }
.hero-img-wrap img { position: relative; border-radius: var(--radius); box-shadow: var(--shadow-card-hover); }
.hero-badges {
  background: rgba(6,19,39,.4);
  border-top: 1px solid rgba(244,247,255,.1);
  padding: 1rem 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem;
  font-size: 0.9rem; font-weight: 600;
}
.hero-badges .dot { color: var(--color-gold); }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 5rem 0; }
.section-light { background: var(--color-bg); }
.section-secondary { background: var(--color-secondary); }
.section-dark {
  background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  color: var(--color-navy-foreground);
}
.section-dark .section-title { color: var(--color-navy-foreground); }

/* Cards grid */
.card-grid { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 700px) { .card-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card); transition: box-shadow .3s, transform .3s;
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.card img { aspect-ratio: 4/3; object-fit: cover; transition: transform .5s; width: 100%; }
.card:hover img { transform: scale(1.05); }
.card-body { padding: 1.5rem; }
.card-body h3 { font-size: 1.15rem; color: var(--color-navy); display: flex; align-items: center; gap: .5rem; }
.card-body h3::before { content:'✓'; color: var(--color-gold); font-weight: 900; }
.card-body p { margin: .5rem 0 0; color: var(--color-muted); font-size: .95rem; }

/* Gallery */
.figure-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}
.figure-card img { aspect-ratio: 4/3; object-fit: cover; }
.figure-card figcaption {
  background: var(--color-navy); color: var(--color-navy-foreground);
  text-align: center; padding: .75rem; font-weight: 700; font-size: .9rem;
}

/* About */
.about-text { max-width: 780px; margin: 1.5rem auto 0; text-align: center; opacity: .9; }

/* Testimonials */
.testimonial {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.testimonial .quote-mark { color: var(--color-gold); font-size: 2rem; line-height: 1; font-family: Georgia, serif; }
.testimonial p { font-size: 1.05rem; font-weight: 600; color: var(--color-navy); margin: .5rem 0 1rem; }
.testimonial cite { color: var(--color-muted); font-size: .85rem; font-weight: 700; font-style: normal; }
.commitments { max-width: 640px; margin: 3rem auto 0; padding: 0; list-style: none; }
.commitments li { display: flex; gap: .75rem; padding: .5rem 0; }
.commitments li::before { content:'✓'; color: var(--color-gold); font-weight: 900; }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .9rem 1rem;
  border-radius: 8px; border: 1px solid rgba(244,247,255,.2);
  background: rgba(244,247,255,.96); color: var(--color-navy);
  font: inherit; font-weight: 500;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; box-shadow: 0 0 0 3px var(--color-gold);
}
.contact-info {
  background: rgba(6,19,39,.55); padding: 1.75rem;
  border-radius: var(--radius); border: 1px solid rgba(244,247,255,.1);
  align-self: start;
}
.contact-info h3 { color: var(--color-navy-foreground); font-size: 1.15rem; margin-bottom: 1rem; }
.contact-info p, .contact-info a { display: flex; align-items: center; gap: .75rem; padding: .35rem 0; color: rgba(244,247,255,.9); }
.contact-info a:hover { color: var(--color-gold); }
.contact-info .icon { color: var(--color-gold); width: 18px; text-align: center; }

/* Footer */
.site-footer {
  background: var(--color-navy-deep); color: rgba(244,247,255,.7);
  padding: 2rem 0; text-align: center; font-size: .9rem;
}
.site-footer a { color: var(--color-gold); }

/* Form feedback */
.form-message { margin-top: 1rem; padding: .75rem 1rem; border-radius: 8px; font-weight: 600; display: none; }
.form-message.success { display: block; background: rgba(34,197,94,.15); color: #4ade80; }
.form-message.error { display: block; background: rgba(239,68,68,.15); color: #fca5a5; }