/*
Theme Name: SearchForHomeGTA
Theme URI: https://searchforhomegta.com
Author: SearchForHomeGTA Team
Description: A modern, fast, SEO-optimized WordPress theme for GTA real estate information.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: searchforhomegta
Tags: real-estate, blog, responsive-layout, seo-optimized
*/

/* ===================================
   CSS CUSTOM PROPERTIES
=================================== */
:root {
  --primary: #1E3A5F;
  --primary-light: #2a5080;
  --primary-dark: #152b47;
  --accent: #2BB7A3;
  --accent-light: #3dd4be;
  --accent-dark: #1f9080;
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --light-gray: #EEF2F7;
  --mid-gray: #B0BEC5;
  --text: #333333;
  --text-light: #5A6A75;
  --text-muted: #8998A5;
  --border: #DDE4EB;
  --shadow-sm: 0 1px 3px rgba(30,58,95,0.08), 0 1px 2px rgba(30,58,95,0.06);
  --shadow: 0 4px 16px rgba(30,58,95,0.10), 0 2px 6px rgba(30,58,95,0.08);
  --shadow-lg: 0 10px 40px rgba(30,58,95,0.14), 0 4px 12px rgba(30,58,95,0.10);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --transition: 0.22s ease;
  --container: 1200px;
  --container-narrow: 820px;
}

/* ===================================
   RESET & BASE
=================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--primary); line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

/* LAYOUT */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.75rem; border-radius: var(--radius); font-family: var(--font-heading); font-weight: 600; font-size: .95rem; cursor: pointer; border: 2px solid transparent; transition: all var(--transition); text-decoration: none; min-height: 48px; }
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-sm { padding: .5rem 1.25rem; font-size: .875rem; min-height: 40px; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; min-height: 56px; }

