/* ============================================================
   Boom12 — main.css
   Tokens → Reset → Layout → Typography → Components → Sections
   ============================================================ */

/* --- Tokens ------------------------------------------------ */
:root {
    --bg:        #0B0B0B;
    --surface:   #141414;
    --surface-2: #1C1C1C;
    --border:    #252525;
    --text:      #EFEFEF;
    --muted:     #666666;
    --pink:      #F78FCA;
    --lime:      #C5D86D;
    --font:      'Outfit', sans-serif;
    --container: 1200px;
    --gutter:    clamp(1.25rem, 5vw, 2.5rem);
    --ease:      cubic-bezier(0.25, 0.1, 0.25, 1);
    --radius:    0px; /* Sharp corners throughout — agency aesthetic */
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* --- Layout ------------------------------------------------ */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { max-width: 65ch; }

.lede {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
}

time {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* --- Buttons ---------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.75rem 1.5rem;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 2px solid transparent;
    transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
    white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

.btn-primary {
    background: var(--pink);
    color: #0B0B0B;
    border-color: var(--pink);
}
.btn-primary:hover { background: #f5a8d4; border-color: #f5a8d4; }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--text); }

.btn-outline {
    background: transparent;
    color: var(--lime);
    border-color: var(--lime);
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
}
.btn-outline:hover { background: var(--lime); color: #0B0B0B; }

/* --- Links ------------------------------------------------- */
.link-arrow {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pink);
    letter-spacing: 0.01em;
    transition: opacity 0.15s;
}
.link-arrow:hover { opacity: 0.75; }

.back-link {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 1.5rem;
    transition: color 0.15s;
}
.back-link:hover { color: var(--text); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11,11,11,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 64px;
}
.site-logo svg { display: block; }
.site-logo:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

.site-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2.5rem);
}
.site-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.15s;
}
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta {
    color: var(--pink);
    font-weight: 600;
}
.site-nav .nav-cta:hover { color: #f5a8d4; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    transition: transform 0.2s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 700px) {
    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 1.5rem var(--gutter) 2rem;
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
    .site-nav a { font-size: 1.125rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding-top: clamp(3rem, 7vw, 5rem);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}
.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 22ch;
}
.footer-brand svg { display: block; margin-bottom: 0.25rem; }
.footer-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
    max-width: none;
}
.footer-nav ul, .footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.footer-nav a, .footer-services a {
    font-size: 0.9rem;
    color: var(--text);
    transition: color 0.15s;
}
.footer-nav a:hover, .footer-services a:hover { color: var(--pink); }
.footer-services li { font-size: 0.9rem; color: var(--muted); }
.footer-contact { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.footer-email {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    transition: color 0.15s;
}
.footer-email:hover { color: var(--pink); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
}
.footer-bottom p { font-size: 0.8125rem; color: var(--muted); max-width: none; }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HOME — HERO  (signature element)
   ============================================================ */
.hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 6rem;
}
.hero-headline {
    font-size: clamp(4.5rem, 16vw, 14rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 2.5rem;
}
.hero-headline span { display: block; }
.word-think  { color: var(--text); }
.word-create { color: var(--pink); }
.word-grow   { color: var(--lime); }

/* Fade-in on load — tasteful, not distracting */
@media (prefers-reduced-motion: no-preference) {
    .word-think  { animation: fadeUp 0.6s var(--ease) 0.05s both; }
    .word-create { animation: fadeUp 0.6s var(--ease) 0.15s both; }
    .word-grow   { animation: fadeUp 0.6s var(--ease) 0.25s both; }
    .hero-sub    { animation: fadeUp 0.6s var(--ease) 0.35s both; }
    .hero-actions { animation: fadeUp 0.6s var(--ease) 0.45s both; }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--muted);
    max-width: 50ch;
    margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   HOME — SERVICES
   ============================================================ */
.services {
    padding: clamp(4rem, 8vw, 7rem) 0;
    border-top: 1px solid var(--border);
}
.service-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}
.service-row:first-child { border-top: 1px solid var(--border); }
.service-row-label {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    padding-top: 0.2rem;
}
.service-row-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.service-row-body p { font-size: 0.9375rem; color: var(--muted); max-width: 55ch; }

@media (max-width: 600px) {
    .service-row { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.section-header h2 { margin: 0; }

/* ============================================================
   WORK GRID
   ============================================================ */
.featured-work, .work-archive {
    padding: clamp(4rem, 8vw, 7rem) 0;
    border-top: 1px solid var(--border);
}
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.work-grid--archive { gap: 2rem; }
.work-card {
    display: block;
    background: var(--surface);
    transition: transform 0.2s var(--ease);
}
.work-card:hover { transform: translateY(-3px); }
.work-card:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.work-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface-2);
}
.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s var(--ease);
}
.work-card:hover .work-card-image img { transform: scale(1.04); }
.work-card-image--empty { background: var(--surface-2); }
.work-card-info { padding: 1.25rem 1.5rem 1.5rem; }
.work-card-info h2, .work-card-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.015em;
}
.work-card-info p { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.75rem; }
.work-card-cta { font-size: 0.8125rem; font-weight: 600; color: var(--pink); }

/* First item in homepage grid spans full width */
.work-card--featured { grid-column: span 2; }
.work-card--featured .work-card-image { aspect-ratio: 21 / 9; }

@media (max-width: 700px) {
    .work-grid { grid-template-columns: 1fr; }
    .work-card--featured { grid-column: span 1; }
    .work-card--featured .work-card-image { aspect-ratio: 16 / 9; }
}

/* ============================================================
   POSTS GRID (home)
   ============================================================ */
