/* ============================================================
   ADVANCED AG REALTY & APPRAISAL — Main Stylesheet
   ============================================================ */

/* RESET & ROOT */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --orange:       #C4602A;
  --orange-light: #D97840;
  --orange-dark:  #A04820;
  --orange-faint: #FBF3EE;
  --gray-dark:    #3A3A3A;
  --gray:         #6B6B6B;
  --gray-mid:     #888888;
  --gray-light:   #C8C8C8;
  --gray-faint:   #F4F4F4;
  --white:        #FFFFFF;
  --off-white:    #FAFAF8;
  --text:         #2A2A2A;
  --text-light:   #4A4A4A;
  --text-muted:   #7A7A7A;
  --divider:      #E5E5E5;
  --font-body:    'Lato', sans-serif;
  --font-serif:   Georgia, 'Times New Roman', serif;
}
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--white); color: var(--text); overflow-x: hidden; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange-dark); }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.5em; margin-bottom: 1em; }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-weight: bold; line-height: 1.15; color: var(--gray-dark); margin-bottom: 0.5em; }
h1 { font-size: clamp(32px, 4vw, 56px); }
h2 { font-size: clamp(26px, 3vw, 42px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

/* ============================================================
   LAYOUT CONTAINERS
   ============================================================ */
.container { max-width: 1240px; margin: 0 auto; padding: 0 64px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 64px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 64px; }
@media (max-width: 1024px) { .container, .container-wide, .container-narrow { padding: 0 36px; } }
@media (max-width: 768px)  { .container, .container-wide, .container-narrow { padding: 0 22px; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-block; padding: 13px 30px; font-size: 12px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 3px; border: 2px solid transparent; cursor: pointer; transition: all 0.2s; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white); }
.btn-secondary { background: var(--gray-dark); color: var(--white); border-color: var(--gray-dark); }
.btn-secondary:hover { background: var(--gray); border-color: var(--gray); color: var(--white); }
.btn-outline { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline-white:hover { border-color: var(--orange-light); color: var(--orange-light); }
.btn-white { background: var(--white); color: var(--orange); border-color: var(--white); }
.btn-white:hover { background: var(--gray-dark); color: var(--white); border-color: var(--gray-dark); }
.btn-lg { padding: 16px 38px; font-size: 13px; }
.btn-sm { padding: 9px 20px; font-size: 11px; }

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.section-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--orange); display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-tag::before { content: ''; display: block; width: 26px; height: 2px; background: var(--orange); flex-shrink: 0; }
.section-tag.light { color: var(--orange-light); }
.section-tag.light::before { background: var(--orange-light); }
.section-tag.center { justify-content: center; }
.section-title { font-family: var(--font-serif); font-size: clamp(26px, 3vw, 44px); font-weight: bold; line-height: 1.12; color: var(--gray-dark); }
.section-title em { font-style: italic; color: var(--orange); }
.section-title.light { color: var(--white); }
.section-lead { font-family: var(--font-serif); font-style: italic; font-size: 17px; line-height: 1.65; color: var(--text-muted); max-width: 580px; }
.section-intro { margin-bottom: 48px; }
.section-intro.center { text-align: center; }
.section-intro.center .section-tag { justify-content: center; }
.section-intro.center .section-lead { margin: 12px auto 0; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.rd1 { transition-delay: 0.1s; }
.rd2 { transition-delay: 0.2s; }
.rd3 { transition-delay: 0.3s; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar { background: var(--gray-dark); padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { font-size: 12px; color: rgba(255,255,255,0.48); display: flex; gap: 22px; }
.top-bar-right { font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 700; }
.top-bar-right a { color: var(--orange-light); }
.top-bar-right a:hover { color: var(--white); }
@media (max-width: 768px) { .top-bar-left { display: none; } }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--white);
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 2px 18px rgba(0,0,0,0.09);
}
.site-header .container { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.site-logo { display: flex; align-items: center; text-decoration: none; }
.site-logo img,
.site-logo .custom-logo-link img,
img.custom-logo { height: 54px !important; max-height: 54px !important; width: auto !important; max-width: none !important; display: block; }
.site-logo .custom-logo-link { display: flex; align-items: center; }
.site-logo:hover { opacity: 0.85; }

/* Main Nav */
.main-nav ul { display: flex; gap: 26px; list-style: none; align-items: center; margin: 0; padding: 0; }
.main-nav a { color: var(--gray-dark); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; position: relative; padding-bottom: 3px; }
.main-nav a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--orange); transition: width 0.3s; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--orange); }
.main-nav a:hover::after, .main-nav .current-menu-item > a::after { width: 100%; }
.main-nav .nav-cta a { background: var(--orange); color: var(--white) !important; padding: 9px 20px; border-radius: 3px; }
.main-nav .nav-cta a::after { display: none; }
.main-nav .nav-cta a:hover { background: var(--orange-dark); }

/* Dropdown */
.main-nav li { position: relative; }
.main-nav .sub-menu { visibility: hidden; opacity: 0; pointer-events: none; position: absolute; top: 100%; left: 0; background: var(--white); border-top: 2px solid var(--orange); box-shadow: 0 8px 32px rgba(0,0,0,0.12); min-width: 220px; padding: 8px 0; border-radius: 0 0 3px 3px; z-index: 100; transition: opacity 0.2s ease, visibility 0.2s ease; }
.main-nav li { position: relative; }
.main-nav li.dropdown-open > .sub-menu { visibility: visible; opacity: 1; pointer-events: auto; }
.main-nav li.dropdown-open > a { color: var(--orange); }
.main-nav .sub-menu li { border: none; }
.main-nav .sub-menu a { display: block; padding: 10px 20px; font-size: 12px; color: var(--gray-dark); letter-spacing: 0.08em; }
.main-nav .sub-menu a::after { display: none; }
.main-nav .sub-menu a:hover { background: var(--orange-faint); color: var(--orange); }

/* Mobile Toggle */
.mobile-toggle { display: none; background: none; border: 2px solid var(--orange); color: var(--orange); padding: 8px 12px; border-radius: 3px; cursor: pointer; font-size: 18px; }
.mobile-nav { display: none; background: var(--white); border-top: 1px solid var(--divider); padding: 16px 0; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav li a { display: block; padding: 12px 24px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-dark); border-bottom: 1px solid var(--divider); }
.mobile-nav li a:hover { color: var(--orange); background: var(--orange-faint); }
.mobile-nav .nav-cta a { background: var(--orange); color: var(--white); margin: 12px 24px; display: block; text-align: center; border-radius: 3px; border-bottom: none; }
@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .mobile-nav.open { display: block; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; height: 88vh; min-height: 640px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; animation: kb 22s ease-in-out infinite alternate; }
@keyframes kb { from{transform:scale(1)} to{transform:scale(1.06)} }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(30,18,8,0.80) 0%, rgba(30,18,8,0.42) 55%, rgba(30,18,8,0.68) 100%); }
.hero-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 140px; background: linear-gradient(to top, var(--white) 0%, transparent 100%); z-index: 5; }
.hero-content { position: relative; z-index: 10; max-width: 780px; padding: 0 64px; animation: fadeUp 0.9s ease 0.2s both; }
@keyframes fadeUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:none} }
.hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--orange-light); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.hero-eyebrow::before { content: ''; display: block; width: 36px; height: 2px; background: var(--orange); }
.hero h1 { font-family: var(--font-serif); font-size: clamp(40px, 5vw, 68px); color: var(--white); margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: #F4A87C; }
.hero-sub { font-family: var(--font-serif); font-style: italic; font-size: 18px; color: rgba(255,255,255,0.72); margin-bottom: 36px; line-height: 1.55; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 768px) { .hero-content { padding: 0 22px; } .hero { height: 100vh; } }

/* Page Hero (shorter, for interior pages) */
.page-hero { background: var(--gray-dark); padding: 72px 0 60px; border-bottom: 3px solid var(--orange); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.18; }
.page-hero-content { position: relative; z-index: 2; }
.page-hero .breadcrumbs { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.page-hero .breadcrumbs a { color: rgba(255,255,255,0.45); }
.page-hero .breadcrumbs a:hover { color: var(--orange-light); }
.page-hero .breadcrumbs span { color: var(--orange-light); }
.page-hero h1 { font-family: var(--font-serif); color: var(--white); font-size: clamp(28px, 3.5vw, 48px); margin-bottom: 10px; }
.page-hero p { font-family: var(--font-serif); font-style: italic; font-size: 17px; color: rgba(255,255,255,0.65); max-width: 560px; margin: 0; }

/* ============================================================
   SEARCH BAR (hero overlay)
   ============================================================ */
.hero-search { position: absolute; bottom: 36px; left: 0; right: 0; z-index: 20; }
.search-bar { background: var(--white); border-radius: 4px; padding: 16px 20px; display: flex; align-items: center; max-width: 960px; box-shadow: 0 8px 40px rgba(0,0,0,0.22); border-top: 3px solid var(--orange); }
.search-field { flex: 1; padding: 0 16px; border-right: 1px solid var(--divider); display: flex; flex-direction: column; gap: 4px; }
.search-field:first-child { padding-left: 6px; }
.search-field:last-of-type { border-right: none; }
.search-field label { font-size: 9px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange); cursor: pointer; }
.search-field select, .search-field input { border: none; outline: none; font-size: 13px; font-family: var(--font-body); color: var(--text); background: transparent; cursor: pointer; appearance: none; padding: 2px 0; }
.search-btn { background: var(--orange); color: var(--white); border: none; border-radius: 3px; padding: 12px 24px; font-size: 12px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; gap: 8px; margin-left: 14px; transition: background 0.2s; }
.search-btn:hover { background: var(--orange-dark); }
@media (max-width: 900px) { .search-bar { flex-wrap: wrap; gap: 12px; } .search-field { border-right: none; border-bottom: 1px solid var(--divider); padding: 8px 0; } .search-btn { width: 100%; justify-content: center; margin-left: 0; } }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar { background: var(--gray-dark); display: flex; border-bottom: 3px solid var(--orange); }
.stat-item { flex: 1; padding: 26px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,0.08); opacity: 0; transform: translateY(14px); transition: opacity 0.5s, transform 0.5s; }
.stat-item:last-child { border-right: none; }
.stat-item.visible { opacity: 1; transform: none; }
.stat-num { font-family: var(--font-serif); font-size: 34px; font-weight: bold; color: var(--orange-light); line-height: 1; margin-bottom: 6px; }
.stat-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.42); }
@media (max-width: 768px) { .stats-bar { flex-wrap: wrap; } .stat-item { flex: 0 0 50%; border-right: 1px solid rgba(255,255,255,0.08); } }

