/* =============================================
   VAREMA - Global Styles
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
    --black: #0A0A1E;
    --deep-navy: #13132B;
    --navy: #1E1E3F;
    --tan: #D4AF7F;
    --silver: #C8C7C2;
    --cool-grey: #EDEDF0;
    --ice: #F4F6FC;
    --white: #FFFFFF;

    --font-family: 'Inter', system-ui, -apple-system, sans-serif;

    --nav-height: 80px;
    --container-width: 1200px;
    --container-padding: 1.5rem;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--navy);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.text-center {
    text-align: center;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

/* Dark section typography */
.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

.section-dark p,
.section-dark li {
    color: var(--silver);
}

/* Light section typography */
.section-light h1,
.section-light h2,
.section-light h3 {
    color: var(--navy);
}

.section-light p,
.section-light li {
    color: var(--navy);
}

/* Overline / eyebrow text */
.overline {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--navy);
    margin-bottom: 1rem;
    opacity: 0.6;
}

/* Section intro paragraph */
.section-intro {
    max-width: 700px;
    margin-bottom: 2.5rem;
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    height: var(--nav-height);
    transition: background-color 0.3s ease;
}

.site-nav.scrolled {
    background-color: rgba(10, 10, 30, 0.97);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 28px;
    width: auto;
}

.nav-logo .nav-logo-dark {
    display: none;
}

.nav-logo:hover {
    opacity: 0.8;
}

/* Solid nav (inner pages) */
.site-nav.nav-solid {
    background-color: var(--black);
    position: relative;
}

/* On solid navy bg, keep the white/light logo visible (default) */

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--white);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--white);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--white);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   SECTIONS
   ============================================= */
section {
    padding: 6rem 0;
}

.section-dark {
    background-color: var(--deep-navy);
}

.section-light {
    background-color: var(--white);
}

.section-light + .section-light {
    padding-top: 0;
}

.section-grey {
    background-color: var(--cool-grey);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background-color: var(--deep-navy);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 90%;
    will-change: transform;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 30, 0.5) 0%, rgba(10, 10, 30, 0.1) 50%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 var(--container-padding) 6rem;
    margin-left: max(var(--container-padding), calc((100vw - var(--container-width)) / 2));
}

.hero h1 {
    color: var(--white);
    margin-bottom: 2rem;
    text-transform: uppercase;
    line-height: 1.05;
}

.hero p {
    color: var(--silver);
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero .overline {
    margin-bottom: 1.5rem;
    color: var(--white);
    opacity: 1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* --- Main content offset for fixed nav --- */
main {
    padding-top: 0;
}

/* Pages without hero need nav offset */
.page-content {
    padding-top: var(--nav-height);
}

.nav-solid + .page-content {
    padding-top: 0;
}

/* =============================================
   SPLIT SECTIONS (Who We Are / What We Do)
   ============================================= */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-reverse {
    direction: ltr;
}

.split-reverse > * {
    direction: ltr;
}

.split-text h2 {
    margin-bottom: 1.5rem;
}

.split-text p {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #555;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    max-height: 450px;
}

/* Services list for What We Do split */
.services-list {
    margin-bottom: 2rem;
}

.services-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    color: #444;
}

.services-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background-color: var(--navy);
    border-radius: 50%;
}

/* =============================================
   WHO WE ARE
   ============================================= */
.who-we-are {
    padding: 6rem 0;
}

.who-we-are h2 {
    margin-bottom: 1.5rem;
}

/* =============================================
   WHAT WE DO SUMMARY
   ============================================= */
.what-we-do-summary {
    padding: 6rem 0;
}

/* =============================================
   HOW WE DO IT
   ============================================= */
.how-we-do-it {
    padding: 6rem 0;
}

.how-we-do-it h2 {
    margin-bottom: 1rem;
}

.how-we-do-it .card-grid {
    padding: 0;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--black);
    color: var(--white);
    border-radius: 4px;
}

.btn-primary:hover {
    background-color: var(--navy);
    box-shadow: 0 4px 20px rgba(10, 10, 30, 0.3);
}

.btn-dark {
    background-color: var(--navy);
    color: var(--white);
    border: 2px solid var(--navy);
}

.btn-dark:hover {
    background-color: #2A2A52;
    border-color: #2A2A52;
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--tan);
}

.btn-outline:hover {
    background-color: var(--tan);
    color: var(--navy);
}

/* =============================================
   CARDS
   ============================================= */
.card {
    background-color: var(--navy);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.card-icon {
    margin-bottom: 1.5rem;
    color: var(--white);
    display: flex;
    justify-content: center;
}

.card-icon svg {
    width: 48px;
    height: 48px;
}

.card h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: var(--silver);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Card grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* =============================================
   PORTFOLIO TEASER
   ============================================= */
.portfolio-teaser {
    padding: 6rem 0;
}

.portfolio-teaser h2 {
    margin-bottom: 1.5rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    overflow: hidden;
}

.portfolio-thumb-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-thumb-img {
    transform: scale(1.03);
}

.portfolio-name {
    color: var(--navy);
    font-weight: 600;
    font-size: 1rem;
}

/* =============================================
   PORTFOLIO DETAIL PAGE
   ============================================= */
.portfolio-detail {
    padding: 2rem 0 2rem;
}

.portfolio-detail-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
}

