/* Inyosi Digital — hive-crafted styles */

:root {
    --ink: #0f0c09;
    --ink-soft: #1a1510;
    --bark: #2c241c;
    --honey: #c9a227;
    --honey-bright: #e8c547;
    --honey-deep: #9a7a16;
    --honey-pale: #f3e3b0;
    --cream: #f6f0e4;
    --paper: #fdf9f1;
    --sand: #ede4d3;
    --moss: #3d5c45;
    --text: #1f1913;
    --muted: #5c5146;
    --line: rgba(201, 162, 39, 0.28);
    --shadow: 0 24px 60px rgba(15, 12, 9, 0.18);
    --radius: 22px;
    --header-h: 96px;
    --font-display: "Bricolage Grotesque", Georgia, serif;
    --font-body: "Outfit", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--paper);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0 0 0.6em;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0 0 1em;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--honey);
    color: var(--ink);
    padding: 8px 14px;
    z-index: 100;
    font-weight: 600;
}

.skip-link:focus {
    top: 12px;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: var(--header-h);
    height: auto;
    background: rgba(15, 12, 9, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.16);
    padding-top: env(safe-area-inset-top);
}

.header-inner {
    min-height: var(--header-h);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(201, 162, 39, 0.1);
}

.has-custom-logo .brand-logo {
    width: auto;
    height: 78px;
    max-height: 78px;
    max-width: 210px;
    border-radius: 0;
    background: transparent;
    flex-shrink: 0;
}

.has-custom-logo .site-footer .brand-logo {
    height: 88px;
    max-width: 240px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--paper);
    letter-spacing: -0.03em;
}

.brand-mark {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--honey-bright);
    margin-top: 4px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    z-index: 60;
}

.site-nav a {
    color: var(--cream);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.site-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--honey-bright);
    transition: width 0.25s ease;
}

.site-nav a:not(.btn):hover::after,
.site-nav a:not(.btn):focus-visible::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    padding: 10px;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--honey-pale);
    margin: 6px 0;
    transition: 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(180deg, var(--honey-bright), var(--honey));
    color: var(--ink);
    box-shadow: 0 10px 28px rgba(201, 162, 39, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 16px 32px rgba(201, 162, 39, 0.4);
}

.btn-ghost {
    border-color: rgba(243, 227, 176, 0.45);
    color: var(--paper);
    background: rgba(253, 249, 241, 0.04);
}

.btn-ghost:hover {
    background: rgba(232, 197, 71, 0.12);
}

.btn-nav {
    background: var(--honey);
    color: var(--ink) !important;
    padding: 10px 18px;
}

.btn-full {
    width: 100%;
}

/* Hero */

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    background: radial-gradient(1200px 600px at 80% 10%, rgba(201, 162, 39, 0.18), transparent 50%),
                linear-gradient(165deg, #120e0a 0%, #1c1610 48%, #0f0c09 100%);
    color: var(--paper);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    width: 480px;
    height: 480px;
    right: -80px;
    top: -80px;
    background: radial-gradient(circle, rgba(232, 197, 71, 0.22), transparent 68%);
    filter: blur(10px);
}

.hero-comb {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: url("../images/honeycomb.svg");
    background-size: 220px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 88%);
}

.hero-grid {
    position: relative;
    z-index: 1;
    flex: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    padding: 72px 0 110px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--honey-deep);
    font-weight: 600;
    margin-bottom: 16px;
}

.eyebrow.light {
    color: var(--honey-pale);
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    font-weight: 800;
    margin: 0 0 22px;
}

.hero h1 span {
    display: block;
}

.gold-line {
    color: var(--honey-bright);
}

.lede {
    font-size: 1.15rem;
    max-width: 38em;
    color: rgba(253, 249, 241, 0.82);
    font-weight: 300;
}

