/* ============================================================
   Southern Residential Fence Company — Global Stylesheet
   Design Direction: Southern Craftsman Editorial
   Playfair Display × DM Sans | Deep Forest · Burnished Gold · Warm Ivory
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,600;1,700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&display=swap');

:root {
  /* ── Brand Colors ── */
  --green:        #1D4D20;
  --green-light:  #2A6830;
  --green-dark:   #102512;
  --green-ink:    #091509;
  --gold:         #C4840A;
  --gold-dark:    #9E6A07;
  --gold-light:   #E0A830;
  --dark:         #0E0E0E;
  --dark-2:       #161a16;
  --gray:         #4A4A4A;
  --gray-light:   #F2EDE4;
  --gray-mid:     #E4DAC8;
  --cream:        #F7F2E9;
  --ivory:        #FDFAF4;
  --white:        #FFFFFF;
  --border:       #D8CFBE;

  /* ── Text Hierarchy (Refactoring UI: 3 levels) ── */
  --text-primary:   #0E0E0E;  /* headings, labels — highest contrast */
  --text-secondary: #4A4A4A;  /* body copy, descriptions */
  --text-tertiary:  #7A7067;  /* meta, dates, captions, badges */
  --text-muted:     #9E9890;  /* placeholders, disabled */

  /* ── Type Scale (Refactoring UI: hand-picked, non-linear) ── */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.8125rem; /* 13px */
  --text-base: 1rem;      /* 16px */
  --text-md:   1.0625rem; /* 17px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */
  --text-6xl:  4rem;      /* 64px */

  /* ── Spacing Scale (Refactoring UI: 4/8/12/16/24/32/48/64/96/128) ── */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   24px;
  --space-6:   32px;
  --space-7:   48px;
  --space-8:   64px;
  --space-9:   96px;
  --space-10:  128px;

  /* ── Two-Part Shadows (Refactoring UI: direct light + ambient) ── */
  --shadow-xs: 0 1px 2px rgba(10,8,5,0.07),  0 1px 4px  rgba(10,8,5,0.05);
  --shadow-sm: 0 1px 3px rgba(10,8,5,0.08),  0 2px 8px  rgba(10,8,5,0.07);
  --shadow:    0 1px 4px rgba(10,8,5,0.08),  0 6px 24px rgba(10,8,5,0.10);
  --shadow-md: 0 2px 6px rgba(10,8,5,0.08),  0 10px 32px rgba(10,8,5,0.13);
  --shadow-lg: 0 4px 8px rgba(10,8,5,0.08),  0 18px 48px rgba(10,8,5,0.16);
  --shadow-xl: 0 8px 14px rgba(10,8,5,0.09), 0 32px 64px rgba(10,8,5,0.22);

  /* ── Shape ── */
  --radius:       6px;
  --radius-lg:    12px;
  --radius-xl:    20px;

  /* ── Fonts ── */
  --font-head:    'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* ── Layout ── */
  --max-w:        1200px;
  --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { font-family: var(--font-body); color: var(--dark); background: var(--ivory); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-light); }
ul { list-style: none; }

/* ── Typography ── */
/* Refactoring UI: line-height proportional to size — shorter for large, taller for small */
/* Refactoring UI: tighten letter-spacing on display headings */
h1,h2,h3,h4 { color: var(--text-primary); }
h1,h2 { font-family: var(--font-head); font-weight: 700; }
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 1.03; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem);   line-height: 1.1;  letter-spacing: -0.015em; }
h3 { font-weight: 600; font-size: clamp(1.05rem, 2.5vw, 1.25rem); font-family: var(--font-body); line-height: 1.3; letter-spacing: -0.005em; }
h4 { font-weight: 600; font-size: 1rem; line-height: 1.4; }
p  { margin-bottom: 1rem; color: var(--text-secondary); font-size: 1rem; line-height: 1.75; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }

/* Refactoring UI: max paragraph width ~65ch for readability */
.content-body p, .sidebar-layout main p, .faq-answer p { max-width: 65ch; }

/* ── Layout Helpers ── */
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
/* Refactoring UI: generous spacing; start with more whitespace and reduce if needed */
.section    { padding: 104px 0; background: var(--ivory); }
.section-sm { padding: 64px 0; }
.section-alt   { background: var(--cream); }
.section-dark  { background: var(--dark-2); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.62); }
.section-cream { background: var(--cream); }
.section-green { background: var(--green); }
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }

/* Refactoring UI: section intro copy is secondary — de-emphasize with color, not just size */
.section-header { text-align: center; margin-bottom: 68px; }
.section-header p { max-width: 580px; margin: 18px auto 0; font-size: 1.05rem; line-height: 1.85; color: var(--text-secondary); }

