/* NGXT Static Website Styles */

/* Font Face Declarations */
@font-face {
    font-family: 'Ogilvy Serif';
    src: url('../fonts/ogilvyserif-regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ogilvy Serif';
    src: url('../fonts/ogilvyserif-bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Ogilvy Sans font-face removed - using Archivo instead */

/* CSS Variables for consistent theming */
:root {
    --primary-red: #F1002C;
    --primary-red-hover: #d40026;
    --primary-dark: #205;
    --text-primary: #000;
    --text-secondary: #666;
    --text-light: #999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-light: #e5e7eb;
    --font-ogilvy-serif: 'Ogilvy Serif', Georgia, serif;
    --font-ogilvy-sans: 'Archivo', system-ui, sans-serif;
    --font-archivo: 'Archivo', sans-serif;
}

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

body {
    font-family: var(--font-ogilvy-sans);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-family: var(--font-ogilvy-serif);
    font-weight: bold;
    font-style: normal;
}

h2 {
    font-family: var(--font-ogilvy-serif);
    font-weight: bold;
    font-style: normal;
}

h3 {
    font-family: var(--font-ogilvy-serif);
    font-weight: bold;
    font-style: normal;
}

blockquote {
    font-family: var(--font-ogilvy-serif);
    font-weight: normal;
    font-style: normal;
}

.font-serif {
    font-family: var(--font-ogilvy-serif);
}

.font-serif-bold {
    font-family: var(--font-ogilvy-serif);
    font-weight: 700;
}

.font-archivo {
    font-family: var(--font-archivo);
}

/* Utility classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    text-decoration: none;
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    text-decoration: none;
}

/* Header styles */
.site-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 100%;
    background-color: white;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.5s ease;
}

.site-header.scrolled {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    width: 60%;
    transform: translateX(-50%) translateY(12px);
}

/* Adjust scrolled header width for tablets to prevent squeezing */
@media (min-width: 768px) and (max-width: 1024px) {
    .site-header.scrolled {
        width: 70%;
        min-width: 600px;
    }
}

.site-header.work-page {
    background-color: black;
    color: white;
    border-bottom-color: #374151;
}

.site-header.work-page.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Work page tablet adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .site-header.work-page.scrolled {
        width: 70%;
        min-width: 600px;
    }
}

.site-header.hidden {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
}

.header-nav {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: height 0.3s ease;
}

    .header-nav.expanded {
        height: auto;
        padding-bottom: 32px;
    }

.logo img {
    height: 24px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

@media (min-width: 640px) {
    .logo img {
        height: 32px;
    }
}

/* iPad specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .logo img {
        height: 28px;
        max-height: 28px;
    }
    
    /* When header is scrolled and compressed, keep logo proportional */
    .site-header.scrolled .logo img {
        height: 24px;
        max-height: 24px;
    }
}

/* Better tablet navigation spacing */
@media (min-width: 768px) and (max-width: 1024px) {
    .nav-links {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: inherit;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: var(--primary-red);
}

.mobile-menu-toggle .hamburger-line {
    width: 24px;
    height: 2px;
    background-color: currentColor;
    margin: 4px 0;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    height: 100%;
}

@media (min-width: 640px) {
    .nav-links {
        gap: 12px;
    }
}

.nav-link {
    text-transform: uppercase;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: var(--font-ogilvy-sans);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

@media (min-width: 640px) {
    .nav-link {
        font-size: 14px;
        padding: 8px 12px;
    }
}

.nav-link:hover {
    color: var(--primary-red);
    text-decoration: none;
}

/* Mobile Navigation Styles */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-nav {
        flex-wrap: wrap;
        align-items: center;
        padding: 0 20px;
    }
    
    .nav-links {
        flex-basis: 100%;
        flex-direction: column;
        height: auto;
        gap: 16px;
        opacity: 0;
        display: none;
        transition: all 0.3s ease;
        margin-top: 0;
        order: 3;
    }
    
    .header-nav.expanded {
        height: auto;
        padding: 20px;
    }
    
    .header-nav.expanded .nav-links {
        opacity: 1;
        display: flex;
        margin-top: 20px;
    }
    
    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    
    .header-nav.expanded .nav-links li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-links li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links li:nth-child(4) { transition-delay: 0.25s; }
    
    .nav-link {
        width: 100%;
        height: auto;
        padding: 16px 0;
        font-size: 16px;
        justify-content: flex-start;
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Dark theme for work page */
    .site-header.work-page .nav-link {
        border-bottom-color: #374151;
    }
    
    /* Hero mode - show only hamburger menu */
    .site-header.hero-mode .nav-links {
        display: none !important;
        opacity: 0 !important;
    }
    
    .site-header.hero-mode .header-nav {
        height: 72px;
        padding: 0 20px;
    }
    
    .site-header.hero-mode .header-nav.expanded {
        height: auto;
        padding: 20px;
    }
    
    .site-header.hero-mode .header-nav.expanded .nav-links {
        display: flex !important;
        opacity: 1 !important;
    }
}

/* Main content */
.main-content {
    padding-top: 72px;
    overflow-x: hidden;
    width: 100%;
}

/* Responsive typography and spacing */
@media (max-width: 768px) {
    /* Ambition section responsive styles */
    .ambition-section h1 {
        font-size: clamp(2rem, 8vw, 3.5rem) !important;
        line-height: 1.2 !important;
    }
    
    .ambition-section .btn-primary,
    .ambition-section .btn-outline {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .ambition-section video {
        height: 300px !important;
    }
}

@media (max-width: 480px) {
    /* Ambition section mobile styles */
    .ambition-section h1 {
        font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
        line-height: 1.3 !important;
    }
    
    .ambition-section .btn-primary,
    .ambition-section .btn-outline {
        padding: 8px 16px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
        margin-bottom: 8px;
    }
    
    .ambition-section .d-flex {
        flex-direction: column;
        gap: 8px !important;
    }
    
    .ambition-section video {
        height: 250px !important;
    }
}

/* Footer styles */
.site-footer {
    position: relative;
    background-color: var(--primary-red);
    color: white;
    min-height: 400px;
}

@media (min-width: 640px) {
    .site-footer {
        min-height: 480px;
    }
}

.footer-container {
    position: relative;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-container {
        padding: 56px 40px;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: start;
    }
}

/* Left Column: Copyright and Logo */
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 200px;
}

/* Right Column: Navigation and Social Media */
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-right {
        display: grid;
        grid-template-columns: 60px 60px;
        gap: 20px;
        align-items: start;
        justify-items: end;
        justify-self: end;
    }
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav.social {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-size: 14px;
}

.footer-link:hover {
    opacity: 0.8;
    text-decoration: none;
    color: white;
}

.back-to-top {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    font-size: 30px;
    text-align: center;
}

@media (min-width: 768px) {
    .back-to-top {
        bottom: 32px;
        right: 40px;
    }
}

.back-to-top:hover {
    opacity: 1;
    text-decoration: none;
    color: white;
}

.footer-copyright {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
}

.footer-logo {
    /* Logo positioning handled by flexbox in footer-left */
}

.footer-logo img {
    height: 112px;
    width: auto;
}

@media (min-width: 640px) {
    .footer-logo img {
        height: 144px;
    }
}

@media (min-width: 768px) {
    .footer-logo img {
        height: 192px;
    }
}

/* Responsive utilities */
.d-none {
    display: none;
}

.d-block {
    display: block;
}

@media (min-width: 640px) {
    .d-sm-block {
        display: block;
    }
    .d-sm-none {
        display: none;
    }
}

@media (min-width: 768px) {
    .d-md-block {
        display: block;
    }
    .d-md-none {
        display: none;
    }
}

@media (min-width: 1024px) {
    .d-lg-block {
        display: block;
    }
    .d-lg-none {
        display: none;
    }
}