/*
Theme Name: RPM Water Equity Solutions
Theme URI: https://rpmwes.com
Author: RPM Water Equity Solutions
Author URI: https://rpmwes.com
Description: A premium WordPress theme for RPM Water Equity Solutions - Water Credit Specialists. Features a modern, professional design with navy blue and accent colors, glassmorphism effects, and optimized for conversions.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rpm-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, one-column, two-columns, block-styles, wide-blocks

RPM Water Equity Solutions Theme, (C) 2025 RPM Water Equity Solutions
*/

/* ========================================
   CSS VARIABLES - DESIGN SYSTEM
   ======================================== */

:root {
    --primary-dark: #0a1628;
    --primary: #0f2847;
    --primary-light: #1e4976;
    --accent: #60a5fa;
    --accent-light: #93c5fd;
    --accent-glow: rgba(96, 165, 250, 0.3);
    --gold: #f0b429;
    --cream: #f8fafc;
    --charcoal: #1a1a1a;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --success: #22c55e;
    --success-dark: #16a34a;
    --warning: #f59e0b;
    --danger: #ef4444;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 50px;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0;
    color: var(--charcoal);
}

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

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.col {
    flex: 1;
    padding: 0 0.75rem;
}

/* Grid columns */
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem; }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 0.75rem; }

@media (min-width: 576px) {
    .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-lg-5 { flex: 0 0 41.666%; max-width: 41.666%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-7 { flex: 0 0 58.333%; max-width: 58.333%; }
    .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
    .col-lg-10 { flex: 0 0 83.333%; max-width: 83.333%; }
}

.g-3 { gap: 1rem; }
.g-4 { gap: 1.5rem; }
.g-5 { gap: 2rem; }

.text-center { text-align: center; }
.text-md-end { text-align: right; }

.align-items-center { align-items: center; }

/* Navigation styles are in header.php as inline CSS */

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--primary-dark);
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.9) 0%, rgba(15, 40, 71, 0.7) 50%, rgba(30, 73, 118, 0.6) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(96, 165, 250, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(147, 197, 253, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.5rem;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-eyebrow .dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7); }
    50% { opacity: 0.8; box-shadow: 0 0 0 10px rgba(96, 165, 250, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    max-width: 550px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

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

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    border: none;
    transition: all var(--transition-slow);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 100%);
    color: var(--primary-dark);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 60px var(--accent-glow);
    color: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: var(--white);
    box-shadow: 0 10px 40px rgba(34, 197, 94, 0.35);
}

.btn-success:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 60px rgba(34, 197, 94, 0.45);
    color: var(--white);
}

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

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

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: 5rem 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 4rem;
    }
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 700px;
    margin: 0 auto;
}

/* Background variations */
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-dark { background: var(--primary-dark); color: var(--white); }
.bg-gradient-dark { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color: var(--white); }
.bg-gradient-green { background: linear-gradient(135deg, #065f46 0%, #047857 100%); color: var(--white); }

/* ========================================
   VALUE CARDS
   ======================================== */

.value-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--cream);
    border-radius: var(--radius-xl);
    height: 100%;
    transition: all var(--transition-slow);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.value-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-card-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--white);
    fill: none;
}

.value-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.value-card-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 0% 100%, rgba(96, 165, 250, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%, rgba(147, 197, 253, 0.15) 0%, transparent 50%);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    position: relative;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--white) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

/* ========================================
   INDUSTRY CARDS
   ======================================== */

.industry-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 350px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.industry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.industry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.industry-card:hover img {
    transform: scale(1.1);
}

.industry-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 22, 40, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    transition: all 0.5s ease;
}

.industry-card:hover .industry-card-overlay {
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.2) 0%, rgba(10, 22, 40, 0.95) 100%);
}

.industry-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.industry-card-title a {
    color: inherit;
    text-decoration: none;
}

/* ========================================
   CLIENT LOGOS
   ======================================== */

.clients-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.clients-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--charcoal);
    text-align: center;
    margin-bottom: 3rem;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.client-logo {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition-slow);
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
    padding: 8rem 0;
    background: var(--white);
}

.contact-info-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.2) 0%, transparent 70%);
}

.contact-info-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2rem;
    position: relative;
}

.contact-info-item {
    margin-bottom: 2rem;
    position: relative;
}

.contact-info-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.contact-info-value {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.contact-info-value a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-normal);
}

.contact-info-value a:hover {
    color: var(--accent);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(15, 40, 71, 0.08);
}

.contact-form-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 2rem;
}

.form-control {
    width: 100%;
    font-family: var(--font-body);
    padding: 1rem 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-normal);
    background: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 40, 71, 0.1);
    background: var(--white);
}

.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    min-height: 150px;
    resize: none;
}

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

.btn-submit {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-slow);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(15, 40, 71, 0.3);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    padding: 4rem 0 2rem;
    background: var(--charcoal);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

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

.footer-brand {
    grid-column: span 2;
}

@media (min-width: 768px) {
    .footer-brand {
        grid-column: span 1;
    }
}