.portfolio-detail-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portfolio-detail-title .overline {
    margin-bottom: 0;
}

.portfolio-detail-title h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    color: var(--navy);
}

.portfolio-detail-meta {
    border-left: 3px solid var(--tan);
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
}

.portfolio-detail-meta p {
    font-size: 1rem;
    color: var(--navy);
    line-height: 1.6;
}

.portfolio-gallery {
    padding: 0 0 6rem;
}

.portfolio-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.portfolio-gallery-grid img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.portfolio-gallery-grid img:hover {
    transform: scale(1.02);
}

.portfolio-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--tan);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.portfolio-back:hover {
    color: var(--navy);
}

/* =============================================
   PORTFOLIO PAGE (FULL)
   ============================================= */
.portfolio-header {
    padding: 2rem 0 0.5rem;
    text-align: center;
}

.portfolio-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.portfolio-header .section-intro {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

.portfolio-full {
    padding: 1.5rem 0 4rem;
}

.portfolio-grid-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.portfolio-card {
    border-radius: 0;
    overflow: hidden;
    background: var(--ice);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(10, 10, 30, 0.12);
}

.portfolio-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.portfolio-card-img {
    overflow: hidden;
}

.portfolio-card-img img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-card-img img {
    transform: scale(1.05);
}

.portfolio-card-info {
    padding: 1.5rem 1.5rem 2rem;
}

.portfolio-card-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.portfolio-card-info p {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1.25rem;
}

.portfolio-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.02em;
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
    background-color: var(--navy);
    padding: 5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--tan);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background-color: var(--black);
    padding: 1.5rem 0;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    color: var(--silver);
    font-size: 0.8125rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--silver);
    font-size: 0.8125rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--tan);
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    background-color: var(--deep-navy);
    padding: 6rem 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--silver);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-form {
    max-width: 500px;
    margin: 2rem auto 0;
}

.cta-form-row {
    display: flex;
    gap: 0;
}

.cta-form-row input[type="email"] {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-family: var(--font-family);
    font-size: 1rem;
    border: 2px solid var(--white);
    background-color: transparent;
    color: var(--white);
    outline: none;
}

.cta-form-row input[type="email"]::placeholder {
    color: var(--silver);
}

.cta-form-row .btn {
    white-space: nowrap;
}

.cta-confirmation {
    color: var(--tan);
    font-size: 1.125rem;
    margin-top: 2rem;
}

.cta-error {
    color: #e57373;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* =============================================
   WHO WE ARE PAGE
   ============================================= */
.hero-wwa {
    min-height: 60vh;
    align-items: center;
    justify-content: center;
    background-image: url('/assets/img/who-we-are.webp');
    background-size: cover;
    background-position: center;
}

.hero-wwa-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    padding: 10rem var(--container-padding);
}

.hero-wwa-content h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-wwa-content p {
    color: var(--silver);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

/* =============================================
   WHAT WE DO HERO
   ============================================= */
.hero-wwd {
    min-height: 60vh;
    align-items: center;
    justify-content: center;
    background-image: url('/assets/img/wwd-hero.webp');
    background-size: cover;
    background-position: 50% 44%;
}

.hero-wwd-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    padding: 10rem var(--container-padding);
}

.hero-wwd-content h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-wwd-content p {
    color: var(--silver);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

/* =============================================
   WHAT WE DO SERVICES
   ============================================= */
.wwd-services {
    padding: 3rem 0;
}

.wwd-service {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 0;
    padding: 2rem 0;
}

.wwd-service h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    padding-right: 3rem;
    display: flex;
    align-items: flex-start;
}

.wwd-service p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #555;
    border-left: 1px solid var(--silver);
    padding-left: 3rem;
    margin: 0;
}


/* =============================================
   LEGAL PAGES
   ============================================= */
.legal-page {
    padding: 4rem 0 6rem;
}

.legal-page h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    color: var(--navy);
}

.legal-page h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.legal-page p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
    max-width: 800px;
}

.legal-page a {
    color: var(--navy);
    text-decoration: underline;
}

.legal-page a:hover {
    color: var(--tan);
}

.legal-list {
    margin-bottom: 1rem;
    max-width: 800px;
}

.legal-list li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 5px;
    height: 5px;
    background-color: var(--navy);
    border-radius: 50%;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet */
@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--black);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        font-size: 1.125rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-menu a::after {
        display: none;
    }

    .footer-container {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    section {
        padding: 4rem 0;
    }

    .split-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .split-reverse .split-image {
        order: -1;
    }

    .portfolio-detail-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-gallery-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .portfolio-grid-full {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        margin-left: 0;
        padding-bottom: 4rem;
    }

    .hero-wwa-content {
        padding: 6rem var(--container-padding);
    }

    .hero-wwd-content {
        padding: 6rem var(--container-padding);
    }

    .cta-form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .wwd-service {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .wwd-service p {
        border-left: none;
        padding-left: 0;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
}
