/* ACDC Website Styles */

/* Fonts */
@font-face {
    font-family: 'Courier New Custom';
    src: url('alliancedesign/Courier New Regular.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Courier New Custom';
    src: url('alliancedesign/Courier New Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Variables */
:root {
    --yellow: #f3ff00;
    --black: #000;
    --white: #fff;
    --font: 'Courier New Custom', 'Courier New', monospace;
    --site-width: 1000px;
}

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

/* Honeypot fields */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    pointer-events: none;
}

/* Hidden by default */
.hidden {
    display: none;
}

/* Responsive visibility */
.desktop-only { display: flex; }
.mobile-only { display: none; }

/* Base - Scaled fixed layout */
html { 
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    background: var(--white);
    min-height: 100%;
}

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--black);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Fixed-width wrapper that scales to fit viewport */
.site-wrapper {
    width: var(--site-width);
    background: var(--white);
    overflow: hidden;
    transform-origin: top left;
}

button, input, textarea, select {
    font-family: var(--font);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--white);
    z-index: 1000;
    height: 96px;
    padding: 0 32px;
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img { height: 72px; }

.nav { display: flex; gap: 8px; }

.nav-btn {
    font-family: var(--font);
    font-size: 18px;
    padding: 6px 20px;
    border: 2px solid var(--black);
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    letter-spacing: -0.03em;
}

.nav-btn:hover {
    background: var(--white);
    color: var(--black);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--black);
    transition: transform 0.3s, opacity 0.3s;
}

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

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

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 16px 32px;
    gap: 8px;
    z-index: 999;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    font-size: 18px;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    padding: 6px 0;
}

.mobile-nav a:hover {
    color: var(--yellow);
}

/* Hero */
.hero {
    position: relative;
    margin-top: 0;
}

.hero-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--yellow);
    z-index: 10;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: -48px;
}

.hero-content {
    position: absolute;
    bottom: 45%;
    left: 32px;
    z-index: 10;
}

.hero-title {
    display: flex;
    flex-direction: column;
    line-height: 0.9;
}

.hero-title .highlight {
    font-size: 36px;
    font-weight: 700;
    background: var(--yellow);
    color: var(--black);
    padding: 1px 5px;
    display: inline-block;
    width: fit-content;
    letter-spacing: -0.03em;
    transform: scaleY(1.12);
}

/* About */
.about {
    position: relative;
    margin-top: -48px;
    z-index: 20;
    padding: 0 32px;
}

.about-box {
    background: var(--black);
    color: var(--white);
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 48px;
}

.about-text { flex: 1; }

.about-text p { 
    font-size: 18px;
    line-height: 1.2; 
    letter-spacing: -0.03em;
    color: #999;
}

.about-cta { flex-shrink: 0; }

.btn-enlist,
.btn-enlist-large {
    font-family: var(--font);
    font-weight: 700;
    font-size: 20px;
    padding: 3px 8px;
    background: var(--yellow);
    color: var(--black);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    letter-spacing: -0.03em;
}

.btn-enlist:hover,
.btn-enlist-large:hover { 
    background: var(--white); 
}

/* Collage Section */
.collage { 
    padding: 0 32px;
    overflow: hidden;
}

.collage-row,
.avro-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.membership-row { margin-top: 20px; }
.avro-row { margin-top: -10px; }
.benefits-row { margin-top: -10px; align-items: center; }
.events-row { margin-top: -8px; align-items: center; }

.benefits-row .text-side,
.events-row .text-side { 
    justify-content: center; 
}

.text-side,
.avro-content {
    flex: 0 0 auto;
    width: fit-content;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    z-index: 5;
}

.text-side.left { align-items: flex-start; }
.text-side.right { align-items: flex-end; }
.avro-content { align-items: flex-end; }

.image-side {
    flex: 1 1 auto;
    min-width: 0;
    z-index: 1;
    display: flex;
}

.image-side.right { justify-content: flex-end; }
.image-side.left { justify-content: flex-start; }

.collage-img,
.avro-bg-img {
    width: auto;
    height: auto;
    max-width: 100%;
}

.image-side.right .collage-img { margin-left: -15%; }
.image-side.left .collage-img,
.image-side.left .avro-bg-img { margin-right: -15%; }

.atlantic-img { 
    min-width: 540px; 
    max-width: 580px; 
}

.canadarm-img { min-width: 620px; }
.avro-bg-img { min-width: 630px; }
.waterloo-img { min-width: 620px; }

.section-title { margin-bottom: 0; }

.section-title .highlight {
    font-size: 20px;
    font-weight: 700;
    background: var(--yellow);
    color: var(--black);
    padding: 2px 5px;
    display: inline-block;
    width: fit-content;
    letter-spacing: -0.03em;
    transform: scaleY(1.12);
}

.text-lines {
    display: flex;
    flex-direction: column;
}

.text-side.left .text-lines { align-items: flex-start; }
.text-side.right .text-lines { align-items: flex-end; }
.avro-content .text-lines { align-items: flex-end; }

