/* ==========================================================================
   Nabo Nabo — æblemost fra nabohaver
   Farver hentet direkte fra illustrationen (tag, træ, hæk) og folderen.
   ========================================================================== */

:root {
    --blue: #1C49D6;
    --blue-deep: #1538A8;
    --green: #409436;
    --green-deep: #2E7A2A;
    --ink: #141414;
    --ink-soft: #4A4A46;
    --muted: #77756D;
    --cream: #F7F4ED;          /* samme tone som flaskefotoets baggrund */
    --cream-deep: #EFEADF;
    --paper: #FFFFFF;
    --line: #E4DFD3;

    --font: 'Poppins', system-ui, sans-serif;

    --radius-sm: 12px;
    --radius: 22px;
    --radius-lg: 36px;

    --shadow-pop: 4px 4px 0 var(--ink);
    --ease: cubic-bezier(0.2, 0.9, 0.3, 1.2);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    font-size: 1.0625rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typografi --------------------------------------------------------- */

h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }

h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

p { color: var(--ink-soft); }

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
}

/* Håndtegnet understregning under nøgleord */
.scribble {
    position: relative;
    white-space: nowrap;
    color: var(--blue);
}
.scribble::after {
    content: "";
    position: absolute;
    left: -2%;
    right: -2%;
    bottom: -0.12em;
    height: 0.28em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 60 4, 120 4, 170 10 S 260 16, 297 6' stroke='%23409436' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    transform-origin: left;
    transform: scaleX(0);
    animation: draw 0.9s var(--ease-out) 0.7s forwards;
}
@keyframes draw { to { transform: scaleX(1); } }

/* --- Knapper ----------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    border: 2px solid var(--ink);
    font: 600 1rem/1 var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s;
    white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.btn--blue { background: var(--blue); color: #fff; box-shadow: var(--shadow-pop); }
.btn--ghost { background: transparent; color: var(--ink); border-color: transparent; padding-inline: 8px; }
.btn--ghost:hover { box-shadow: none; transform: translateX(4px); }
.btn--sm { padding: 10px 20px; font-size: 0.92rem; box-shadow: 3px 3px 0 var(--ink); }

/* Kornet tekstur, som i tagenes skraverede gavle */
.grain { position: relative; isolation: isolate; }
.grain::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.18;
    pointer-events: none;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Navigation -------------------------------------------------------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(247, 244, 237, 0.82);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    transition: box-shadow 0.3s, background-color 0.3s;
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); background: rgba(255, 255, 255, 0.88); }

.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav__logo img {
    height: 48px;
    width: auto;
    transition: transform 0.35s var(--ease);
}
.nav__logo:hover img { transform: rotate(-4deg) scale(1.05); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 0;
}
.nav__links a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-out);
}
.nav__links a:not(.btn):hover::after,
.nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle { display: none; }

/* --- Hero -------------------------------------------------------------- */

.hero {
    position: relative;
    background: var(--cream);
    padding-top: clamp(32px, 6vw, 72px);
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 48px;
}

.hero__title { margin-bottom: 24px; }
.hero__lead { font-size: 1.15rem; max-width: 34ch; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.hero__visual {
    position: relative;
    justify-self: center;
    width: min(100%, 400px);
}

.hero__sun {
    position: absolute;
    width: 46%;
    aspect-ratio: 1;
    top: -4%;
    right: -8%;
    border-radius: 50%;
    background: var(--blue);
    animation: float 9s ease-in-out infinite;
}

.hero__bottle {
    position: relative;
    margin: 0 auto;
    width: 78%;
    aspect-ratio: 891 / 1300;
    border-radius: 999px 999px var(--radius) var(--radius);
    overflow: hidden;
    background: var(--cream);
    border: 2px solid var(--ink);
    box-shadow: 8px 8px 0 var(--ink);
    rotate: 2deg;
    transition: rotate 0.5s var(--ease);
}
.hero__bottle:hover { rotate: -1deg; }
.hero__bottle img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.sticker {
    position: absolute;
    left: -6%;
    bottom: 14%;
    width: 132px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: grid;
    place-items: center;
    border: 2px solid var(--ink);
    box-shadow: var(--shadow-pop);
    rotate: -12deg;
}
.sticker__ring {
    position: absolute;
    inset: 0;
    animation: spin 18s linear infinite;
}
.sticker__ring text {
    font: 700 19px var(--font);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    fill: #fff;
}
.sticker__center {
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1;
    text-align: center;
    letter-spacing: -0.02em;
}
.sticker__center small { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; margin-top: 2px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-14px); } }