/* Eyebrow label */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  position: relative;
  padding: 0 26px;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--gold);
}
.eyebrow::before { right: 100%; margin-right: -18px; }
.eyebrow::after  { left:  100%; margin-left:  -18px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 30px; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 2px solid transparent;
  transition: var(--transition); text-align: center;
  white-space: nowrap; letter-spacing: 0.02em;
}
/* Refactoring UI: buttons use small tight shadows; larger shadow only on lift (hover) */
.btn-primary   { background: var(--gold); color: var(--dark); border-color: var(--gold); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--dark); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(196,132,10,0.2), 0 12px 28px rgba(196,132,10,0.28); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-secondary:hover { background: var(--white); color: var(--green-dark); border-color: var(--white); }
.btn-green  { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: var(--green-light); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(29,77,32,0.3); }
.btn-outline   { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-lg { padding: 18px 40px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 9px 20px; font-size: 0.88rem; }

/* ── Phone CTA Bar ── */
.top-bar { background: var(--green-ink); color: rgba(255,255,255,0.65); padding: 9px 0; font-size: 0.82rem; border-bottom: 1px solid rgba(255,255,255,0.04); }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: var(--gold-light); font-weight: 600; }
.top-bar a:hover { color: var(--white); }

/* ── Navigation ── */
.navbar { background: var(--white); box-shadow: 0 1px 0 var(--border), 0 2px 16px rgba(0,0,0,0.04); position: sticky; top: 0; z-index: 1000; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.navbar-brand { display: flex; align-items: center; gap: 14px; }
.navbar-brand .logo-text { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--green); line-height: 1.15; letter-spacing: -0.01em; }
.navbar-brand .logo-sub  { font-family: var(--font-body); font-size: 0.67rem; font-weight: 500; color: var(--gray); display: block; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 2px; }
.logo-icon { width: 50px; height: 50px; border-radius: 10px; overflow: hidden; flex-shrink: 0; box-shadow: 0 3px 10px rgba(16,37,18,0.25); background: var(--green-dark); }
.logo-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link { padding: 8px 13px; font-weight: 500; color: var(--dark); border-radius: var(--radius); font-size: 0.9rem; letter-spacing: 0.01em; }
.nav-link:hover, .nav-link.active { color: var(--green); background: var(--gray-light); }
.nav-cta { background: var(--green); color: var(--white) !important; padding: 9px 20px; border-radius: var(--radius); font-weight: 600; margin-left: 10px; }
.nav-cta:hover { background: var(--green-light); color: var(--white) !important; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(29,77,32,0.3); }

/* Dropdown */
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--white); box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); min-width: 230px; padding: 6px 0 10px; z-index: 100; border: 1px solid var(--border); border-top: 3px solid var(--green); }
.nav-item:hover .dropdown-menu { display: block; }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 11px 20px; color: var(--dark); font-size: 0.9rem; font-weight: 500; }
.dropdown-item:hover { background: var(--gray-light); color: var(--green); padding-left: 26px; }

/* Services Ribbon */
.services-ribbon { background: var(--green-dark); border-bottom: 2px solid var(--gold); overflow: hidden; }
.services-ribbon .container { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0; max-width: 100vw; }
.services-ribbon .container::-webkit-scrollbar { display: none; }
.ribbon-link { display: flex; align-items: center; gap: 7px; padding: 11px 20px; color: rgba(255,255,255,0.72); font-size: 0.72rem; font-weight: 600; white-space: nowrap; text-decoration: none; border-right: 1px solid rgba(255,255,255,0.08); letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.2s, color 0.2s; flex-shrink: 0; }
.ribbon-link:hover { background: rgba(255,255,255,0.09); color: var(--gold-light); }
.ribbon-link .ribbon-icon { font-size: 0.85rem; display: flex; align-items: center; }
.ribbon-link .ribbon-icon svg { width: 14px; height: 14px; stroke: currentColor; flex-shrink: 0; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; border-radius: var(--radius); }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero { position: relative; min-height: 680px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url('https://www.southernresidentialfencecompany.com/dji_fly_20260116_161822_61_1768598695181_photo_optimized-1500w.jpg') center/cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(9,21,9,0.93) 0%, rgba(16,37,18,0.83) 52%, rgba(16,37,18,0.48) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 780px; padding: 80px 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold-light); font-size: 0.7rem; font-weight: 600;
  margin-bottom: 26px; letter-spacing: 0.18em; text-transform: uppercase;
  font-family: var(--font-body);
}
.hero-badge::before { content: ''; display: block; width: 32px; height: 1px; background: var(--gold); flex-shrink: 0; }
.hero h1 { color: var(--white); margin-bottom: 10px; text-shadow: 0 2px 40px rgba(0,0,0,0.4); }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-sub { font-family: var(--font-body); font-size: clamp(0.9rem, 2vw, 1.1rem); color: rgba(255,255,255,0.55); letter-spacing: 0.14em; margin-bottom: 28px; font-weight: 400; text-transform: uppercase; }
.hero p  { color: rgba(255,255,255,0.8); font-size: 1.08rem; margin-bottom: 38px; max-width: 540px; line-height: 1.85; font-weight: 300; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-stats { display: flex; gap: 0; margin-top: 60px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 36px; }
.hero-stat { color: var(--white); padding-right: 44px; margin-right: 44px; border-right: 1px solid rgba(255,255,255,0.1); }
.hero-stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.hero-stat strong { display: block; font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--gold-light); line-height: 1; letter-spacing: -0.02em; }
.hero-stat span { font-size: 0.74rem; opacity: 0.55; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; margin-top: 5px; display: block; }

