/* O NAS - 2026 Redesign - Astonishingly Good - LIGHT EDITION */

:root {
    --bg-light: #ffffff;
    --bg-section: #f4f4f4;
    --text-dark: #1a1a1a;
    --text-muted: #555;
    --accent-gold: #c6a87c;
    --accent-dark: #000;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-tech: 'Space Grotesk', monospace;
    --container-width: 1400px;
    --gap-lg: 120px;
    --gap-md: 60px;
}

/* Responsive spacing — --gap-lg: 120px is too large for mobile */
@media (max-width: 900px) {
    :root { --gap-lg: 80px;  --gap-md: 44px; }
}
@media (max-width: 768px) {
    :root { --gap-lg: 56px;  --gap-md: 32px; }
}
@media (max-width: 480px) {
    :root { --gap-lg: 40px;  --gap-md: 24px; }
}

body.onas-page {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    overflow-x: hidden;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* --- UTILS --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--gap-lg) 0;
    position: relative;
    overflow: hidden;
}

/* --- HERO SECTION --- */
.hero-section {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Parallax */
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Removed opacity: 0.7 to keep it bright and clean */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle gradient to ensure text readability but keep it airy */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* New Title Effect: Modern Reveal / "Clip" */
.hero-title {
    font-family: var(--font-tech);
    font-size: clamp(3rem, 10vw, 12rem);
    font-weight: 700;
    letter-spacing: -4px;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
    color: var(--text-dark);
    position: relative;
    /* Blend mode for impact against light bg */
    mix-blend-mode: hard-light;
}

/* Low-end optimized "Glitch" / Offset effect on hover or load */
.hero-title::before,
.hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.hero-title::before {
    color: #ff0000;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    transform: translate(-2px, -2px);
    animation: glitch-anim-1 3s infinite linear alternate-reverse;
    /* Removed display: none for transition support */
}

@media (prefers-reduced-motion: no-preference) {
    .hero-title.glitched-title:hover::before {
        opacity: 0.8;
    }
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw, 2rem);
    font-weight: 400;
    font-style: italic;
    margin-top: 2rem;
    color: var(--accent-gold);
    max-width: 600px;
    opacity: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-txt {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-dark);
    animation: scrollLine 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* --- INTRO SECTION --- */
.intro-section {
    padding-top: var(--gap-lg);
    background: var(--bg-light);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }
}

.intro-label {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.label-line {
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
}

.label-text {
    font-family: var(--font-tech);
    font-size: 0.9rem;
    color: var(--accent-gold);
    letter-spacing: 1px;
    font-weight: 600;
}

.intro-main-text p {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.4;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.intro-main-text .secondary-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.highlight {
    color: var(--accent-gold);
    font-style: italic;
    font-weight: 600;
}

/* --- PASSION GRID --- */
.passion-section {
    background: var(--bg-light);
}

.passion-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .passion-container {
        grid-template-columns: 1fr;
    }
    .passion-content {
        padding-left: 0;
    }
}

.passion-img-wrapper {
    width: 100%;
    height: 80vh;
    position: relative;
    overflow: hidden;
    /* Soft shadow for depth on white bg */
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.05);
}

.passion-img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    position: absolute;
    top: -10%;
}

.passion-img-overlay {
    /* Removed dark overlay for cleaner look */
    display: none;
}

.passion-content {
    padding-left: 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.stroke-text {
    -webkit-text-stroke: 1px var(--text-dark);
    color: transparent;
}

.italic-text {
    font-style: italic;
    color: var(--accent-gold);
}

.passion-body p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* --- FOCUS / CARDS GRID --- */
.focus-section {
    padding: 0;
    margin: var(--gap-lg) 0;
    background: var(--bg-section);
    /* Light gray background to separate */
    padding-top: var(--gap-lg);
    padding-bottom: var(--gap-lg);
}

.focus-section .section-header {
    margin-bottom: 3rem;
    text-align: center;
    /* Center header too */
}

.cards-scroller {
    width: 100%;
    /* Changed from scroll to plain container */
    overflow: visible;
    padding-bottom: 0;
}

.cards-track {
    display: flex;
    flex-wrap: wrap;
    /* Wrap items */
    justify-content: center;
    /* Center items */
    gap: 2rem;
    padding: 0 2rem;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.service-card {
    width: 400px;
    height: 550px;
    background: #fff;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    /* Ensure it scales down on mobile */
    max-width: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.card-image {
    width: 100%;
    height: 60%;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card:hover .card-image img {
    transform: scale(1.05);
}

.card-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 40%;
    background: #fff;
}

.card-num {
    font-family: var(--font-tech);
    color: #ddd;
    /* Subtle number */
    font-size: 2rem;
    font-weight: 700;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    z-index: 10;
    mix-blend-mode: difference;
    /* Cool effect over image */
}

/* Adjust layout for number visibility */
.service-card .card-image {
    position: relative;
}

.card-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    color: var(--text-dark);
}

.card-info p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* --- WHY US / LOCATION --- */
.why-us-section {
    background: var(--bg-light);
    position: relative;
    padding-bottom: 0;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

@media (max-width: 900px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

.why-col h2.small {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.lead-text {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.why-col p {
    color: var(--text-muted);
}

/* Map - Make it look clean/architectural */
.map-wrapper {
    margin-top: 3rem;
    width: 100%;
    height: 300px;
    border: none;
    /* Clean, desaturated map look */
    filter: grayscale(100%) opacity(0.8);
    transition: filter 0.5s ease;
}

.map-wrapper:hover {
    filter: grayscale(0%) opacity(1);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Animations base classes */
.reveal-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
}

/* Optimizations for low-end */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Force hardware acceleration for smooth transforms */
.hero-bg-img,
.passion-img,
.service-card {
    will-change: transform;
    transform: translateZ(0);
}

@media (max-width: 600px) {
    .service-card {
        height: auto;
        min-height: 420px;
        width: 100%;
    }
}