/* ============================================================
   SERVICES / HOMEPAGE SECTIONS
   ============================================================ */
.services-section { background: var(--off-white); padding: 88px 0; border-bottom: 1px solid var(--divider); }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: 48px; }
.svc-card { position: relative; overflow: hidden; aspect-ratio: 16/9; cursor: pointer; }
.svc-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.6s; }
.svc-card:hover .svc-bg { transform: scale(1.05); }
.svc-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(38,16,4,0.93) 0%, rgba(38,16,4,0.22) 55%, transparent 100%); }
.svc-content { position: relative; z-index: 2; padding: 34px 38px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.svc-label { font-size: 10px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--orange-light); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.svc-label::before { content: ''; display: block; width: 18px; height: 1px; background: var(--orange-light); }
.svc-card h3 { font-family: var(--font-serif); font-size: 28px; color: var(--white); margin-bottom: 10px; }
.svc-card p { font-size: 14px; color: rgba(255,255,255,0.66); line-height: 1.65; margin-bottom: 20px; max-width: 400px; }
.svc-link { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange-light); display: flex; align-items: center; gap: 8px; transition: gap 0.2s, color 0.2s; width: fit-content; }
.svc-link:hover { gap: 14px; color: var(--white); }
@media (max-width: 768px) { .svc-grid { grid-template-columns: 1fr; } .svc-card { aspect-ratio: 4/3; } }

