/* ============================================================
   ATORI GROUP — Home Page Styles
   ============================================================ */

/* ─── Hero Section ──────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;
    background: var(--pine-dark);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--nav-height);
}

/* Fine grid texture overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 253, 238, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 253, 238, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Subtle left-side gradient so text stays legible */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(38, 52, 55, 0.72) 0%,
        rgba(38, 52, 55, 0.35) 52%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* ─── Hero Two-Column Layout ─────────────────────────────── */
.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    min-height: calc(100svh - var(--nav-height));
    padding-block: clamp(3rem, 6vw, 5rem);
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* ─── Hero Image Panel ───────────────────────────────────── */
.hero-image-panel {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Outer decorative frame */
.hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
}

/* Offset border — appears behind and offset */
.hero-image-frame::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    right: -1.5rem;
    bottom: -1.5rem;
    border: 1px solid rgba(255, 253, 238, 0.1);
    pointer-events: none;
    z-index: 0;
    transition: transform 0.6s var(--ease-smooth);
}

.hero-image-frame:hover::before {
    transform: translate(4px, 4px);
}

/* Corner accent — top-left */
.hero-image-frame::after {
    content: "";
    position: absolute;
    top: -8px;
    right: -8px;
    width: 40px;
    height: 40px;
    border-top: 2px solid rgba(255, 253, 238, 0.25);
    border-right: 2px solid rgba(255, 253, 238, 0.25);
    pointer-events: none;
    z-index: 3;
}

/* The card itself */
.hero-image-card {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--pine);
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: saturate(0.75) brightness(0.88);
    transition:
        transform 0.8s var(--ease-smooth),
        filter 0.6s;
}

.hero-image-card:hover img {
    transform: scale(1.04);
    filter: saturate(0.85) brightness(0.95);
}

/* Colour overlay on the image — Pine tint */
.hero-image-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(38, 52, 55, 0.65) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Image caption tag */
.hero-image-tag {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: rgba(38, 52, 55, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 253, 238, 0.1);
}

.hero-image-tag span {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--slate-light);
}

.hero-image-tag-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--slate-light);
    flex-shrink: 0;
}

/* Floating stat badge — top right of image */
.hero-image-badge {
    position: absolute;
    top: -1.25rem;
    left: -1.75rem;
    z-index: 4;
    padding: 1rem 1.25rem;
    background: var(--cream);
    border: 1px solid var(--cream-deep);
    min-width: 130px;
}

.hero-image-badge-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--pine);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.hero-image-badge-label {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--slate);
}

/* Geometric Background Rings — kept but repositioned left */
.hero-bg-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 253, 238, 0.04);
    pointer-events: none;
    z-index: 0;
}
.hero-bg-ring-1 {
    width: 700px;
    height: 700px;
    top: -200px;
    left: -200px;
    animation: slow-spin 80s linear infinite;
}
.hero-bg-ring-2 {
    width: 420px;
    height: 420px;
    bottom: -100px;
    left: -80px;
    border-color: rgba(255, 253, 238, 0.03);
    animation: slow-spin 60s linear infinite reverse;
}

@keyframes slow-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero-eyebrow {
    color: var(--slate-light);
    margin-bottom: 2rem;
}
.hero-eyebrow::before {
    background: var(--slate-light);
}

.hero-title {
    color: var(--cream);
    max-width: 820px;
    margin-bottom: 1.5rem;
}

.hero-title em {
    font-style: italic;
    color: var(--slate-pale);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.72;
    color: var(--slate-light);
    max-width: 520px;
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--slate);
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--slate), transparent);
}

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

/* Hero Stats Row */
.hero-stats {
    margin-top: 5rem;
    display: flex;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid rgba(255, 253, 238, 0.08);
    padding-top: 2.5rem;
}

.hero-stat {
    flex: 1;
    padding-right: 2.5rem;
    border-right: 1px solid rgba(255, 253, 238, 0.08);
}

.hero-stat:last-child {
    border-right: none;
    padding-right: 0;
    padding-left: 2.5rem;
}

.hero-stat:not(:first-child):not(:last-child) {
    padding-inline: 2.5rem;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--cream);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.hero-stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--slate);
    text-transform: uppercase;
}

/* ─── Who We Are Section ────────────────────────────────── */
.who-section {
    background: var(--cream);
    padding-block: var(--section-gap);
}

.who-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(3rem, 6vw, 7rem);
    align-items: start;
}

.who-sticky {
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
}

.who-label {
    margin-bottom: 1.5rem;
}

.who-title {
    margin-bottom: 2rem;
}

.who-body {
    color: var(--pine-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
}

.who-highlight {
    padding: 1.5rem 1.75rem;
    border-left: 2px solid var(--pine);
    background: var(--cream-warm);
    margin-top: 2rem;
}

.who-highlight-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--pine);
}

/* Right column pillar items */
.pillar-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pillar-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--cream-deep);
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 1.5rem;
    align-items: start;
}

.pillar-item:first-child {
    padding-top: 0;
}

.pillar-num {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-pale);
    padding-top: 0.15rem;
}

.pillar-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pine);
    margin-bottom: 0.5rem;
}

