/* Schellden Global Services — static site theme
   Single primary colour theme: coral #E8553F. No navy blue anywhere. */

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(70rem 42rem at 108% -12%, rgba(232, 85, 63, 0.08), transparent 55%),
        radial-gradient(60rem 38rem at -12% 42%, rgba(194, 69, 47, 0.05), transparent 55%),
        #fbf8f6;
    background-attachment: fixed;
}

::selection {
    background: #e8553f;
    color: #ffffff;
}

/* Soft tinted panel — groups related cards on a gentle coral-tinted stage */
.panel-tint {
    background: linear-gradient(180deg, rgba(232, 85, 63, 0.07), rgba(232, 85, 63, 0.03));
    border: 1px solid rgba(194, 69, 47, 0.1);
    border-radius: 2.5rem;
}

/* Icon badge — soft coral-tinted rounded square for section icons */
.icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    width: 3rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(232, 85, 63, 0.16), rgba(232, 85, 63, 0.06));
    color: #c2452f;
}

/* Heading treatments — solid coral everywhere (no gradients) */
h2.text-brand-ink,
h3.text-brand-ink,
blockquote.text-brand-ink {
    color: #e8553f;
}

/* Dark sections — same solid coral */
.bg-hero-dark h2,
.bg-hero-dark h3,
.bg-night-grad h2,
.bg-night-grad h3,
.bg-brand-night h2,
.bg-brand-night h3,
.bg-brand-nightDeep h2,
.bg-brand-nightDeep h3 {
    color: #e8553f;
}

/* Explicit heading text helpers (hero masked lines) */
.grad-dark-text,
.grad-light-text {
    color: #e8553f;
}

/* Floating-card hover — gentle lift + soft warm shadow on interactive cards */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -18px rgba(194, 69, 47, 0.18);
}

/* Soft coral glow behind the primary hero CTA */
[data-testid="hero-inquiry-button"] {
    box-shadow: 0 0 44px -10px rgba(232, 85, 63, 0.5);
}

.link-underline {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.link-underline:hover {
    background-size: 100% 1px;
}

.eyebrow {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #c2452f;
}
@media (min-width: 640px) {
    .eyebrow {
        font-size: 12px;
    }
}
.eyebrow::before {
    content: "";
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    margin-right: 0.65em;
    vertical-align: -0.18em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4 L10 12 L3 20' fill='none' stroke='%23C2452F' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12 4 L19 12 L12 20' fill='none' stroke='%23E8553F' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        no-repeat center / contain;
}

/* Dark hero — warm charcoal with coral glows + grid (no navy) */
.bg-hero-dark {
    background:
        radial-gradient(52rem 32rem at 86% 12%, rgba(232, 85, 63, 0.22), transparent 60%),
        radial-gradient(42rem 26rem at 8% 92%, rgba(232, 85, 63, 0.1), transparent 55%),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(135deg, #0e0907 0%, #2a1410 55%, #3a1a12 100%);
    background-size: auto, auto, 56px 56px, 56px 56px, auto;
}

/* Curved dark section gradient — warm charcoal, subtle grid + coral glow */
.bg-night-grad {
    background:
        radial-gradient(46rem 28rem at 90% 8%, rgba(232, 85, 63, 0.15), transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(160deg, #120b08 0%, #2a1310 70%, #1d0e0a 100%);
    background-size: auto, 56px 56px, 56px 56px, auto;
}

/* Hero ambience — dotted grid with coral light pools */
.bg-aurora {
    background:
        radial-gradient(55rem 30rem at 88% -10%, rgba(232, 85, 63, 0.13), transparent 60%),
        radial-gradient(45rem 26rem at -8% 25%, rgba(194, 69, 47, 0.08), transparent 55%),
        radial-gradient(60rem 30rem at 50% 115%, rgba(232, 85, 63, 0.07), transparent 60%),
        radial-gradient(rgba(194, 69, 47, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, #ffffff 0%, #fdf3f0 100%);
    background-size: auto, auto, auto, 24px 24px, auto;
}

/* Floating curved dark sections */
.curved-section {
    border-radius: 2.5rem;
    margin: 0.5rem 0.75rem;
    overflow: hidden;
}
@media (min-width: 640px) {
    .curved-section {
        margin: 0.75rem 1.5rem;
    }
}

/* Section rhythm */
.py-24 {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}
.py-20 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}
.pt-20 {
    padding-top: 4rem;
}
.pb-20 {
    padding-bottom: 4rem;
}
.pt-16 {
    padding-top: 3.5rem;
}
.pb-24 {
    padding-bottom: 4.5rem;
}
@media (min-width: 640px) {
    .sm\:py-32 {
        padding-top: 5.5rem;
        padding-bottom: 5.5rem;
    }
    .sm\:py-28 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    .sm\:pt-28 {
        padding-top: 5rem;
    }
    .sm\:pb-32 {
        padding-bottom: 5.5rem;
    }
    .sm\:pt-24 {
        padding-top: 4.5rem;
    }
    .sm\:pb-28 {
        padding-bottom: 5rem;
    }
    .sm\:pb-24 {
        padding-bottom: 5rem;
    }
}

/* Subtle photographic grain so flat areas never feel digital-flat */
.grain::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Masked headline lines */
.mask-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
}
.mask-line > span {
    display: block;
    transform: translateY(115%);
    animation: maskUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--d, 0s);
    will-change: transform;
}
@keyframes maskUp {
    to {
        transform: translateY(0);
    }
}

/* Gentle float for the hero dossier card */
@keyframes floaty {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}
.floaty {
    animation: floaty 6s ease-in-out infinite;
}

/* Marquee */
.animate-marquee {
    animation: marquee 48s linear infinite;
}
@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Parallax images */
.parallax-wrap {
    overflow: hidden;
    position: relative;
}
.parallax-wrap img {
    width: 100%;
    height: 115%;
    margin-top: -7.5%;
    object-fit: cover;
    will-change: transform;
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu.open {
    max-height: 640px;
}

/* FAQ accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.open .faq-answer {
    max-height: 480px;
    opacity: 1;
}
.faq-toggle-icon {
    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.3s,
        color 0.3s;
}
.faq-item.open .faq-toggle-icon {
    transform: rotate(45deg);
    background-color: #e8553f;
    color: #ffffff;
}

/* Toasts (sonner-style, top center) */
.toast-container {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: min(92vw, 26rem);
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.9rem 1.1rem;
    border-radius: 0.9rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.45;
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(-12px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}
.toast-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.toast-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .mask-line > span {
        transition: none;
        animation: none;
        opacity: 1;
        transform: none;
    }
    .floaty,
    .animate-marquee {
        animation: none;
    }
}