/* ============================================================
   MAP SECTION
   ============================================================ */
.map-section { background: var(--gray-dark); padding: 78px 0 0; }
.map-header { padding: 0 64px 44px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.map-header-left { max-width: 500px; }
.map-header-left p { color: rgba(255,255,255,0.48); margin-top: 12px; font-size: 14px; line-height: 1.75; }
.map-controls { display: flex; gap: 7px; flex-wrap: wrap; }
.map-filter { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); color: rgba(255,255,255,0.62); padding: 8px 15px; font-size: 11px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 3px; cursor: pointer; transition: all 0.2s; outline: none; appearance: none; }
.map-filter:hover, .map-filter.active { background: var(--orange); border-color: var(--orange); color: var(--white); }
#ag-map { height: 560px; width: 100%; }
.leaflet-popup-content-wrapper { background: var(--gray-dark) !important; border: 2px solid var(--orange) !important; border-radius: 4px !important; box-shadow: 0 8px 36px rgba(0,0,0,0.45) !important; padding: 0 !important; overflow: hidden; }
.leaflet-popup-content { margin: 0 !important; width: 270px !important; }
.leaflet-popup-tip-container { display: none; }
.leaflet-popup-close-button { color: rgba(255,255,255,0.4) !important; font-size: 18px !important; right: 8px !important; top: 6px !important; z-index: 10; }
.popup-body { padding: 16px 18px; }
.popup-type { font-size: 9px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange-light); margin-bottom: 6px; }
.popup-title { font-family: var(--font-serif); font-size: 16px; font-weight: bold; color: var(--white); margin-bottom: 10px; line-height: 1.3; }
.popup-meta { display: flex; gap: 12px; margin-bottom: 10px; }
.popup-meta span { font-size: 12px; color: rgba(255,255,255,0.48); }
.popup-price { font-family: var(--font-serif); font-size: 20px; font-weight: bold; color: var(--orange-light); margin-bottom: 13px; }
.popup-btn { display: block; background: var(--orange); color: var(--white); text-align: center; padding: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; border-radius: 2px; transition: background 0.2s; }
.popup-btn:hover { background: var(--orange-dark); color: var(--white); }
.map-strip { background: #2E2E2E; padding: 20px 64px; display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid rgba(255,255,255,0.06); }
.map-strip::-webkit-scrollbar { display: none; }
.listing-chip { flex-shrink: 0; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-top: 2px solid transparent; border-radius: 3px; padding: 11px 16px; cursor: pointer; transition: all 0.2s; min-width: 188px; }
.listing-chip:hover, .listing-chip.active { background: rgba(196,96,42,0.14); border-color: var(--orange); border-top-color: var(--orange); }
.chip-type { font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange-light); margin-bottom: 4px; }
.chip-name { font-family: var(--font-serif); font-size: 13px; font-weight: bold; color: var(--white); margin-bottom: 3px; line-height: 1.3; }
.chip-price { font-size: 11px; color: rgba(255,255,255,0.38); }
@media (max-width: 768px) { .map-header { padding: 0 22px 32px; } .map-strip { padding: 16px 22px; } }

/* ============================================================
   LISTING CARDS
   ============================================================ */
.listings-section { background: var(--off-white); padding: 88px 0; }
.listings-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 42px; gap: 20px; flex-wrap: wrap; }
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.listing-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.listing-card { background: var(--white); border-radius: 3px; overflow: hidden; border: 1px solid var(--divider); transition: transform 0.3s, box-shadow 0.3s; }
.listing-card:hover { transform: translateY(-5px); box-shadow: 0 14px 38px rgba(0,0,0,0.1); }
.listing-card-img { position: relative; height: 210px; overflow: hidden; }
.listing-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.listing-card:hover .listing-card-img img { transform: scale(1.05); }
.listing-card-badge { position: absolute; top: 13px; left: 13px; background: var(--orange); color: var(--white); font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 9px; border-radius: 2px; }
.listing-card-badge.sold { background: var(--gray); }
.listing-card-badge.pending { background: #8B6914; }
.listing-card-body { padding: 20px; }
.listing-card-type { font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.listing-card h3 { font-family: var(--font-serif); font-size: 17px; color: var(--gray-dark); margin-bottom: 9px; line-height: 1.3; }
.listing-card h3 a { color: var(--gray-dark); }
.listing-card h3 a:hover { color: var(--orange); }
.listing-meta { display: flex; gap: 14px; margin-bottom: 13px; flex-wrap: wrap; }
.listing-meta span { font-size: 12px; color: var(--text-muted); }
.listing-divider { height: 1px; background: var(--divider); margin-bottom: 13px; }
.listing-footer { display: flex; align-items: center; justify-content: space-between; }
.listing-price { font-family: var(--font-serif); font-size: 19px; font-weight: bold; color: var(--gray-dark); }
.listing-link { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); display: flex; align-items: center; gap: 5px; transition: gap 0.2s; }
.listing-link:hover { gap: 10px; color: var(--orange-dark); }

/* Listing Archive / Search Filters */
.listing-filters { background: var(--white); border-bottom: 1px solid var(--divider); padding: 20px 0; position: sticky; top: 76px; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.filter-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.filter-select { background: var(--off-white); border: 1px solid var(--divider); border-radius: 3px; padding: 9px 14px; font-size: 12px; font-family: var(--font-body); color: var(--text); appearance: none; cursor: pointer; outline: none; transition: border-color 0.2s; min-width: 150px; }
.filter-select:focus { border-color: var(--orange); }
.filter-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.filter-count { font-size: 12px; color: var(--text-muted); margin-left: auto; }
@media (max-width: 768px) { .listing-grid, .listing-grid.cols-2 { grid-template-columns: 1fr; } }

/* Single Listing */
.listing-detail { padding: 64px 0; }
.listing-detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.listing-gallery { margin-bottom: 32px; }
.listing-main-img { width: 100%; height: 460px; object-fit: cover; border-radius: 3px; margin-bottom: 12px; }
.listing-thumb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.listing-thumb { height: 80px; object-fit: cover; border-radius: 2px; cursor: pointer; opacity: 0.7; transition: opacity 0.2s; }
.listing-thumb:hover { opacity: 1; }
.listing-detail h1 { font-family: var(--font-serif); font-size: clamp(24px, 2.8vw, 38px); color: var(--gray-dark); margin-bottom: 10px; }
.listing-detail-price { font-family: var(--font-serif); font-size: 32px; font-weight: bold; color: var(--orange); margin-bottom: 20px; }
.listing-detail-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--divider); }
.detail-meta-item { display: flex; flex-direction: column; gap: 3px; }
.detail-meta-label { font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); }
.detail-meta-value { font-size: 14px; font-weight: 700; color: var(--gray-dark); }
.listing-description h2 { font-size: 20px; margin-bottom: 16px; }
.listing-description p { font-size: 15px; line-height: 1.8; color: var(--text-light); }
.listing-features { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--divider); }
.listing-features h3 { font-size: 18px; margin-bottom: 16px; }
.feature-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.feature-list li { font-size: 14px; color: var(--text-light); display: flex; align-items: center; gap: 8px; }
.feature-list li::before { content: '✓'; color: var(--orange); font-weight: bold; }

