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

:root {
    --ocean-deep: #2B5266;
    --ocean-light: #5A8CA3;
    --sand: #D4C5A9;
    --sand-light: #EDE6D8;
    --coral: #E17A5F;
    --foam: #C8D8DB;
    --sky: #A8C5D1;
    --charcoal: #1F2937;
    --white: #FFFFFF;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--charcoal);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Blazor loading + error UI (default scaffold styles) */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: var(--ocean-deep, #2B5266);
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* Sticky Site Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(43, 82, 102, 0.08);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.site-header.scrolled {
    transform: translateY(0);
    pointer-events: auto;
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--white);
    font-family: 'Crimson Pro', serif;
    font-size: 1.3rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.site-header.scrolled .site-brand {
    color: var(--ocean-deep);
}

.site-nav {
    display: flex;
    gap: 2rem;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.site-nav a:hover {
    opacity: 0.75;
}

.site-header.scrolled .site-nav a {
    color: var(--charcoal);
}

.site-header.scrolled .site-nav a:hover {
    color: var(--coral);
    opacity: 1;
}

.site-nav-cta {
    background-color: var(--coral);
    color: var(--white) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(225, 122, 95, 0.3);
    white-space: nowrap;
}

.site-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(225, 122, 95, 0.45);
}

/* Site header right-side actions group (switcher + CTA) */
.site-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

/* Language Switcher */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    user-select: none;
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.15rem 0.3rem;
    cursor: pointer;
    opacity: 0.65;
    transition: color 0.3s ease, opacity 0.2s ease;
    letter-spacing: 0.4px;
    border-radius: 3px;
}

.lang-btn:hover {
    opacity: 1;
}

.lang-btn.active {
    opacity: 1;
    font-weight: 700;
}

.lang-btn:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 2px;
}

.lang-sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

.site-header.scrolled .lang-btn {
    color: var(--charcoal);
}

.site-header.scrolled .lang-btn:hover {
    color: var(--coral);
}

.site-header.scrolled .lang-sep {
    color: rgba(31, 41, 55, 0.35);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    background: linear-gradient(165deg, var(--sky) 0%, var(--ocean-light) 45%, var(--ocean-deep) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: waves 20s ease-in-out infinite;
}

@keyframes waves {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 0.8; transform: translateY(-10px); }
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s ease-out;
}

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

.logo-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin: 0 auto 0.4rem;
    display: block;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

.hero-lang {
    margin: 0 0 0.5rem;
    text-align: right;
    transition: opacity 0.3s ease;
    animation: fadeInUp 1.2s ease-out 0.1s both;
}

body:has(#siteHeader.scrolled) .hero-lang {
    opacity: 0;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.2rem;
    letter-spacing: -2px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 1.2s ease-out 0.2s both;
}

.tagline {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.2rem;
    font-style: italic;
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 400;
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

.cta-button {
    display: inline-block;
    background-color: var(--coral);
    color: var(--white);
    padding: 1.1rem 3rem;
    text-decoration: none;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(225, 122, 95, 0.35);
    animation: fadeInUp 1.2s ease-out 0.8s both;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(225, 122, 95, 0.45);
}

/* Section Styling */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-alt {
    background: linear-gradient(180deg, var(--sand-light) 0%, var(--foam) 100%);
    position: relative;
    max-width: none;
}

.section-alt-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--white), transparent);
}

h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 3rem;
    margin-bottom: 3.5rem;
    color: var(--ocean-deep);
    text-align: center;
    font-weight: 700;
    letter-spacing: -1px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--coral);
    margin: 1rem auto 0;
    border-radius: 3px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(43, 82, 102, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ocean-light), var(--coral));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(43, 82, 102, 0.15);
}

.service-icon {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    display: block;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--ocean-deep);
    font-weight: 600;
}

.service-card p {
    color: #6B7280;
    line-height: 1.6;
}

/* Experience Section */
.experience-content {
    background: var(--white);
    padding: 3.5rem 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(43, 82, 102, 0.12);
    max-width: 900px;
    margin: 0 auto;
}

