/* ================================================================
   THE MAN PROJECT — Shared Styles
   ================================================================ */

/* RESET & BASE */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }

:root {
    --bg: #FFFFFF;
    --bg-off: #F7F6F3;
    --bg-warm: #F2F0EC;
    --bg-dark: #1A1918;
    --bg-darker: #111110;
    --text-dark: #1A1918;
    --text-body: #4A4844;
    --text-muted: #8A8580;
    --text-light: #FFFFFF;
    --text-light-muted: rgba(255,255,255,0.7);
    --gold: #B8956A;
    --gold-soft: rgba(184,149,106,0.12);
    --divider: rgba(0,0,0,0.08);
    --divider-light: rgba(255,255,255,0.12);
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    font-family: var(--sans);
    color: var(--text-dark);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0 40px; height: 80px;
    display: flex; align-items: center; justify-content: space-between;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}
.site-header.at-top { background: transparent; }
.site-header.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--divider);
}
.header-logo img { height: 42px; width: auto; transition: filter 0.4s ease; }
.site-header.at-top .header-logo img { filter: brightness(0) invert(1); }
.site-header.scrolled .header-logo img { filter: none; }

.header-right { display: flex; align-items: center; gap: 24px; }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a {
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    font-weight: 500; transition: color 0.3s, opacity 0.3s; opacity: 0.85;
}
.header-nav a:hover { opacity: 1; color: var(--gold); }
.site-header.at-top .header-nav a { color: #fff; }
.site-header.scrolled .header-nav a { color: var(--text-dark); }

.menu-btn {
    width: 28px; height: 20px; position: relative; display: flex; flex-direction: column;
    justify-content: space-between; padding: 0;
}
.menu-btn span {
    display: block; width: 100%; height: 1.5px; transition: background 0.4s ease;
}
.site-header.at-top .menu-btn span { background: #fff; }
.site-header.scrolled .menu-btn span { background: var(--text-dark); }
.site-header.at-top .header-login { color: #fff; border-color: rgba(255,255,255,0.3); }
.site-header.at-top .header-login:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
.site-header.scrolled .header-login { color: var(--text-dark); border-color: var(--divider); }
.site-header.scrolled .header-login:hover { border-color: var(--gold); color: var(--gold); }

/* ================================================================
   NAVIGATION DRAWER
   ================================================================ */
.nav-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000;
    opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease;
}
.nav-overlay.open { opacity: 1; visibility: visible; }

.nav-drawer {
    position: fixed; top: 0; left: 0; bottom: 0; width: 480px; max-width: 85vw;
    background: var(--bg-dark); z-index: 2001; color: var(--text-light);
    transform: translateX(-100%); transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    display: flex; flex-direction: column;
}
.nav-drawer.open { transform: translateX(0); }

.nav-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 28px 36px; border-bottom: 1px solid var(--divider-light);
}
.nav-header img { height: 32px; filter: brightness(0) invert(1); }
.nav-close {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    color: var(--text-light); font-size: 28px; opacity: 0.7; transition: opacity 0.3s;
}
.nav-close:hover { opacity: 1; }

.nav-menu { padding: 32px 36px; flex: 1; }
.nav-menu-item {
    display: block; padding: 14px 0;
    font-family: var(--sans); font-size: 13px; font-weight: 500;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--text-light); opacity: 0.85;
    transition: opacity 0.3s, color 0.3s;
    cursor: pointer;
}
.nav-menu-item:hover { opacity: 1; color: var(--gold); }
.nav-divider { height: 1px; background: var(--divider-light); margin: 20px 0; }

.nav-footer {
    padding: 24px 36px; border-top: 1px solid var(--divider-light);
    font-size: 11px; letter-spacing: 1.5px; color: var(--text-light-muted);
}
.nav-footer a { display: block; padding: 6px 0; transition: color 0.3s; }
.nav-footer a:hover { color: var(--gold); }

/* ================================================================
   SECTION HELPERS
   ================================================================ */
