:root {
    --royal-blue: #002868;
    --royal-blue-light: #1a4d8f;
    --royal-blue-dark: #001845;
    --rose-gold: #b76e79;
    --rose-gold-light: #d4909c;
    --rose-gold-dark: #9a5562;
    --gold-accent: #d4af37;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --text-dark: #1a1a1a;
    --text-gray: #6c757d;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--off-white);
    overflow-x: hidden;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--royal-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 5px 0;
}

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

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Watermark Background */
.watermark-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: url('assets/marius_thompson_watermark.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60%;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 40, 104, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 40, 104, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.3rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 85px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--royal-blue);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--rose-gold), var(--gold-accent));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--rose-gold);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--royal-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--royal-blue-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(183, 110, 121, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
}

.hero-content {
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    color: var(--white);
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease;
}

.title-accent {
    display: block;
    background: linear-gradient(90deg, var(--rose-gold), var(--gold-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 5rem;
    font-weight: 700;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--rose-gold-light);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
    min-height: 44px;
    min-width: 120px;
    text-align: center;
}

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

.btn-primary {
    background: linear-gradient(90deg, var(--rose-gold), var(--gold-accent));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(183, 110, 121, 0.3);
    border: none;
    background-clip: padding-box;
    position: relative;
}

.btn-primary .btn-loading {
    display: none;
}

.btn-primary.loading .btn-text {
    display: none;
}

.btn-primary.loading .btn-loading {
    display: inline;
}

.btn-primary.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(183, 110, 121, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--royal-blue);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
}

/* Floating Cards Animation */
.hero-decoration {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.floating-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(183, 110, 121, 0.15), rgba(212, 175, 55, 0.15));
}

.card-1 {
    width: 200px;
    height: 200px;
    background-image: url('assets/hero-legal-scales.jpeg');
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    top: 0;
    right: 50px;
    animation-delay: 0s;
}

.card-2 {
    width: 150px;
    height: 150px;
    background-image: url('assets/hero-financial-documents.jpeg');
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    top: 200px;
    right: 200px;
    animation-delay: 2s;
}

.card-3 {
    width: 180px;
    height: 180px;
    background-image: url('assets/hero-professional-business.jpeg');
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    bottom: 50px;
    right: 100px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-30px) rotate(3deg);
    }
}

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

/* Section Styles */
section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

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

.section-title {
    font-size: 3rem;
    color: var(--royal-blue);
    margin-bottom: 1rem;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--rose-gold), var(--gold-accent));
    margin: 0 auto;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* About Section */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.about-card {
    padding: 3rem 2rem;
    background: var(--off-white);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--rose-gold);
    box-shadow: 0 10px 40px rgba(183, 110, 121, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: grayscale(0.3);
}

.about-card h3 {
    font-size: 1.5rem;
    color: var(--royal-blue);
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Services Section */
.services {
    background: linear-gradient(135deg, var(--off-white) 0%, var(--light-gray) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--rose-gold), var(--gold-accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 40, 104, 0.15);
    border-color: var(--royal-blue-light);
}

.service-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--rose-gold), var(--gold-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--royal-blue);
    margin-bottom: 1rem;
}

.service-card > p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 1.5rem;
}

.service-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--rose-gold);
    font-weight: bold;
}

/* Expertise Section */
.expertise {
    background: var(--white);
}

.expertise-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
}

.expertise-column h3 {
    font-size: 2rem;
    color: var(--royal-blue);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--rose-gold);
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;
}

.tag {
    padding: 0.75rem 1.5rem;
    background: var(--off-white);
    border: 2px solid var(--rose-gold);
    border-radius: 50px;
    color: var(--royal-blue);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
    min-width: 160px;
    text-align: center;
}

.tag:hover {
    background: linear-gradient(90deg, var(--rose-gold), var(--gold-accent));
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(183, 110, 121, 0.3);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--royal-blue-dark) 0%, var(--royal-blue) 100%);
    color: var(--white);
}

.contact .section-title {
    color: var(--white);
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.contact-info {
    display: contents;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: grayscale(0.2);
}

.contact-card h3 {
    color: var(--rose-gold-light);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.contact-card a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--rose-gold-light);
}

.contact-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}



.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--rose-gold);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ff4444;
}

.error-message {
    display: none;
    color: #ff6b6b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.error-message.visible {
    display: block;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--rose-gold), var(--gold-accent));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(183, 110, 121, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
}

.back-to-top:focus {
    outline: 3px solid var(--white);
    outline-offset: 2px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(183, 110, 121, 0.5);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Footer */
.footer {
    background: var(--royal-blue-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

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

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

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

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--rose-gold-light);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-decoration {
        display: none;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .title-accent {
        font-size: 4rem;
    }

    .hero-cta {
        justify-content: center;
    }

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

    .expertise-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 92px;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        gap: 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .title-accent {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .footer-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .title-accent {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contact-form-container {
        padding: 2rem 1.5rem;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