/* HEADER */
#site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: 0 2px 12px rgba(30,58,95,.07); }
#site-header.scrolled { box-shadow: 0 4px 24px rgba(30,58,95,.12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 2rem; }
.site-logo { flex-shrink: 0; display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.site-logo-icon { width: 40px; height: 40px; background: var(--primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.site-logo-icon svg { width: 22px; height: 22px; fill: var(--white); }
.site-logo-text .brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; color: var(--primary); letter-spacing: -.02em; display: block; }
.site-logo-text .brand-tagline { font-size: .7rem; color: var(--text-muted); letter-spacing: .03em; text-transform: uppercase; display: block; }
.primary-nav { display: flex; align-items: center; gap: .25rem; }
.primary-nav a { font-family: var(--font-heading); font-weight: 500; font-size: .9rem; color: var(--text); padding: .5rem .85rem; border-radius: var(--radius-sm); transition: all var(--transition); }
.primary-nav a:hover, .primary-nav a.current-menu-item { color: var(--primary); background: var(--light-gray); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; color: var(--primary); flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: all var(--transition); }

/* HERO */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #1a6080 100%); position: relative; overflow: hidden; padding: 6rem 0 5rem; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-text .eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(43,183,163,.2); color: var(--accent-light); font-family: var(--font-heading); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .4rem .9rem; border-radius: 100px; margin-bottom: 1.25rem; border: 1px solid rgba(43,183,163,.3); }
.hero-text h1 { color: var(--white); margin-bottom: 1.25rem; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.15; }
.hero-text h1 span { color: var(--accent-light); }
.hero-text p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.15); }
.hero-stat .number { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: .2rem; }
.hero-stat .label { font-size: .8rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .04em; }
.hero-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-card-img { width: 100%; height: 220px; background: linear-gradient(135deg,#e8f0f7,#c5d8ea); display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.hero-card-body { padding: 1.5rem; }
.hero-card-badge { display: inline-block; background: var(--accent); color: var(--white); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 100px; margin-bottom: .75rem; }
.hero-card-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: .5rem; }
.hero-card-price { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: var(--accent-dark); }
.hero-card-meta { display: flex; gap: 1rem; margin-top: .75rem; font-size: .85rem; color: var(--text-light); }
.floating-badge { position: absolute; background: var(--white); border-radius: var(--radius); padding: .9rem 1.2rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .75rem; }
.floating-badge-1 { top: -1.5rem; right: -1.5rem; }
.floating-badge-2 { bottom: -1.5rem; left: -1.5rem; }
.floating-badge .icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.floating-badge-1 .icon { background: #FFF3E0; }
.floating-badge-2 .icon { background: #E8F5E9; }
.floating-badge .text strong { display: block; font-family: var(--font-heading); font-size: .85rem; font-weight: 700; color: var(--primary); }
.floating-badge .text span { font-size: .72rem; color: var(--text-muted); }
.hero-visual { position: relative; }

/* SEARCH BAR */
.search-section { background: var(--off-white); padding: 3rem 0; border-bottom: 1px solid var(--border); }
.search-box { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); display: flex; gap: 1rem; align-items: flex-end; }
.search-field { flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.search-field label { font-family: var(--font-heading); font-size: .78rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: .04em; }
.search-field input, .search-field select { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .65rem 1rem; font-size: .95rem; color: var(--text); background: var(--white); transition: border-color var(--transition); min-height: 48px; }
.search-field input:focus, .search-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43,183,163,.12); }

/* SECTION HEADERS */
.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-header .eyebrow, .eyebrow { display: inline-block; color: var(--accent); font-family: var(--font-heading); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .6rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 560px; }
.section-header.centered p { margin: 0 auto; }

/* CARDS */
.card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(43,183,163,.2); }
.card-img { width: 100%; height: 200px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-category { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.card-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: .6rem; line-height: 1.35; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { font-size: .9rem; color: var(--text-light); line-height: 1.6; margin-bottom: 1.25rem; }
.card-meta { display: flex; align-items: center; gap: 1rem; font-size: .8rem; color: var(--text-muted); padding-top: 1rem; border-top: 1px solid var(--light-gray); }

/* LISTINGS */
.listing-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all var(--transition); }
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.listing-card-img { position: relative; height: 220px; overflow: hidden; }
.listing-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.listing-card:hover .listing-card-img img { transform: scale(1.04); }
.listing-badge { position: absolute; top: 1rem; left: 1rem; background: var(--accent); color: var(--white); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 100px; }
.listing-badge.new { background: #22c55e; }
.listing-badge.featured { background: var(--primary); }
.listing-card-body { padding: 1.35rem; }
.listing-price { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: var(--primary); margin-bottom: .4rem; }
.listing-title { font-family: var(--font-heading); font-size: .95rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; line-height: 1.4; }
.listing-location { font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; display: flex; align-items: center; gap: .3rem; }
.listing-features { display: flex; gap: 1.25rem; font-size: .85rem; color: var(--text-light); padding: .9rem 0; border-top: 1px solid var(--light-gray); border-bottom: 1px solid var(--light-gray); margin-bottom: 1rem; }
.listing-feature { display: flex; align-items: center; gap: .3rem; }

/* NEIGHBORHOOD CARDS */
.neighborhood-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; height: 280px; cursor: pointer; display: block; text-decoration: none; }
.neighborhood-card-bg { width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary), #2a6080); transition: transform .4s ease; }
.neighborhood-card:hover .neighborhood-card-bg { transform: scale(1.05); }
.neighborhood-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,30,50,.85) 0%, rgba(15,30,50,.1) 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.75rem; }
.neighborhood-card-title { color: var(--white); font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; margin-bottom: .4rem; }
.neighborhood-card-price { color: var(--accent-light); font-size: .9rem; font-family: var(--font-heading); font-weight: 600; }

