/* ==========================================================================
   Casanova Plumbing - Styles
   Brand Colors:
   - Primary Blue: #2143B8
   - Accent Blue: #1A73E8
   - Light Background Grey: #F0F4F8
   - Text Dark Grey: #333333
   - White: #FFFFFF
   Color Distribution: 6:3:1 (Primary/Accent : Text : Backgrounds)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Variables)
   -------------------------------------------------------------------------- */
:root {
    --primary-blue: #2143B8;
    --accent-blue: #1A73E8;
    --light-bg-grey: #F0F4F8;
    --text-dark-grey: #333333;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-base: 0.3s ease;
    --border-radius: 6px;
    --border-radius-lg: 12px;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark-grey);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark-grey);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-dark-grey);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primary-blue);
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.section-grey {
    background-color: var(--light-bg-grey);
}

/* --------------------------------------------------------------------------
   [MICRO-INTERACTION] Custom Scrollbar Styling
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) var(--light-bg-grey);
}

/* --------------------------------------------------------------------------
   Navigation Bar
   -------------------------------------------------------------------------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo img {
    height: 50px;
    width: auto;
}

.navbar-nav {
    display: none;
    list-style: none;
    gap: 2rem;
}

.navbar-nav li a {
    color: var(--text-dark-grey);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-base);
}

/* [MICRO-INTERACTION] Nav link underline animation on hover */
.navbar-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: width var(--transition-base);
}

.navbar-nav li a:hover {
    color: var(--accent-blue);
}

.navbar-nav li a:hover::after {
    width: 100%;
}

/* Mobile hamburger */
.navbar-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.navbar-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark-grey);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* [MICRO-INTERACTION] Hamburger rotates to X on open */
.navbar-toggle.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-base);
    z-index: 999;
    padding: 5rem 2rem 2rem;
}

.mobile-menu.active {
    right: 0;
}

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

.mobile-menu ul li {
    margin-bottom: 1.5rem;
}

.mobile-menu ul li a {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark-grey);
}

.mobile-menu ul li a:hover {
    color: var(--accent-blue);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 998;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Desktop nav */
@media (min-width: 768px) {
    .navbar-nav {
        display: flex;
    }
    
    .navbar-toggle {
        display: none;
    }
    
    .mobile-menu,
    .mobile-overlay {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--primary-blue);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* [MICRO-INTERACTION] Subtle parallax effect on scroll */
@media (min-width: 768px) {
    .hero-background {
        background-attachment: fixed;
    }
}

/* Prefers-reduced-motion fallback */
@media (prefers-reduced-motion: reduce) {
    .hero-background {
        background-attachment: scroll;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 67, 184, 0.85) 0%, rgba(26, 115, 232, 0.75) 100%);
    z-index: 2;
}

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

.hero-content h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 0.875rem;
    backdrop-filter: blur(5px);
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content p {
        font-size: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   [MICRO-INTERACTION] Primary CTA Button with Pulse & Hover Effects
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

/* [MICRO-INTERACTION] CTA pulse animation on load */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(33, 67, 184, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(33, 67, 184, 0);
    }
}

.btn-primary.pulse {
    animation: pulse 2s infinite;
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary.pulse {
        animation: none;
    }
}

/* [MICRO-INTERACTION] Smooth scale-up/down on hover */
.btn-primary:hover {
    background-color: #1a3599;
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0) scale(1);
}

.btn-primary:focus {
    outline: 3px solid var(--accent-blue);
    outline-offset: 2px;
}

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

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

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

.btn-white:hover {
    background-color: var(--light-bg-grey);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Services Section - Card Layout
   -------------------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

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

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

/* [MICRO-INTERACTION] Card lift and shadow effect on hover */
.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.service-card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-base);
}

/* [MICRO-INTERACTION] Subtle icon animation on hover */
.service-card:hover .service-card-icon img {
    transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
    .service-card:hover .service-card-icon img {
        transform: none;
    }
}

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-dark-grey);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

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

.about-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-content h2 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.about-content ul {
    list-style: none;
    margin: 1.5rem 0;
}

.about-content ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.about-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

/* --------------------------------------------------------------------------
   Process Section
   -------------------------------------------------------------------------- */
.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

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

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

/* [MICRO-INTERACTION] Fade-in animation on scroll */
.process-step {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .process-step {
        opacity: 1;
        transform: none;
    }
}

.process-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 1rem;
}

.process-step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.process-step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.process-step h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.process-step p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Testimonials Section
   -------------------------------------------------------------------------- */
.testimonials-container {
    position: relative;
    overflow: hidden;
}

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

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

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

/* [MICRO-INTERACTION] Testimonial card hover effect */
.testimonial-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border-left: 4px solid var(--primary-blue);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-dark-grey);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-blue);
}

/* --------------------------------------------------------------------------
   Trust Badges Section
   -------------------------------------------------------------------------- */
.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

.trust-badge {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.trust-badge:hover {
    box-shadow: var(--shadow-md);
}

.trust-badge-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.trust-badge-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.trust-badge h4 {
    color: var(--primary-blue);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.trust-badge p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Blog Preview Section
   -------------------------------------------------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

/* [MICRO-INTERACTION] Blog card lift effect */
.blog-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.blog-card-image {
    height: 200px;
    background-color: var(--light-bg-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.blog-card-content h3 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.blog-card-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-card-content a {
    color: var(--accent-blue);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Contact Form Section
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

.contact-info h2 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-blue);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-base);
}

/* [MICRO-INTERACTION] Input focus border color change */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

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

/* [MICRO-INTERACTION] Water droplet success animation */
@keyframes waterDrop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
}

.form-success.visible {
    display: block;
}

.form-success-icon {
    width: 80px;
    height: 80px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: waterDrop 0.5s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
    .form-success-icon {
        animation: none;
    }
}

.form-success-icon svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--text-dark-grey);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

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

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

.footer-logo img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-base);
}

.footer-links ul li a:hover {
    color: var(--white);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   [MICRO-INTERACTION] Gradient Text Highlight on Headings
   -------------------------------------------------------------------------- */
.gradient-heading {
    display: inline-block;
    position: relative;
    transition: all var(--transition-base);
}

.gradient-heading:hover {
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (prefers-reduced-motion: reduce) {
    .gradient-heading:hover {
        background: none;
        -webkit-text-fill-color: var(--primary-blue);
    }
}

/* --------------------------------------------------------------------------
   [MICRO-INTERACTION] Faint Blueprint/Water Pattern Overlay
   -------------------------------------------------------------------------- */
.pattern-overlay {
    position: relative;
}

.pattern-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(33, 67, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 67, 184, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
}

.pattern-overlay > * {
    position: relative;
    z-index: 2;
}

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-dark-grey);
    font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-primary { color: var(--primary-blue); }
.text-white { color: var(--white); }
.bg-primary { background-color: var(--primary-blue); }
.bg-grey { background-color: var(--light-bg-grey); }
.bg-white { background-color: var(--white); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* --------------------------------------------------------------------------
   Lazy Load Images
   -------------------------------------------------------------------------- */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Accessibility - Focus Styles
   -------------------------------------------------------------------------- */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* --------------------------------------------------------------------------
   Responsive Typography
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero {
        min-height: 70vh;
    }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
    .navbar,
    .mobile-menu,
    .mobile-overlay,
    .btn {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