/* Listing Sidebar */
.listing-sidebar { position: sticky; top: 100px; }
.listing-contact-card { background: var(--white); border: 1px solid var(--divider); border-top: 3px solid var(--orange); border-radius: 3px; padding: 28px; margin-bottom: 20px; }
.listing-contact-card h3 { font-size: 18px; margin-bottom: 6px; }
.listing-contact-card .listing-price-sidebar { font-family: var(--font-serif); font-size: 26px; font-weight: bold; color: var(--orange); margin-bottom: 20px; }
.listing-contact-card input, .listing-contact-card select, .listing-contact-card textarea { width: 100%; background: var(--off-white); border: 1px solid var(--divider); border-radius: 3px; padding: 11px 13px; font-size: 13px; font-family: var(--font-body); color: var(--text); margin-bottom: 10px; outline: none; appearance: none; transition: border-color 0.2s; }
.listing-contact-card input:focus, .listing-contact-card select:focus, .listing-contact-card textarea:focus { border-color: var(--orange); }
.listing-contact-card textarea { min-height: 90px; resize: vertical; }
.listing-contact-card button { width: 100%; background: var(--orange); color: var(--white); border: none; padding: 13px; font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; border-radius: 3px; cursor: pointer; transition: background 0.2s; }
.listing-contact-card button:hover { background: var(--orange-dark); }
.listing-map-card { background: var(--gray-dark); border-radius: 3px; overflow: hidden; }
.listing-map-card h3 { padding: 16px 20px 12px; font-size: 14px; color: var(--white); letter-spacing: 0.1em; text-transform: uppercase; }
#listing-mini-map { height: 200px; }
@media (max-width: 1024px) { .listing-detail-grid { grid-template-columns: 1fr; } .listing-sidebar { position: static; } }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-section { padding: 88px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-imgs { position: relative; height: 500px; }
.about-img-main { position: absolute; top: 0; left: 0; width: 76%; height: 80%; object-fit: cover; border-radius: 2px; box-shadow: 12px 16px 48px rgba(0,0,0,0.12); }
.about-img-accent { position: absolute; bottom: 0; right: 0; width: 49%; height: 43%; object-fit: cover; border-radius: 2px; border: 4px solid var(--white); box-shadow: 6px 8px 22px rgba(0,0,0,0.11); }
.about-badge { position: absolute; top: 47%; left: 55%; transform: translate(-50%,-50%); background: var(--orange); color: var(--white); width: 104px; height: 104px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 4px solid var(--white); box-shadow: 0 4px 18px rgba(196,96,42,0.35); z-index: 5; }
.about-badge-num { font-family: var(--font-serif); font-size: 24px; font-weight: bold; line-height: 1; }
.about-badge-text { font-size: 8px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
blockquote.scripture { border-left: 3px solid var(--orange); padding: 14px 22px; margin: 28px 0; font-family: var(--font-serif); font-style: italic; font-size: 17px; color: var(--text-muted); line-height: 1.6; background: var(--orange-faint); border-radius: 0 3px 3px 0; }
blockquote.scripture cite { display: block; font-size: 10px; font-style: normal; font-family: var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin-top: 8px; font-weight: 700; }
.mission-values { background: var(--off-white); padding: 78px 0; border-top: 1px solid var(--divider); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.value-card { background: var(--white); border-radius: 3px; padding: 32px 28px; border-top: 3px solid var(--orange); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.value-icon { font-size: 30px; margin-bottom: 14px; display: block; }
.value-card h3 { font-size: 17px; margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin: 0; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } .about-imgs { height: 300px; margin-bottom: 32px; } .values-grid { grid-template-columns: 1fr; } }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-section { background: var(--orange-faint); padding: 88px 0; border-top: 1px solid #E8CEBA; border-bottom: 1px solid #E8CEBA; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 48px; }
.why-card { background: var(--white); border-radius: 3px; padding: 28px 24px; text-align: center; border-top: 3px solid var(--orange); box-shadow: 0 2px 10px rgba(196,96,42,0.06); transition: transform 0.3s, box-shadow 0.3s; }
.why-card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(196,96,42,0.1); }
.why-icon { font-size: 30px; margin-bottom: 12px; display: block; }
.why-card h3 { font-family: var(--font-serif); font-size: 16px; margin-bottom: 9px; }
.why-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin: 0; }
@media (max-width: 768px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .why-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TEAM
   ============================================================ */
.team-section { background: var(--off-white); padding: 88px 0; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.team-card { background: var(--white); border-radius: 3px; overflow: hidden; border: 1px solid var(--divider); transition: box-shadow 0.3s; }
.team-card:hover { box-shadow: 0 10px 32px rgba(0,0,0,0.1); }
.team-card-img { height: 260px; overflow: hidden; position: relative; }
.team-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.4s; }
.team-card:hover .team-card-img img { transform: scale(1.04); }
.team-card-body { padding: 24px; text-align: center; }
.team-name { font-family: var(--font-serif); font-size: 20px; font-weight: bold; color: var(--gray-dark); margin-bottom: 4px; }
.team-title { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.team-bio { font-size: 13px; color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; }
.team-tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.team-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-dark); background: var(--gray-faint); border: 1px solid var(--divider); padding: 4px 9px; border-radius: 2px; }
.team-contact { display: flex; gap: 10px; justify-content: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--divider); }
.team-contact a { font-size: 12px; color: var(--orange); font-weight: 700; }
@media (max-width: 768px) { .team-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--gray-dark); padding: 88px 0; position: relative; overflow: hidden; }
.testimonials-section::before { content: '"'; position: absolute; top: -60px; right: 80px; font-family: var(--font-serif); font-size: 360px; color: rgba(255,255,255,0.03); line-height: 1; pointer-events: none; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.testimonial-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-top: 3px solid var(--orange); padding: 30px 26px; border-radius: 2px; }
.t-stars { color: var(--orange-light); font-size: 13px; margin-bottom: 14px; letter-spacing: 3px; }
.t-text { font-family: var(--font-serif); font-style: italic; font-size: 15px; line-height: 1.72; color: rgba(255,255,255,0.73); margin-bottom: 22px; }
.t-author { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-light); }
.t-location { font-size: 11px; color: rgba(255,255,255,0.28); margin-top: 3px; }
@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ARA DESIGNATION PAGE
   ============================================================ */