.footer-brand img {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
    filter: brightness(1.8) drop-shadow(0 0 15px rgba(96, 165, 250, 0.5));
}

.footer-brand p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-normal);
}

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

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-cta:hover {
    color: var(--accent-light);
}

/* ========================================
   WORDPRESS SPECIFIC
   ======================================== */

/* Posts & Pages */
.site-main {
    padding-top: 100px;
}

.entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.entry-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.entry-meta {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

/* Comments */
.comments-area {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    background: #ffffff;
    border-radius: var(--radius-2xl);
    box-shadow: 0 18px 45px rgba(15, 40, 71, 0.1);
    border: 1px solid rgba(15, 40, 71, 0.08);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.comment {
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid rgba(15, 40, 71, 0.08);
}

.comment-body {
    position: relative;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.comment-author .avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 2px solid rgba(15, 40, 71, 0.12);
}

.comment-author .fn {
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--charcoal);
    font-style: normal;
}

.comment-author .says {
    display: none;
}

.comment-metadata {
    margin-bottom: 0.85rem;
}

.comment-metadata a,
.comment-metadata time {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--gray-500);
    text-decoration: none;
}

.comment-content {
    font-family: var(--font-body);
    font-size: 0.98rem;
    line-height: 1.7;
    color: #334155;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    margin-top: 0.85rem;
}

.reply a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.reply a:hover {
    color: var(--primary-light);
}

.comment-list .children {
    list-style: none;
    margin: 1rem 0 0 0;
    padding-left: 1.25rem;
    border-left: 2px solid rgba(15, 40, 71, 0.12);
}

.comment.bypostauthor {
    border-color: rgba(96, 165, 250, 0.45);
    background: #f0f7ff;
}

.comment-respond {
    margin-top: 2rem;
}

.comment-reply-title,
.comments-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    color: var(--charcoal);
    margin: 0 0 1rem;
}

.comment-notes,
.logged-in-as,
.comment-form-cookies-consent {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    margin-bottom: 0.45rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--charcoal);
}

.comment-form-comment,
.comment-form-cookies-consent,
.form-submit {
    grid-column: 1 / -1;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.4;
    padding: 0.9rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: #fafafa;
    transition: all var(--transition-normal);
}

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

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 40, 71, 0.1);
    background: #ffffff;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 0.2rem;
}

.comment-form .submit {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.comment-form .submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 40, 71, 0.25);
}

@media (max-width: 640px) {
    .comments-area {
        padding: 2rem 1rem;
    }

    .comment-form {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .comment-author .avatar {
        width: 38px;
        height: 38px;
    }

    .comment-list .children {
        padding-left: 0.85rem;
    }
}

/* Widgets */
.widget {
    margin-bottom: 2rem;
}

.widget-title,
.widget > h2,
.widget > h3,
.sidebar-widgets > section h2,
.sidebar-widgets > section h3,
aside.blog-sidebar h2,
aside.blog-sidebar h3 {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin: 0 0 1rem 0 !important;
    color: #374151 !important;
}

.widget ul,
.sidebar-widgets ul,
.blog-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li,
.sidebar-widgets ul li,
.blog-sidebar ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.widget ul li:last-child,
.sidebar-widgets ul li:last-child {
    border-bottom: none;
}

.widget ul li a,
.sidebar-widgets ul li a,
aside.blog-sidebar ul li a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget ul li a:hover,
.sidebar-widgets ul li a:hover,
aside.blog-sidebar ul li a:hover {
    color: #0f2847;
}

/* Search widget */
.widget_search,
.wp-block-search {
    display: block;
}

.widget_search label,
.wp-block-search__label {
    display: block;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 0.75rem !important;
    color: #374151 !important;
}

.widget_search .search-form,
.wp-block-search__inside-wrapper {
    display: flex;
    gap: 0.5rem;
}

.widget_search .search-field,
.wp-block-search__input {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 0;
}

.widget_search .search-submit,
.wp-block-search__button {
    padding: 0.6rem 1rem;
    background: #0f2847;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.widget_search .search-submit:hover,
.wp-block-search__button:hover {
    background: #1e4976;
}

/* Recent Comments widget - remove indentation */
.widget_recent_comments ul,
.wp-block-latest-comments {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.widget_recent_comments ul li,
.wp-block-latest-comments__comment {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.widget_recent_comments .recentcomments {
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-indent: 0 !important;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

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

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

.aligncenter {
    display: block;
    margin: 0 auto 1.5rem;
}

/* Accessibility */
.skip-link {
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    left: 50%;
    padding: 0.75rem 1.5rem;
    position: absolute;
    transform: translateY(-100%) translateX(-50%);
    transition: transform var(--transition-normal);
    z-index: 999;
}

.skip-link:focus {
    transform: translateY(0%) translateX(-50%);
}

/* Block Editor */
.wp-block-button__link {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    transition: all var(--transition-normal);
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 40, 71, 0.3);
    color: var(--white);
}
