/* 
   MJS & YOUNGS LTD
   Professional Accountancy Website Styles (Light Theme)
*/

:root {
    /* Color Palette */
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    /* Very light grey/blue for alternating sections */
    --bg-card: #ffffff;

    --text-heading: #1e293b;
    /* Deep slate for headings */
    --text-main: #334155;
    /* Standard text */
    --text-muted: #64748b;
    /* Muted text */

    --accent-primary: #1e3a8a;
    /* Trustworthy deep royal blue */
    --accent-secondary: #f59e0b;
    /* Professional gold/amber for highlights */
    --accent-glow: rgba(30, 58, 138, 0.08);
    /* Soft blue shadow */

    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Spacing & Transitions */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    --box-shadow-hover: 0 15px 40px rgba(15, 23, 42, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography elements */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--text-heading);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
}

.gold-text {
    color: var(--accent-secondary);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-secondary);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    font-family: var(--font-sans);
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #2563eb);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.2);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.15);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    color: var(--accent-primary);
}

.logo span {
    color: var(--accent-secondary);
    font-family: var(--font-sans);
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-heading);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-secondary);
    left: 0;
    bottom: -5px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Content Spacing */
.section {
    padding: 6rem 0;
}

/* Base Light Background Sections */
.bg-light {
    background-color: var(--bg-main);
}

/* Alt Gray Background Sections for contrast */
.bg-alt {
    background-color: var(--bg-alt);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
    background-color: var(--bg-alt);
    /* Light gray behind hero */
}

.hero::before {
    /* Add a subtle pattern to hero background */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--accent-primary) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.03;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.hero h1 span {
    color: var(--accent-secondary);
    font-style: italic;
}

.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    color: var(--text-main);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* Abstract Background Shapes (Lightened) */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #e0e7ff;
    /* super light blue */
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: #ffedd5;
    /* super light gold/orange */
    bottom: -200px;
    left: -150px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #dbeafe;
    top: 30%;
    left: 30%;
    opacity: 0.5;
    animation-duration: 25s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.5rem;
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--accent-secondary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Image Card / Abstract Graphic */
.glass-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    box-shadow: var(--box-shadow);
}

/* Dynamic Graphic Card */
.dynamic-graphic {
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(30, 58, 138, 0.05) 100%);
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.dg-bg-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

.dg-grid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background-image: linear-gradient(rgba(30, 58, 138, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 138, 0.08) 1px, transparent 1px);
    background-size: 25px 25px;
    transform: perspective(500px) rotateX(60deg) translateY(50px) scale(2);
    transform-origin: bottom center;
    opacity: 0.8;
}

.dg-chart {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    height: 180px;
    z-index: 2;
    position: relative;
    margin-bottom: 2rem;
}

.dg-chart .bar {
    width: 40px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--accent-primary) 0%, rgba(30, 58, 138, 0.7) 100%);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.25);
    animation: growBar 3s ease-in-out infinite alternate;
    transform-origin: bottom;
    position: relative;
}

.dg-chart .bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px 8px 0 0;
}

.bar-1 {
    height: 40%;
    animation-delay: 0s !important;
}

.bar-2 {
    height: 60%;
    animation-delay: 0.5s !important;
    background: linear-gradient(180deg, #3b82f6 0%, rgba(59, 130, 246, 0.7) 100%) !important;
}

.bar-3 {
    height: 85%;
    animation-delay: 1s !important;
}

.bar-4 {
    height: 100%;
    animation-delay: 1.5s !important;
    background: linear-gradient(180deg, var(--accent-secondary) 0%, rgba(245, 158, 11, 0.7) 100%) !important;
}

@keyframes growBar {
    0% {
        transform: scaleY(0.7);
    }

    100% {
        transform: scaleY(1.05);
    }
}

.dg-orb {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 3;
    animation: floatOrb 6s infinite ease-in-out;
}

.orb-1 {
    width: 70px;
    height: 70px;
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.orb-2 {
    width: 45px;
    height: 45px;
    top: 35%;
    right: 15%;
    animation-delay: -3s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.dg-floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #ffffff;
    color: var(--text-heading);
    padding: 1rem 1.8rem;
    border-radius: 15px;
    font-weight: 700;
    font-family: var(--font-sans);
    font-size: 1.15rem;
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.15);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid rgba(30, 58, 138, 0.08);
    animation: floatBadge 4s infinite ease-in-out;
}

.dg-floating-badge .badge-icon {
    font-size: 1.2rem;
    background: var(--accent-secondary);
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Services Section */
.services.section {
    background-color: var(--bg-alt);
    /* Light gray grounding for cards */
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title p {
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(30, 58, 138, 0.1);
}

.sc-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background: var(--bg-alt);
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.service-card h3 {
    color: var(--text-heading);
}

.service-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.service-card .price {
    display: inline-block;
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
    width: 100%;
}

.sc-bg-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--accent-secondary);
    filter: blur(60px);
    opacity: 0;
    bottom: -50px;
    right: -50px;
    transition: var(--transition);
}

.service-card:hover .sc-bg-glow {
    opacity: 0.15;
}

/* CTA */
.cta-banner {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #172a6b 100%);
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    filter: blur(100px);
    opacity: 0.3;
    border-radius: 50%;
}

.cta-banner h2 {
    color: #fff;
    font-size: 3rem;
    position: relative;
    z-index: 2;
}

.cta-banner p {
    color: #cbd5e1;
    position: relative;
    z-index: 2;
}

.cta-banner .btn-primary {
    background: var(--accent-secondary);
    color: #000;
    position: relative;
    z-index: 2;
}

.cta-banner .btn-primary:hover {
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
    background: #fcd34d;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-blocks {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-block {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.ib-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--accent-primary);
}

.ib-content h4 {
    color: var(--text-heading);
    margin-bottom: 0.2rem;
}

.ib-content p {
    margin-bottom: 0;
    font-size: 1rem;
}

.opening-hours {
    padding: 3rem;
    background: var(--accent-primary);
    color: #fff;
}

.opening-hours h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-secondary);
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.hours-list li:last-child {
    border-bottom: none;
}