/* Gaden med husene — brandets bærende element */
.street {
    position: relative;
    margin-top: clamp(24px, 4vw, 48px);
    display: flex;
    justify-content: center;
}
.street img {
    width: min(1240px, 108%);
    max-width: none;
    margin-bottom: -2px;
    transform-origin: bottom center;
    animation: rise 1.2s var(--ease-out) 0.2s both;
}
@keyframes rise { from { transform: translateY(40%); opacity: 0; } }

/* --- Sektioner --------------------------------------------------------- */

.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--cream { background: var(--cream); }

/* Om mosten */
.about {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}
.about__copy h2 { margin-bottom: 28px; }

.features { display: grid; gap: 16px; }
.feature {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    background: var(--cream);
    border-radius: var(--radius);
    border-top: 5px solid var(--green);
    transition: transform 0.35s var(--ease), background-color 0.3s;
}
.feature:nth-child(2) { margin-left: 28px; }
.feature:nth-child(3) { margin-left: 56px; }
.feature:hover { transform: translateX(-8px) rotate(-1deg); background: var(--cream-deep); }
.feature__icon {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #fff;
    display: grid;
    place-items: center;
}
.feature__icon svg { width: 34px; height: 34px; }
.feature h3 { margin-bottom: 2px; }
.feature p { font-size: 0.95rem; }

/* Kontakt */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px clamp(40px, 7vw, 96px);
    align-items: center;
}

.people { display: grid; gap: 14px; }
.person { display: flex; align-items: center; gap: 16px; }
.person__avatar {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    border: 2px solid var(--ink);
}
.person__avatar--green { background: var(--green); }
.person strong { display: block; font-weight: 700; line-height: 1.3; }
.person a { color: var(--ink-soft); text-decoration: none; font-variant-numeric: tabular-nums; }
.person a:hover { color: var(--blue); }

.channels { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.channel {
    display: flex;
    flex-direction: column;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    background: var(--paper);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.3s var(--ease);
}
.channel:hover { background: var(--paper); transform: translateY(-3px); }
.channel__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); }

/* --- Footer ------------------------------------------------------------ */

.footer {
    background: var(--ink);
    color: #fff;
    padding-top: 72px;
    overflow: hidden;
}
.footer__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: end;
    padding-bottom: 40px;
}
.footer__logo { width: 170px; margin-bottom: 18px; }
.footer__tagline { color: #fff; font-weight: 700; font-size: 1.15rem; }
.footer__tagline span { color: var(--green); }
.footer__house {
    width: 190px;
    margin-bottom: -40px;
    transform-origin: bottom center;
    transition: transform 0.4s var(--ease);
}
.footer__house:hover { transform: scale(1.06) rotate(-2deg); }

.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-block: 22px 28px;
    border-top: 2px solid rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}
.footer__bottom p { color: rgba(255, 255, 255, 0.75); }
.footer__bottom a { text-decoration: none; font-weight: 600; }

/* --- Scroll-animationer ------------------------------------------------ */

.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* --- Responsivt -------------------------------------------------------- */

@media (max-width: 960px) {
    .hero__grid, .about, .contact { grid-template-columns: 1fr; }
    .hero__visual { width: min(80%, 340px); margin-top: 8px; }
    .feature:nth-child(n) { margin-left: 0; }
    .footer__house { width: 130px; }
}

@media (max-width: 760px) {
    :root { --nav-h: 66px; }
    .nav__logo img { height: 40px; }

    .nav__toggle {
        display: grid;
        place-items: center;
        gap: 6px;
        width: 46px;
        height: 46px;
        border-radius: 50%;
        border: 2px solid var(--ink);
        background: #fff;
        cursor: pointer;
        z-index: 2;
    }
    .nav__toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--ink);
        border-radius: 2px;
        transition: transform 0.3s var(--ease-out);
    }
    .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
    .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

    .nav__links {
        position: fixed;
        inset: var(--nav-h) 0 auto 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 20px 24px 32px;
        background: var(--cream);
        border-bottom: 2px solid var(--ink);
        clip-path: inset(0 0 100% 0);
        transition: clip-path 0.45s var(--ease-out);
    }
    .nav__links.is-open { clip-path: inset(0 0 -10px 0); }
    .nav__links a:not(.btn) { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
    .nav__links .btn { margin-top: 14px; }

    .hero__lead { font-size: 1.05rem; }
    .sticker { width: 108px; left: -10%; }
    .sticker__center { font-size: 1.1rem; }
    .street img { width: 150%; }

}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .scribble::after { transform: none; }
    .js .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
