/* =====================
   VOLCANICA — style.css
   ===================== */

/* ── Variables ── */
:root {
    --bg: #0d0b09;
    --bg-2: #131009;
    --surface: #1a1510;
    --border: rgba(200, 120, 40, 0.12);
    --ember: #c4622a;
    --lava: #e8783a;
    --gold: #c89a52;
    --ash: #7a6f65;
    --stone: #3a332b;
    --text: #e8e0d5;
    --text-dim: #9a8f84;
    --font-head: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Syne', sans-serif;
    --radius: 4px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

/* ── Background layers ── */
.bg-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bg-grain {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.03;
    mix-blend-mode: overlay;
}

.bg-glow {
    background:
        radial-gradient(ellipse 60% 40% at 80% 10%, rgba(196, 98, 42, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 10% 80%, rgba(200, 154, 82, 0.05) 0%, transparent 70%);
}

/* ── Typography ── */
h1,
h2,
h3 {
    font-family: var(--font-head);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(3rem, 7vw, 6.5rem);
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
}

h3 {
    font-size: 1.5rem;
    font-weight: 400;
}

em {
    font-style: italic;
    color: var(--lava);
}

.highlight {
    position: relative;
    color: var(--lava);
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--ember), transparent);
}

.label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ember);
    margin-bottom: 1rem;
}

/* ── Layout ── */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ember), var(--lava));
    color: #fff;
    box-shadow: 0 4px 24px rgba(196, 98, 42, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(196, 98, 42, 0.45);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0;
    transition: opacity 0.2s;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-ghost {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: rgba(196, 98, 42, 0.4);
    color: var(--text);
    transform: translateY(-2px);
}

/* ── Nav ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    transition: background 0.4s, padding 0.4s;
}

.nav.scrolled {
    background: rgba(13, 11, 9, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}

.logo-mark {
    color: var(--lava);
    font-size: 0.8rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    color: var(--lava) !important;
    border-bottom: 1px solid var(--ember);
    padding-bottom: 1px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s var(--ease);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 80vw);
    height: 100vh;
    background: var(--bg-2);
    border-left: 1px solid var(--border);
    z-index: 99;
    padding: 6rem 2.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-menu a {
    font-size: 1.4rem;
    font-family: var(--font-head);
    font-weight: 300;
    color: var(--text-dim);
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: var(--lava);
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 10rem 2rem 6rem;
    max-width: 1180px;
    margin: 0 auto;
    z-index: 1;
}

.hero-content {
    flex: 0 0 58%;
}

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ember);
    margin-bottom: 1.5rem;
}

.hero-title {
    margin-bottom: 1.8rem;
    color: var(--text);
}

.hero-sub {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Orbs / visual */
.hero-visual {
    position: absolute;
    right: -4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 44%;
    height: 550px;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.orb-1 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(196, 98, 42, 0.18) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 6s ease-in-out infinite;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(200, 154, 82, 0.14) 0%, transparent 70%);
    top: 20%;
    left: 60%;
    animation: pulse 8s ease-in-out infinite 1s;
}

.orb-3 {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(232, 120, 58, 0.1) 0%, transparent 70%);
    top: 65%;
    left: 20%;
    animation: pulse 7s ease-in-out infinite 2s;
}

.geo-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(196, 98, 42, 0.1);
}

.ring-1 {
    width: 420px;
    height: 420px;
    animation: spin 40s linear infinite;
}

.ring-2 {
    width: 290px;
    height: 290px;
    border-style: dashed;
    animation: spin 28s linear infinite reverse;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.08);
    }
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ── Marquee ── */
.marquee-wrap {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 0;
    background: rgba(196, 98, 42, 0.03);
    position: relative;
    z-index: 1;
}

.marquee-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: marquee 28s linear infinite;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ash);
    align-items: center;
}

.sep {
    color: var(--ember);
    font-size: 0.5rem;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ── Services ── */
.services {
    padding: 8rem 0;
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.service-card {
    background: var(--bg);
    padding: 2.5rem 2rem;
    transition: background 0.3s;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ember), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    background: var(--surface);
}

.service-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--stone);
    margin-bottom: 1.5rem;
    transition: color 0.3s;
}

.service-card:hover .card-icon {
    color: var(--ember);
}

.service-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text-dim);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--ash);
    line-height: 1.7;
}

/* ── About ── */
.about {
    padding: 8rem 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.about::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 40%;
    background: linear-gradient(90deg, rgba(196, 98, 42, 0.04), transparent);
    pointer-events: none;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-body {
    color: var(--text-dim);
    line-height: 1.85;
    font-size: 0.95rem;
}

.about-stat-col {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-num {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 300;
    color: var(--ash);
}

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

/* ── Contact ── */
.contact {
    padding: 8rem 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
    text-align: center;
    overflow: hidden;
}

.contact-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(196, 98, 42, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.contact h2 {
    margin-bottom: 1rem;
}

.contact-sub {
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

input,
textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--ash);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(196, 98, 42, 0.5);
    box-shadow: 0 0 0 3px rgba(196, 98, 42, 0.08);
}

.contact-form .btn {
    align-self: center;
    margin-top: 0.5rem;
}

/* ── Footer ── */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    opacity: 0.7;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--ash);
}

/* ── Reveal animations ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.12s;
}

.delay-2 {
    transition-delay: 0.24s;
}

.delay-3 {
    transition-delay: 0.36s;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        padding-top: 8rem;
        align-items: flex-start;
    }

    .hero-content {
        flex: none;
        width: 100%;
    }

    .hero-visual {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        height: 220px;
        margin-top: 2rem;
    }

    .orb-1 {
        width: 200px;
        height: 200px;
    }

    .ring-1 {
        width: 260px;
        height: 260px;
    }

    .ring-2 {
        width: 180px;
        height: 180px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 600px) {
    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}