.hero-copy .lede {
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hive-constellation {
    position: relative;
    height: 460px;
}

.hex {
    position: absolute;
    width: 128px;
    height: 148px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 1px solid rgba(232, 197, 71, 0.45);
    background: rgba(201, 162, 39, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    color: var(--honey-pale);
    animation: hex-float 6s ease-in-out infinite;
}

.hex.filled {
    background: linear-gradient(160deg, #e8c547, #c9a227);
    color: var(--ink);
    font-weight: 800;
    border: none;
    box-shadow: 0 18px 40px rgba(201, 162, 39, 0.35);
}

.hex-a { top: 18px; left: 90px; animation-delay: 0s; }
.hex-b { top: 90px; left: 0; animation-delay: 0.4s; }
.hex-c { top: 90px; left: 180px; animation-delay: 0.2s; }
.hex-d { top: 162px; left: 90px; animation-delay: 0.7s; }
.hex-e { top: 234px; left: 0; animation-delay: 0.3s; }
.hex-f { top: 234px; left: 180px; animation-delay: 1s; }
.hex-g { top: 306px; left: 90px; animation-delay: 0.6s; }

@keyframes hex-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.floating-bee {
    position: absolute;
    width: 54px;
    opacity: 0.85;
    animation: buzz 12s linear infinite;
}

.bee-one { top: 18%; left: -40px; }
.bee-two { top: 62%; right: -30px; animation-duration: 16s; animation-direction: reverse; }

@keyframes buzz {
    0% { transform: translate(0, 0) rotate(-8deg); }
    25% { transform: translate(40vw, 30px) rotate(12deg); }
    50% { transform: translate(70vw, -20px) rotate(-6deg); }
    75% { transform: translate(30vw, 50px) rotate(10deg); }
    100% { transform: translate(0, 0) rotate(-8deg); }
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--honey-pale);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    z-index: 2;
}

.scroll-arrow {
    width: 1px;
    height: 28px;
    background: linear-gradient(var(--honey-bright), transparent);
    position: relative;
}

.scroll-arrow::after {
    content: "";
    position: absolute;
    left: -4px;
    bottom: 0;
    width: 9px;
    height: 9px;
    border-right: 1px solid var(--honey-bright);
    border-bottom: 1px solid var(--honey-bright);
    transform: rotate(45deg);
}

/* Sections */

.section {
    padding: 108px 0;
    position: relative;
}

.section-cream { background: var(--cream); }
.section-paper { background: var(--paper); }
.section-ink {
    background:
        radial-gradient(700px 400px at 0% 0%, rgba(201, 162, 39, 0.12), transparent 55%),
        var(--ink-soft);
    color: var(--paper);
}

.section-head {
    max-width: 720px;
    margin-bottom: 48px;
}

.section h2 {
    font-size: clamp(2rem, 3.4vw, 3.1rem);
}

.split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
}

.lead-body {
    font-size: 1.2rem;
    color: var(--muted);
}

.process {
    display: grid;
    gap: 22px;
    margin-top: 36px;
}

.process article {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 8px 18px;
    padding: 22px;
    background: var(--paper);
    border-radius: var(--radius);
    border: 1px solid rgba(44, 36, 28, 0.06);
}

.process h3 { grid-column: 2; margin: 0; }
.process p { grid-column: 2; margin: 0; color: var(--muted); }
.process-num {
    grid-row: 1 / span 2;
    font-family: var(--font-display);
    color: var(--honey);
    font-weight: 800;
    font-size: 1.4rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.why-card {
    grid-column: span 2;
    background: rgba(253, 249, 241, 0.04);
    border: 1px solid rgba(232, 197, 71, 0.16);
    border-radius: 28px;
    padding: 28px 24px;
    min-height: 230px;
}

.why-card:nth-child(4),
.why-card:nth-child(5) {
    grid-column: span 3;
}

.why-card h3 {
    color: var(--honey-pale);
    font-size: 1.25rem;
}

.why-card p {
    color: rgba(253, 249, 241, 0.72);
    margin: 0;
}

.hex-icon {
    width: 52px;
    height: 58px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(160deg, rgba(232, 197, 71, 0.28), rgba(201, 162, 39, 0.08));
    color: var(--honey-bright);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.hex-icon svg {
    width: 28px;
    height: 28px;
}

.section-paper .hex-icon,
.section-cream .hex-icon,
.form-panel .hex-icon {
    background: linear-gradient(160deg, #e8c547, #c9a227);
    color: var(--ink);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: #fff;
    border-radius: 28px;
    padding: 28px;
    border: 1px solid rgba(44, 36, 28, 0.06);
    box-shadow: 0 10px 30px rgba(31, 25, 19, 0.04);
    display: flex;
    flex-direction: column;
    min-height: 280px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.service-card p {
    color: var(--muted);
    flex: 1;
}

.text-link {
    color: var(--honey-deep);
    font-weight: 600;
    font-size: 0.92rem;
}

.text-link::after {
    content: " →";
}

/* Philosophy */

.section-philosophy {
    background:
        linear-gradient(180deg, rgba(15, 12, 9, 0.72), rgba(15, 12, 9, 0.84)),
        url("../images/honeycomb.svg") center / 180px repeat,
        #16110c;
    color: var(--paper);
    padding: 120px 20px;
}

.philosophy-frame {
    width: min(860px, 100%);
    margin: 0 auto;
    text-align: center;
    padding: 48px 28px;
    border: 1px solid rgba(232, 197, 71, 0.28);
    border-radius: 40px;
    background: rgba(15, 12, 9, 0.45);
    box-shadow: inset 0 0 80px rgba(201, 162, 39, 0.08);
}

.philosophy-frame blockquote {
    margin: 0;
}

.philosophy-frame blockquote p::before {
    content: "“";
    display: block;
    font-size: 3.4rem;
    color: var(--honey-bright);
    line-height: 0.6;
    margin-bottom: 18px;
    font-family: Georgia, serif;
}

.philosophy-frame blockquote p {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.6vw, 2.15rem);
    line-height: 1.35;
    margin: 0;
}

.philosophy-aside {
    margin: 28px 0 0;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--honey-bright);
}

/* Contact */

.section-cta {
    background: var(--cream);
}

.cta-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    align-items: start;
}

.cta-copy .lede {
    color: var(--muted);
}

.cta-points {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
}

.cta-points li {
    position: relative;
    padding: 10px 0 10px 28px;
    color: var(--bark);
}

.cta-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 12px;
    height: 14px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--honey);
}

