/* Layout - Navigation, Hero, Container, Footer */

/* Navigation */
nav {
    background: var(--white);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-light);
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: box-shadow var(--transition-base), border-bottom-color var(--transition-base);
    background: rgba(255, 255, 255, 0.98);
    
    /* iOS-specific fixes for sticky positioning */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Backdrop filter only on desktop - conflicts with position:fixed on iOS Chrome */
@media (min-width: 901px) {
    nav {
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.95);
    }
}

/* Fallback for browsers that don't support backdrop-filter well */
@supports not (backdrop-filter: blur(10px)) {
    nav {
        background: rgba(255, 255, 255, 0.98);
    }
}

nav.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--border-medium);
}

.nav-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: opacity var(--transition-base);
}

.logo:hover {
    opacity: 0.85;
}

.logo:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

.logo-image {
    height: 85px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: var(--space-md);
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--black);
    text-decoration: none;
    font-weight: normal;
    font-family: 'Adriano Etc', 'Courier New', monospace;
    transition: all var(--transition-base);
    font-size: var(--font-size-base);
    letter-spacing: 0.01em;
    position: relative;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: var(--dark-blue);
}

.nav-links a:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

.nav-links .contact-btn {
    background: var(--spring-sage); /* #A3BD6B - CTA emphasis color */
    color: var(--dark-blue);
    padding: 0.625rem var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.nav-links .contact-btn:hover {
    background: var(--dark-green); /* #0F590D */
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

/* Active state - when on contact.html page */
.nav-links .contact-btn.active {
    background: var(--medium-green); /* #639605 */
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.nav-links .contact-btn:focus-visible {
    outline: 2px solid var(--medium-green);
    outline-offset: 3px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    padding: 0;
}

/* Hamburger spans */
.mobile-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-primary);
    border-radius: var(--radius-sm);
    opacity: 1;
    left: 0;
    transition: all var(--transition-base);
}

.mobile-toggle span:nth-child(1) {
    top: 0;
}

.mobile-toggle span:nth-child(2) {
    top: 10px;
}

.mobile-toggle span:nth-child(3) {
    top: 20px;
}

/* X transformation when active */
.mobile-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

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

.mobile-toggle.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    height: 75vh;
    min-height: 400px;
    max-height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
}

.hero-video iframe {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 177.78vh;
    max-height: 56.25vw;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    /* Overlay removed for clearer videos/images */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    width: 100%;
}

.hero h1 {
    font-family: 'Adriano Etc', 'Courier New', monospace;
    font-size: var(--font-size-6xl);
    color: var(--white);
    font-weight: normal;
    text-shadow: 2px 2px 16px rgba(0,0,0,0.6), 0 0 40px rgba(0,0,0,0.3);
    line-height: var(--leading-tight);
    max-width: 900px;
    letter-spacing: -0.02em;
}

.hero.short {
    height: 70vh;
    min-height: 500px;
    max-height: 750px;
}

/* Hero Image (for pages with static images instead of video) */
.hero.image-only {
    position: relative;
    height: 75vh;          /* Match standard video heroes (changed from 50vh) */
    min-height: 400px;     /* Match standard video heroes (changed from 300px) */
    max-height: 800px;     /* Match standard video heroes (changed from 500px) */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Page Banner */
.page-banner {
    background: var(--light-blue);
    padding: 2rem 0;
    text-align: center;
}

.banner-content {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.banner-title {
    font-family: 'Adriano Etc', 'Courier New', monospace;
    font-size: var(--font-size-5xl);
    color: var(--dark-blue);
    font-weight: normal;
    line-height: var(--leading-snug);
    margin: 0;
    letter-spacing: -0.01em;
}

/* Main Content Container */
.container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 2rem var(--space-xl) 0.5rem;
}

/* Page Visibility */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Footer - Simplified Design */
footer {
    background: var(--light-blue);
    padding: 3rem 0 2rem;
    margin-top: var(--space-xl);
}

.footer-simplified {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
}

.footer-main-content h3 {
    font-family: 'Adriano Etc', 'Courier New', monospace;
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-weight: normal;
    letter-spacing: -0.02em;
    text-shadow: 0 0 0.5px currentColor;
}

.footer-main-content p {
    font-size: 0.75rem;
    line-height: 1.625;
    color: var(--dark-blue);
    max-width: 65ch;
    font-weight: 300;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    width: auto; /* Ensure natural width */
    min-width: 250px; /* Minimum width to prevent squishing */
}

.social-coming-soon {
    font-size: 0.75rem;
    color: var(--dark-blue);
    opacity: 0.7;
    font-weight: 400;
    margin: 0;
    text-align: center;
}

.social-icons-row {
    text-align: center;
    white-space: nowrap !important; /* Force horizontal layout */
    line-height: 0; /* Remove line-height gaps */
    font-size: 0; /* Remove font-size gaps */
    direction: ltr; /* Force left-to-right */
    unicode-bidi: normal; /* Prevent any text direction issues */
    width: 100%;
}

.social-icon {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    object-fit: contain;
    transition: all 0.25s ease;
    cursor: default;
    display: inline-block !important; /* Inline-block for horizontal layout */
    vertical-align: middle !important; /* Ensure proper alignment */
    margin: 0 10px; /* Spacing between icons (replaces gap) */
    /* Precise Dark Blue (#2D5475) filter to match title */
    -webkit-filter: brightness(0) saturate(100%) invert(26%) sepia(23%) saturate(1234%) hue-rotate(169deg) brightness(92%) contrast(91%);
    filter: brightness(0) saturate(100%) invert(26%) sepia(23%) saturate(1234%) hue-rotate(169deg) brightness(92%) contrast(91%);
    opacity: 0.4; /* Reduced from 0.85 to show inactive state */
    /* Chrome rendering hints */
    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0);
    pointer-events: none; /* Prevent any accidental taps */
}

/* Remove hover effect since these are inactive */
.social-icon:hover {
    opacity: 0.4;
    transform: translateZ(0);
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(45, 84, 117, 0.2);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 3rem;
    padding-right: 3rem;
}

.footer-copyright p {
    font-size: 0.875rem;
    color: var(--dark-blue);
    opacity: 0.85;
}
