/* ============================================
   WEBSITE LANDLORD — RANK-AND-RENT TEMPLATE
   "Simple sites, strong intent"
   Conversion-optimized, mobile-first CSS
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.7; color: #1a1a1a; background: #fafafa;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Utility --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
section { padding: 3.5rem 0; }

/* --- Colors (customizable via CSS vars) --- */
:root {
  --color-primary: #2d6a4f;
  --color-primary-dark: #1b4332;
  --color-accent: #d4a017;
  --color-accent-hover: #b8860b;
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-border: #e0e0e0;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

/* --- Skip Link --- */
.skip-link {
  position: absolute; top: -100%; left: 0.5rem; background: var(--color-primary);
  color: #fff; padding: 0.6rem 1.2rem; border-radius: 0 0 var(--radius) var(--radius);
  z-index: 999; font-weight: 600;
}
.skip-link:focus { top: 0; }

/* --- Header --- */
.site-header {
  background: var(--color-surface); border-bottom: 2px solid var(--color-border);
  position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.25rem; gap: 1rem; flex-wrap: wrap;
}
.site-logo { font-size: 1.15rem; font-weight: 700; color: var(--color-primary); white-space: nowrap; }
.site-phone {
  background: var(--color-accent); color: #fff; font-weight: 700;
  padding: 0.5rem 1.1rem; border-radius: 50px; font-size: 0.95rem;
  transition: background 0.2s; white-space: nowrap;
}
.site-phone:hover { background: var(--color-accent-hover); }

/* Nav */
.site-nav { display: none; width: 100%; background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.site-nav[open] { display: block; }
.site-nav .container { display: flex; flex-direction: column; gap: 0; }
.site-nav a {
  padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--color-border);
  font-weight: 500; transition: background 0.15s;
}
.site-nav a:hover { background: #f0f7f4; }
.nav-toggle {
  background: none; border: 2px solid var(--color-primary); color: var(--color-primary);
  padding: 0.4rem 0.9rem; border-radius: 6px; font-size: 0.9rem; cursor: pointer;
  font-weight: 600;
}
@media (min-width: 700px) {
  .site-nav { display: block; width: auto; background: none; border: none; }
  .site-nav .container { flex-direction: row; gap: 0; }
  .site-nav a { padding: 0.6rem 0.8rem; border: none; border-bottom: 2px solid transparent; }
  .site-nav a:hover { border-bottom-color: var(--color-primary); background: none; }
  .nav-toggle { display: none; }
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff; padding: 4rem 0; text-align: center;
}
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1rem; line-height: 1.25; font-weight: 800; }
.hero p { font-size: 1.1rem; max-width: 680px; margin: 0 auto 1.5rem; opacity: 0.92; }
.btn {
  display: inline-block; background: var(--color-accent); color: #fff; font-weight: 700;
  padding: 0.9rem 2rem; border-radius: 50px; font-size: 1.1rem;
  transition: transform 0.15s, background 0.2s; box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.btn:hover { transform: translateY(-2px); background: var(--color-accent-hover); }
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.95rem; }

/* --- Section Headings --- */
.section-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700;
  margin-bottom: 0.6rem; color: var(--color-primary-dark);
}
.section-subtitle { color: var(--color-text-muted); margin-bottom: 2rem; font-size: 1.05rem; }

/* --- Intro --- */
.intro { background: var(--color-surface); }
.intro p { max-width: 780px; margin-bottom: 1rem; }

/* --- Warning Signs --- */
.warning-signs { background: #fef9e7; }
.warning-signs .section-title { color: #8b6914; }
.signs-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem; list-style: none;
}
.signs-list li {
  background: var(--color-surface); padding: 1rem 1.2rem; border-radius: var(--radius);
  box-shadow: var(--shadow); border-left: 4px solid var(--color-accent); font-weight: 500;
}

/* --- Steps --- */
.steps { background: var(--color-surface); }
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; margin-bottom: 1.5rem;
}
.step-card {
  text-align: center; padding: 2rem 1.5rem; background: #f0f7f4;
  border-radius: var(--radius); border: 1px solid #d4edda;
}
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; background: var(--color-primary); color: #fff;
  border-radius: 50%; font-size: 1.3rem; font-weight: 800; margin-bottom: 1rem;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--color-primary-dark); }
.step-card p { font-size: 0.95rem; color: var(--color-text-muted); }

/* --- Services Grid --- */
.services { background: #f5f5f5; }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--color-surface); padding: 1.8rem; border-radius: var(--radius);
  box-shadow: var(--shadow); border-top: 4px solid var(--color-primary);
  transition: box-shadow 0.2s, transform 0.15s;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--color-primary-dark); }
.service-card p { color: var(--color-text-muted); margin-bottom: 1rem; }
.service-card a { font-weight: 600; color: var(--color-primary); }
.service-card a:hover { text-decoration: underline; }