.quote-box {
    background: linear-gradient(135deg, var(--sand-light) 0%, var(--foam) 100%);
    padding: 2rem 2.5rem;
    border-left: 5px solid var(--ocean-deep);
    margin: 0 0 2.5rem 0;
    border-radius: 12px;
    position: relative;
}

.quote-box::before {
    content: '"';
    font-size: 4rem;
    font-family: 'Crimson Pro', serif;
    color: var(--ocean-light);
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: 20px;
}

.quote-box p {
    font-family: 'Crimson Pro', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--ocean-deep);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

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

.experience-list li {
    padding: 1rem 0;
    padding-left: 2.5rem;
    position: relative;
    font-size: 1.05rem;
    color: var(--charcoal);
}

.experience-list li::before {
    content: '\25C6';
    position: absolute;
    left: 0;
    color: var(--coral);
    font-size: 1rem;
}

.experience-list strong {
    color: var(--ocean-deep);
    font-weight: 600;
}

/* How We Work Section */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.work-item {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border-top: 4px solid var(--ocean-light);
    box-shadow: 0 4px 24px rgba(43, 82, 102, 0.1);
    transition: all 0.3s ease;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(43, 82, 102, 0.15);
    border-top-color: var(--coral);
}

.work-item h3 {
    color: var(--ocean-deep);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.work-item p {
    color: #6B7280;
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-light) 100%);
    color: var(--white);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 80% 30%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 70%, rgba(255,255,255,0.06) 0%, transparent 50%);
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-section h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.contact-section h2::after {
    background: var(--coral);
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

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

label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 500;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
}

.required {
    color: var(--coral);
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    color: var(--charcoal);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--coral);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(225, 122, 95, 0.15);
}

input::placeholder, textarea::placeholder {
    color: #9CA3AF;
}

textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.6;
}

.privacy-note {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    font-size: 0.95rem;
    border-left: 4px solid var(--coral);
    color: rgba(255, 255, 255, 0.95);
}

.submit-button {
    background-color: var(--coral);
    color: var(--white);
    padding: 1.2rem 3.5rem;
    border: none;
    border-radius: 60px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    margin: 2rem auto 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-button:hover::before {
    width: 300px;
    height: 300px;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.submit-button:active {
    transform: translateY(-1px);
}

/* Honeypot — bots will see and fill this; real users never will */
.honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Submit confirmation notice */
.submit-notice {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    padding: 1.5rem 1.8rem;
    border-radius: 12px;
    margin: 2rem auto 0;
    font-size: 1rem;
    border-left: 4px solid var(--coral);
    color: var(--white);
    text-align: center;
    max-width: 600px;
}

.submit-notice a {
    color: var(--white);
    font-weight: 600;
}

.submit-notice p {
    margin: 0.4rem 0;
}

.submit-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.submit-button:disabled::before {
    display: none;
}

.form-error {
    background: rgba(220, 50, 50, 0.2);
    border-left: 4px solid #e05555;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin: 1rem 0 0;
    color: var(--white);
    font-size: 0.95rem;
}

.turnstile-wrapper {
    margin: 1.5rem 0 0.5rem;
}

/* Footer */
footer {
    background-color: var(--charcoal);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 2.5rem 2rem;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header-inner {
        padding: 0.7rem 1.2rem;
        gap: 1rem;
    }

    .site-nav {
        display: none;
    }

    .site-brand-name {
        font-size: 1.05rem;
    }

    .lang-btn,
    .lang-sep {
        font-size: 0.72rem;
    }

    .lang-btn {
        padding: 0.12rem 0.25rem;
    }

    .site-header-actions {
        gap: 0.6rem;
    }

    h1 {
        font-size: 2.8rem;
    }

    .tagline {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1.05rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .services-grid, .work-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .experience-content {
        padding: 2.5rem 1.5rem;
    }

    .quote-box {
        padding: 1.5rem 1.5rem;
    }

    .quote-box p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .site-brand-name {
        display: none;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero {
        min-height: 75vh;
    }

    .logo-image {
        max-width: 300px;
    }
}