/* CTA BANNER */
.cta-banner { background: linear-gradient(135deg, var(--primary) 0%, #1a6070 100%); border-radius: var(--radius-xl); padding: 4rem; text-align: center; position: relative; overflow: hidden; }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); font-size: clamp(1.6rem,3vw,2.2rem); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 500px; margin: 0 auto 2rem; }
.cta-banner .btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* NEWSLETTER */
.newsletter-section { background: var(--off-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.newsletter-box { max-width: 560px; margin: 0 auto; text-align: center; }
.newsletter-box h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.newsletter-box p { color: var(--text-light); margin-bottom: 1.5rem; }
.newsletter-form { display: flex; gap: .75rem; }
.newsletter-form input { flex: 1; border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1.25rem; font-size: .95rem; transition: border-color var(--transition); min-height: 52px; }
.newsletter-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43,183,163,.12); }

/* BLOG */
.blog-layout { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start; }
.post-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 2rem; position: sticky; top: 100px; }
.widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }
.widget-title { font-family: var(--font-heading); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-light); margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 2px solid var(--light-gray); }
.category-list li { border-bottom: 1px solid var(--light-gray); }
.category-list li:last-child { border-bottom: none; }
.category-list a { display: flex; justify-content: space-between; align-items: center; padding: .65rem 0; font-size: .9rem; color: var(--text); }
.category-list a:hover { color: var(--accent); }
.category-list a span { font-size: .78rem; background: var(--light-gray); color: var(--text-muted); padding: .15rem .5rem; border-radius: 100px; }

/* ARTICLE */
.article-header { padding: 4rem 0 3rem; border-bottom: 1px solid var(--border); }
.article-category { display: inline-block; color: var(--accent); font-family: var(--font-heading); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.article-title { font-size: clamp(1.8rem,4vw,2.8rem); margin-bottom: 1.25rem; line-height: 1.2; }
.article-meta { display: flex; align-items: center; gap: 1.5rem; color: var(--text-muted); font-size: .88rem; flex-wrap: wrap; }
.article-author { display: flex; align-items: center; gap: .6rem; }
.author-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--light-gray); border: 2px solid var(--border); }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3.5rem; padding: 3rem 0; align-items: start; }
.article-featured-img { width: 100%; border-radius: var(--radius-lg); margin-bottom: 2.5rem; max-height: 480px; object-fit: cover; background: var(--light-gray); min-height: 200px; }
.article-body { font-size: 1.05rem; line-height: 1.8; color: var(--text); }
.article-body h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; padding-top: .5rem; }
.article-body h3 { font-size: 1.2rem; margin: 2rem 0 .75rem; }
.article-body p { margin-bottom: 1.5rem; }
.article-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.5rem; }
.article-body ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1.5rem; }
.article-body li { margin-bottom: .5rem; line-height: 1.7; }
.article-body blockquote { border-left: 4px solid var(--accent); padding: 1rem 1.5rem; background: var(--off-white); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 2rem 0; font-style: italic; color: var(--text-light); }
.article-body a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(43,183,163,.4); }
.article-body a:hover { text-decoration-color: var(--accent); }

/* TOC */
.toc-box { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 2.5rem; }
.toc-title { font-family: var(--font-heading); font-size: .85rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.toc-list { list-style: none; counter-reset: toc; }
.toc-list li { counter-increment: toc; border-bottom: 1px solid var(--border); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a { display: block; padding: .5rem 0; font-size: .9rem; color: var(--text); }
.toc-list a:hover { color: var(--accent); }
.toc-list a::before { content: counter(toc) ". "; color: var(--accent); font-weight: 600; }

/* ARTICLE SIDEBAR */
.article-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.5rem; }
.related-item { display: flex; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--light-gray); }
.related-item:last-child { border-bottom: none; }
.related-item-img { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; background: var(--light-gray); }
.related-item-title { font-family: var(--font-heading); font-size: .85rem; font-weight: 600; color: var(--primary); line-height: 1.35; margin-bottom: .2rem; }
.related-item-title a { color: inherit; }
.related-item-title a:hover { color: var(--accent); }
.related-item-date { font-size: .75rem; color: var(--text-muted); }

/* BREADCRUMBS */
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text-muted); padding: 1rem 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--mid-gray); font-size: .75rem; }