/* ── Trust Bar ── */
.trust-bar { background: var(--white); padding: 0; border-bottom: 1px solid var(--border); }
.trust-bar .container { display: flex; gap: 0; justify-content: center; align-items: stretch; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 9px; color: var(--dark); font-weight: 500; font-size: 0.8rem; padding: 16px 26px; border-right: 1px solid var(--border); letter-spacing: 0.04em; text-transform: uppercase; }
.trust-item:last-child { border-right: none; }
.trust-item .icon { font-size: 1.1rem; color: var(--green); display: flex; align-items: center; }
.trust-item .icon svg { width: 16px; height: 16px; stroke: var(--green); flex-shrink: 0; }

/* ── Services Grid ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
/* Refactoring UI: two-part shadow on cards */
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-sm); }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card-img { height: 230px; overflow: hidden; position: relative; background: var(--green-dark); }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.service-card:hover .service-card-img img { transform: scale(1.07); }
.service-card-img-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(9,21,9,0.88), transparent);
  padding: 38px 18px 14px;
  color: var(--white); font-family: var(--font-head); font-size: 1.2rem;
  letter-spacing: 0.01em; font-weight: 700; font-style: italic;
}
.service-card-body { padding: 22px 24px 26px; }
/* Refactoring UI: de-emphasize secondary content with color not just size */
.service-card-body p  { font-size: 0.91rem; margin-bottom: 16px; line-height: 1.75; color: var(--text-secondary); }
.service-card-link { font-weight: 600; color: var(--green); display: inline-flex; align-items: center; gap: 6px; font-size: 0.87rem; letter-spacing: 0.03em; }
.service-card-link:hover { gap: 12px; color: var(--green-light); }

/* ── Why Choose Us ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
/* Refactoring UI: accent top border + two-part shadow on hover */
.feature-item {
  padding: 32px 28px; background: var(--white);
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  transition: var(--transition); text-align: left;
  box-shadow: var(--shadow-xs);
}
.feature-item:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-top-color: var(--green); }
.feature-icon { width: 52px; height: 52px; background: var(--cream); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 1.5rem; }
.feature-icon svg { width: 28px; height: 28px; stroke: var(--green); flex-shrink: 0; }
.feature-item h3 { margin-bottom: 9px; font-size: 1.05rem; font-family: var(--font-head); font-weight: 700; color: var(--dark); font-style: italic; }

/* ── Reviews ── */
.reviews-section { background: var(--dark-2); }
.reviews-section .section-header .eyebrow { color: var(--gold); }
.reviews-section .section-header h2 { color: var(--white); }
.reviews-section .section-header p { color: rgba(255,255,255,0.5); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* Refactoring UI: left accent border adds visual interest without competing with content */
.review-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-lg); padding: 36px 32px; transition: var(--transition);
  position: relative; overflow: hidden;
}
.review-card::before {
  content: '\201C';
  font-family: var(--font-head); font-size: 7rem; line-height: 1;
  color: var(--gold); opacity: 0.18;
  position: absolute; top: 4px; left: 22px;
  font-style: italic; pointer-events: none;
}
.review-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(196,132,10,0.35); border-left-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-stars { color: var(--gold); font-size: 1rem; margin-bottom: 20px; letter-spacing: 5px; }
.review-text { font-style: italic; color: rgba(255,255,255,0.72); margin-bottom: 28px; font-size: 0.95rem; line-height: 1.9; padding-top: 10px; font-weight: 300; }
.review-author { display: flex; align-items: center; gap: 14px; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 20px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--green-dark), var(--green)); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1rem; flex-shrink: 0; }
/* Refactoring UI: 3-level text hierarchy — primary, secondary (location), tertiary (badge) */
.review-author-info strong { display: block; font-size: 0.92rem; color: var(--white); font-weight: 600; }
.review-author-info span  { font-size: 0.78rem; color: rgba(255,255,255,0.45); display: block; margin-top: 2px; }
.review-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(66,133,244,0.15); color: #7ab3f8; font-size: 0.7rem; font-weight: 600; padding: 3px 9px; border-radius: 50px; margin-top: 5px; }

