/* ===== Cedar Park Home Repair - Shared Styles ===== */
/* Fonts loaded via HTML preload for performance */

:root {
  --cedar: #1a3a2a;
  --cedar-light: #2d5a3f;
  --amber: #d4922a;
  --amber-light: #e8a840;
  --amber-glow: #f4c060;
  --cream: #faf6f0;
  --warm-white: #fefcf8;
  --stone: #8a8578;
  --stone-light: #b8b0a4;
  --charcoal: #2c2c2c;
  --text: #1a1a1a;
  --text-light: #5a5a5a;
  --border: #e8e2d8;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: 'DM Serif Display', serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVIGATION ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 44px; height: 44px; background: var(--cedar); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--amber); font-size: 22px; font-weight: 800;
  position: relative; overflow: hidden;
}
.logo-icon::after {
  content: ''; position: absolute; inset: 2px;
  border: 1.5px solid var(--amber); border-radius: 8px; opacity: 0.4;
}
.logo-text { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--cedar); line-height: 1.1; }
.logo-text span {
  display: block; font-family: 'Outfit', sans-serif; font-size: 11px;
  font-weight: 500; color: var(--stone); letter-spacing: 1.5px; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-light); transition: color 0.2s; letter-spacing: 0.3px; }
.nav-links a:hover { color: var(--cedar); }
.nav-cta {
  background: var(--amber); color: white !important; padding: 10px 24px;
  border-radius: 50px; font-weight: 600 !important; transition: all 0.3s ease;
}
.nav-cta:hover { background: var(--amber-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(212,146,42,0.4); }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--cedar); border-radius: 2px; transition: all 0.3s ease; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--amber); color: white; padding: 16px 36px; border-radius: 50px;
  font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.3s ease; letter-spacing: 0.3px;
}
.btn-primary:hover { background: var(--amber-light); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(212,146,42,0.4); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: white; padding: 16px 36px; border-radius: 50px;
  font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 500;
  border: 1.5px solid rgba(255,255,255,0.25); cursor: pointer; transition: all 0.3s ease;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }
.btn-white {
  display: inline-flex; align-items: center; gap: 10px;
  background: white; color: var(--cedar); padding: 16px 40px; border-radius: 50px;
  font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 700;
  border: none; cursor: pointer; transition: all 0.3s ease; position: relative;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-label {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--amber); margin-bottom: 16px;
}
.section-title { font-size: clamp(32px, 4vw, 48px); color: var(--cedar); margin-bottom: 20px; }
.section-subtitle { font-size: 17px; color: var(--text-light); line-height: 1.8; }

/* ===== PAGE HERO (for inner pages) ===== */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(165deg, var(--cedar) 0%, #0f2a1a 50%, #1a3a2a 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(212,146,42,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(212,146,42,0.08) 0%, transparent 50%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 20px;
}
.page-hero .breadcrumb a { color: var(--amber-glow); transition: opacity 0.2s; }
.page-hero .breadcrumb a:hover { opacity: 0.8; }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.3); }
.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px); color: white; margin-bottom: 20px; max-width: 800px;
}
.page-hero .hero-desc {
  font-size: 18px; color: rgba(255,255,255,0.7); max-width: 600px; line-height: 1.8;
}
.page-hero .hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,146,42,0.15); border: 1px solid rgba(212,146,42,0.3);
  padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 600;
  color: var(--amber-glow); margin-bottom: 24px; letter-spacing: 0.5px;
}

/* ===== ARTICLE CONTENT ===== */
.article-wrap { background: var(--warm-white); }
.article-content { max-width: 760px; margin: 0 auto; }
.article-sidebar-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: start;
}
.article-body h2 { font-size: 28px; color: var(--cedar); margin: 44px 0 16px; }
.article-body h3 { font-size: 22px; color: var(--cedar); margin: 36px 0 14px; }
.article-body h4 {
  font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 600;
  color: var(--text); margin: 28px 0 12px;
}
.article-body p { font-size: 16px; color: var(--text-light); line-height: 1.9; margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 16px 0 24px 24px; color: var(--text-light); font-size: 16px; line-height: 2; }
.article-body strong { color: var(--text); }
.article-body a { color: var(--amber); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(212,146,42,0.3); }
.article-body a:hover { text-decoration-color: var(--amber); }
.article-meta { font-size: 14px; color: var(--stone); margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }

