﻿:root {
    --bg: #f8f3e8;
    --bg-alt: #efe4cc;
    --paper: #fffdf8;
    --ink: #2f2419;
    --muted: #715f4c;
    --accent: #d35d3a;
    --accent-dark: #a8452b;
    --line: #d9c7a8;
    --ok: #2f7a4d;
    --shadow: 0 12px 30px rgba(66, 44, 22, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 10%, rgba(211, 93, 58, 0.14), transparent 32%),
        radial-gradient(circle at 90% 4%, rgba(113, 95, 76, 0.1), transparent 25%),
        linear-gradient(180deg, #f6efdf 0%, #f9f5ec 100%);
    line-height: 1.65;
    position: relative;
    overflow-x: hidden;
}

a {
    color: var(--accent-dark);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover,
a:focus-visible {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 320px;
    height: 320px;
    pointer-events: none;
    z-index: -1;
}

body::before {
    top: -120px;
    right: -90px;
    background: conic-gradient(from 220deg, rgba(211, 93, 58, 0.22), rgba(211, 93, 58, 0));
    transform: rotate(18deg);
}

body::after {
    bottom: -140px;
    left: -100px;
    background: radial-gradient(circle, rgba(135, 104, 70, 0.2), rgba(135, 104, 70, 0));
}

.skip-link {
    position: absolute;
    left: -1000px;
    top: 0;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    z-index: 1000;
}

.skip-link:focus {
    left: 12px;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 251, 243, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 0;
}

.brand-kicker,
.brand-name {
    margin: 0;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 700;
}

.brand-name-link {
    display: inline-block;
    color: inherit;
    border-bottom: 0;
}

.brand-name-link:hover,
.brand-name-link:focus-visible {
    color: inherit;
    border-bottom: 0;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-list a {
    display: inline-block;
    padding: 8px 10px;
    text-decoration: none;
    color: var(--ink);
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a.active {
    border-color: var(--line);
    background: #fff6e5;
}

.site-nav .nav-list a.active {
    border-color: #b79064;
    background: #f6e4c6;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff8eb;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    position: relative;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-icon::before {
    top: -6px;
}

.menu-icon::after {
    top: 6px;
}

.menu-toggle.open .menu-icon {
    background: transparent;
}

.menu-toggle.open .menu-icon::before {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.open .menu-icon::after {
    transform: rotate(-45deg) translate(4px, -4px);
}

.section {
    padding: 72px 0;
}

.alt-bg {
    background: linear-gradient(180deg, rgba(239, 228, 204, 0.6) 0%, rgba(248, 243, 232, 0.6) 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-label {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    line-height: 1.25;
    margin-top: 0;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin-bottom: 12px;
}

.hero-section {
    padding-top: 90px;
}

.two-col {
    display: grid;
    gap: 28px;
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hero-badges span {
    border: 1px dashed var(--accent);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.9rem;
    background: #fff4eb;
}

.media-card {
    margin: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.section .container > .media-card {
    margin-top: 22px;
    width: min(760px, 100%);
}

.has-media .container {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.section-copy {
    min-width: 0;
}

.has-media .container > .media-card {
    width: 100%;
    margin: 0;
}

.media-card::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 20px;
    width: 56px;
    height: 24px;
    background: linear-gradient(120deg, rgba(211, 93, 58, 0.7), rgba(211, 93, 58, 0.35));
    border-radius: 0 0 8px 8px;
    transform: rotate(3deg);
}

.media-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.media-card figcaption {
    color: var(--muted);
    font-size: 0.92rem;
    padding: 10px 4px 2px;
}

.callout {
    background: #fff8eb;
    border: 1px solid #e4d1af;
    border-radius: 10px;
    padding: 16px;
    margin: 22px 0;
}

.callout ul {
    margin: 0;
    padding-left: 18px;
}

.grid-ideas {
    margin-top: 18px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-ideas article {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
}

input,
textarea,
button {
    font: inherit;
}

input,
textarea {
    width: 100%;
    margin-top: 6px;
    margin-bottom: 10px;
    border: 1px solid #bea985;
    border-radius: 8px;
    padding: 10px;
    background: #fffefb;
}

.btn {
    border: 1px solid var(--accent-dark);
    background: var(--accent);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
    background: var(--accent-dark);
}

.btn.small {
    padding: 8px 10px;
    font-size: 0.92rem;
}

.btn.ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
    background: #f8edd8;
}

.faq-item {
    border-top: 1px solid var(--line);
}

.faq-trigger {
    width: 100%;
    text-align: left;
    padding: 14px 0;
    border: 0;
    background: transparent;
    font-weight: 600;
    cursor: pointer;
}

.faq-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
    will-change: max-height;
}

.faq-panel p {
    margin: 0 0 14px;
}

.contact-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr 1.1fr;
}

.contact-form {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
}

.consent-line {
    display: flex;
    gap: 10px;
    align-items: start;
    margin-bottom: 12px;
}

.consent-line input {
    width: auto;
    margin: 3px 0 0;
}

.hp-field {
    position: absolute;
    left: -9999px;
}

.site-footer {
    padding: 22px 0;
    border-top: 1px solid var(--line);
    background: #f1e5cb;
}

.footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-inner a {
    color: var(--ink);
}

.footer-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    text-decoration: none;
    border: 1px solid #cdb892;
    border-radius: 999px;
    padding: 6px 10px;
    background: #f9eed8;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    background: #f1ddba;
}

.tech-main {
    min-height: 100vh;
    padding: 70px 0;
}

.tech-wrap {
    width: min(900px, 92%);
    margin: 0 auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.tech-wrap h1 {
    margin-bottom: 10px;
}

.tech-nav {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-nav a {
    text-decoration: none;
    color: var(--ink);
    border: 1px solid #ccb48e;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff4de;
}

.cookie-banner {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: min(980px, 94%);
    background: #fff8ea;
    border: 1px solid #d6bb91;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 14px;
    z-index: 99;
}

.cookie-banner-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: center;
}

.cookie-copy h2 {
    margin: 0 0 6px;
    font-size: 1.12rem;
}

.cookie-copy p {
    margin: 0 0 6px;
}

.cookie-mini-note {
    color: var(--muted);
    font-size: 0.92rem;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.cookie-panel {
    position: fixed;
    inset: 0;
    background: rgba(47, 36, 25, 0.4);
    display: grid;
    place-items: center;
    z-index: 110;
}

.cookie-panel[hidden] {
    display: none !important;
}

.cookie-panel-inner {
    width: min(760px, 92%);
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
}

.cookie-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ead8b8;
    background: #fff8ea;
}

.cookie-row-text span {
    display: block;
    font-weight: 700;
}

.cookie-row-text p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.cookie-switch {
    border: 1px solid #9f8a67;
    border-radius: 999px;
    min-width: 74px;
    padding: 6px 10px;
    background: #fff;
}

.cookie-switch[aria-pressed="true"] {
    background: #e6f5e7;
    border-color: var(--ok);
}

.cookie-switch.required {
    opacity: 0.75;
}

.back-to-top {
    position: fixed;
    right: 16px;
    bottom: 18px;
    border: 1px solid var(--line);
    background: #fff7ea;
    color: var(--ink);
    border-radius: 999px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.reveal-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-up.in {
    opacity: 1;
    transform: translateY(0);
}

.floating {
    animation: floatSoft 4s ease-in-out infinite;
}

@keyframes floatSoft {
    0%,
    100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 900px) {
    .two-col,
    .contact-grid,
    .grid-ideas {
        grid-template-columns: 1fr;
    }

    .has-media .container {
        display: flex;
        flex-direction: column;
    }

    .header-inner {
        align-items: flex-start;
        gap: 10px;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-nav {
        position: fixed;
        top: 68px;
        left: 10px;
        right: 10px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px);
        z-index: 120;
        transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
    }

    .site-nav.open {
        max-height: 520px;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-list {
        gap: 6px;
        flex-direction: column;
        align-items: stretch;
        background: #fff8eb;
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 10px;
    }

    .nav-list a {
        width: 100%;
        border-radius: 8px;
    }

    .has-media .container > .media-card {
        order: 2;
        width: 100%;
        margin-top: 14px;
    }

    .has-media .container > .section-copy {
        order: 1;
    }

    .cookie-banner-grid {
        grid-template-columns: 1fr;
    }

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

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-up {
        opacity: 1;
        transform: none;
    }
}
