/* ─────────────────────────────────────────────────────────────
   EASTCOAST PROPERTY HUB DESIGN SYSTEM (pirihalasz.com)
   Property Intelligence for Florida's East Coast Homeowners
   Brand: Deep Ocean Navy #0c2340 | Coral Accent #e07b39 | Emerald #059669
   Desktop base first — @media (max-width: 640px) at very bottom
   ───────────────────────────────────────────────────────────── */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-hero: #0c2340;
  --bg-dark: #060f1c;
  --text-dark: #0c2340;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-inverse: #f8fafc;
  --color-primary: #0c2340;
  --color-accent: #e07b39;
  --color-accent-dark: #c4622a;
  --color-accent-light: #fef3ec;
  --color-green: #059669;
  --color-green-light: #ecfdf5;
  --color-blue: #0369a1;
  --color-blue-light: #f0f9ff;
  --color-orange: #c4622a;
  --color-orange-light: #fef3ec;
  --border-color: #e2e8f0;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(12, 35, 64, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(12, 35, 64, 0.08), 0 2px 4px -2px rgba(12, 35, 64, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(12, 35, 64, 0.08), 0 4px 6px -4px rgba(12, 35, 64, 0.03);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent-dark); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--color-accent); text-decoration: underline; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Top Bar */