/* ── Service Areas ── */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
/* Refactoring UI: box-shadow instead of border, gold accent on hover */
.area-card { display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; border: 1px solid var(--border); transition: var(--transition); background: var(--white); box-shadow: var(--shadow-xs); }
.area-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.area-card-img { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--green-dark); }
.area-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.area-card:hover .area-card-img img { transform: scale(1.07); }
.area-card-img-cta { background: linear-gradient(135deg, var(--green-dark), var(--green)); display: flex; align-items: center; justify-content: center; }
.area-card-label { padding: 8px 10px; font-size: 0.79rem; font-weight: 600; color: var(--dark); text-align: center; line-height: 1.3; letter-spacing: 0.02em; }
.area-card-cta .area-card-label { color: var(--green); }

/* ── Process Steps ── */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process-steps::before { content: ''; position: absolute; top: 36px; left: 10%; right: 10%; height: 1px; background: linear-gradient(to right, rgba(29,77,32,0.4), rgba(196,132,10,0.6), rgba(29,77,32,0.4)); z-index: 0; }
.process-step { position: relative; text-align: center; z-index: 1; }
.process-step-num {
  width: 72px; height: 72px;
  background: var(--green); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; font-style: italic;
  margin: 0 auto 22px; box-shadow: 0 6px 22px rgba(29,77,32,0.4);
  letter-spacing: -0.02em;
}
.process-step h3 { margin-bottom: 10px; font-size: 1rem; color: var(--white); }
.process-step p { color: rgba(255,255,255,0.58); font-size: 0.9rem; line-height: 1.7; }

/* ── CTA Banner ── */
.cta-banner { position: relative; overflow: hidden; padding: 100px 0; text-align: center; background: var(--green-dark); }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: url('https://www.southernresidentialfencecompany.com/gallery/thumbs/IMG_9574.JPG') center/cover no-repeat; opacity: 0.1; }
.cta-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, rgba(9,21,9,0.45)); }
.cta-banner > .container { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 18px; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.cta-banner h2 em { font-style: italic; color: var(--gold-light); }
.cta-banner p  { color: rgba(255,255,255,0.72); font-size: 1.08rem; max-width: 520px; margin: 0 auto 40px; font-weight: 300; line-height: 1.8; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── FAQ ── */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
/* Refactoring UI: box shadow instead of border for subtle separation */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); background: var(--white); box-shadow: var(--shadow-xs); }
.faq-item:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.faq-question { width: 100%; text-align: left; padding: 22px 26px; background: var(--white); font-weight: 600; font-size: 0.97rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; border: none; color: var(--dark); font-family: var(--font-body); }
.faq-question:hover { background: var(--gray-light); }
.faq-question .faq-icon { flex-shrink: 0; width: 26px; height: 26px; background: var(--green); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: var(--transition); }
.faq-answer { padding: 0 26px; max-height: 0; overflow: hidden; transition: max-height 0.5s ease, padding 0.35s ease; }
.faq-answer.open { max-height: 800px; padding: 0 26px 22px; }
.faq-item.active .faq-icon { transform: rotate(45deg); background: var(--gold); }

/* ── Gallery Grid ── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.gallery-item { border-radius: var(--radius-lg); overflow: hidden; background: var(--gray-light); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--green); transition: var(--transition); cursor: pointer; position: relative; }
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* ── Contact Form ── */
/* Refactoring UI: large components use the largest shadow level */
.contact-form { background: var(--white); border-radius: var(--radius-xl); padding: 48px; box-shadow: var(--shadow-xl); border: 1px solid var(--border); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 0.8rem; color: var(--dark); letter-spacing: 0.06em; text-transform: uppercase; }
input, select, textarea { padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; font-family: var(--font-body); transition: var(--transition); background: var(--cream); width: 100%; }
/* Refactoring UI: thick, high-contrast focus ring with brand color */
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(29,77,32,0.12); background: var(--white); }
textarea { min-height: 120px; resize: vertical; }
.form-submit { grid-column: 1 / -1; }
.form-submit .btn { width: 100%; justify-content: center; font-size: 1rem; }