.closed {
    color: #f87171;
    font-weight: 600;
}

/* Contact Form Styles */
.contact-form-container h3 {
    margin-bottom: 2rem;
    color: var(--text-heading);
    font-size: 1.8rem;
}

.contact-form .form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.contact-form .form-row .form-group {
    margin-bottom: 0;
}

.contact-form label {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form label span {
    color: #ef4444; /* red for required */
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #f8fafc;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-heading);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    background: #fff;
}

.phone-input {
    display: flex;
    gap: 0.5rem;
}

.phone-input .country-code {
    flex: 0 0 70px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
}

.contact-form .form-submit-btn {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.1rem;
    padding: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Compact Opening Hours */
.opening-hours-compact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.opening-hours-compact h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.hours-list-compact {
    list-style: none;
    padding: 0;
}

.hours-list-compact li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-bottom: 1px dashed rgba(0,0,0,0.05);
}

.hours-list-compact li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    .contact-form .form-row .form-group {
        margin-bottom: 1.5rem;
    }
}

/* Footer (Dark contrast) */
footer {
    background: #0f172a;
    /* Deep tech slate */
    padding: 4rem 0 2rem;
    color: #e2e8f0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    padding-top: 4rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-logo span {
    color: var(--accent-secondary);
    font-weight: 700;
    font-family: var(--font-sans);
}

.footer-brand p {
    color: #94a3b8;
    margin-bottom: 0;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: var(--accent-secondary);
}

/* Awards Infinite Ticker */
.awards-ticker-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    font-family: var(--font-sans);
}

.awards-ticker-title span {
    color: var(--text-heading);
    font-weight: 300;
}

.awards-pulse-anim {
    animation: goldPulseTitle 3s infinite ease-in-out;
}

@keyframes goldPulseTitle {

    0%,
    100% {
        opacity: 0.9;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.03);
        text-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
    }
}

.awards-ticker-wrapper {
    width: 100%;
    background-color: var(--bg-main);
    padding: 3.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.awards-ticker-track {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-ticker 45s linear infinite;
    padding-left: 0;
}

.awards-ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-heading) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: none !important;
}

.ticker-item:hover {
    color: var(--accent-primary) !important;
    transform: translateY(-2px);
}

.ticker-dot {
    color: var(--accent-secondary);
    margin: 0 4rem;
    font-size: 1.2rem;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@keyframes scroll-ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

/* CSS Animations  */
.animate-fade-up {
    animation: fadeUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal classes for JS Intersection Observer */
.reveal {
    opacity: 0;
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
}

.fade-up {
    transform: translateY(50px);
}

.fade-up.active {
    transform: translateY(0);
}

.slide-right {
    transform: translateX(50px);
}

.slide-right.active {
    transform: translateX(0);
}

.slide-left {
    transform: translateX(-50px);
}

.slide-left.active {
    transform: translateX(0);
}

.scale-up {
    transform: scale(0.9);
}

.scale-up.active {
    transform: scale(1);
}

/* Email Animation */
#contact-email-block {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    margin-left: -0.5rem;
}

.email-prompt-msg {
    font-size: 0.9rem !important;
    color: var(--accent-secondary) !important;
    margin-bottom: 0 !important;
    font-weight: 600;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.email-address {
    font-size: 1rem;
    transition: all 0.5s ease;
}

.email-address a {
    word-break: break-all;
    position: relative;
    display: inline-block;
}

.email-address a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-secondary);
    left: 0;
    bottom: -3px;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#contact-email-block:hover .email-address a::after,
#contact-email-block.highlight .email-address a::after {
    width: 100%;
}

#contact-email-block.highlight {
    background: #ffffff;
    transform: scale(1.08) translateX(10px);
    box-shadow: var(--box-shadow-hover);
    padding: 1.5rem;
    border: 2px solid var(--accent-secondary);
    z-index: 10;
    position: relative;
}

#contact-email-block.highlight .email-prompt-msg {
    max-height: 50px;
    opacity: 1;
    margin-bottom: 0.8rem !important;
}

#contact-email-block.highlight .email-address {
    font-size: 1.15rem;
}

#contact-email-block.highlight .email-address a {
    font-weight: 700;
    color: var(--accent-secondary);
}

/* Legal Pages Overrides */
.legal-content h2 {
    color: var(--text-heading);
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}