/*
Theme Name: Maynard's Trash Pickup
Theme URI: https://FurtherSouthDesigns.com
Author: FurtherSouthDesigns
Author URI: https://FurtherSouthDesigns.com
Description: A custom theme for Maynard's Property Management — trash pickup and waste management services in Jamestown, TN and Fentress County.
Version: 1.0
License: GPL v2 or later
Text Domain: maynards-trash
*/

/* ============================================================
   Tokens
   ============================================================ */
:root {
  --navy:       #0F1D35;
  --navy-mid:   #182B4A;
  --navy-light: #1F3660;
  --bg:         #FFFFFF;
  --bg-alt:     #F5F6F8;
  --fg:         #0A0A0C;
  --muted:      #505060;
  --border:     #E1E4EA;
  --accent:     #0F1D35;

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 12px;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
}

p {
  color: var(--muted);
  max-width: 56ch;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

/* ============================================================
   Navigation
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-logo-mobile {
  display: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--fg); }

.nav-cta {
  display: inline-block;
  background: var(--navy);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 24px;
  border-radius: 6px;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--navy-light) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle svg { display: block; }

/* ============================================================
   Block Editor — rendered content
   ============================================================ */
.entry-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.wp-block-group > .wp-block-group__inner-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.wp-block-group.is-style-hero-section > .wp-block-group__inner-container,
.wp-block-group.hero > .wp-block-group__inner-container {
  position: relative;
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

.wp-block-columns {
  gap: 32px;
}

/* ============================================================
   Sections — shared
   ============================================================ */
section { padding: 100px 0; }

section.alt,
.alt,
.is-style-alt-section { background: var(--bg-alt); }

/* Block editor sections — apply these classes from the Group block settings */
.is-style-hero-section,
.wp-block-group.hero {
  background: var(--navy);
  color: #fff;
  padding: 168px 24px 100px;
  position: relative;
  overflow: hidden;
}

.wp-block-group.alt,
.wp-block-group.is-style-alt-section {
  padding: 100px 24px;
}

.is-style-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.is-style-hero-section > * { position: relative; }
.is-style-hero-section h1,
.is-style-hero-section h2,
.is-style-hero-section h3 { color: #fff; }
.is-style-hero-section p { color: rgba(255,255,255,0.7); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header p {
  margin: 0 auto;
  max-width: 600px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 168px 0 100px;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container { position: relative; }

.hero h1 {
  color: #fff;
  max-width: 800px;
  margin-bottom: 20px;
}

.hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #fff;
  color: var(--navy);
}

.btn-primary:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-stat span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   About / Intro
   ============================================================ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro-image {
  background: var(--border);
  border-radius: 8px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.875rem;
  overflow: hidden;
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   Why Choose Us
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-item {
  text-align: center;
  padding: 32px 20px;
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.why-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.why-item p {
  font-size: 0.9rem;
  margin: 0 auto;
  max-width: 280px;
}

/* ============================================================
   Services
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px 32px;
  transition: box-shadow 0.25s, transform 0.25s;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card h3 { margin-bottom: 10px; }

.service-card p {
  font-size: 0.9rem;
  line-height: 1.65;
}

.service-area-note {
  margin-top: 12px;
  font-size: 0.8rem !important;
  font-weight: 600;
  color: var(--navy) !important;
}

/* ============================================================
   How It Works
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}

.step {
  text-align: center;
  counter-increment: step;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 { margin-bottom: 8px; }

.step p {
  font-size: 0.9rem;
  margin: 0 auto;
}

/* ============================================================
   Service Area
   ============================================================ */
.area-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.area-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin-top: 20px;
}

.area-list li {
  font-size: 0.95rem;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.area-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
  flex-shrink: 0;
}

.area-map {
  background: var(--border);
  border-radius: 8px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  overflow: hidden;
  width: 100%;
}

.area-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   Contact / Form
   ============================================================ */
.contact-grid {
  max-width: 620px;
  margin: 0 auto;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--navy);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

/* Service options (conditional) */
.service-options {
  display: none;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 20px;
}

.service-options.open {
  display: block;
}

.options-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}

.contact-form .btn-primary {
  background: var(--navy);
  color: #fff;
  justify-content: center;
  width: 100%;
}

.contact-form .btn-primary:hover {
  background: var(--navy-light);
}

/* CAPTCHA */
.captcha {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 20px;
}

.captcha label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 10px;
}

.captcha input {
  width: 100%;
  max-width: 200px;
}

.captcha-error {
  display: block;
  font-size: 0.85rem;
  color: #c00;
  margin-top: 6px;
  min-height: 1.2em;
}

/* ============================================================
   Pricing
   ============================================================ */
.pricing-summary {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 64px;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: box-shadow 0.25s, transform 0.25s;
  flex: 0 1 320px;
}

.pricing-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.popular-banner {
  text-align: center;
  margin-bottom: 28px;
  background: var(--navy);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 0;
  border-radius: 6px;
}

.pricing-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.pricing-card .plan-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.4;
}

.pricing-card .price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 4px;
}

.pricing-card .price-row .amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.03em;
}