/* --- Guides --- */
.guides { background: var(--color-surface); }
.guides-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}
.guide-card a {
  display: block; padding: 1.2rem; background: #f8f9fa; border-radius: var(--radius);
  border: 1px solid var(--color-border); transition: border-color 0.2s;
}
.guide-card a:hover { border-color: var(--color-primary); }
.guide-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; color: var(--color-primary-dark); }
.guide-card p { font-size: 0.9rem; color: var(--color-text-muted); }

/* --- FAQ --- */
.faq { background: #f5f5f5; }
.faq-item {
  background: var(--color-surface); margin-bottom: 0.8rem; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--color-border);
}
.faq-item summary {
  padding: 1rem 1.2rem; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.15s;
}
.faq-item summary:hover { background: #f0f7f4; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; font-weight: 700; color: var(--color-primary); }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { border-bottom: 1px solid var(--color-border); }
.faq-item .faq-answer { padding: 1rem 1.2rem; color: var(--color-text-muted); line-height: 1.7; }

/* --- Areas Served --- */
.areas { background: var(--color-surface); }
.areas-list {
  display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; justify-content: center;
}
.areas-list li {
  background: #f0f7f4; padding: 0.5rem 1rem; border-radius: 50px;
  font-size: 0.95rem; border: 1px solid #d4edda;
}

/* --- Contact Section --- */
.contact { background: var(--color-primary); color: #fff; text-align: center; }
.contact .section-title { color: #fff; }
.contact p { opacity: 0.92; margin-bottom: 1.5rem; }
.contact-info { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin-top: 1.5rem; }
.contact-info > div { background: rgba(255,255,255,0.12); padding: 1.2rem 1.5rem; border-radius: var(--radius); }
.contact-info strong { display: block; margin-bottom: 0.3rem; }

/* --- Callback Form --- */
.callback-form {
  max-width: 380px; margin: 1.5rem auto 0; background: rgba(255,255,255,0.1);
  padding: 1.5rem; border-radius: var(--radius);
}
.callback-form label { display: block; font-size: 0.9rem; margin-bottom: 0.3rem; text-align: left; }
.callback-form input {
  width: 100%; padding: 0.7rem 1rem; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px; background: rgba(255,255,255,0.15); color: #fff;
  font-size: 1rem; margin-bottom: 1rem;
}
.callback-form input::placeholder { color: rgba(255,255,255,0.6); }
.callback-form button {
  width: 100%; background: var(--color-accent); color: #fff; border: none;
  padding: 0.8rem; border-radius: 50px; font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background 0.2s;
}
.callback-form button:hover { background: var(--color-accent-hover); }

/* --- Footer --- */
.site-footer {
  background: #1a1a1a; color: #aaa; padding: 2.5rem 0 1.5rem; font-size: 0.9rem;
}
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.site-footer p { max-width: 500px; line-height: 1.6; }
.site-footer a { color: #ccc; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-bottom { text-align: center; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #333; width: 100%; }

/* --- Sticky Call Button (Mobile) --- */
.sticky-call {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 99;
  background: var(--color-accent); color: #fff; text-align: center;
  padding: 0.8rem; font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
}
.sticky-call:hover { background: var(--color-accent-hover); }
@media (max-width: 699px) {
  .sticky-call { display: block; }
  body { padding-bottom: 3.2rem; }
}

/* --- Service Sub-page --- */
.sub-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff; padding: 3rem 0; text-align: center;
}
.sub-hero h1 { font-size: clamp(1.4rem, 3.5vw, 2rem); margin-bottom: 0.8rem; }
.sub-hero p { opacity: 0.9; max-width: 600px; margin: 0 auto; }
.sub-content { background: var(--color-surface); }
.sub-content p { max-width: 780px; margin-bottom: 1.2rem; }
.sub-content h2 { font-size: 1.3rem; color: var(--color-primary-dark); margin: 2rem 0 0.8rem; }
.sub-content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.6rem; color: var(--color-primary); }
.sub-content ul { margin: 0.5rem 0 1.2rem 1.5rem; }
.sub-content li { margin-bottom: 0.4rem; color: var(--color-text-muted); }
.cta-box {
  background: #f0f7f4; padding: 2rem; border-radius: var(--radius); text-align: center;
  margin: 2rem 0; border: 2px solid var(--color-primary);
}

/* Image styles added by Pexels integration */
.content-image {
    margin: 2rem 0;
    text-align: center;
}

.content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sub-hero .content-image {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .content-image img {
        max-width: 80%;
    }
}

/* Redding-specific content styles */
.local-focus {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
}

.local-focus .section-title {
    color: white;
    margin-bottom: 2rem;
}

.focus-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .focus-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.focus-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.focus-card h3 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.focus-card p {
    opacity: 0.9;
    line-height: 1.6;
}

.redding-callout {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.redding-callout h3 {
    color: #1e40af;
    margin-bottom: 0.75rem;
}

.redding-callout p {
    color: #374151;
    line-height: 1.6;
}

/* Image optimization */
.content-image img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