.text-box {
    font-size: 18px;
    background: var(--black);
    color: #999;
    padding: 1px 5px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.text-box.indent { margin-left: 24px; }
.text-box.indent-right { margin-right: 24px; }
.underline { text-decoration: underline; }

/* Conference */
.conference { margin-top: 32px; }

.conference-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Enlist CTA */
.enlist-cta {
    padding: 16px 32px;
    display: flex;
    justify-content: center;
    background: var(--black);
}

.enlist-cta .btn-enlist-large { padding: 3px 12px; }

/* Footer */
.footer {
    background: var(--white);
    padding: 16px 32px;
    position: relative;
}

/* Extend footer background to fill any gaps below */
.footer::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    background: var(--white);
    transform: translateY(100%);
    z-index: -1;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-left p {
    font-size: 18px;
    color: var(--black);
    margin: 0;
    line-height: 1;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.footer-nav { 
    display: flex; 
    gap: 32px; 
}

.footer-nav a {
    font-size: 18px;
    color: var(--black);
    text-decoration: none;
    line-height: 1;
}

.footer-nav a:hover { color: var(--yellow); }

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    transition: color 0.15s ease, transform 0.15s ease;
}

.social-link:hover {
    color: #0a66c2;
    transform: scale(1.1);
}

.linkedin-icon {
    width: 24px;
    height: 24px;
}



/* Mobile */
@media (max-width: 768px) {
    html { 
        font-size: 16px; 
        overflow-x: hidden;
    }
    
    body {
        min-width: 100%;
        background: var(--white);
        height: auto !important;
    }
    
    .site-wrapper {
        width: 100%;
        transform: none !important;
    }

    /* Show/hide content based on viewport */
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }

    /* Mobile sections - clean stacked layout */
    .mobile-section {
        width: 100%;
    }

    .mobile-img {
        width: 100%;
        height: auto;
        display: block;
    }

    .mobile-text-block {
        background: var(--black);
        padding: 20px 16px;
    }

    .mobile-text-block p {
        color: #999;
        font-size: 14px;
        line-height: 1.5;
        margin-top: 8px;
    }

    .mobile-list {
        list-style: none;
        margin-top: 8px;
    }

    .mobile-list li {
        color: #999;
        font-size: 14px;
        line-height: 1.5;
        padding: 4px 0;
        padding-left: 16px;
        position: relative;
    }

    .mobile-list li::before {
        content: ">";
        position: absolute;
        left: 0;
        color: #999;
    }

    /* Header */
    .header { 
        height: clamp(50px, 12vw, 60px); 
        padding: 0 12px; 
        position: sticky;
        top: 0;
    }
    .logo img { height: clamp(32px, 8vw, 40px); }
    .nav { display: none; }
    .hamburger-menu { display: flex; }
    .hamburger-menu.active span { background: var(--white); }

    /* Hero */
    .hero { margin-top: 0; }
    .hero-image { margin: 0; width: 100%; height: auto; }
    .hero-content { bottom: 35%; left: 12px; right: 12px; }
    .hero-title .highlight { 
        font-size: clamp(16px, 5vw, 24px); 
        padding: 3px 5px; 
    }

    /* About - left aligned */
    .about { margin-top: 0; padding: 0; }
    .about-box { 
        flex-direction: column; 
        padding: 16px; 
        gap: 12px;
        align-items: flex-start;
    }
    .about-text p { 
        font-size: clamp(12px, 3.5vw, 14px); 
        line-height: 1.5;
        text-align: left;
    }
    
    /* Both Enlist buttons - match section headers but look like buttons */
    .about-cta .btn-enlist,
    .enlist-cta .btn-enlist-large {
        font-family: var(--font);
        font-size: clamp(16px, 4.5vw, 20px);
        font-weight: 700;
        padding: 6px 12px;
        letter-spacing: -0.03em;
        display: inline-block;
        box-sizing: border-box;
        line-height: 1;
        border: 2px solid var(--black);
    }

    /* Collage - hidden on mobile, using mobile-section instead */
    .collage { padding: 0; }
    
    /* Section titles - for mobile text blocks */
    .mobile-text-block .section-title { margin-bottom: 0; }
    .mobile-text-block .section-title .highlight { 
        font-size: 18px; 
        padding: 2px 5px;
        transform: none;
    }

    /* Conference */
    .conference { margin-top: 0; }
    .conference-img { width: 100%; height: auto; }

    /* Enlist CTA - left aligned */
    .enlist-cta { 
        padding: 16px; 
        justify-content: flex-start;
    }

    /* Footer - left aligned */
    .footer { padding: 12px 16px; }
    .footer-container { 
        flex-direction: column; 
        gap: 8px; 
        text-align: left;
        align-items: flex-start;
    }
    .footer-right { 
        flex-direction: row; 
        gap: 20px;
        align-items: center;
    }
    .footer-nav { justify-content: flex-start; }
    .footer-left p, .footer-nav a { font-size: 12px; line-height: 1; }
    .linkedin-icon { width: 20px; height: 20px; }
}