.ara-hero { background: var(--orange); padding: 72px 0; }
.ara-hero h1 { color: var(--white); }
.ara-hero p { color: rgba(255,255,255,0.8); font-family: var(--font-serif); font-style: italic; font-size: 18px; margin-top: 12px; }
.ara-content { padding: 72px 0; }
.ara-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 64px; align-items: start; }
.ara-body h2 { margin-bottom: 20px; }
.ara-body p { font-size: 15px; line-height: 1.8; color: var(--text-light); margin-bottom: 18px; }
.ara-sidebar-card { background: var(--orange-faint); border: 1px solid #E8CEBA; border-top: 3px solid var(--orange); border-radius: 3px; padding: 28px; }
.ara-sidebar-card h3 { font-size: 18px; margin-bottom: 16px; }
.credential-list { list-style: none; padding: 0; }
.credential-list li { font-size: 14px; color: var(--text-light); padding: 10px 0; border-bottom: 1px solid #E8CEBA; display: flex; align-items: flex-start; gap: 10px; }
.credential-list li:last-child { border-bottom: none; }
.credential-list li::before { content: '✓'; color: var(--orange); font-weight: bold; flex-shrink: 0; margin-top: 1px; }
@media (max-width: 768px) { .ara-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: var(--orange); padding: 66px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta-text h2 { font-family: var(--font-serif); font-size: 32px; color: var(--white); line-height: 1.15; margin-bottom: 8px; }
.cta-text p { font-size: 15px; color: rgba(255,255,255,0.74); line-height: 1.65; max-width: 440px; margin: 0; }
.cta-buttons { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section { padding: 88px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; }
.contact-info h2 { margin-bottom: 14px; }
.contact-intro { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 32px; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-icon { width: 40px; height: 40px; background: var(--orange); border-radius: 3px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.contact-label { font-size: 9px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange); margin-bottom: 2px; }
.contact-value { font-size: 14px; color: var(--text-light); }
.contact-form-wrap { background: var(--off-white); border-radius: 3px; padding: 36px; border: 1px solid var(--divider); }
.contact-form-wrap h3 { font-size: 22px; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea { width: 100%; background: var(--white); border: 1px solid var(--divider); border-radius: 3px; padding: 11px 13px; font-size: 14px; font-family: var(--font-body); color: var(--text); outline: none; appearance: none; transition: border-color 0.2s, box-shadow 0.2s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(196,96,42,0.1); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-submit { background: var(--orange); color: var(--white); border: none; padding: 14px 32px; font-size: 12px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; border-radius: 3px; cursor: pointer; transition: background 0.2s, transform 0.2s; width: 100%; }
.form-submit:hover { background: var(--orange-dark); transform: translateY(-2px); }
.wpcf7-form { margin: 0; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   SERVICE DETAIL PAGES (Realty / Appraisal)
   ============================================================ */
.service-detail { padding: 80px 0; }
.service-detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: start; }
.service-body h2 { margin-bottom: 18px; }
.service-body h3 { font-size: 22px; margin-top: 36px; margin-bottom: 14px; color: var(--orange); }
.service-body p { font-size: 15px; line-height: 1.8; color: var(--text-light); margin-bottom: 16px; }
.service-body ul { font-size: 15px; color: var(--text-light); line-height: 1.8; padding-left: 0; list-style: none; }
.service-body ul li { padding: 8px 0 8px 28px; border-bottom: 1px solid var(--divider); position: relative; }
.service-body ul li:last-child { border-bottom: none; }
.service-body ul li::before { content: '→'; position: absolute; left: 0; color: var(--orange); font-weight: bold; }
.service-sidebar-card { background: var(--white); border: 1px solid var(--divider); border-top: 3px solid var(--orange); border-radius: 3px; padding: 28px; position: sticky; top: 100px; margin-bottom: 20px; }
.service-sidebar-card h3 { font-size: 18px; margin-bottom: 16px; }
.service-sidebar-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.process-steps { counter-reset: step; list-style: none; padding: 0; }
.process-steps li { padding: 14px 0 14px 48px; border-bottom: 1px solid var(--divider); position: relative; font-size: 14px; color: var(--text-light); line-height: 1.6; counter-increment: step; }
.process-steps li:last-child { border-bottom: none; }
.process-steps li::before { content: counter(step); position: absolute; left: 0; top: 14px; width: 30px; height: 30px; background: var(--orange); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
@media (max-width: 1024px) { .service-detail-grid { grid-template-columns: 1fr; } .service-sidebar-card { position: static; } }

/* ============================================================
   QUALIFICATIONS PAGE
   ============================================================ */
.qual-section { padding: 80px 0; }
.qual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; }
.qual-category { background: var(--white); border: 1px solid var(--divider); border-top: 3px solid var(--orange); border-radius: 3px; padding: 32px; }
.qual-category h3 { font-size: 20px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--divider); }
.qual-list { list-style: none; padding: 0; }
.qual-list li { padding: 10px 0; border-bottom: 1px solid var(--gray-faint); font-size: 14px; color: var(--text-light); display: flex; align-items: flex-start; gap: 10px; }
.qual-list li:last-child { border-bottom: none; }
.qual-list li::before { content: '◆'; color: var(--orange); font-size: 8px; flex-shrink: 0; margin-top: 4px; }
@media (max-width: 768px) { .qual-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--gray-dark); padding: 60px 0 26px; border-top: 3px solid var(--orange); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 44px; margin-bottom: 44px; }
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-img,
.footer-logo-wrap .custom-logo-link img { height: 44px; max-height: 44px; width: auto; display: block; filter: brightness(0) invert(1) opacity(0.88); }
.footer-logo-wrap .custom-logo-link { display: flex; align-items: center; }
.footer-brand-name { font-family: var(--font-serif); font-size: 15px; font-weight: bold; color: var(--white); }
.footer-brand-sub { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange-light); }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.38); line-height: 1.75; margin-bottom: 16px; }
.footer-dre { font-size: 11px; color: rgba(255,255,255,0.2); }
.footer-col-title { font-size: 10px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--orange-light); margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.42); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom-text { font-size: 11px; color: rgba(255,255,255,0.26); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 11px; color: rgba(255,255,255,0.26); transition: color 0.2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   WORDPRESS ADMIN BAR OFFSET
   ============================================================ */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ============================================================
   GUTENBERG / WORDPRESS CONTENT STYLES
   ============================================================ */
.entry-content { font-size: 15px; line-height: 1.8; color: var(--text-light); }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 32px; margin-bottom: 14px; }
.entry-content p { margin-bottom: 18px; }
.entry-content ul, .entry-content ol { margin-bottom: 18px; }
.entry-content img { border-radius: 3px; margin-bottom: 18px; }
.entry-content blockquote { border-left: 3px solid var(--orange); padding: 14px 22px; background: var(--orange-faint); margin: 28px 0; font-family: var(--font-serif); font-style: italic; font-size: 17px; color: var(--text-muted); }
.entry-content a { color: var(--orange); text-decoration: underline; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-muted { color: var(--text-muted); }
.bg-off-white { background: var(--off-white); }
.bg-orange-faint { background: var(--orange-faint); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* No-JS fallback */
.no-js .reveal { opacity: 1; transform: none; }


/* ============================================================
   MOBILE-FIRST RESPONSIVE — Full Overhaul
   Breakpoints:
     xl:  1280px  (large desktop)
     lg:  1024px  (tablet landscape / small desktop)
     md:  768px   (tablet portrait)
     sm:  640px   (large phone)
     xs:  480px   (small phone)
   ============================================================ */

/* ============================================================
   LARGE DESKTOP — 1280px
   ============================================================ */
@media (max-width: 1280px) {
  .container, .container-wide, .container-narrow { padding: 0 48px; }
  .hero-content { max-width: 700px; }
  .why-grid { gap: 20px; }
  .footer-grid { gap: 36px; }
}

/* ============================================================
   TABLET LANDSCAPE / SMALL DESKTOP — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .container, .container-wide, .container-narrow { padding: 0 32px; }

  /* NAV — hide some links, compress */
  .main-nav ul { gap: 18px; }
  .main-nav a { font-size: 11px; }

  /* HERO */
  .hero-content { padding: 0 48px; max-width: 620px; }
  .hero h1 { font-size: clamp(36px, 4.5vw, 56px); }
  .hero-search .container { padding: 0 32px; }

  /* STATS */
  .stat-num { font-size: 28px; }

  /* SERVICES */
  .svc-grid { gap: 2px; }

  /* MAP */
  .map-header { padding: 0 32px 36px; }
  .map-strip { padding: 16px 32px; }
  #ag-map { height: 480px; }

  /* LISTINGS */
  .listing-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .listing-detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .listing-sidebar { position: static !important; }

  /* ABOUT */
  .about-grid { gap: 48px; }
  .about-imgs { height: 420px; }

  /* WHY */
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* TESTIMONIALS */
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* TEAM */
  .team-grid { gap: 22px; }

  /* SERVICE DETAIL */
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-sidebar-card { position: static !important; }

  /* CONTACT */
  .contact-grid { gap: 48px; }

  /* FOOTER */
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }

  /* CTA */
  .cta-inner { gap: 28px; }
}

/* ============================================================
   TABLET PORTRAIT — 768px
   ============================================================ */
@media (max-width: 768px) {
  /* BASE */
  .container, .container-wide, .container-narrow { padding: 0 22px; }
  body { font-size: 15px; }

  /* TOP BAR */
  .top-bar { padding: 7px 0; }
  .top-bar-left { display: none; }
  .top-bar-right { font-size: 12px; }

  /* NAV */
  .site-header .container { height: 66px; }
  .site-logo img { height: 46px; }
  .main-nav { display: none !important; }
  .mobile-toggle { display: flex !important; align-items: center; justify-content: center; }

  /* HERO */
  .hero { height: auto; min-height: 100svh; padding-top: 80px; padding-bottom: 200px; align-items: flex-start; }
  .hero-content { padding: 48px 22px 0; max-width: 100%; }
  .hero h1 { font-size: clamp(34px, 7vw, 48px); }
  .hero-sub { font-size: 16px; }
  .hero-eyebrow { font-size: 10px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; text-align: center; padding: 15px; font-size: 13px; }

  /* HERO SEARCH — stacked on mobile */
  .hero-search { position: static; padding: 0; margin: 0 22px 0; transform: none; }
  .search-bar {
    flex-direction: column;
    border-radius: 3px;
    padding: 14px 16px;
    gap: 0;
    margin-top: -60px;
    position: relative;
    z-index: 20;
  }
  .search-field {
    padding: 10px 0;
    border-right: none;
    border-bottom: 1px solid var(--divider);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .search-field:last-of-type { border-bottom: none; }
  .search-field label { flex-shrink: 0; min-width: 90px; margin-bottom: 0; }
  .search-field select { text-align: right; }
  .search-btn { width: 100%; justify-content: center; margin-left: 0; margin-top: 12px; padding: 14px; font-size: 13px; }

  /* STATS BAR */
  .stats-bar { flex-wrap: wrap; }
  .stat-item { flex: 0 0 50%; padding: 20px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-num { font-size: 30px; }
  .stat-lbl { font-size: 9px; }

  /* SECTION SPACING */
  .services-section, .listings-section, .about-section, .why-section,
  .testimonials-section, .team-section, .contact-section,
  .service-detail, .qual-section, .map-section { padding: 56px 0; }
  .section-intro { margin-bottom: 32px; }

  /* SERVICES */
  .svc-grid { grid-template-columns: 1fr; gap: 3px; }
  .svc-card { aspect-ratio: 4/3; }
  .svc-content { padding: 24px 22px; }
  .svc-card h3 { font-size: 24px; }

  /* MAP */
  .map-section { padding-top: 48px; }
  .map-header {
    padding: 0 22px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .map-controls { width: 100%; }
  .map-filter { padding: 8px 12px; font-size: 10px; }
  #ag-map { height: 380px; }
  .map-strip { padding: 14px 22px; gap: 10px; }
  .listing-chip { min-width: 165px; padding: 10px 13px; }
  .chip-name { font-size: 12px; }

  /* LISTINGS */
  .listing-grid { grid-template-columns: 1fr; gap: 18px; }
  .listing-grid.cols-2 { grid-template-columns: 1fr; }
  .listings-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .listings-header .btn { align-self: stretch; text-align: center; }
  .listing-filters { top: 66px; }
  .filter-bar { gap: 8px; flex-wrap: wrap; }
  .filter-select { min-width: 0; flex: 1 1 120px; font-size: 12px; padding: 8px 10px; }
  .filter-count { flex: 0 0 100%; margin-left: 0; }

  /* LISTING DETAIL */
  .listing-main-img { height: 260px; }
  .listing-thumb-grid { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .listing-thumb { height: 64px; }
  .listing-detail-meta { gap: 14px; }
  .feature-list { grid-template-columns: 1fr; }

  /* PAGE HERO */
  .page-hero { padding: 48px 0 40px; }
  .page-hero h1 { font-size: clamp(24px, 6vw, 38px); }
  .page-hero p { font-size: 15px; }

  /* ABOUT */
  .about-grid { grid-template-columns: 1fr; gap: 0; }
  .about-imgs {
    height: 0;
    padding-bottom: 60%;
    position: relative;
    margin-bottom: 32px;
  }
  .about-img-main { width: 74%; height: 80%; }
  .about-img-accent { width: 48%; height: 44%; }
  .about-badge { width: 88px; height: 88px; }
  .about-badge-num { font-size: 20px; }

  /* MISSION VALUES */
  .values-grid { grid-template-columns: 1fr; gap: 16px; }

  /* WHY */
  .why-section { padding: 56px 0; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
  .why-card { padding: 22px 18px; }
  .why-icon { font-size: 26px; margin-bottom: 10px; }
  .why-card h3 { font-size: 15px; }
  .why-card p { font-size: 12px; }

  /* TESTIMONIALS */
  .testimonials-grid { grid-template-columns: 1fr; gap: 18px; }
  .testimonials-section::before { display: none; }
  .t-text { font-size: 14px; }

  /* TEAM */
  .team-grid { grid-template-columns: 1fr; gap: 20px; }
  .team-card-img { height: 220px; }

  /* ARA */
  .ara-grid { grid-template-columns: 1fr; gap: 32px; }

  /* QUAL */
  .qual-grid { grid-template-columns: 1fr; gap: 18px; }

  /* CTA BAND */
  .cta-band { padding: 48px 0; }
  .cta-inner { flex-direction: column; gap: 24px; text-align: center; align-items: center; }
  .cta-text h2 { font-size: clamp(24px, 5vw, 32px); }
  .cta-text p { margin: 0 auto; }
  .cta-buttons { flex-direction: column; width: 100%; max-width: 340px; }
  .cta-buttons .btn, .cta-buttons a { width: 100%; text-align: center; }

  /* CONTACT */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-wrap { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* SERVICE DETAIL */
  .service-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-body h3 { font-size: 18px; }
  .process-steps li { padding-left: 40px; }

  /* FOOTER */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .site-footer { padding: 48px 0 22px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; gap: 14px; }
}

/* ============================================================
   LARGE PHONE — 640px
   ============================================================ */
@media (max-width: 640px) {
  /* STATS — full width each */
  .stat-item { flex: 0 0 50%; }

  /* HERO tighter */
  .hero h1 { font-size: clamp(30px, 8vw, 42px); line-height: 1.15; }
  .hero-sub { font-size: 15px; max-width: 100%; }

  /* SERVICES */
  .svc-card { aspect-ratio: 3/2; }

  /* MAP */
  #ag-map { height: 340px; }

  /* SECTION TITLES */
  .section-title { font-size: clamp(24px, 6vw, 36px); }

  /* TEAM — 1 column always */
  .team-grid { grid-template-columns: 1fr; }

  /* WHY */
  .why-grid { grid-template-columns: 1fr; }

  /* LISTING GALLERY thumbs */
  .listing-thumb-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   SMALL PHONE — 480px
   ============================================================ */
@media (max-width: 480px) {
  /* CONTAINERS */
  .container, .container-wide, .container-narrow { padding: 0 16px; }

  /* TOP BAR — minimal */
  .top-bar .container { padding: 0 16px; }

  /* HERO */
  .hero { padding-bottom: 180px; }
  .hero-content { padding: 40px 16px 0; }
  .hero h1 { font-size: clamp(28px, 8.5vw, 38px); }
  .hero-eyebrow { font-size: 9px; gap: 8px; }
  .hero-eyebrow::before { width: 24px; }

  /* SEARCH BAR */
  .hero-search { margin: 0 16px; }
  .search-bar { margin-top: -50px; }

  /* NAV */
  .site-header .container { padding: 0 16px; height: 60px; }
  .site-logo img { height: 40px; }
  .mobile-toggle { padding: 7px 10px; font-size: 16px; }

  /* MOBILE NAV links bigger tap targets */
  .mobile-nav li a { padding: 14px 16px; font-size: 13px; }

  /* STATS — full width */
  .stat-item { flex: 0 0 100%; border-right: none !important; padding: 16px; }

  /* SERVICES */
  .svc-content { padding: 20px 16px; }
  .svc-card h3 { font-size: 21px; }
  .svc-card p { display: none; } /* hide description on tiny screens, show on tap */
  .svc-label { margin-bottom: 6px; }

  /* MAP */
  .map-header { padding: 0 16px 24px; }
  .map-controls { gap: 6px; }
  .map-filter { padding: 7px 10px; font-size: 10px; }
  #ag-map { height: 300px; }
  .map-strip { padding: 12px 16px; gap: 8px; }
  .listing-chip { min-width: 148px; }

  /* SECTION SPACING */
  .services-section, .listings-section, .about-section, .why-section,
  .testimonials-section, .team-section, .contact-section,
  .service-detail, .qual-section { padding: 44px 0; }

  /* PAGE HERO */
  .page-hero { padding: 36px 0 32px; }

  /* ABOUT */
  .about-imgs { padding-bottom: 70%; }

  /* WHY GRID */
  .why-grid { grid-template-columns: 1fr; gap: 12px; }

  /* LISTING CARD */
  .listing-card-img { height: 185px; }

  /* CTA */
  .cta-band { padding: 40px 0; }
  .cta-text h2 { font-size: clamp(22px, 6vw, 28px); }
  .cta-buttons { max-width: 100%; }

  /* CONTACT */
  .contact-form-wrap { padding: 20px 16px; }
  .contact-icon { width: 34px; height: 34px; font-size: 14px; }

  /* FOOTER */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-logo-img { height: 36px; }
  .footer-bottom-links { gap: 12px; }

  /* LISTING DETAIL */
  .listing-main-img { height: 220px; }
  .listing-thumb-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .listing-thumb { height: 56px; }
  .detail-meta-item { min-width: 100px; }

  /* TESTIMONIALS */
  .t-text { font-size: 14px; line-height: 1.65; }
}

/* ============================================================
   TOUCH / INTERACTION IMPROVEMENTS
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
  /* Larger tap targets for all interactive elements */
  .nav-links a,
  .mobile-nav li a { min-height: 44px; display: flex; align-items: center; }

  .btn { min-height: 48px; }
  .map-filter { min-height: 40px; }
  .listing-chip { min-height: 56px; }
  .filter-select { min-height: 44px; }

  /* Disable hover-only effects on touch */
  .listing-card:hover { transform: none; box-shadow: none; }
  .why-card:hover { transform: none; box-shadow: none; }
  .svc-card:hover .svc-bg { transform: none; }
  .btn:hover { transform: none; }

  /* Keep visual feedback via active state instead */
  .listing-card:active { transform: scale(0.98); }
  .btn:active { transform: scale(0.97); opacity: 0.9; }
  .map-filter:active { opacity: 0.8; }
  .listing-chip:active { opacity: 0.8; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .top-bar, .site-header, .hero-search, .map-section,
  .stats-bar, .cta-band, .testimonials-section,
  .site-footer, .mobile-toggle { display: none !important; }
  .hero { height: auto; min-height: 0; padding: 40px 0; }
  .hero-bg, .hero-overlay, .hero-fade { display: none; }
  .hero h1, .hero-sub { color: #000; }
  body { font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  .listing-card { break-inside: avoid; }
}

/* ============================================================
   ACCESSIBILITY & FOCUS STATES
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* Skip to main content link (screen readers) */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--orange);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 3px 3px;
  font-weight: 700;
  font-size: 13px;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-to-content:focus { top: 0; }

/* ============================================================
   SMOOTH SCROLLING + SAFE AREA (iPhone notch)
   ============================================================ */
html {
  scroll-padding-top: 80px; /* offset for sticky nav */
}
@supports (padding: max(0px)) {
  .site-header { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); }
  .top-bar     { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); }
  .hero-search { padding-bottom: max(0px, env(safe-area-inset-bottom)); }
  .site-footer .container { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
}