.top-bar { background: #060f1c; color: #94a3b8; font-size: 12px; font-family: var(--font-mono); padding: 8px 0; border-bottom: 1px solid #1e293b; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar-label { letter-spacing: 0.04em; text-transform: uppercase; }
.top-bar-badge { background: #1e293b; color: #e07b39; padding: 2px 9px; border-radius: 4px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* Header */
.site-header { background: #ffffff; border-bottom: 2px solid var(--border-color); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.brand-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo:hover { text-decoration: none; }
.brand-icon { background: var(--color-primary); color: #e07b39; font-weight: 900; font-size: 17px; padding: 8px 11px; border-radius: var(--radius-sm); border-left: 4px solid var(--color-accent); letter-spacing: 0.04em; }
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-size: 18px; font-weight: 800; color: var(--color-primary); letter-spacing: -0.02em; }
.brand-subtitle { font-size: 10px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.main-nav { display: flex; gap: 6px; }
.main-nav a { color: #475569; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: var(--radius-sm); transition: all 0.15s ease; }
.main-nav a:hover, .main-nav a.active { background: var(--color-accent-light); color: var(--color-accent-dark); text-decoration: none; }

.nav-toggle-input { display: none; }
.nav-toggle-label { display: none; }

/* Hero */
.hero-section { background: linear-gradient(135deg, #0c2340 0%, #17375e 60%, #0c2340 100%); color: var(--text-inverse); padding: 56px 0 64px 0; border-bottom: 4px solid var(--color-accent); position: relative; overflow: hidden; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; background: rgba(224, 123, 57, 0.2); color: #fba96c; border: 1px solid rgba(224, 123, 57, 0.4); padding: 4px 12px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.hero-section h1 { font-size: 38px; font-weight: 900; line-height: 1.18; letter-spacing: -0.02em; max-width: 860px; color: #ffffff; margin-bottom: 16px; }
.hero-section p { font-size: 17px; color: #cbd5e1; max-width: 760px; line-height: 1.6; margin-bottom: 28px; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 720px; background: rgba(6, 15, 28, 0.45); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-md); padding: 14px 20px; }
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-size: 22px; font-weight: 900; color: #ffffff; font-family: var(--font-mono); }
.stat-label { font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

/* Featured Marquee Section */
.featured-guide-section { margin-top: -32px; margin-bottom: 48px; position: relative; z-index: 10; }
.featured-card { background: var(--bg-card); border: 1px solid #cbd5e1; border-top: 5px solid var(--color-accent); border-radius: var(--radius-lg); padding: 32px 36px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1.8fr 1fr; gap: 32px; align-items: center; }
.featured-main h2 { font-size: 24px; font-weight: 800; color: var(--color-primary); margin: 10px 0 12px 0; line-height: 1.25; }
.featured-main h2 a { color: var(--color-primary); }
.featured-main h2 a:hover { color: var(--color-accent-dark); }
.featured-dek { font-size: 15.5px; color: #475569; line-height: 1.55; margin-bottom: 20px; }
.btn-featured { display: inline-block; background: var(--color-primary); color: #ffffff; font-weight: 700; font-size: 14px; padding: 10px 20px; border-radius: var(--radius-sm); transition: background 0.15s ease; }
.btn-featured:hover { background: var(--color-accent-dark); color: #ffffff; text-decoration: none; }

.featured-sidebar { background: #f8fafc; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px; }
.featured-sidebar h4 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 12px; }
.spec-list { display: flex; flex-direction: column; gap: 10px; }
.spec-row { display: flex; justify-content: space-between; font-size: 14px; border-bottom: 1px dashed #e2e8f0; padding-bottom: 6px; }
.spec-k { color: #64748b; }
.spec-v { font-weight: 700; color: var(--color-primary); }
.featured-badge { margin-top: 14px; font-size: 12px; font-weight: 700; color: #059669; background: #ecfdf5; padding: 4px 10px; border-radius: 4px; text-align: center; }

/* Start Here Strip */
.start-here-section { background: #ffffff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 24px 28px; margin-bottom: 56px; box-shadow: var(--shadow-sm); }
.start-here-header { margin-bottom: 18px; }
.start-here-header h3 { font-size: 18px; font-weight: 800; color: var(--color-primary); }
.start-here-sub { font-size: 13px; color: var(--text-muted); }
.start-here-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.start-card { display: flex; gap: 12px; background: #f8fafc; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 14px; text-decoration: none; transition: transform 0.15s ease, border-color 0.15s ease; }
.start-card:hover { transform: translateY(-2px); border-color: var(--color-accent); text-decoration: none; }
.start-num { font-size: 18px; font-weight: 900; color: var(--color-accent); font-family: var(--font-mono); line-height: 1; }
.start-cat { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); display: block; margin-bottom: 4px; }
.start-card h4 { font-size: 13.5px; font-weight: 700; color: var(--color-primary); line-height: 1.35; margin-bottom: 8px; }
.start-price { font-size: 11px; font-weight: 700; color: #059669; font-family: var(--font-mono); }

/* Category Silos & Headers */
.category-silo { margin-bottom: 56px; }
.section-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--border-color); padding-bottom: 14px; margin-bottom: 24px; }
.section-header-left { display: flex; align-items: center; gap: 14px; }
.section-icon { width: 36px; height: 36px; }
.section-title { font-size: 22px; font-weight: 800; color: var(--color-primary); letter-spacing: -0.01em; }
.section-desc { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.section-count-badge { padding: 4px 13px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }

/* Grid & Cards */
.eph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.eph-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.15s ease, box-shadow 0.15s ease; border-top: 4px solid var(--color-primary); }
.eph-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.card-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 10px; border-radius: 4px; margin-bottom: 12px; width: fit-content; }
.tag-green { color: #059669; background: #ecfdf5; }
.tag-blue { color: #0369a1; background: #f0f9ff; }
.tag-orange { color: #c4622a; background: #fef3ec; }

.eph-card h3 { font-size: 17.5px; font-weight: 800; line-height: 1.35; margin-bottom: 10px; }
.eph-card h3 a { color: var(--color-primary); }
.eph-card h3 a:hover { color: var(--color-accent-dark); text-decoration: underline; }
.card-snippet { font-size: 14.5px; color: var(--text-body); line-height: 1.55; margin-bottom: 18px; flex-grow: 1; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border-color); padding-top: 13px; font-family: var(--font-mono); }
.card-price-badge { font-weight: 700; color: #059669; }

/* Standards & CTA Bands */
.editorial-standards-band { background: #0c2340; color: #ffffff; border-radius: var(--radius-lg); padding: 40px 36px; margin: 56px 0; }
.standards-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.std-icon { font-size: 26px; margin-bottom: 10px; }
.standards-col h4 { font-size: 16px; font-weight: 800; margin-bottom: 8px; color: #fba96c; }
.standards-col p { font-size: 14px; line-height: 1.55; color: #cbd5e1; }

.closing-cta-band { background: #ffffff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 36px 32px; text-align: center; margin-bottom: 60px; box-shadow: var(--shadow-sm); }
.closing-cta-band h3 { font-size: 22px; font-weight: 800; color: var(--color-primary); margin-bottom: 8px; }
.closing-cta-band p { font-size: 15px; color: var(--text-muted); max-width: 680px; margin: 0 auto 20px auto; }
.cta-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn-silo-link { display: inline-block; background: #f1f5f9; border: 1px solid #cbd5e1; color: var(--color-primary); font-size: 13.5px; font-weight: 700; padding: 8px 18px; border-radius: var(--radius-sm); transition: all 0.15s ease; }
.btn-silo-link:hover { background: var(--color-accent); color: #ffffff; border-color: var(--color-accent); text-decoration: none; }

/* Article Page Layout */
.article-container { max-width: 860px; margin: 36px auto 60px auto; background: var(--bg-card); padding: 44px 48px; border-radius: var(--radius-lg); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.article-breadcrumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.article-breadcrumbs a { color: var(--color-accent-dark); font-weight: 600; }
.article-header { border-bottom: 2px solid var(--border-color); padding-bottom: 20px; margin-bottom: 28px; }
.article-header h1 { font-size: 32px; font-weight: 900; color: var(--color-primary); line-height: 1.22; margin: 10px 0 14px 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--text-muted); font-family: var(--font-mono); }

.key-takeaways { background: #f0fdf4; border: 1px solid #bbf7d0; border-left: 5px solid #059669; border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 32px; }
.takeaway-title { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #166534; margin-bottom: 6px; }
.key-takeaways p { font-size: 15.5px; color: #166534; line-height: 1.55; margin-bottom: 0 !important; font-weight: 500; }

.article-content h2 { font-size: 22px; font-weight: 800; color: var(--color-primary); margin: 36px 0 14px 0; padding-left: 12px; border-left: 4px solid var(--color-accent); line-height: 1.3; }
.article-content h3 { font-size: 18px; font-weight: 700; color: var(--color-primary); margin: 24px 0 10px 0; }
.article-content p { font-size: 16.5px; color: #334155; line-height: 1.65; margin-bottom: 18px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 22px; }
.article-content li { font-size: 16px; line-height: 1.55; color: #334155; margin-bottom: 8px; }

.callout-box { background: #eff6ff; border-left: 5px solid #2563eb; border-radius: var(--radius-sm); padding: 20px 22px; margin: 28px 0; }
.callout-box h4 { font-size: 14px; font-weight: 800; color: #1e40af; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.callout-box p { font-size: 15.5px; color: #1e3a8a; line-height: 1.55; margin-bottom: 0 !important; }
.callout-box a { color: #1d4ed8; font-weight: 700; text-decoration: underline; }

/* Cost Table */
.table-wrap { margin: 36px 0; overflow-x: auto; }
.table-title { font-size: 16px; font-weight: 800; color: var(--color-primary); margin-bottom: 10px; }
.cost-table { width: 100%; border-collapse: collapse; background: #ffffff; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 14.5px; }
.cost-table th, .cost-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.cost-table th { background: #f1f5f9; color: var(--color-primary); font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.03em; }
.cost-table tr:hover { background: #f8fafc; }
.table-note { font-size: 12.5px; color: var(--text-muted); margin-top: 8px; }

/* FAQ Accordion (<details>) */
.faq-accordion { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 36px 0; }
.faq-item { background: #f8fafc; border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 14px 18px; }
.faq-question { font-size: 16px; font-weight: 700; color: var(--color-primary); cursor: pointer; outline: none; }
.faq-question::-webkit-details-marker { color: var(--color-accent); }
.faq-answer { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #e2e8f0; font-size: 15.5px; color: #475569; line-height: 1.6; }
.faq-answer p { margin-bottom: 0 !important; }

.silo-box { background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: var(--radius-md); padding: 22px 24px; margin-top: 40px; }
.silo-box h3 { font-size: 14px; font-weight: 800; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.silo-box ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.silo-box li { margin-bottom: 8px; }
.silo-box li:last-child { margin-bottom: 0; }
.silo-box a { font-size: 15px; font-weight: 700; color: var(--color-accent-dark); }
.silo-box a:hover { color: var(--color-accent); }

.article-footer-nav { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.btn-back { display: inline-block; font-size: 14px; font-weight: 700; color: var(--text-muted); }
.btn-back:hover { color: var(--color-primary); text-decoration: underline; }

/* Static Pages */
.page-wrap { max-width: 840px; margin: 40px auto 64px auto; background: var(--bg-card); padding: 44px 48px; border-radius: var(--radius-lg); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.page-wrap h1 { font-size: 32px; font-weight: 900; color: var(--color-primary); margin-bottom: 6px; }
.page-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; padding-bottom: 20px; border-bottom: 2px solid var(--border-color); font-family: var(--font-mono); }
.page-body p { font-size: 16.5px; color: #334155; line-height: 1.65; margin-bottom: 18px; }
.page-body h2 { font-size: 22px; font-weight: 800; color: var(--color-primary); margin: 32px 0 12px 0; padding-left: 12px; border-left: 4px solid var(--color-accent); }
.page-body ul { padding-left: 24px; margin-bottom: 22px; }
.page-body li { font-size: 16px; color: #334155; line-height: 1.55; margin-bottom: 8px; }

/* Footer */
.site-footer { background: #060f1c; color: #94a3b8; padding: 56px 0 24px 0; border-top: 4px solid var(--color-primary); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #ffffff; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col p { font-size: 14px; line-height: 1.6; color: #94a3b8; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #94a3b8; }
.footer-col a:hover { color: #e07b39; text-decoration: none; }
.footer-bottom-bar { border-top: 1px solid #1e293b; padding-top: 22px; text-align: center; font-size: 12px; color: #64748b; }
.footer-bottom-bar a { color: #94a3b8; text-decoration: underline; }
.footer-bottom-bar a:hover { color: #e07b39; }

/* Tablet */
@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; gap: 24px; }
  .start-here-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .standards-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .hero-section h1 { font-size: 30px; }
  .article-container { padding: 28px 20px; }
  .page-wrap { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ─────────────────────────────────────────────────────────────
   Phone Breakpoint (max-width: 640px) — STRICT MOBILE STANDARDS
   Always at the very bottom of the stylesheet
   ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .container { padding: 0 10px !important; }
  .top-bar-inner { justify-content: center; }
  .top-bar-label { display: none; }
  
  .header-inner { height: 58px !important; }
  .brand-subtitle { display: none; }
  .brand-icon { font-size: 15px; padding: 6px 9px; }
  .brand-title { font-size: 16px; }

  .nav-toggle-label { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; font-size: 22px; line-height: 1; color: var(--color-primary); cursor: pointer; border-radius: var(--radius-sm); }
  .nav-toggle-label:active { background: var(--color-accent-light); }
  .main-nav { display: none; position: absolute; top: 58px; left: 0; right: 0; flex-direction: column; gap: 2px; background: #ffffff; border-bottom: 2px solid var(--border-color); box-shadow: var(--shadow-md); padding: 8px 16px 16px; z-index: 49; }
  .nav-toggle-input:checked ~ .main-nav { display: flex; }
  .main-nav a { padding: 12px 10px; font-size: 17px; border-radius: var(--radius-sm); }

  .hero-section { padding: 8px 0 24px !important; }
  .hero-section h1 { font-size: 34px !important; line-height: 1.1 !important; margin-bottom: 12px !important; }
  .hero-section p { font-size: 18.5px !important; line-height: 1.45 !important; margin-bottom: 16px !important; }
  .stat-strip { padding: 12px; gap: 10px; }
  .stat-num { font-size: 18px; }

  .featured-guide-section { margin-top: -16px; margin-bottom: 32px; }
  .featured-card { padding: 20px 14px !important; border-radius: var(--radius-md); }
  .featured-main h2 { font-size: 22px !important; }

  .start-here-grid { grid-template-columns: 1fr; }
  .start-card { padding: 12px 10px; }

  .category-silo { margin-bottom: 36px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 10px; }
  .section-title { font-size: 22px !important; line-height: 1.2 !important; }
  .section-desc { font-size: 14px; }

  .eph-grid { grid-template-columns: 1fr; gap: 16px; }
  .eph-card { padding: 18px 14px !important; }
  .eph-card h3 { font-size: 19px !important; line-height: 1.3 !important; }
  .card-snippet { font-size: 16px !important; line-height: 1.45 !important; }

  .article-container { padding: 20px 12px !important; margin: 18px 0 32px !important; border-radius: var(--radius-md); }
  .article-header h1 { font-size: 26px !important; line-height: 1.18 !important; }
  .key-takeaways { padding: 14px 12px !important; }
  .key-takeaways p { font-size: 17px !important; line-height: 1.4 !important; }

  .article-content h2 { font-size: 22px !important; line-height: 1.2 !important; margin: 24px 0 10px 0 !important; }
  .article-content h3 { font-size: 18px !important; margin: 18px 0 8px 0 !important; }
  .article-content p { font-size: 18.5px !important; line-height: 1.45 !important; margin-bottom: 14px !important; }
  .article-content li { font-size: 18px !important; line-height: 1.4 !important; }

  .callout-box { padding: 16px 14px !important; margin: 18px 0 !important; }
  .callout-box p { font-size: 17.5px !important; line-height: 1.45 !important; }

  .cost-table { font-size: 13.5px; }
  .cost-table th, .cost-table td { padding: 8px 10px; }

  .faq-question { font-size: 17px !important; }
  .faq-answer { font-size: 17px !important; line-height: 1.45 !important; }

  .page-wrap { padding: 20px 12px !important; margin: 20px 0 36px 0 !important; }
  .page-wrap h1 { font-size: 26px !important; }
  .page-body p { font-size: 18.5px !important; line-height: 1.45 !important; margin-bottom: 14px !important; }
  .page-body li { font-size: 18px !important; line-height: 1.4 !important; }

  .editorial-standards-band { padding: 24px 16px !important; margin: 36px 0 !important; }
  .closing-cta-band { padding: 24px 14px !important; margin-bottom: 40px !important; }
  .closing-cta-band h3 { font-size: 20px !important; }
}
