/*
Theme Name: RAM Painting
Theme URI: https://rampaintingllc.com
Author: RAM Painting LLC
Author URI: https://rampaintingllc.com
Description: Custom theme for RAM Painting LLC — painting, powerwash, and drywall services in Richmond, VA and surrounding areas.
Version: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ram-painting
Tags: business, portfolio, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* =========================
   Reset & Base
   ========================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #b8232f; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Brand colors */
:root {
  --brand: #b8232f;       /* RAM red (from the red door in photos) */
  --brand-dark: #8a1a23;
  --ink: #1f1f1f;
  --muted: #6b6b6b;
  --bg-soft: #f6f3ee;     /* warm beige nodding to the painted siding */
  --line: #e6e1d8;
}

/* =========================
   Header
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-branding a { color: var(--ink); text-decoration: none; }
.site-title { font-family: Georgia, serif; font-weight: 700; font-size: 1.4rem; margin: 0; letter-spacing: .5px; }
.site-title .accent { color: var(--brand); }
.site-tagline { font-size: .8rem; color: var(--muted); margin: 0; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: var(--brand); text-decoration: none; }

.header-cta {
  background: var(--brand);
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 700;
}
.header-cta:hover { background: var(--brand-dark); text-decoration: none; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--ink);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1rem;
}

/* =========================
   Hero
   ========================= */
.hero {
  position: relative;
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)), var(--bg-soft);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 110px 0;
  text-align: center;
}
.hero h1 { font-size: 3rem; margin-bottom: .25em; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.hero p { font-size: 1.2rem; max-width: 720px; margin: 0 auto 2em; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); text-decoration: none; }

/* =========================
   Sections
   ========================= */
section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 50px; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.service-icon { font-size: 2.5rem; margin-bottom: 14px; }
.service-card h3 { color: var(--brand); }

/* =========================
   Before / After Gallery
   ========================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.ba-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.ba-slider {
  position: relative;
  overflow: hidden;
  user-select: none;
  aspect-ratio: 4 / 3;
  background: #000;
  cursor: ew-resize;
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-after { clip-path: inset(0 0 0 50%); }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,.5);
  pointer-events: none;
}
.ba-handle::after {
  content: "⇆";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--brand);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.ba-label {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 3px;
  pointer-events: none;
}
.ba-label.before { left: 12px; }
.ba-label.after { right: 12px; }
.ba-meta { padding: 16px 20px; }
.ba-meta h3 { margin: 0 0 4px; font-size: 1.1rem; }
.ba-meta p { margin: 0; color: var(--muted); font-size: .9rem; }

/* =========================
   Why us
   ========================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.why-item { text-align: center; }
.why-item .num {
  display: inline-block;
  width: 56px; height: 56px;
  line-height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

/* =========================
   Contact / CTA
   ========================= */
.contact {
  background: var(--ink);
  color: #fff;
}
.contact .section-title, .contact .section-sub { color: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info p { margin: 0 0 14px; font-size: 1.05rem; }
.contact-info a { color: #fff; text-decoration: underline; }
.contact-info .label {
  display: inline-block;
  width: 22px;
  margin-right: 8px;
  text-align: center;
}

.contact-form label {
  display: block;
  margin-bottom: 14px;
  font-weight: 600;
  font-size: .9rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid #444;
  background: #2a2a2a;
  color: #fff;
  font-size: 1rem;
  margin-top: 4px;
  font-family: inherit;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.contact-form button {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.contact-form button:hover { background: var(--brand-dark); }
.form-msg { margin-top: 14px; font-weight: 600; }
.form-msg.success { color: #6dd28b; }
.form-msg.error { color: #ff8a8a; }

/* =========================
   Footer
   ========================= */
.site-footer {
  background: #111;
  color: #bbb;
  padding: 40px 0 20px;
  text-align: center;
  font-size: .9rem;
}
.site-footer a { color: #fff; }
.footer-contact { margin-bottom: 18px; }
.footer-bottom { border-top: 1px solid #2a2a2a; padding-top: 16px; }

/* =========================
   Responsive
   ========================= */
@media (max-width: 820px) {
  h1 { font-size: 2rem; }
  .hero { padding: 70px 0; }
  .hero h1 { font-size: 2.2rem; }
  .nav-toggle { display: inline-block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 20px;
  }
  .main-nav li {
    border-bottom: 1px solid var(--line);
  }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a { display: block; padding: 14px 0; }
  .header-cta { display: inline-block; margin-top: 8px; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Standard WP utility classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px; width: 1px;
  overflow: hidden;
}