.recent-posts {
    padding: clamp(4rem, 8vw, 7rem) 0;
    border-top: 1px solid var(--border);
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.post-card {
    display: block;
    background: var(--surface);
    transition: transform 0.2s var(--ease);
}
.post-card:hover { transform: translateY(-3px); }
.post-card:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.post-card-image { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s var(--ease); }
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-card-info { padding: 1.25rem; }
.post-card-info time { display: block; margin-bottom: 0.5rem; }
.post-card-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; line-height: 1.3; }
.post-card-info p { font-size: 0.875rem; color: var(--muted); }

@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .posts-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
    padding: clamp(5rem, 10vw, 8rem) 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
}
.cta-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.cta-banner h2 { margin: 0; }

@media (max-width: 560px) { .cta-banner .container { flex-direction: column; align-items: flex-start; } }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
    padding: clamp(4rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: 0.75rem; }
.page-header-sub { font-size: 1.1rem; color: var(--muted); }

/* ============================================================
   BLOG ARCHIVE (list style)
   ============================================================ */
.blog-archive { padding: clamp(3rem, 6vw, 5rem) 0; }
.post-list { display: flex; flex-direction: column; gap: 0; }
.post-list-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.post-list-item:first-child { border-top: 1px solid var(--border); }
.post-list-item:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.post-list-image { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); flex-shrink: 0; }
.post-list-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s var(--ease); }
.post-list-item:hover .post-list-image img { transform: scale(1.04); }
.post-list-info time { display: block; margin-bottom: 0.6rem; }
.post-list-info h2 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 0.5rem; }
.post-list-info p { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.75rem; }
.post-read-more { font-size: 0.8125rem; font-weight: 600; color: var(--pink); }

@media (max-width: 700px) {
    .post-list-item { grid-template-columns: 1fr; gap: 1rem; }
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0 0;
    font-size: 0.875rem;
    font-weight: 600;
}
.pagination-prev, .pagination-next { color: var(--pink); transition: opacity 0.15s; }
.pagination-prev:hover, .pagination-next:hover { opacity: 0.7; }
.pagination-info { color: var(--muted); }

/* ============================================================
   SINGLE ENTRY
   ============================================================ */
.single-entry { padding-bottom: 5rem; }
.single-hero-image { margin-bottom: 3rem; background: var(--surface); }
.single-hero-image img { width: 100%; max-height: 540px; object-fit: cover; }
.entry-header { padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.entry-header--post time { display: block; margin-bottom: 1rem; }
.entry-header h1 { margin-bottom: 1rem; }
.entry-excerpt {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 60ch;
    line-height: 1.6;
}

.entry-body {
    max-width: 720px;
    font-size: 1.0625rem;
    line-height: 1.8;
}
.entry-body h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.entry-body h3 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }
.entry-body p  { margin-bottom: 1.25rem; max-width: 65ch; }
.entry-body ul, .entry-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.entry-body li { margin-bottom: 0.4rem; list-style: disc; }
.entry-body ol li { list-style: decimal; }
.entry-body blockquote {
    border-left: 3px solid var(--pink);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--muted);
    font-size: 1.1rem;
}
.entry-body a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }
.entry-body a:hover { opacity: 0.8; }
.entry-body img { margin: 2rem 0; }

.entry-footer { padding-top: 3rem; border-top: 1px solid var(--border); margin-top: 3rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro { padding: clamp(4rem, 8vw, 6rem) 0; border-bottom: 1px solid var(--border); }
.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: start;
}
.about-intro-body p + p { margin-top: 1.25rem; }
.stat-block {
    display: flex;
    flex-direction: column;
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    gap: 0.2em;
}
.stat-num { white-space: nowrap; }

.team { padding: clamp(4rem, 8vw, 6rem) 0; }
.team h2 { margin-bottom: 2.5rem; }
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}
.team-card { background: var(--surface); }
.team-photo { aspect-ratio: 1; overflow: hidden; background: var(--surface-2); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-info { padding: 1.25rem 1.5rem 1.75rem; }
.team-info h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.team-role { font-size: 0.8125rem; font-weight: 600; color: var(--pink); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.75rem; max-width: none; }
.team-info p { font-size: 0.9rem; color: var(--muted); }

@media (max-width: 700px) {
    .about-intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section { padding: clamp(4rem, 8vw, 6rem) 0; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}
.contact-details { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.contact-detail-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pink);
    transition: opacity 0.15s;
}
.contact-detail-link:hover { opacity: 0.75; }
.contact-location { font-size: 0.9rem; color: var(--muted); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: flex; flex-direction: column; gap: 0.5rem; }
.form-row label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.01em;
}
.form-optional { font-weight: 400; color: var(--muted); }
.form-row input,
.form-row textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: border-color 0.15s;
    appearance: none;
}
.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--pink);
}
.form-row textarea { resize: vertical; min-height: 140px; }
.form-submit { margin-top: 0.5rem; }

.form-result {
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.form-result--success { background: rgba(197,216,109,0.12); border: 1px solid var(--lime); color: var(--lime); }
.form-result--error   { background: rgba(247,143,202,0.1);  border: 1px solid var(--pink); color: var(--pink); }

@media (max-width: 800px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
}
.error-code {
    display: block;
    font-size: clamp(5rem, 18vw, 12rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
}
.error-page h1 { margin-bottom: 1rem; }
.error-page p  { color: var(--muted); margin-bottom: 2rem; }
.error-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   UTILITY
   ============================================================ */
.empty-state { color: var(--muted); font-size: 1rem; padding: 3rem 0; }

/* Skip to content */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 999;
    background: var(--pink);
    color: #0B0B0B;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.875rem;
}
.skip-link:focus { top: 1rem; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