.section { padding: 100px 40px; }
.section-title {
    font-family: var(--serif); font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 400; font-style: italic; line-height: 1.2;
    margin-bottom: 16px;
}
.section-sub {
    font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 48px;
}
.cta-link {
    display: inline-block; font-size: 12px; letter-spacing: 3px;
    text-transform: uppercase; font-weight: 500;
    padding: 12px 0; border-bottom: 1px solid var(--text-dark);
    transition: color 0.3s, border-color 0.3s; cursor: pointer;
}
.cta-link:hover { color: var(--gold); border-color: var(--gold); }
.cta-link-light { color: var(--text-light); border-color: rgba(255,255,255,0.5); }
.cta-link-light:hover { color: var(--gold); border-color: var(--gold); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ================================================================
   FLOATING WHATSAPP CTA
   ================================================================ */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    background: var(--bg-dark); color: var(--text-light);
    padding: 60px 40px 40px;
}
.footer-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px; max-width: 1400px; margin: 0 auto 48px;
}
.footer-col-title {
    font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--text-light-muted); margin-bottom: 20px;
}
.footer-link {
    display: block; font-size: 13px; padding: 5px 0;
    color: rgba(255,255,255,0.7); transition: color 0.3s;
}
.footer-link:hover { color: var(--gold); }
.footer-social { display: flex; gap: 20px; margin-top: 8px; }
.footer-social a {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--divider-light); transition: border-color 0.3s;
}
.footer-social a:hover { border-color: var(--gold); }
.footer-social svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.7); }

.footer-bottom {
    border-top: 1px solid var(--divider-light);
    padding-top: 24px; text-align: center;
    font-size: 12px; color: var(--text-light-muted);
}
.footer-logo { display: flex; justify-content: center; margin-bottom: 16px; }
.footer-logo img { height: 32px; filter: brightness(0) invert(1); }

/* ================================================================
   BREADCRUMBS
   ================================================================ */
.breadcrumbs {
    padding: 100px 40px 0;
    font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text-muted);
}
.breadcrumbs a { transition: color 0.3s; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }

/* ================================================================
   PAGE HERO (for inner pages)
   ================================================================ */
.page-hero {
    padding: 140px 40px 60px;
    background: var(--bg-dark); color: var(--text-light);
    text-align: center;
}
.page-hero .section-title { color: var(--text-light); margin-bottom: 12px; }
.page-hero .section-sub { color: var(--text-light-muted); margin-bottom: 0; }
.page-hero p {
    font-size: 15px; line-height: 1.8; opacity: 0.85;
    max-width: 700px; margin: 24px auto 0;
}

/* ================================================================
   PRODUCT GRID (reusable for collection pages)
   ================================================================ */
.product-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 32px; max-width: 1400px; margin: 0 auto;
}
.product-card {
    cursor: pointer; position: relative; overflow: hidden;
}
.product-card-img {
    position: relative; aspect-ratio: 3/4; overflow: hidden;
    margin-bottom: 20px;
}
.product-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-badge {
    position: absolute; top: 16px; left: 16px;
    font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
    background: rgba(0,0,0,0.6); color: #fff; padding: 5px 12px;
    backdrop-filter: blur(8px);
}
.product-card-name {
    font-family: var(--serif); font-size: 20px; font-style: italic;
    line-height: 1.3; margin-bottom: 4px;
}
.product-card-desc {
    font-size: 13px; color: var(--text-muted); line-height: 1.6;
}

/* ================================================================
   CONTENT SECTIONS (for inner pages)
   ================================================================ */
.content-section {
    padding: 80px 40px;
    max-width: 900px; margin: 0 auto;
}
.content-section h2 {
    font-family: var(--serif); font-size: clamp(24px, 3vw, 36px);
    font-weight: 400; font-style: italic; line-height: 1.3;
    margin-bottom: 20px;
}
.content-section h3 {
    font-family: var(--sans); font-size: 14px; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase;
    margin-top: 40px; margin-bottom: 12px;
}
.content-section p {
    font-size: 15px; line-height: 1.9; color: var(--text-body);
    margin-bottom: 16px;
}
.content-section ul, .content-section ol {
    font-size: 15px; line-height: 1.9; color: var(--text-body);
    margin-bottom: 16px; padding-left: 24px;
}
.content-section li { margin-bottom: 8px; }

