/* ===========================
   CSS Variables & Themes
   =========================== */
:root {
    /* Brand Colors */
    --yellow:        #F5C500;
    --yellow-dark:   #D4A800;
    --yellow-light:  #FFF3B0;
    --black:         #0d0d0d;
    --black-mid:     #1a1a1a;
    --black-soft:    #2a2a2a;
    --white:         #FFFBEA;
    --gray:          #888888;
    --gray-light:    #FFF3B0;

    /* Remapped to site variable names */
    --bg-primary:       #FFFBEA;
    --bg-secondary:     #FFF3B0;
    --bg-tertiary:      #FFF3B0;
    --text-primary:     #0d0d0d;
    --text-secondary:   #555555;
    --border-color:     #e0e0e0;
    --border-accent:    #D4A800;
    --accent-primary:   #F5C500;
    --accent-hover:     #D4A800;
    --accent-light:     #FFF3B0;
    --accent-text:      #0d0d0d;
    --shadow:           rgba(245, 197, 0, 0.25);
    --shadow-light:     rgba(245, 197, 0, 0.12);
    --header-bg:        #0d0d0d;
    --header-shadow:    0 2px 20px rgba(0, 0, 0, 0.4);
}

/* ===========================
   Reset & Base
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: background 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

/* FIX: Accessibility - Screen reader only class (sr-only) */
.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;
}

/* FIX: Accessibility - Skip to content link styles */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--yellow);
    color: var(--black);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    z-index: 10000;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--yellow-dark);
    outline-offset: 2px;
}

/* ===========================
   Welcome Screen
   =========================== */
.welcome-page {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.welcome-page.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: welcomeFadeIn 1s ease forwards;
}

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

.welcome-logo {
    font-size: clamp(48px, 10vw, 80px);
    font-weight: 800;
    color: var(--yellow);
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.welcome-tagline {
    font-size: clamp(16px, 3vw, 22px);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
}

.welcome-btn {
    background: var(--yellow);
    color: var(--black);
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* FIX: Accessibility - Focus styles for all interactive elements */
*:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
}

.welcome-btn:hover {
    background: var(--yellow-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.welcome-btn:active {
    transform: translateY(0) scale(0.98);
}

/* ===========================
   Header & Navigation
   =========================== */
header {
    background: var(--header-bg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: none;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

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

/* Logo Row */
.header-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    width: 100%;
    padding: 10px 0;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: white;
    letter-spacing: 3px;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
}

.logo:hover,
.logo:focus {
    color: var(--yellow);
}

.logo-text {
    color: var(--yellow);
}

/* Nav Row */
.header-nav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 3px solid var(--yellow);
    position: relative;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    list-style: none;
}

.nav-links li {
    display: flex;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--yellow);
    background: rgba(245, 197, 0, 0.08);
}

.nav-links a:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}

.nav-links a.active {
    color: var(--yellow);
    background: rgba(245, 197, 0, 0.12);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* FIX: Accessibility - Hamburger focus style */
.menu-toggle:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
    border-radius: 4px;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
}

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

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    bottom: -7px;
}

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

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

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

/* ===========================
   Hero Section
   =========================== */
.hero {
    background: var(--black);
    color: white;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-left: 0;
    padding-right: 0;
    padding-top: 4rem;
    padding-bottom: 4rem;
    box-sizing: border-box;
    transition: background 0.4s ease;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 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' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%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");
    opacity: 0.5;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.1) 100%);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
    text-align: center;
    width: 100%;
}

.hero h1 span {
    color: var(--yellow);
}

.hero p {
    font-size: clamp(15px, 2vw, 18px);
    max-width: 600px;
    opacity: 0.65;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    margin: 0 auto;
}

/* ===========================
   Main Content
   =========================== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.page-section {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    padding: 0;
    margin: 0;
    max-width: none;
    width: 100%;
}

.page-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Section Titles */
.section-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--yellow);
    border-radius: 2px;
}

/* ===========================
   Grid Layout
   =========================== */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* ===========================
   Portfolio Items
   =========================== */
.portfolio-item {
    display: block;
    aspect-ratio: 4/3;
    background: var(--black-soft);
    border: 1px solid rgba(245, 197, 0, 0.15);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    background-size: cover;
    background-position: center;
    text-decoration: none;
}

/* FIX: Accessibility - Focus style for portfolio items */
.portfolio-item:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    opacity: 1;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover {
    transform: scale(1.02);
    border-color: var(--yellow);
    box-shadow: 0 16px 40px var(--shadow);
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
    z-index: 1;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-overlay p {
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Default state text */
.portfolio-item > p {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    font-size: 14px;
    font-weight: 600;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.portfolio-item:hover > p {
    opacity: 0;
}

/* ===========================
   Service Detail (alias: service-card)
   =========================== */
.service-detail,
.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-detail::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: var(--yellow);
    transition: height 0.35s ease;
    z-index: 0;
}

.service-detail:hover::before {
    height: 100%;
}

.service-detail > * {
    position: relative;
    z-index: 1;
}

.service-detail:hover,
.service-card:hover {
    border-color: var(--yellow);
    box-shadow: 0 8px 30px var(--shadow-light);
}

.service-detail:hover h2,
.service-detail:hover p,
.service-card:hover h3,
.service-card:hover p {
    color: var(--black);
}

.service-detail:hover,
.service-card:hover {
    color: var(--black);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--yellow);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px var(--shadow);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--black);
}

