/* ==========================================================================
   CANNAGRAPHY — FROM SCRATCH
   ========================================================================== */

/* --- Tokens --- */
:root {
    --black: #0b0b0b;
    --black-soft: #111111;
    --black-card: #161616;
    --white: #f5f5f3;
    --white-dim: #b0b0a8;
    --white-muted: #6b6b65;
    --border: rgba(255,255,255,0.08);
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', -apple-system, sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* --- Utility --- */
.eyebrow {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white-muted);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   1. NAVIGATION
   ========================================================================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    background: rgba(11,11,11,0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.4s var(--ease);
}

.nav-logo {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

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

.nav-links a {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white-dim);
    transition: color 0.3s;
}

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

.nav-ig {
    display: flex;
    align-items: center;
    color: var(--white-dim);
    transition: color 0.3s;
    padding: 0;
    border-bottom: none !important;
}

.nav-ig:hover { color: var(--white); }

/* ==========================================================================
   2. HERO
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(11,11,11,0.15) 0%,
        rgba(11,11,11,0.35) 50%,
        rgba(11,11,11,0.85) 100%
    );
}

.hero-text {
    position: absolute;
    bottom: 8rem;
    left: 3rem;
    z-index: 2;
}

.hero-text h1 {
    font-family: var(--serif);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-family: var(--serif);
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-style: italic;
    font-weight: 400;
    color: var(--white-dim);
    line-height: 1.4;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    right: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.hero-scroll-hint span {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--white-muted);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ==========================================================================
   3. ABOUT
   ========================================================================== */
.about {
    padding: 10rem 3rem;
    border-bottom: 1px solid var(--border);
}

.about-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-lead h2 {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 400;
    line-height: 1.35;
    color: var(--white);
}

.about-body p {
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--white-dim);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   4. SERVICES
   ========================================================================== */
.services {
    padding: 6rem 3rem;
    background: var(--black-soft);
    border-bottom: 1px solid var(--border);
}

.services-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.service {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
}

.service-number {
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--white-muted);
    display: block;
    margin-bottom: 1.5rem;
}

.service h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--white);
}

.service p {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--white-dim);
}

/* ==========================================================================
   5. GALLERY (Masonry with CSS columns)
   ========================================================================== */
.gallery-section {
    padding: 8rem 0 6rem;
}

.gallery-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem 4rem;
}

.gallery-header h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 400;
}

.gallery {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
    column-count: 3;
    column-gap: 1rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border-radius: 2px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s var(--ease);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* ==========================================================================
   6. CONTACT
   ========================================================================== */
.contact {
    padding: 8rem 3rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.contact-inner {
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.contact p {
    font-size: 1rem;
    font-weight: 300;
    color: var(--white-dim);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.contact-links a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--white);
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s, color 0.3s;
}

.contact-links a:hover {
    border-color: var(--white);
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.footer {
    padding: 3rem;
    text-align: center;
    font-size: 0.7rem;
    color: var(--white-muted);
    letter-spacing: 0.05em;
    border-top: 1px solid var(--border);
}

/* ==========================================================================
   8. LIGHTBOX with ZOOM
   ========================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(5,5,5,0.97);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 201;
    line-height: 1;
    transition: transform 0.3s;
}

.lightbox-close:hover { transform: scale(1.2); }

.lightbox-body {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 2rem;
}

.lightbox-body img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.35s var(--ease);
    transform-origin: center center;
}

.lightbox-body img.zoomed {
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    transform: none; /* Show at natural resolution */
    cursor: zoom-out;
}

.lightbox-hint {
    position: absolute;
    bottom: 1.5rem;
    font-size: 0.7rem;
    color: var(--white-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.lightbox.active .lightbox-hint.hidden { opacity: 0; }

/* ==========================================================================
   9. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .gallery { column-count: 2; }
    .services-inner { grid-template-columns: 1fr; gap: 0; }
    .about-inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 640px) {
    .gallery { column-count: 1; padding: 0 1rem; }
    .nav { padding: 1.2rem 1.5rem; }
    .nav-links { gap: 1.5rem; }
    .nav-links a { font-size: 0.65rem; }
    .hero-text { left: 1.5rem; bottom: 5rem; }
    .about { padding: 5rem 1.5rem; }
    .services { padding: 4rem 1.5rem; }
    .gallery-header { padding: 0 1.5rem 3rem; }
    .contact { padding: 5rem 1.5rem; }
    .contact-links { flex-direction: column; gap: 1.5rem; }
}
