/*
Theme Name: Gem State AVS Theme
Theme URI: https://gemstateavs.com
Author: Gem State AVS
Author URI: https://gemstateavs.com
Description: Premium WordPress theme for Gem State AVS - Idaho's premier audio visual and smart home solutions provider. Dark tech aesthetic with electric blue accents.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gemstate-avs
Tags: dark-mode, custom-menu, featured-images, custom-logo, responsive
*/

/* ============================================
    CSS RESET & BASE STYLES
    ============================================ */

/* --------------------------------------------------------------------------
     Fix: services section overflow on small screens
     - ensure service cards and images don't force horizontal scroll
     - collapse services grid to a single column on narrow viewports
 -------------------------------------------------------------------------- */
html, body {
    overflow-x: hidden;
}

.services-grid,
.service-cards,
.service-list {
    overflow-x: hidden;
}

.service-card,
.services-grid .card,
.service-item {
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.service-card img,
.service-item img,
.services-grid img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .service-card .card-content,
    .service-item .content {
        padding-left: 0;
        padding-right: 0;
    }
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color System */
    --background: hsl(222, 47%, 6%);
    --foreground: hsl(210, 40%, 98%);
    --card: hsl(222, 47%, 8%);
    --card-foreground: hsl(210, 40%, 98%);
    --primary: hsl(210, 100%, 52%);
    --primary-foreground: hsl(222, 47%, 6%);
    --secondary: hsl(222, 30%, 14%);
    --secondary-foreground: hsl(210, 40%, 98%);
    --muted: hsl(222, 30%, 12%);
    --muted-foreground: hsl(215, 20%, 55%);
    --accent: hsl(210, 100%, 52%);
    --border: hsl(222, 30%, 18%);
    --destructive: hsl(0, 84%, 60%);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(210, 100%, 52%) 0%, hsl(190, 100%, 45%) 100%);
    --gradient-card: linear-gradient(145deg, hsl(222, 47%, 10%) 0%, hsl(222, 47%, 7%) 100%);
    
    /* Shadows */
    --shadow-card: 0 4px 24px -4px hsla(0, 0%, 0%, 0.5);
    --shadow-elevated: 0 8px 32px -8px hsla(0, 0%, 0%, 0.6);
    --glow-primary: 0 0 40px hsla(210, 100%, 52%, 0.3);
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    
    /* Spacing */
    --radius: 0.75rem;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--muted-foreground);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: hsl(210, 100%, 60%);
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container { padding: 0 2rem; }
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass {
    background: hsla(222, 47%, 8%, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid hsla(222, 30%, 18%, 0.5);
}

.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;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px hsla(210, 100%, 52%, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--secondary);
    border-color: var(--primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-full { width: 100%; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: hsla(222, 47%, 6%, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-elevated);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo img {
    height: 3.5rem;
    width: auto;
}

.site-logo span {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
}

/* Logo Animation */
.logo-icon {
    display: flex;
    align-items: center;
    gap: 2px;
}

.frequency-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 24px;
}

.frequency-bars .bar {
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
    animation: frequency 1s ease-in-out infinite;
}

.frequency-bars .bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.frequency-bars .bar:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.frequency-bars .bar:nth-child(3) { height: 24px; animation-delay: 0.2s; }
.frequency-bars .bar:nth-child(4) { height: 16px; animation-delay: 0.3s; }
.frequency-bars .bar:nth-child(5) { height: 8px; animation-delay: 0.4s; }

@keyframes frequency {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

/* Main Navigation */
.main-nav {
    display: none;
}

@media (min-width: 1024px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
    color: var(--primary);
}

/* Dropdown Menu */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children > a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 0.25rem;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-elevated);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    display: block;
}

.sub-menu a {
    display: block;
    padding: 0.5rem 1rem;
}

.sub-menu a:hover {
    background: hsla(210, 100%, 52%, 0.1);
}

/* Header CTA */
.header-cta {
    display: none;
}

@media (min-width: 1024px) {
    .header-cta {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.hamburger {
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--foreground);
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--foreground);
    transition: all 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 1rem;
}

.mobile-nav.active {
    display: block;
}

@media (min-width: 1024px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav a {
    display: block;
    padding: 0.75rem 0;
    font-weight: 500;
    color: var(--muted-foreground);
    border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover {
    color: var(--primary);
}

.mobile-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    margin-top: 0.5rem;
    border-left: 2px solid var(--border);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 8rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        hsla(222, 47%, 6%, 0.3) 0%,
        hsla(222, 47%, 6%, 0.5) 50%,
        hsla(222, 47%, 6%, 1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 48rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 3rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: hsla(210, 100%, 52%, 0.5);
    box-shadow: 0 0 40px hsla(210, 100%, 52%, 0.1);
}

.card-content {
    padding: 1.5rem;
}

.card-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsla(210, 100%, 52%, 0.1);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.card-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.card-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0;
}

/* ============================================
   SOLUTIONS GRID
   ============================================ */
.solutions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .solutions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.solution-card {
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.solution-card:hover .card-title {
    color: var(--primary);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
    background: var(--card);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: hsla(210, 100%, 52%, 0.05);
    border-radius: 50%;
    filter: blur(200px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    position: relative;
}

.testimonial-quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2rem;
    height: 2rem;
    color: hsla(210, 100%, 52%, 0.2);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-stars svg {
    width: 1rem;
    height: 1rem;
    fill: var(--primary);
    color: var(--primary);
}

.testimonial-text {
    color: var(--foreground);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid hsla(222, 30%, 18%, 0.5);
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.testimonial-location {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.testimonial-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    padding: 0.25rem 0.75rem;
    background: hsla(210, 100%, 52%, 0.1);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
}

/* ============================================
   LEAD CAPTURE / CTA SECTION
   ============================================ */
.lead-section {
    position: relative;
    overflow: hidden;
}

.lead-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: hsla(210, 100%, 52%, 0.1);
    border-radius: 50%;
    filter: blur(200px);
}

.lead-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .lead-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.lead-content {
    position: relative;
    z-index: 10;
}

.lead-title {
    margin-bottom: 1.5rem;
}

.lead-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.trust-indicators {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: hsla(222, 47%, 8%, 0.5);
    border: 1px solid hsla(222, 30%, 18%, 0.5);
    border-radius: 0.5rem;
}

.trust-icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}

.trust-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
}

.trust-subtitle {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: hsla(222, 47%, 8%, 0.5);
    border: 1px solid hsla(222, 30%, 18%, 0.5);
    border-radius: 0.5rem;
}

.info-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsla(210, 100%, 52%, 0.2);
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.info-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
}

/* ============================================
   FORMS
   ============================================ */
.form-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-elevated);
    padding: 2rem;
}