.form-panel {
    background: #fff;
    border-radius: 32px;
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(44, 36, 28, 0.05);
}

.contact-form {
    display: grid;
    gap: 16px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    font: inherit;
    font-weight: 400;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid #e2d8c4;
    background: var(--paper);
    color: var(--text);
    width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--honey);
    outline-offset: 1px;
}

.form-fine {
    margin: 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.alert {
    padding: 16px 18px;
    border-radius: 16px;
    margin-bottom: 18px;
}

.alert p { margin: 6px 0 0; }
.alert-success { background: #eaf4ec; color: #23462c; }
.alert-error { background: #fbecea; color: #6d2a1f; }

/* Footer */

.site-footer {
    position: relative;
    background: var(--ink);
    color: var(--cream);
    padding: 72px 0 28px;
    overflow: hidden;
}

.footer-comb {
    position: absolute;
    inset: 0;
    background: url("../images/honeycomb.svg") center / 200px repeat;
    opacity: 0.07;
}

.footer-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand p {
    color: rgba(246, 240, 228, 0.72);
    max-width: 36em;
    margin-top: 16px;
}

.footer-heading {
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--honey-bright);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    display: inline-block;
    padding: 6px 0;
    color: rgba(253, 249, 241, 0.82);
    overflow-wrap: anywhere;
}

.footer-links a:hover {
    color: var(--honey-bright);
}

.footer-base {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(201, 162, 39, 0.16);
    padding-top: 22px;
    color: rgba(246, 240, 228, 0.55);
    font-size: 0.9rem;
}

.lost-page {
    min-height: 60vh;
    background: var(--ink);
    color: var(--paper);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 80px 0;
}

.lost-inner .lede {
    margin: 0 auto 28px;
}

.site-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.why-card.reveal:nth-child(2),
.service-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.why-card.reveal:nth-child(3),
.service-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.why-card.reveal:nth-child(4),
.service-card.reveal:nth-child(4) { transition-delay: 0.24s; }
.why-card.reveal:nth-child(5),
.service-card.reveal:nth-child(5) { transition-delay: 0.32s; }
.service-card.reveal:nth-child(6) { transition-delay: 0.4s; }

.btn:focus-visible,
.site-nav a:focus-visible,
.text-link:focus-visible {
    outline: 2px solid var(--honey-bright);
    outline-offset: 3px;
}

.why-card {
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 197, 71, 0.45);
    background: rgba(232, 197, 71, 0.08);
}

@media (hover: none) {
    .btn:hover,
    .service-card:hover,
    .why-card:hover {
        transform: none;
    }
}

@media (max-width: 980px) {
    .hero-grid,
    .split,
    .cta-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hive-constellation {
        height: 380px;
        max-width: 360px;
        margin: 0 auto;
    }

    .why-grid,
    .service-grid {
        grid-template-columns: 1fr 1fr;
    }

    .why-card,
    .why-card:nth-child(4),
    .why-card:nth-child(5) {
        grid-column: span 1;
    }

    .hero-actions .btn {
        text-align: center;
    }
}

@media (max-width: 760px) {
    :root { --header-h: 84px; }
    .container { width: min(1180px, calc(100% - 28px)); }

    .nav-toggle { display: block; }

    .site-nav {
        position: fixed;
        inset: calc(var(--header-h) + env(safe-area-inset-top)) 12px auto;
        background: #1a1510;
        border: 1px solid var(--line);
        border-radius: 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        gap: 4px;
        box-shadow: var(--shadow);
        max-height: calc(100vh - var(--header-h) - 24px);
        overflow: auto;
    }

    .site-nav a {
        padding: 12px 10px;
        font-size: 1.05rem;
    }

    .site-nav .btn-nav {
        margin-top: 8px;
        width: 100%;
        justify-content: center;
    }

    .site-nav.open { display: flex; }
    body.nav-open { overflow: hidden; }

    .has-custom-logo .brand-logo {
        height: 58px;
        max-width: 150px;
    }

    .has-custom-logo .site-footer .brand-logo {
        height: 72px;
        max-width: 190px;
    }

    .brand-name { font-size: 1.05rem; }

    .field-row,
    .why-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
    }

    .hero-grid {
        padding: 36px 0 72px;
        gap: 24px;
    }

    .hero h1 {
        font-size: clamp(1.85rem, 8.4vw, 2.6rem);
    }

    .lede { font-size: 1.02rem; }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section { padding: 64px 0; }
    .section h2 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
    .form-panel { padding: 20px; }
    .hive-constellation { display: none; }
    .scroll-cue { display: none; }
    .why-card { min-height: 0; padding: 22px 20px; }
    .service-card { min-height: 0; }
    .philosophy-frame { padding: 32px 18px; border-radius: 24px; }
    .section-philosophy { padding: 72px 16px; }
    .process article { padding: 16px; gap: 8px 12px; grid-template-columns: 48px 1fr; }
    .footer-base { flex-direction: column; }
    .cta-points li { padding-right: 8px; }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 16px;
        min-height: 48px;
    }

    .contact-form textarea { min-height: 120px; }
}

@media (max-width: 420px) {
    .has-custom-logo .brand-text { display: none; }
    .has-custom-logo .brand-logo {
        height: 62px;
        max-width: 170px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hex, .floating-bee, .js .reveal {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