/* ── Page Hero (interior pages) ── */
.page-hero { background: linear-gradient(135deg, var(--green-dark), var(--green)); padding: 80px 0 70px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: url('https://www.southernresidentialfencecompany.com/gallery/thumbs/IMG_9574.JPG') center/cover; opacity: 0.08; }
.page-hero > * { position: relative; z-index: 1; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p  { color: rgba(255,255,255,0.8); font-size: 1.08rem; max-width: 640px; font-weight: 300; }
/* Refactoring UI: breadcrumbs use tertiary (least important) color level */
.breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 22px; font-size: 0.83rem; letter-spacing: 0.01em; }
.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.28); }
.breadcrumb .current { color: var(--gold-light); font-weight: 600; }

/* ── Content Sections (interior) ── */
.content-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.content-2col.reverse { direction: rtl; }
.content-2col.reverse > * { direction: ltr; }
.content-img { border-radius: var(--radius-xl); overflow: hidden; background: linear-gradient(135deg, var(--green-dark), var(--green)); min-height: 380px; display: flex; align-items: center; justify-content: center; font-size: 6rem; box-shadow: var(--shadow-lg); position: relative; }
.content-body h2 { margin-bottom: 18px; }
.content-body ul { margin: 16px 0 24px; display: flex; flex-direction: column; gap: 12px; }
.content-body ul li { display: flex; align-items: flex-start; gap: 12px; color: var(--gray); }
.content-body ul li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 2px; background: rgba(29,77,32,0.1); width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; }

/* ── Sidebar Layout ── */
.sidebar-layout { display: grid; grid-template-columns: 1fr 310px; gap: 56px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 22px; }
/* Refactoring UI: consistent accent treatment across card components */
.sidebar-card { background: var(--white); border: 1px solid var(--border); border-top: 2px solid var(--green); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-xs); }
.sidebar-card h3 { margin-bottom: 14px; font-size: 1.05rem; padding-bottom: 12px; border-bottom: 2px solid var(--green); font-family: var(--font-head); }
.sidebar-card .phone-link { font-family: var(--font-head); font-size: 1.6rem; color: var(--green); display: block; margin-bottom: 8px; letter-spacing: -0.01em; }
.quick-links { display: flex; flex-direction: column; gap: 7px; }
.quick-links a { padding: 10px 14px; background: var(--gray-light); border-radius: var(--radius); color: var(--dark); font-size: 0.9rem; font-weight: 500; display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.quick-links a:hover { background: var(--green); color: var(--white); padding-left: 18px; }
/* Refactoring UI: increase spacing for separation instead of adding borders */
.areas-list { display: flex; flex-direction: column; gap: 2px; }
.areas-list a { color: var(--text-secondary); font-size: 0.9rem; padding: 7px 10px; border-radius: var(--radius); transition: var(--transition); }
.areas-list a:hover { color: var(--green); background: var(--gray-light); padding-left: 14px; }

/* ── Footer ── */
footer { background: var(--green-ink); color: rgba(255,255,255,0.6); }
.footer-main { padding: 80px 0 52px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; }
.footer-brand p { font-size: 0.9rem; margin: 18px 0 28px; color: rgba(255,255,255,0.42); line-height: 1.85; font-weight: 300; }
.footer-logo-text { font-family: var(--font-head); font-size: 1.5rem; color: var(--white); letter-spacing: -0.01em; font-weight: 700; }
.footer-logo-sub  { font-size: 0.7rem; color: rgba(255,255,255,0.32); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 5px; display: block; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 0.9rem; }
.footer-contact-item a { color: rgba(255,255,255,0.62); }
.footer-contact-item a:hover { color: var(--gold-light); }
.footer-contact-item span { display: flex; align-items: center; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span svg { width: 16px; height: 16px; stroke: var(--gold); flex-shrink: 0; }
.footer-col h4 { font-family: var(--font-head); color: var(--white); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.01em; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.48); font-size: 0.88rem; }
.footer-links a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 24px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.81rem; color: rgba(255,255,255,0.32); }
.footer-bottom a { color: rgba(255,255,255,0.32); }
.footer-bottom a:hover { color: var(--white); }

