/* ════════════════════════════════════════════
   Summit Decking — shared stylesheet
   Evergreen ink / cedar / mist
   ════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
    --ink:        #131A16;   /* deep evergreen-black, page base   */
    --pine:       #1C2620;   /* raised surfaces                   */
    --pine-edge:  #2A372F;   /* hairlines & borders               */
    --mist:       #ECE7DC;   /* primary text, warm paper          */
    --mist-dim:   rgba(236, 231, 220, 0.62);
    --cedar:      #D2915B;   /* warm sawn-cedar accent            */
    --cedar-deep: #B4783F;
    --sage:       #8CA083;   /* quiet secondary accent            */

    --font-display: 'Big Shoulders', 'Oswald', sans-serif;
    --font-body:    'Archivo', 'Raleway', sans-serif;
    --font-mono:    'IBM Plex Mono', monospace;

    --measure: 1600px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html { overflow-y: scroll; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--ink);
    color: var(--mist);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main, header, footer { position: relative; z-index: 1; }
a { color: inherit; }
::selection { background: var(--cedar); color: var(--ink); }

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--cedar);
    outline-offset: 3px;
}

/* ── Type utilities ── */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cedar);
}

section {
    max-width: var(--measure);
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 5rem) var(--gutter) 0;
    width: 100%;
}

.section-head {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.section-head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--pine-edge);
    transform: translateY(-4px);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--mist);
    line-height: 1;
}

/* ════════════════════════════════════════════
   HEADER & NAVIGATION
   ════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1001;
    background: var(--ink);
    border-bottom: 1px solid var(--pine-edge);
}

.header-inner {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0.85rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo img { display: block; height: 48px; width: auto; }

/* desktop nav */
.desktop-nav ul { list-style: none; display: flex; align-items: center; gap: 2.25rem; }

.desktop-nav a {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--mist-dim);
    transition: color 0.2s;
    padding: 0.5rem 0;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a[aria-current="page"] { color: var(--cedar); }

.desktop-nav .nav-cta {
    color: var(--ink);
    background: var(--cedar);
    padding: 0.6rem 1.2rem;
    border-radius: 3px;
    font-weight: 500;
    transition: background 0.2s;
}

.desktop-nav .nav-cta:hover,
.desktop-nav .nav-cta:focus-visible { background: var(--cedar-deep); color: var(--ink); }

/* portfolio dropdown (desktop) */
.dropdown { position: relative; }
.dropdown > a::after { content: " \25BE"; font-size: 0.65rem; opacity: 0.6; }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: var(--pine);
    border: 1px solid var(--pine-edge);
    border-radius: 4px;
    list-style: none;
    min-width: 190px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a { display: block; padding: 0.6rem 1.1rem; font-size: 0.74rem; }

/* hamburger — mobile only */
.hamburger {
    display: none;
    width: 28px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--mist);
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* mobile drawer */
.mobile-nav {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;   /* fills real screen height on mobile, under browser toolbars */
    background: var(--ink);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;   /* was flex-start + padding-top — now truly centered */
    align-items: center;
    overflow: hidden;          /* was overflow-y: auto — no scrolling inside the drawer */
}

body.nav-open {
    overflow: hidden;
    height: 100dvh;
}

.mobile-nav.active { transform: translateX(0); }

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.6rem;
    padding: 0 2rem;
    width: 100%;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--mist);
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.mobile-nav a:hover { color: var(--cedar); }

.has-submenu { display: flex; flex-direction: column; align-items: center; }
.has-submenu > a { cursor: pointer; }
.has-submenu > a::after { content: " \25BE"; font-size: 1rem; opacity: 0.6; }
.has-submenu.open > a::after { content: " \25B4"; }

.mobile-nav .submenu {
    display: none;
    list-style: none;
    margin-top: 0.9rem;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-nav .has-submenu.open .submenu { display: flex; }

.submenu a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    font-weight: 400;
    color: var(--mist-dim);
}

/* ════════════════════════════════════════════
   BUTTONS & LINKS
   ════════════════════════════════════════════ */