/* ================================================================
   FAQ SECTION
   ================================================================ */
.faq-section { padding: 80px 40px; background: var(--bg-off); }
.faq-section .section-title { text-align: center; margin-bottom: 48px; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--divider); padding: 24px 0;
    cursor: pointer;
}
.faq-q {
    font-family: var(--sans); font-size: 15px; font-weight: 500;
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px;
}
.faq-q::after {
    content: '+'; font-size: 20px; font-weight: 300;
    color: var(--text-muted); transition: transform 0.3s;
    flex-shrink: 0;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease;
    font-size: 14px; line-height: 1.8; color: var(--text-body);
}
.faq-item.open .faq-a { max-height: 300px; padding-top: 16px; }

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
    padding: 80px 40px; background: var(--bg-dark);
    text-align: center; color: var(--text-light);
}
.cta-banner .section-title { color: var(--text-light); margin-bottom: 16px; }
.cta-banner p {
    font-size: 15px; line-height: 1.8; opacity: 0.85;
    max-width: 600px; margin: 0 auto 32px;
}
.cta-btn {
    display: inline-block; padding: 16px 48px;
    background: var(--gold); color: #fff;
    font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
    font-weight: 500; transition: background 0.3s;
}
.cta-btn:hover { background: #a07d56; }

/* ================================================================
   BLOG CARDS
   ================================================================ */
.blog-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 32px; max-width: 1200px; margin: 0 auto;
}
.blog-card { overflow: hidden; }
.blog-card-img {
    aspect-ratio: 16/9; overflow: hidden; margin-bottom: 20px;
}
.blog-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-tag {
    font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 8px;
}
.blog-card-title {
    font-family: var(--serif); font-size: 20px; font-style: italic;
    line-height: 1.3; margin-bottom: 8px;
}
.blog-card-excerpt {
    font-size: 13px; line-height: 1.7; color: var(--text-body);
    margin-bottom: 16px;
}
.blog-card-read {
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    font-weight: 500; color: var(--text-dark); transition: color 0.3s;
}
.blog-card:hover .blog-card-read { color: var(--gold); }

/* ================================================================
   ARTICLE PAGE
   ================================================================ */
.article-header {
    padding: 140px 40px 40px;
    text-align: center; max-width: 800px; margin: 0 auto;
}
.article-header .section-sub { margin-bottom: 16px; }
.article-header .section-title { margin-bottom: 16px; }
.article-meta {
    font-size: 12px; color: var(--text-muted); letter-spacing: 1px;
}
.article-body {
    max-width: 720px; margin: 0 auto; padding: 40px 40px 80px;
}
.article-body p {
    font-size: 16px; line-height: 1.9; color: var(--text-body);
    margin-bottom: 20px;
}
.article-body h2 {
    font-family: var(--serif); font-size: 28px; font-style: italic;
    font-weight: 400; margin-top: 48px; margin-bottom: 20px;
}
.article-body h3 {
    font-size: 14px; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; margin-top: 36px; margin-bottom: 12px;
}
.article-body ul, .article-body ol {
    font-size: 16px; line-height: 1.9; color: var(--text-body);
    margin-bottom: 20px; padding-left: 24px;
}
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
    border-left: 3px solid var(--gold);
    padding: 16px 24px; margin: 32px 0;
    font-family: var(--serif); font-style: italic;
    font-size: 18px; line-height: 1.7; color: var(--text-body);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .site-header { padding: 0 24px; height: 68px; }
    .header-nav { display: none; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .site-header { padding: 0 20px; height: 60px; }
    .header-logo img { height: 34px; }
    .section { padding: 60px 20px; }
    .page-hero { padding: 120px 20px 48px; }
    .breadcrumbs { padding: 80px 20px 0; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .product-card-name { font-size: 16px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .nav-drawer { width: 100%; max-width: 100vw; }
    .content-section { padding: 48px 20px; }
    .faq-section { padding: 48px 20px; }
    .cta-banner { padding: 48px 20px; }
    .article-header { padding: 100px 20px 32px; }
    .article-body { padding: 32px 20px 60px; }
    .blog-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr; }
}