/* ── Floating CTA ── */
.float-cta { position: fixed; bottom: 28px; right: 28px; z-index: 999; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
/* Refactoring UI: floating buttons at the highest elevation = highest shadow level */
.float-btn { display: flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; box-shadow: var(--shadow-xl); transition: var(--transition); white-space: nowrap; font-family: var(--font-body); }
.float-btn svg { width: 16px; height: 16px; stroke: currentColor; flex-shrink: 0; }
.btn svg { width: 15px; height: 15px; stroke: currentColor; flex-shrink: 0; vertical-align: middle; }
.float-btn-phone { background: var(--green); color: var(--white); }
.float-btn-phone:hover { background: var(--green-light); color: var(--white); transform: scale(1.05) translateY(-2px); }
.float-btn-quote { background: var(--gold); color: var(--dark); }
.float-btn-quote:hover { background: var(--gold-dark); transform: scale(1.05) translateY(-2px); box-shadow: 0 12px 32px rgba(196,132,10,0.4); }

/* ── Badges / Stars ── */
.star-rating { display: flex; align-items: center; gap: 6px; }
.stars { color: var(--gold); letter-spacing: 3px; }
.rating-count { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.badge { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 600; }
.badge-green { background: rgba(29,77,32,0.12); color: var(--green); }
.badge-gold  { background: rgba(196,132,10,0.12); color: #7A5200; }

/* ── Sticky Phone Banner (mobile) ── */
.sticky-phone { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--green-dark); color: var(--white); padding: 14px 20px; text-align: center; font-weight: 600; font-size: 0.95rem; z-index: 998; letter-spacing: 0.02em; }
.sticky-phone a { color: var(--gold-light); font-size: 1.1rem; }

/* ── Scroll Reveal Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both; }
.fade-up-1 { animation-delay: 0.12s; }
.fade-up-2 { animation-delay: 0.24s; }
.fade-up-3 { animation-delay: 0.36s; }
.fade-up-4 { animation-delay: 0.48s; }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  animation: revealFallback 0.5s ease 2s both;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}
@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .content-2col { gap: 40px; }
  .sidebar-layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .container { padding: 0 18px; }
  .section-header { margin-bottom: 36px; }

  .top-bar { padding: 8px 0; font-size: 0.8rem; }
  .top-bar .container { justify-content: center; text-align: center; flex-direction: column; gap: 4px; }

  .navbar .container { height: 64px; }
  .navbar-brand .logo-text { font-size: 1.05rem; }
  .logo-icon { width: 42px; height: 42px; border-radius: 9px; }
  .nav-menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 12px; box-shadow: var(--shadow-xl); gap: 2px; border-top: 1px solid var(--border); }
  .nav-menu.open { display: flex; }
  .hamburger { display: flex; }
  .dropdown-menu { position: static; box-shadow: none; padding-left: 16px; border: none; }
  .nav-item:hover .dropdown-menu { display: none; }
  .nav-item.open .dropdown-menu { display: block; }

  .trust-bar .container { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; justify-content: flex-start; }
  .trust-bar .container::-webkit-scrollbar { display: none; }
  .trust-item { padding: 12px 16px; font-size: 0.74rem; white-space: nowrap; flex-shrink: 0; }

  .hero { min-height: auto; padding: 20px 0 30px; }
  .hero-content { padding: 40px 0 20px; }
  .hero-badge { font-size: 0.68rem; }
  .hero p { font-size: 0.97rem; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { text-align: center; justify-content: center; width: 100%; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 36px; padding-top: 24px; }
  .hero-stat { border-right: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); padding: 16px 12px; margin: 0; }
  .hero-stat:nth-child(2n) { border-right: none; }
  .hero-stat:nth-child(3), .hero-stat:nth-child(4) { border-bottom: none; }
  .hero-stat strong { font-size: 2rem; }

  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card-img { height: 200px; }

  .features-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-item {
    padding: 20px 16px;
    display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto;
    column-gap: 14px; row-gap: 4px; text-align: left;
    border-top: none; border-left: 3px solid var(--gold);
  }
  .feature-item:hover { border-left-color: var(--green); }
  .feature-icon { width: 52px; height: 52px; flex-shrink: 0; margin: 0; font-size: 1.4rem; border-radius: 8px; grid-row: 1 / 3; align-self: start; margin-top: 2px; }
  .feature-item h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: 1rem; align-self: end; }
  .feature-item p { grid-column: 2; grid-row: 2; font-size: 0.88rem; margin: 0; color: var(--gray); line-height: 1.55; }

  .reviews-grid { grid-template-columns: 1fr; gap: 16px; }
  .review-card { padding: 28px 22px; }
  .review-card::before { font-size: 5rem; top: 6px; left: 18px; }

  .process-steps { grid-template-columns: 1fr; gap: 20px; }
  .process-steps::before { display: none; }
  .process-step { display: flex; align-items: flex-start; gap: 16px; text-align: left; }
  .process-step-num { width: 54px; height: 54px; flex-shrink: 0; margin: 0; font-size: 1.6rem; }

  .content-2col { grid-template-columns: 1fr; gap: 28px; }
  .content-2col.reverse { direction: ltr; }
  .content-img { min-height: 260px; font-size: 4rem; }

  .areas-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .area-card-label { font-size: 0.76rem; padding: 6px 8px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-main { padding: 48px 0 32px; }

  .cta-actions { flex-direction: column; align-items: center; gap: 12px; }
  .cta-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  .cta-banner { padding: 64px 0; }

  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }

  .float-cta { display: none; }
  .sticky-phone { display: block; }
  body { padding-bottom: 56px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.85rem; }
  .section-header p { font-size: 0.93rem; }
  .hero-badge { display: none; }
  .hero-sub { font-size: 0.88rem; }
  .eyebrow::before, .eyebrow::after { display: none; }
  .process-step-num { width: 46px; height: 46px; font-size: 1.4rem; }
  .service-card-img { height: 180px; }
  .navbar-brand .logo-sub { display: none; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .area-card-label { font-size: 0.72rem; padding: 5px 6px; }
}

/* ═══════════════════════════════════════════════════════════
   VISUAL ENHANCEMENT — MAKE IT POP
   ═══════════════════════════════════════════════════════════ */

/* ── Hero: taller, more photo, more drama ── */
.hero { min-height: 800px; }
.hero-overlay {
  background: linear-gradient(115deg,
    rgba(9,21,9,0.97) 0%,
    rgba(16,37,18,0.84) 42%,
    rgba(9,21,9,0.28) 100%
  );
}
/* Gold accent line at hero bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
  z-index: 2;
}

/* Hero badge: pill shape with gold border */
.hero-badge {
  background: rgba(196,132,10,0.14);
  border: 1px solid rgba(196,132,10,0.42);
  padding: 7px 20px 7px 14px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}
.hero-badge::before { display: none; }

/* Hero h1 em: shimmering gold gradient */
.hero h1 em {
  background: linear-gradient(110deg,
    #f7d060 0%,
    var(--gold-light) 30%,
    #C4840A 55%,
    var(--gold-light) 75%,
    #f7d060 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 220% auto;
  animation: goldShimmer 5s linear infinite;
}
@keyframes goldShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 220% center; }
}

/* Hero stat numbers: bigger, bolder */
.hero-stat strong { font-size: 3.2rem; }
.hero-stat span { font-size: 0.72rem; opacity: 0.6; }

/* Primary button: gold glow */
.btn-primary { box-shadow: 0 4px 24px rgba(196,132,10,0.38); }
.btn-primary:hover { box-shadow: 0 6px 40px rgba(196,132,10,0.6) !important; transform: translateY(-2px); }

/* ── Trust bar: dark + gold — not plain white ── */
.trust-bar {
  background: var(--dark-2);
  border-top: none;
  border-bottom: 2px solid rgba(196,132,10,0.22);
}
.trust-item { color: rgba(255,255,255,0.82); border-right-color: rgba(255,255,255,0.07); padding: 18px 28px; }
.trust-item:last-child { border-right: none; }
.trust-item .icon svg { stroke: var(--gold-light); }
.trust-item:hover { background: rgba(255,255,255,0.04); color: white; }

/* ── Section headers: gold accent underline ── */
.section-header h2::after {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  margin: 18px auto 0;
  border-radius: 2px;
}

/* ── Eyebrow: stronger gold lines ── */
.eyebrow { color: var(--gold-dark); letter-spacing: 0.2em; }
.eyebrow::before, .eyebrow::after {
  background: var(--gold);
  opacity: 0.6;
  width: 28px;
}

/* ── Feature icons: green background for contrast ── */
.feature-icon {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  box-shadow: 0 4px 14px rgba(29,77,32,0.28);
}
.feature-icon svg { stroke: white; }

/* ── Feature cards: gold glow hover ── */
.feature-item {
  border-top: 3px solid rgba(196,132,10,0.25);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-item:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.06), 0 18px 44px rgba(196,132,10,0.1);
  border-top-color: var(--gold);
  transform: translateY(-6px);
}
/* Mobile: keep left border for feature items */
@media (max-width: 768px) {
  .feature-icon { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%); }
  .feature-icon svg { stroke: white; }
}