.service-detail p,
.service-card p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.service-detail h2,
.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-detail ul,
.service-card ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    list-style: none;
}

.service-detail li,
.service-card li {
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.service-detail li:hover,
.service-card li:hover {
    border-color: var(--yellow);
    background: var(--yellow-light);
}

/* ===========================
   Blog
   =========================== */
.blog-post {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--shadow-light);
    border-color: var(--yellow);
}

.blog-image {
    width: 100%;
    height: 220px;
    background: var(--black-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow);
    font-size: 14px;
    transition: background 0.4s ease;
}

.blog-content {
    padding: 2rem;
}

.blog-date {
    font-size: 13px;
    color: var(--yellow);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-post h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-post p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--yellow);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.read-more-link:hover {
    color: var(--yellow-dark);
    gap: 0.75rem;
}

/* ===========================
   Contact
   =========================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.contact-form:hover {
    border-color: var(--yellow);
    box-shadow: 0 8px 30px var(--shadow-light);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1.5px solid #d0d0d0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

/* FIX: Accessibility - Input focus styles */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(245, 197, 0, 0.15);
}

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

.contact-form button {
    width: 100%;
    padding: 1rem;
    background: var(--yellow);
    color: var(--black);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form button:hover {
    background: var(--yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 197, 0, 0.4);
}

.contact-info {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.contact-info:hover {
    border-color: var(--yellow);
    box-shadow: 0 8px 30px var(--shadow-light);
}

/* FIX: SEO - Changed contact-info h3 to h2 for proper heading hierarchy */
.contact-info h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.contact-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.contact-info h2::after,
.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--yellow);
    border-radius: 2px;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 15px;
    line-height: 1.6;
}

.contact-info strong {
    color: var(--yellow);
}

/* FIX: Accessibility - Address styling */
address {
    font-style: normal;
}

/* ===========================
   Footer
   =========================== */
footer {
    background: var(--header-bg);
    color: rgba(255, 255, 255, 0.75);
    margin-top: 4rem;
    transition: background 0.4s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: white;
}

.footer-col {
    padding-left: 2rem;
}

.footer-col:first-child {
    padding-left: 0;
    border-left: none;
}

.footer-col:not(:first-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

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

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

.footer-col ul a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

/* FIX: Accessibility - Footer link focus styles */
.footer-col ul a:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}

.footer-col ul a:hover {
    color: var(--yellow);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-col:first-child {
        grid-column: span 2;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        position: fixed;
    }

    .header-logo-row {
        height: 50px;
        padding: 0 3.5rem 0 1rem;
    }

    .logo {
        font-size: 22px;
    }

    .header-nav-row {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg);
        padding: 1rem;
        border-top: 1px solid rgba(245, 197, 0, 0.2);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .header-nav-row.open {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.25rem;
        width: 100%;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }

    .hero {
        min-height: 280px;
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 28px;
    }

    main {
        padding: 2rem 1rem;
    }

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

    .portfolio-item {
        aspect-ratio: 16/9;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 1.5rem;
    }

    .service-detail,
    .service-card {
        padding: 2rem;
    }

    .service-detail ul,
    .service-card ul {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .footer-col:first-child {
        grid-column: auto;
    }

    .blog-image {
        height: 180px;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .welcome-logo {
        font-size: 42px;
    }

    .welcome-tagline {
        font-size: 14px;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 240px;
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .portfolio-overlay p {
        font-size: 14px;
    }

    .service-detail,
    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 56px;
        height: 56px;
    }

    .service-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* === Media Additions === */

/* Hero image */
.hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 4rem;
    padding-bottom: 4rem;
    box-sizing: border-box;
}
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.hero-text {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
    text-align: center;
}

/* Portfolio images */
.portfolio-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    transition: transform 0.4s ease;
}
.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}
.portfolio-overlay {
    z-index: 2;
}

/* Service card images */
.service-card-img-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}
.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}
.service-card:hover .service-card-img {
    transform: scale(1.05);
}

/* Blog images */
.blog-post-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Letterhead */
.letterhead-img {
    display: block;
    max-width: 350px;
    width: 100%;
    margin: 0 auto 2rem auto;
}

/* Hero with background image */
.hero-with-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Portfolio item image support */
.portfolio-item {
    background-color: var(--black-soft);
}

/* Service detail with background image */
.service-detail-with-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.service-detail-with-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-secondary);
    border-radius: 16px;
    z-index: 0;
    opacity: 0.92;
}

.service-detail-with-bg > * {
    position: relative;
    z-index: 1;
}

/* Footer letterhead */
.footer-letterhead {
    max-width: 280px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-letterhead:hover {
    opacity: 1;
}

/* ===========================
   Form Success Message
   =========================== */
.form-success {
    background: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

/* FIX: Accessibility - High contrast focus indicator (global override for yellow focus) */
@media (forced-colors: active) {
    *:focus-visible {
        outline: 3px solid canvasText;
        outline-offset: 2px;
    }
}