.pricing-card .price-row .per {
  font-size: 0.85rem;
  color: var(--muted);
}

.pricing-card .price-alt {
  font-size: 0.85rem;
  color: var(--muted);
}

.pricing-card .price-alt strong {
  color: var(--fg);
  font-weight: 600;
}

.pricing-full {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pricing-table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 20px;
}

.pricing-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.pricing-table tbody tr:last-child { border-bottom: none; }
.pricing-table tbody tr:hover { background: var(--bg-alt); }

.pricing-table tbody td {
  padding: 14px 20px;
  vertical-align: middle;
  color: var(--fg);
}

.pricing-table tbody td:first-child {
  font-weight: 500;
}

.pricing-table tbody td.price-cell {
  font-weight: 600;
  white-space: nowrap;
  color: var(--fg);
}

.pricing-table tbody td.detail-cell {
  color: var(--muted);
  font-size: 0.85rem;
}

.pricing-note {
  margin-top: 24px;
  margin-bottom: -100px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.pricing-note h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.pricing-note p {
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.pricing-note p:last-child { margin-bottom: 0; }

.pricing-note .note-label {
  font-weight: 600;
  color: var(--fg);
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 32px;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer .logo img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

footer small {
  font-size: 0.8rem;
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 820px) {
  nav {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 80px 24px 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    margin: 0;
    list-style: none;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a { font-size: 1.2rem; }

  .nav-toggle { display: block; z-index: 201; }

  .nav-logo-mobile {
    display: block;
    margin-bottom: 12px;
  }

  .nav-logo-mobile img {
    height: 48px;
    width: auto;
    display: block;
    margin: 0 auto;
  }

  .intro-grid,
  .area-wrapper { grid-template-columns: 1fr; gap: 32px; }
  .area-wrapper > * { width: 100%; }

  .services-grid,
  .steps,
  .why-grid { grid-template-columns: 1fr; }

  .pricing-summary { gap: 16px; }
  .pricing-card { padding: 24px 20px; flex-basis: 100%; }

  .hero-stats { gap: 24px; flex-wrap: wrap; }

  .hero-stat { flex: 1; min-width: 100px; }

  .area-list { grid-template-columns: 1fr 1fr; }

  section,
  .is-style-hero-section,
  .is-style-alt-section,
  .wp-block-group.hero,
  .wp-block-group.alt { padding: 72px 24px; }

  .hero,
  .is-style-hero-section,
  .wp-block-group.hero { padding: 140px 24px 72px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .pricing-table tbody td.detail-cell { display: block; padding-top: 0; }
  .pricing-table tbody td.price-cell { white-space: nowrap; }
}