.pillar-body {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--slate);
}

/* ─── What We Do Section ────────────────────────────────── */
.what-section {
    background: #f0ede0;
    padding-block: var(--section-gap);
}

.what-header {
    text-align: center;
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: clamp(3rem, 5vw, 5rem);
}

.what-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    background: var(--cream-deep);
}

.what-card {
    background: var(--cream);
    padding: 2.75rem 2.25rem;
    transition:
        background 0.35s,
        transform 0.35s var(--ease-smooth);
    cursor: default;
}

.what-card:hover {
    background: var(--pine);
}

.what-card-icon {
    width: 44px;
    height: 44px;
    background: var(--cream-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    transition: background 0.35s;
}

.what-card:hover .what-card-icon {
    background: rgba(255, 253, 238, 0.1);
}

.what-card-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--pine);
    transition: stroke 0.35s;
}

.what-card:hover .what-card-icon svg {
    stroke: var(--cream);
}

.what-card-title {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pine);
    margin-bottom: 0.75rem;
    transition: color 0.35s;
}

.what-card:hover .what-card-title {
    color: var(--cream);
}

.what-card-body {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--slate);
    transition: color 0.35s;
}

.what-card:hover .what-card-body {
    color: var(--slate-pale);
}

/* ─── Philosophy Section ────────────────────────────────── */
.philosophy-section {
    background: var(--pine);
    padding-block: var(--section-gap);
    position: relative;
    overflow: hidden;
}

.philosophy-section::before {
    content: "ATORI";
    position: absolute;
    bottom: -0.15em;
    right: -0.05em;
    font-family: var(--font-display);
    font-size: clamp(8rem, 20vw, 20rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(255, 253, 238, 0.03);
    pointer-events: none;
    line-height: 1;
    user-select: none;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 7rem);
    align-items: center;
}

.philosophy-label {
    color: var(--slate-light);
    margin-bottom: 1.5rem;
}
.philosophy-label::before {
    background: var(--slate-light);
}

.philosophy-title {
    color: var(--cream);
    margin-bottom: 1.5rem;
}

.philosophy-body {
    color: var(--slate-light);
    font-size: 1rem;
    line-height: 1.78;
    margin-bottom: 2.5rem;
}

.philosophy-principles {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.principle-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(255, 253, 238, 0.07);
    transition: border-color 0.2s;
}

.principle-item:first-child {
    border-top: 1px solid rgba(255, 253, 238, 0.07);
}

.principle-item:hover {
    border-color: rgba(255, 253, 238, 0.15);
}

.principle-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--slate-light);
    flex-shrink: 0;
}

.principle-text {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--slate-pale);
}

/* ─── Businesses Preview ────────────────────────────────── */
.preview-section {
    background: var(--cream);
    padding-block: var(--section-gap);
}

.preview-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3.5rem;
    gap: 2rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 1.5rem;
}

.preview-card-main {
    background: var(--pine);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    position: relative;
    overflow: hidden;
}

.preview-card-main::after {
    content: "";
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(255, 253, 238, 0.06);
    pointer-events: none;
}

.preview-card-secondary {
    background: #f0ede0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.preview-card-top {
}
.preview-card-bottom {
    margin-top: 2rem;
}

.preview-card-sector {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--slate-light);
    margin-bottom: 0.75rem;
}

.preview-card-main .preview-card-sector {
    color: var(--slate-light);
}

.preview-card-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--cream);
    line-height: 1;
    margin-bottom: 1rem;
}

.preview-card-secondary .preview-card-name {
    font-size: 1.25rem;
    color: var(--pine);
}

.preview-card-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--slate-light);
}

.preview-card-secondary .preview-card-desc {
    font-size: 0.825rem;
    color: var(--slate);
}

/* ─── CTA Band ───────────────────────────────────────────── */
.cta-band {
    background: var(--pine-dark);
    padding-block: 5rem;
}

.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.cta-band-text h2 {
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.cta-band-text p {
    color: var(--slate);
    font-size: 0.9rem;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
    /* Hero image: hide panel, revert to single column */
    .hero-inner {
        grid-template-columns: 1fr;
    }
    .hero-image-panel {
        display: none;
    }

    .who-grid {
        grid-template-columns: 1fr;
    }
    .who-sticky {
        position: static;
    }
    .what-cards {
        grid-template-columns: 1fr 1fr;
    }
    .what-cards .what-card:last-child {
        grid-column: span 2;
    }
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .preview-grid {
        grid-template-columns: 1fr;
    }
    .preview-card-main {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    .hero-stat {
        border-right: none;
        border-bottom: 1px solid rgba(255, 253, 238, 0.08);
        padding: 0 0 2rem 0;
    }
    .hero-stat:last-child {
        border-bottom: none;
        padding: 0;
    }
    .hero-stat:not(:first-child):not(:last-child) {
        padding: 0 0 2rem 0;
    }

    .what-cards {
        grid-template-columns: 1fr;
        background: none;
        gap: 1px;
    }
    .what-cards .what-card:last-child {
        grid-column: span 1;
    }

    .preview-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-band-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