.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: hsla(210, 100%, 52%, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1rem;
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    color: var(--foreground);
    background: hsla(222, 47%, 6%, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsla(210, 100%, 52%, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--muted-foreground);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.form-checkbox input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    accent-color: var(--primary);
}

.form-checkbox label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

.form-checkbox a {
    color: var(--primary);
}

.form-note {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-align: center;
    margin-top: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #0B101E;
    border-top: 1px solid var(--border);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .site-logo {
    margin-bottom: 1.25rem;
}

.footer-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border-radius: 0.5rem;
    color: var(--muted-foreground);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: hsla(210, 100%, 52%, 0.1);
    color: var(--primary);
}

.social-link svg {
    width: 1rem;
    height: 1rem;
}

.footer-column h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary);
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.trust-badge {
    padding: 0.25rem 0.5rem;
    background: var(--secondary);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--foreground);
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact svg {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
    flex-shrink: 0;
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-links a:hover {
    color: var(--primary);
}

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
    padding: 8rem 0 4rem;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.page-hero-title {
    margin-bottom: 1rem;
}

.page-hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
    padding: 5rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.content-image {
    border-radius: var(--radius);
    overflow: hidden;
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   404 PAGE
   ============================================ */
.error-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 0;
}

.error-content {
    max-width: 32rem;
}

.error-icon {
    margin-bottom: 2rem;
    color: var(--primary);
}

.error-title {
    margin-bottom: 1rem;
}

.error-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.quick-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.quick-links a {
    padding: 0.5rem 1rem;
    background: var(--secondary);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: all 0.3s ease;
}

.quick-links a:hover {
    background: hsla(210, 100%, 52%, 0.1);
    color: var(--primary);
}

/* ============================================
   BLOG STYLES
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    overflow: hidden;
}

.blog-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.blog-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.blog-date {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.blog-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

/* Single Post */
.single-post {
    padding: 8rem 0 4rem;
}

.post-header {
    max-width: 48rem;
    margin: 0 auto 3rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.back-link:hover {
    color: var(--primary);
}

.post-title {
    margin-bottom: 1rem;
}

.post-excerpt {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.post-featured-image {
    max-width: 64rem;
    margin: 0 auto 3rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    max-width: 48rem;
    margin: 0 auto;
}

.post-content h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
}

.post-content h3 {
    font-size: 1.375rem;
    margin: 2rem 0 0.75rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.5rem 1.5rem;
    color: var(--muted-foreground);
}

.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--card);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.post-content blockquote p {
    font-style: italic;
    font-size: 1.125rem;
    color: var(--foreground);
    margin: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: var(--glow-primary); }
    50% { box-shadow: 0 0 60px hsla(210, 100%, 52%, 0.5); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.wp-block-image {
    margin: 2rem 0;
}

.wp-block-image img {
    border-radius: var(--radius);
}

.wp-block-gallery {
    display: grid;
    gap: 1rem;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin: 2rem auto;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 639px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .hide-tablet { display: none !important; }
}

@media (min-width: 1024px) {
    .hide-desktop { display: none !important; }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--muted-foreground);
}