.cta-button {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.7rem;
    border-radius: 3px;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.cta-button.primary { background: var(--cedar); color: var(--ink); }
.cta-button.primary:hover { background: var(--cedar-deep); transform: translateY(-2px); }
.cta-button.secondary { background: transparent; color: var(--mist); border: 1px solid var(--pine-edge); }
.cta-button.secondary:hover { border-color: var(--cedar); color: var(--cedar); }

.text-link {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cedar);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.2s;
}

.text-link:hover { border-color: var(--cedar); }

/* ════════════════════════════════════════════
   SPEC STRIPS (homepage stats + project specs)
   ════════════════════════════════════════════ */
.spec-strip,
.project-specs {
    border-top: 1px solid var(--pine-edge);
    border-bottom: 1px solid var(--pine-edge);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.spec-strip { margin-top: clamp(3rem, 7vw, 5rem); }
.project-specs { margin-top: clamp(2rem, 5vw, 3rem); }

.spec {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
    text-align: center;
}

.spec + .spec { border-left: 1px solid var(--pine-edge); }

.spec-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--cedar);
    line-height: 1;
}

.spec-value {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 600;
    color: var(--cedar);
    line-height: 1;
    text-transform: uppercase;
}

.spec-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mist-dim);
}

/* ════════════════════════════════════════════
   HOMEPAGE
   ════════════════════════════════════════════ */
.home-hero {
    max-width: var(--measure);
    margin: 0 auto;
    padding: clamp(4rem, 10vw, 7.5rem) var(--gutter) 0;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: end;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 9.5vw, 7.2rem);
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--mist);
    margin-top: 1.1rem;
}

.hero-title em { font-style: normal; color: var(--cedar); }

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding-bottom: 0.5rem;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.75;
    color: var(--mist-dim);
    max-width: 44ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* gallery — plank-proportioned project boards */
.gallery-boards { display: flex; flex-direction: column; gap: 1rem; }

.board {
    position: relative;
    display: block;
    height: clamp(180px, 26vw, 280px);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    background: linear-gradient(100deg, #2E2119 0%, #4A3524 45%, #2E2119 100%);
    border: 1px solid var(--pine-edge);
}

.board img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: saturate(0.92);
}

.board:hover img { transform: scale(1.03); }

.board::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(19,26,22,0.88) 0%,
        rgba(19,26,22,0.45) 40%,
        rgba(19,26,22,0) 75%
    );
}

.board-meta {
    position: absolute;
    left: clamp(1.25rem, 3vw, 2.25rem);
    bottom: 1.4rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.board-index {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    color: var(--cedar);
    text-transform: uppercase;
}

.board-name {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4.5vw, 2.6rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--mist);
    line-height: 1;
}

.board-view {
    position: absolute;
    right: clamp(1.25rem, 3vw, 2.25rem);
    bottom: 1.6rem;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mist-dim);
    transition: color 0.2s, transform 0.2s;
}

.board:hover .board-view { color: var(--cedar); transform: translateX(4px); }

/* craft / about band */
.craft-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.craft-photo {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--pine-edge);
    aspect-ratio: 4 / 3;
    background: linear-gradient(120deg, #22301F, #16211B);
}

.craft-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.92);
}

.craft-copy { display: flex; flex-direction: column; gap: 1.25rem; }

.craft-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.05;
}

.craft-copy p { color: var(--mist-dim); line-height: 1.8; font-size: 0.98rem; }
.craft-copy .text-link { align-self: flex-start; }

/* process teaser (homepage) */
.process-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--pine-edge);
}

.process-cell {
    padding: 1.75rem 1.5rem 1.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-bottom: 1px solid var(--pine-edge);
}

.process-cell + .process-cell { padding-left: 1.5rem; border-left: 1px solid var(--pine-edge); }
.process-cell .eyebrow { color: var(--sage); }

.process-cell h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.process-cell p { font-size: 0.9rem; line-height: 1.75; color: var(--mist-dim); }
.process-more { margin-top: 1.75rem; }

/* ════════════════════════════════════════════
   INNER PAGES — shared hero
   ════════════════════════════════════════════ */
.page-hero {
    max-width: var(--measure);
    margin: 0 auto;
    padding: clamp(3.5rem, 9vw, 6.5rem) var(--gutter) 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--mist);
}

.page-hero h1 em { font-style: normal; color: var(--cedar); }

.page-lead {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.8;
    color: var(--mist-dim);
    max-width: 60ch;
}

