:root {
    --bg-base: #1d1d1f;
    --bg-elevated: rgba(255, 255, 255, 0.035);
    --border-soft: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text-primary: #f4f4f5;
    --text-secondary: #a7a7ad;
    --text-muted: #6f6f76;
    /* Silver/metallic accent pulled from the logo */
    --silver-1: #e8e8ea;
    --silver-2: #b9b9be;
    --silver-3: #8a8a90;
    --maxw: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Outfit', system-ui, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-base);
    /* Brand cannabis-leaf pattern at its original resolution, with a light
       dark gradient for text legibility (pattern stays at native size) */
    background-image:
        linear-gradient(rgba(20, 20, 22, 0.45), rgba(20, 20, 22, 0.6)),
        url('assets/bg-pattern.png');
    background-repeat: no-repeat, repeat;
    background-size: cover, auto;
    background-attachment: fixed, fixed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ---------- Layout primitives ---------- */
main {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 64px);
}

section {
    padding: clamp(56px, 8vw, 96px) 0;
    border-bottom: 1px solid var(--border-soft);
}
section:last-of-type { border-bottom: none; }
/* No divider directly above the rounded contact panel */
#about { border-bottom: none; }

.section-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--silver-3);
    margin-bottom: 24px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px clamp(20px, 5vw, 64px);
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    background: rgba(22, 22, 24, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0 0 18px 18px;
}
/* Logo capped at 360px wide; scales down further on narrow screens */
.site-header .logo img { width: 360px; max-width: 100%; height: auto; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 0.95rem;
}
.site-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--text-primary); }
.site-nav .nav-cta {
    padding: 8px 16px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--text-primary);
}
.site-nav .nav-cta:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* ---------- Hero ---------- */
.hero { padding-top: 72px; }
.badge {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--border-soft);
    background: var(--bg-elevated);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1px;
    padding-bottom: 0.08em;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--silver-1) 0%, var(--silver-3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.lede {
    font-size: clamp(1.3rem, 1.7vw, 1.5rem);
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 62ch;
    margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--silver-1), var(--silver-2));
    color: #161618;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(255, 255, 255, 0.45);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }
.btn-ghost {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
    color: var(--text-primary);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }

/* ---------- Services ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 28px 24px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); }

/* "Coming soon" card — present but visibly not-yet-live */
.card-soon {
    border-style: dashed;
    background: rgba(255, 255, 255, 0.02);
}
.card-soon h3, .card-soon p { opacity: 0.72; }
.soon-badge {
    display: inline-block;
    margin-top: 14px;
    padding: 4px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--silver-2);
}
.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.card p { color: var(--text-secondary); font-weight: 300; }

/* ---------- Explainer / About ---------- */
.explainer .section-title, .about .section-title {
    font-size: 1rem;
}
.explainer p, .about p {
    font-size: clamp(1.25rem, 1.6vw, 1.45rem);
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 65ch;
}
.explainer strong, .about strong { color: var(--text-primary); font-weight: 600; }

/* ---------- Ask / form ---------- */
.ask {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding-left: clamp(20px, 4vw, 48px);
    padding-right: clamp(20px, 4vw, 48px);
    margin-bottom: 8px;
}
.ask-intro {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 60ch;
    margin-bottom: 30px;
}
.ask-form { max-width: 560px; }
.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.field input,
.field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

/* Honeypot — visually and physically removed from human flow */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin-top: 16px;
    font-size: 0.98rem;
    min-height: 1.2em;
}
.form-status.is-success { color: #6ee7a8; }
.form-status.is-error { color: #f7a4a4; }

/* ---------- Footer ---------- */
.site-footer {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 40px 24px 56px;
    text-align: center;
    color: var(--text-muted);
}
.footer-contact a {
    color: var(--silver-2);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
}
.footer-contact a:hover { color: var(--silver-1); }
.footer-disclaimer {
    font-size: 0.85rem;
    max-width: 60ch;
    margin: 16px auto;
    line-height: 1.5;
}
.footer-copy { font-size: 0.85rem; }

/* ---------- Responsive ---------- */
/* Tablet: tighten the logo and nav spacing so links don't crowd/wrap */
@media (max-width: 880px) {
    .site-header .logo img { width: 280px; }
    .site-nav { gap: 18px; font-size: 0.9rem; }
}

/* Mobile: drop the text links, keep only the CTA */
@media (max-width: 640px) {
    .site-nav { gap: 14px; font-size: 0.85rem; }
    .site-nav a:not(.nav-cta) { display: none; }
    .site-header .logo img { width: 220px; }
    .hero { padding-top: 48px; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
    body { background-attachment: scroll, scroll; }
}