/* Article CTA Box */
.article-cta-box {
  background: linear-gradient(135deg, var(--cedar), var(--cedar-light));
  border-radius: var(--radius-lg); padding: 40px; text-align: center; margin: 48px 0;
}
.article-cta-box h4 { font-size: 24px; color: white; margin-bottom: 12px; }
.article-cta-box p { color: rgba(255,255,255,0.7); margin-bottom: 24px; font-size: 16px; }

/* Sidebar */
.sidebar { position: sticky; top: 96px; }
.sidebar-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; margin-bottom: 24px;
}
.sidebar-card h3 { font-size: 18px; color: var(--cedar); margin-bottom: 16px; }
.sidebar-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sidebar-card li a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--cream); border-radius: 8px; font-size: 14px; color: var(--text-light);
  border: 1px solid transparent; transition: all 0.2s;
}
.sidebar-card li a:hover { border-color: var(--amber); color: var(--amber); background: white; }
.sidebar-card li a .arrow { margin-left: auto; color: var(--amber); }
.sidebar-cta {
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  border-radius: var(--radius-lg); padding: 32px; text-align: center; color: white;
}
.sidebar-cta h3 { color: white; font-size: 22px; margin-bottom: 12px; }
.sidebar-cta p { font-size: 14px; opacity: 0.9; margin-bottom: 20px; }
.sidebar-cta .phone-big { font-family: 'DM Serif Display', serif; font-size: 26px; display: block; margin-bottom: 16px; }
.sidebar-cta .btn-white { width: 100%; justify-content: center; padding: 14px 24px; font-size: 14px; }

/* ===== AREA PAGE SPECIFIC ===== */
.area-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.area-service-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.area-service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--amber-light));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.area-service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.area-service-card:hover::before { transform: scaleX(1); }
.area-service-card .icon { font-size: 28px; margin-bottom: 16px; }
.area-service-card h3 { font-size: 18px; color: var(--cedar); margin-bottom: 8px; }
.area-service-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* Area stats bar */
.area-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px; margin: 60px 0;
}
.area-stat-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; text-align: center;
}
.area-stat-card .num { font-family: 'DM Serif Display', serif; font-size: 36px; color: var(--cedar); }
.area-stat-card .label { font-size: 13px; color: var(--stone); margin-top: 4px; font-weight: 500; }

/* Internal link grid */
.internal-links {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px; margin: 40px 0;
}
.internal-link {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: var(--text-light); transition: all 0.2s;
}
.internal-link:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }
.internal-link .pin { color: var(--amber); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--amber), #c07a10);
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.15), transparent 60%);
}
.cta-banner h2 { font-size: clamp(32px, 4vw, 48px); color: white; margin-bottom: 16px; position: relative; }
.cta-banner p { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 36px; position: relative; }

/* ===== FOOTER ===== */
footer { background: #111; color: rgba(255,255,255,0.6); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand .logo-text { color: white; font-size: 22px; margin-bottom: 16px; }
.footer-brand .logo-text span { color: var(--stone); }
.footer-brand p { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.footer-col h4 {
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--amber); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .article-sidebar-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: white; padding: 24px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); gap: 16px;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .area-services-grid { grid-template-columns: 1fr; }
  .internal-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .area-stats { grid-template-columns: 1fr 1fr; }
  .internal-links { grid-template-columns: 1fr; }
}


/* PageSpeed fixes - heading hierarchy */
.footer-heading {
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--amber); margin-bottom: 20px;
}
.contact-label {
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--stone); text-transform: uppercase; letter-spacing: 1px;
}