/* MORTGAGE CALC */
.mortgage-calc .calc-inputs { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.calc-field label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-light); margin-bottom: .4rem; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .04em; }
.calc-field input { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .65rem 1rem; font-size: .95rem; transition: border-color var(--transition); min-height: 48px; }
.calc-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43,183,163,.12); }
.calc-result { background: var(--primary); color: var(--white); border-radius: var(--radius); padding: 1.25rem 1.5rem; text-align: center; }
.calc-result .amount { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--accent-light); }
.calc-result .label { font-size: .82rem; color: rgba(255,255,255,.7); margin-top: .25rem; }

/* FOOTER */
#site-footer { background: var(--primary-dark); color: rgba(255,255,255,.8); padding: 5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-desc { margin-top: 1rem; font-size: .9rem; color: rgba(255,255,255,.6); line-height: 1.7; }
.footer-social { display: flex; gap: .75rem; margin-top: 1.5rem; }
.social-link { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); font-size: .85rem; transition: all var(--transition); }
.social-link:hover { background: var(--accent); color: var(--white); }
.footer-col-title { font-family: var(--font-heading); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--white); margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { font-size: .88rem; color: rgba(255,255,255,.6); }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom { padding: 1.5rem 0; display: flex; align-items: center; justify-content: space-between; font-size: .82rem; color: rgba(255,255,255,.4); gap: 1rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,.4); }
.footer-bottom-links a:hover { color: rgba(255,255,255,.8); }

/* PAGE HERO */
.page-hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); padding: 4rem 0 5rem; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 40px; background: var(--white); clip-path: ellipse(55% 100% at 50% 100%); }
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 1.05rem; }

/* FILTERS */
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn { background: var(--white); border: 1px solid var(--border); border-radius: 100px; padding: .45rem 1.1rem; font-size: .85rem; font-family: var(--font-heading); font-weight: 500; color: var(--text); cursor: pointer; transition: all var(--transition); min-height: 40px; }
.filter-btn:hover, .filter-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* FORMS */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-family: var(--font-heading); font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.form-control { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem; font-size: .95rem; color: var(--text); background: var(--white); transition: all var(--transition); min-height: 48px; }
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43,183,163,.12); }
textarea.form-control { min-height: 120px; resize: vertical; }

/* PAGINATION */
.pagination { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: 3rem; flex-wrap: wrap; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--radius-sm); font-family: var(--font-heading); font-weight: 600; font-size: .9rem; border: 1px solid var(--border); color: var(--text); }
.page-numbers:hover, .page-numbers.current { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* TAGS */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag { background: var(--light-gray); color: var(--text-light); font-size: .8rem; padding: .3rem .75rem; border-radius: 100px; }
.tag:hover { background: var(--accent); color: var(--white); }

/* SKIP LINK */
.skip-link { position: absolute; top: -100%; left: 1rem; background: var(--primary); color: var(--white); padding: .5rem 1rem; border-radius: var(--radius-sm); z-index: 99999; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* INFO BOXES */
.info-box { border-radius: var(--radius); padding: 1.25rem 1.5rem; display: flex; gap: 1rem; align-items: flex-start; margin: 2rem 0; }
.info-box.tip { background: rgba(43,183,163,.08); border: 1px solid rgba(43,183,163,.25); }
.info-box.warning { background: #FFF8E1; border: 1px solid #FFD54F; }
.info-box.info { background: #E3F2FD; border: 1px solid #90CAF9; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .blog-layout { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .primary-nav.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem; box-shadow: var(--shadow); gap: .25rem; }
  .grid-2, .grid-3, .grid-4, .post-grid { grid-template-columns: 1fr; }
  .search-box { flex-direction: column; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .cta-banner .btn-group { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero { padding: 4rem 0 3.5rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
}

/* ===== CONTACT FORM ===== */
.form-control option[disabled] { color: var(--text-muted); }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary span { transform: rotate(180deg); }

/* ===== FEATURED ARTICLE RESPONSIVE ===== */
.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 768px) {
  .featured-article {
    grid-template-columns: 1fr;
  }
  .featured-article-img {
    min-height: 220px !important;
  }
  .featured-article-body {
    padding: 2rem 1.5rem;
  }
}

/* ===== CONTACT PAGE GRID ===== */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}