/* ── Service cards: deeper hover lift ── */
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(0,0,0,0.18), 0 4px 8px rgba(0,0,0,0.08);
  border-color: transparent;
  border-top: 3px solid var(--gold);
}

/* ── Review cards: richer ── */
.review-card { border-left-width: 4px; }

/* ── CTA banner: richer gradient with subtle pattern ── */
.cta-banner {
  background: linear-gradient(140deg, var(--green-dark) 0%, var(--green) 55%, var(--green-light) 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -52deg,
    transparent 0px,
    transparent 38px,
    rgba(255,255,255,0.018) 38px,
    rgba(255,255,255,0.018) 76px
  );
  pointer-events: none;
}
.cta-banner > .container { position: relative; z-index: 1; }

/* ── Page hero (interior pages): richer ── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, var(--green-light) 100%);
}

/* ── Section dark (materials section etc): subtle pattern ── */
.section-dark {
  background: var(--dark-2);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0px,
    transparent 60px,
    rgba(196,132,10,0.022) 60px,
    rgba(196,132,10,0.022) 120px
  );
  pointer-events: none;
}
.section-dark > .container { position: relative; z-index: 1; }

/* ── Reviews section: richer dark ── */
.reviews-section {
  background: linear-gradient(170deg, var(--green-dark) 0%, var(--dark-2) 40%, var(--dark-2) 100%);
}

