/*
--- ETHEREAL THEME ---
Version: 7.0

TABLE OF CONTENTS
1.  :root & Global Styles
2.  Utility & Animation Classes
3.  Header & Navigation
4.  Mobile Navigation
5.  Hero Section
6.  Services Section (Cloud)
7.  Process Section (Weaver)
8.  Client Spotlight Section
9.  Testimonials Section
10. CTA Section
11. Footer
12. Background Aurora
13. Page-Specific Styles (Contact, Legal)
14. Forms
15. Media Queries (Responsiveness)
*/

/* 1. :root & Global Styles */
:root {
    --bg-light: #FFF9F6;
    /* Gentle cream white */
    --bg-panel: #FFFFFF;
    /* Pure white surface */
    --primary: #FF7A59;
    /* Warm coral accent */
    --secondary: #4CBFA6;
    /* Muted seafoam teal */
    --text-dark: #2C2C2C;
    /* Deep charcoal for clarity */
    --text-light: #7A7A7A;
    /* Neutral mid-gray */
    --border-color: #F0E0D8;
    /* Soft warm border tone */
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    --font-family: 'Manrope', sans-serif;
    --header-height: 80px;
    --border-radius: 12px;
    --transition: 0.3s ease-in-out;
}


*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

section {
    padding: 100px 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.1rem;
}

p {
    max-width: 65ch;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--secondary);
}

/* 2. Utility & Animation Classes */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: #5a52e0;
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.section-header {
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    max-width: 600px;
    margin: 1rem auto 0;
}

[data-animation] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animation="fade-in-up"] {
    transform: translateY(30px);
}

[data-animation="zoom-in"] {
    transform: scale(0.95);
}

.animate-on-load,
.animate-on-scroll.visible {
    opacity: 1;
    transform: none;
    transition-delay: var(--delay, 0s);
}

/* 3. Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    background: transparent;
    transition: all var(--transition);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 55px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding: 5px;
}

.main-nav a.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 4. Mobile Navigation */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    z-index: 1010;
    cursor: pointer;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-panel);
    box-shadow: var(--shadow);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateY(-120%);
    transition: transform var(--transition);
    z-index: 999;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav a {
    padding: 10px;
    font-size: 1.2rem;
    text-align: center;
}

/* 5. Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 1.5rem auto 2.5rem;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 6. Services Section (Cloud) */
.service-cloud {
    position: relative;
    height: 500px;
    max-width: 900px;
    margin: 0 auto;
}

.service-bubble {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
    top: var(--y);
    left: var(--x);
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.service-bubble:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.9);
}

@keyframes float {
    50% {
        transform: translateY(-15px);
    }
}

/* 7. Process Section (Weaver) */
.process-section {
    background: var(--bg-panel);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.process-text .section-title {
    text-align: left;
}

.strategy-weaver {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.weaver-thread {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    padding-left: 50px;
}

.weaver-thread span {
    position: absolute;
    left: 0;
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

.weaver-thread::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 30px;
    height: calc(100% + 1.5rem);
    width: 2px;
    background: var(--border-color);
}

.weaver-thread:last-child::before {
    display: none;
}

.thread-content {
    background: var(--bg-light);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
}

[data-animation="draw-line"]::before {
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 0.8s ease;
    transition-delay: var(--delay);
}

.animate-on-scroll.visible [data-animation="draw-line"]::before {
    transform: scaleY(1);
}

/* 8. Client Spotlight Section */
.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.spotlight-card {
    background: var(--bg-panel);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.results-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

.results-card h3,
.results-card .result-label {
    color: rgba(255, 255, 255, 0.8);
}

.results-card .result-value {
    color: #fff;
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.result-item {
    text-align: center;
}

.result-value {
    font-size: 3rem;
    font-weight: 800;
}

.result-label {
    display: block;
}

/* 9. Testimonials Section */
.testimonials-section {
    background: var(--bg-panel);
}

.testimonial-slider-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-slider {
    overflow: hidden;
}

.testimonial-slide {
    display: none;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s;
}

.testimonial-slide p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial-slide cite {
    font-style: normal;
    font-weight: 600;
}

.slider-dots {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: background var(--transition);
}

.dot.active {
    background: var(--primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 10. CTA Section */
.cta-content {
    text-align: center;
    padding: 60px 40px;
}

.cta-content p {
    max-width: 600px;
    margin: 1rem auto 2rem;
}

/* 11. Footer */
.site-footer {
    background: var(--bg-panel);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 55px;
    margin-bottom: 1rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a,
address {
    color: var(--text-light);
    font-style: normal;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
}

/* 12. Background Aurora */
.background-aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.background-aurora::before,
.background-aurora::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
}

.background-aurora::before {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    left: -200px;
    animation: move-aurora-1 20s infinite alternate;
}

.background-aurora::after {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -150px;
    right: -150px;
    animation: move-aurora-2 25s infinite alternate;
}

@keyframes move-aurora-1 {
    to {
        transform: translate(200px, 100px);
    }
}

@keyframes move-aurora-2 {
    to {
        transform: translate(-150px, -100px);
    }
}

/* 13. Page-Specific Styles (Contact, Legal) */
.page-header {
    padding: calc(var(--header-height) + 80px) 0;
    text-align: center;
}

.page-header p {
    max-width: 600px;
    margin: 1rem auto 0;
}

.contact-page-section,
.legal-page-section {
    padding-bottom: 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.info-block {
    margin-bottom: 2rem;
}

.info-block h4 {
    color: var(--primary);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-panel);
    padding: 40px;
    border-radius: var(--border-radius);
}

.legal-content h2 {
    text-align: left;
}

/* 14. Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    font-family: var(--font-family);
    transition: all var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

/* 15. Media Queries */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .main-nav,
    .header-actions .btn {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-text {
        text-align: center;
    }

    .process-text .section-title {
        text-align: center;
    }

    .spotlight-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    body {
        font-size: 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 80px 0;
    }

    .service-cloud {
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .service-bubble {
        position: relative;
        top: auto;
        left: auto;
        animation: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}