/* ════════════════════════════════════════════
   ABOUT PAGE
   ════════════════════════════════════════════ */
.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.about-card {
    background: var(--pine);
    border: 1px solid var(--pine-edge);
    border-radius: 4px;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s, transform 0.2s;
}

.about-card:hover { border-color: var(--cedar); transform: translateY(-3px); }

.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--mist);
}

.about-card p { font-size: 0.92rem; line-height: 1.75; color: var(--mist-dim); }

.about-quote {
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
    border-top: 1px solid var(--pine-edge);
    border-bottom: 1px solid var(--pine-edge);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: var(--measure);
    margin: clamp(3rem, 7vw, 5rem) auto 0;
}

.about-quote blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 500;
    color: var(--mist);
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.about-quote cite {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: var(--cedar);
    font-style: normal;
    text-transform: uppercase;
}

/* ════════════════════════════════════════════
   PROCESS PAGE
   ════════════════════════════════════════════ */
.process-steps { display: flex; flex-direction: column; }

.process-step {
    display: flex;
    gap: clamp(1.25rem, 4vw, 2.5rem);
    padding: 2.25rem 0;
    border-bottom: 1px solid var(--pine-edge);
}

.process-step:first-child { border-top: 1px solid var(--pine-edge); }

.step-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--cedar);
    opacity: 0.45;
    line-height: 1;
    min-width: 3.5rem;
    transition: opacity 0.2s;
}

.process-step:hover .step-number { opacity: 1; }

.step-content {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 0.3rem;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--mist);
}

.step-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--mist-dim);
    max-width: 62ch;
}

/* ════════════════════════════════════════════
   PROJECT PAGES
   ════════════════════════════════════════════ */
.project-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.ph {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--pine-edge);
    background: linear-gradient(100deg, #2E2119 0%, #4A3524 45%, #2E2119 100%);
    aspect-ratio: 4 / 3;
}

.ph.wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }

.ph img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92);
    transition: transform 0.5s ease;
}

.ph:hover img { transform: scale(1.03); }

.project-notes {
    margin-top: clamp(2rem, 5vw, 3rem);
    max-width: 68ch;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-notes p { line-height: 1.8; color: var(--mist-dim); font-size: 0.98rem; }

.project-nav {
    margin-top: clamp(2.5rem, 6vw, 4rem);
    border-top: 1px solid var(--pine-edge);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ════════════════════════════════════════════
   CTA BAND (all pages)
   ════════════════════════════════════════════ */
.cta-band {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.cta-band h2 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 7vw, 4.5rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.98;
    letter-spacing: 0.01em;
}

.cta-band h2 em { font-style: normal; color: var(--cedar); }

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--mist-dim);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.instagram-link:hover { color: var(--cedar); }
.instagram-icon { width: 18px; height: 18px; }

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
.site-footer {
    margin-top: auto;
    background: var(--pine);
    border-top: 1px solid var(--pine-edge);
    padding: 2.5rem var(--gutter);
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo { height: 38px; width: auto; opacity: 0.75; }

.footer-tagline {
    font-size: 0.85rem;
    color: var(--mist-dim);
    letter-spacing: 0.04em;
}

.footer-links {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mist-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--cedar); }

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(236, 231, 220, 0.35);
}

/* ════════════════════════════════════════════
   REVEAL ON SCROLL
   ════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 860px) {
    .desktop-nav { display: none; }
    .hamburger { display: flex; }
    .logo img { height: 40px; }

    .hero-grid { grid-template-columns: 1fr; align-items: start; }
    .craft-band { grid-template-columns: 1fr; }

    .process-row { grid-template-columns: 1fr; }
    .process-cell { padding: 1.5rem 0; }
    .process-cell + .process-cell { padding-left: 0; border-left: none; }

    .board { height: 200px; }
}

@media (max-width: 640px) {
    .project-gallery { grid-template-columns: 1fr; }
    .ph.wide { aspect-ratio: 16 / 9; }
}

@media (max-width: 480px) {
    .spec-strip, .project-specs { grid-template-columns: 1fr; }
    .spec + .spec { border-left: none; border-top: 1px solid var(--pine-edge); }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .cta-actions { width: 100%; max-width: 300px; }
}

@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 { opacity: 1; transform: none; }
}