/* ── Areas grid cards: bigger hover ── */
.area-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(196,132,10,0.15), var(--shadow-md);
}

/* ── Fade-up animation: slightly more travel ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ── Utility ── */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.text-green { color: var(--green); }
.text-gold  { color: var(--gold); }
.font-bold  { font-weight: 700; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 16px; }
.w-full { width: 100%; }

/* ═══════════════════════════════════════════════════════════
   MOBILE OVERRIDES — must come last to win over make-it-pop
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Hero: override the 800px min-height from make-it-pop */
  .hero { min-height: 560px; }

  /* Hero content: prevent text overflow */
  .hero-content { max-width: 100%; padding: 36px 0 20px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); word-break: break-word; }
  .hero p { font-size: 0.95rem; max-width: 100%; }

  /* Hero stats: restore small number size overridden by make-it-pop 3.2rem */
  .hero-stat strong { font-size: 1.9rem; }
  .hero-stat span { font-size: 0.68rem; }

  /* Trust bar: restore compact mobile padding overridden by make-it-pop 18px 28px */
  .trust-item { padding: 12px 14px; font-size: 0.72rem; }

  /* Section headers */
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .section-header p { font-size: 0.92rem; }

  /* Sidebar layout: stack cleanly */
  .sidebar-layout { grid-template-columns: 1fr; gap: 28px; }
  .sidebar { order: 2; }

  /* Buttons: full width on small screens */
  .btn-lg { padding: 16px 28px; font-size: 0.95rem; }

  /* Contact form */
  .contact-form { padding: 24px 16px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-main { padding: 40px 0 28px; }

  /* Float CTA hidden, sticky phone shown */
  .float-cta { display: none !important; }
  .sticky-phone { display: block; }

  /* Prevent any wide element from causing horizontal scroll */
  .section, .section-dark, .section-alt, .section-cream { overflow-x: hidden; }
}

@media (max-width: 480px) {
  /* Hero: tighter on small phones */
  .hero { min-height: 480px; }
  .hero h1 { font-size: clamp(1.8rem, 10vw, 2.4rem); line-height: 1.1; }
  .hero p { font-size: 0.9rem; }
  .hero-sub { font-size: 0.78rem; letter-spacing: 0.1em; }

  /* Hero stats: 2x2 grid, compact numbers */
  .hero-stat strong { font-size: 1.6rem; }
  .hero-stat span { font-size: 0.62rem; }
  .hero-stats { margin-top: 24px; padding-top: 18px; }

  /* Trust bar: tighter */
  .trust-item { padding: 10px 12px; font-size: 0.68rem; }

  /* Section header */
  .section-header h2 { font-size: 1.6rem; }
  .section-header p { font-size: 0.88rem; }

  /* Typography */
  h2 { font-size: 1.65rem; }
  h3 { font-size: 1rem; }

  /* Cards */
  .service-card-img { height: 180px; }
  .review-card { padding: 22px 16px; }
  .feature-item { padding: 16px 14px; }

  /* Sidebar cards */
  .sidebar-card { padding: 20px 16px; }
  .sidebar-card .phone-link { font-size: 1.35rem; }

  /* Process steps */
  .process-step-num { width: 44px; height: 44px; font-size: 1.3rem; }

  /* CTA banner */
  .cta-banner { padding: 52px 0; }
  .cta-banner h2 { font-size: 1.65rem; }

  /* Page hero (interior pages) */
  .page-hero { padding: 52px 0 44px; }
  .page-hero h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }

  /* Areas grid */
  .areas-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* Container */
  .container { padding: 0 14px; }

  /* Prevent overflow */
  * { max-width: 100%; }
  img { max-width: 100%; height: auto; }
}
