/*
Theme Name: Metro Sealcoating
Theme URI: https://ronesbytes.com/
Author: Rones Bytes
Author URI: https://ronesbytes.com/
Description: One page business theme built for Metro Sealcoating. Dark asphalt styling with amber accents, services, photo gallery, and quote form.
Version: 1.1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: metro-sealcoating
*/

/* ============ Tokens ============ */
:root {
  --asphalt: #141414;
  --asphalt-2: #1d1d1d;
  --asphalt-3: #262626;
  --amber: #f5b301;
  --amber-dark: #d99a00;
  --white: #ffffff;
  --gray: #b8b8b8;
  --gray-dark: #7a7a7a;
  --line: #333333;
  --radius: 10px;
  --max: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--asphalt);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; scroll-margin-top: 70px; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.4rem); text-align: center; margin-bottom: 0.4em; }
.section-sub { text-align: center; color: var(--gray); max-width: 640px; margin: 0 auto 2.2em; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  background: var(--amber);
  color: #141414;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--amber-dark); transform: translateY(-2px); color: #141414; }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--amber);
}
.btn-outline:hover { background: var(--amber); color: #141414; }

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,0.5); }
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { text-decoration: none; color: var(--white); display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px;
  background: var(--amber);
  color: #141414;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: 1.2rem;
}
.brand-name { font-weight: 800; font-size: 1.15rem; line-height: 1.1; }
.brand-tag { font-size: 0.72rem; color: var(--gray); letter-spacing: 1px; text-transform: uppercase; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--amber); }
.header-phone {
  background: var(--amber);
  color: #141414;
  font-weight: 800;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.header-phone:hover { background: var(--amber-dark); color: #141414; }
.header-phone.mobile { display: none; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }

/* ============ Hero ============ */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: url("assets/img/residential-1.jpg") center/cover no-repeat;
  position: relative;
  padding: 130px 0 80px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,10,10,0.88) 20%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.25) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero-badge {
  display: inline-block;
  background: var(--amber);
  color: #141414;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; }
.hero h1 span { color: var(--amber); }
.hero p.lead { font-size: 1.15rem; color: #e8e8e8; margin-bottom: 1.6em; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; color: var(--gray); font-size: 0.92rem; }
.hero-note strong { color: var(--amber); }
.hero-email { margin-top: 14px; color: var(--gray); font-size: 0.95rem; }
.hero-email a { color: var(--amber); font-weight: 700; text-decoration: none; }
.hero-email a:hover { text-decoration: underline; }

/* ============ Trust strip ============ */
.trust { background: var(--amber); color: #141414; padding: 22px 0; }
.trust-items {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-weight: 700; font-size: 1rem;
}
.trust-items span { display: flex; align-items: center; gap: 8px; }

/* ============ Services ============ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--asphalt-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--amber); }
.service-card img { height: 210px; width: 100%; object-fit: cover; }
.service-body { padding: 24px; }
.service-body h3 { font-size: 1.25rem; }
.service-body h3 .icon { margin-right: 8px; }
.service-body p { color: var(--gray); font-size: 0.96rem; margin-bottom: 0; }

/* ============ Gallery ============ */
.gallery-section { background: var(--asphalt-2); }
.filter-bar { display: flex; justify-content: center; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.filter-btn {
  background: transparent;
  border: 2px solid var(--line);
  color: var(--white);
  padding: 9px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--amber); color: var(--amber); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 1px solid var(--line);
}
.gallery-item img { height: 320px; width: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.hidden { display: none; }
.gallery-label {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(0,0,0,0.72);
  color: var(--white);
  font-size: 0.8rem; font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  align-items: center; justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 18px; right: 24px;
  background: none; border: none; color: var(--white);
  font-size: 2.2rem; cursor: pointer;
}

/* ============ Everyday driveways ============ */
.everyday-section { background: var(--asphalt-2); }
.everyday-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.everyday-photo img { border-radius: var(--radius); border: 1px solid var(--line); }
.photo-placeholder {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-dark);
  font-weight: 700;
  background: var(--asphalt-3);
  text-align: center;
  padding: 24px;
}
.everyday-copy .section-title { margin-bottom: 0.6em; }
.everyday-copy p { color: var(--gray); }
.everyday-list { list-style: none; padding: 0; margin: 0 0 1.6em; }
.everyday-list li { padding: 8px 0 8px 30px; position: relative; color: #e8e8e8; font-weight: 600; }
.everyday-list li::before {
  content: "\2713";
  position: absolute; left: 0; top: 8px;
  color: var(--amber);
  font-weight: 800;
}

/* ============ Why ============ */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.why-card {
  background: var(--asphalt-2);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 26px;
}
.why-card h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.why-card p { color: var(--gray); margin: 0; font-size: 0.96rem; }

/* ============ Promo ============ */
.promo {
  background: linear-gradient(120deg, var(--amber) 0%, var(--amber-dark) 100%);
  color: #141414;
  text-align: center;
  padding: 56px 0;
}
.promo h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 0.3em; }
.promo p { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.4em; }
.promo .btn { background: #141414; color: var(--white); }
.promo .btn:hover { background: #000; color: var(--white); }

/* ============ Contact ============ */
#quote {
  position: relative;
  background:
    linear-gradient(rgba(10, 10, 10, 0.74), rgba(10, 10, 10, 0.74)),
    url('assets/img/quote-bg.jpg') center 65% / cover no-repeat;
}
#quote .wrap { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info h3 { margin-bottom: 0.6em; }
.contact-line { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; font-size: 1.05rem; }
.contact-line a { color: var(--white); text-decoration: none; font-weight: 700; }
.contact-line a:hover { color: var(--amber); }
.contact-line .ico {
  width: 42px; height: 42px; flex: 0 0 42px;
  background: var(--asphalt-3);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.hours { color: var(--gray); font-size: 0.94rem; margin-top: 22px; }
.quote-form {
  background: var(--asphalt-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.quote-form h3 { margin-bottom: 1em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  background: var(--asphalt-3);
  border: 1px solid var(--line);
  color: var(--white);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--amber);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--gray-dark); margin-top: 12px; }
.form-success {
  background: #1a3a1a;
  border: 1px solid #2e7d32;
  color: #c8e6c9;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-weight: 600;
}

/* ============ Footer ============ */
.site-footer {
  background: #0d0d0d;
  border-top: 1px solid var(--line);
  padding: 44px 0 26px;
  color: var(--gray);
  font-size: 0.92rem;
}
.footer-grid { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; margin-bottom: 26px; }
.footer-grid h4 { color: var(--white); margin-bottom: 0.7em; font-size: 1rem; }
.footer-grid a { color: var(--gray); text-decoration: none; }
.footer-grid a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--gray-dark);
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .everyday-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #141414;
    flex-direction: column;
    padding: 18px 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .header-phone.mobile { display: inline-block; }
}
@media (max-width: 560px) {
  section { padding: 52px 0; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 84vh; }
  .trust-items { flex-direction: column; gap: 10px; }
}
