/* ============================================
   RadicalPair - Main Stylesheet
   ============================================ */

/* ============================================
   1. RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   2. CSS VARIABLES (Root)
   ============================================ */
:root {
    /* Color Tokens */
    --cherry-red: #D32F2F;
    --cherry-red-dark: #B71C1C;
    --off-white: #FAF9F6;
    --black: #000000;
    --gradient-red-black: linear-gradient(135deg, #D32F2F 0%, #000000 100%);
    
    /* Layout Tokens */
    --container-max-width: 1200px;
    
    /* Z-Index Scale */
    --z-base: 0;
    --z-content: 1;
    --z-overlay: 10;
    --z-nav: 100;
}

/* ============================================
   3. BASE TYPOGRAPHY & BODY
   ============================================ */
body {
    font-family: 'Nanum Myeongjo', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--off-white);
    background-image: url("assets/images/Gradient_Spot.png");
    background-attachment: fixed;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45vh;
    background: var(--off-white);
    z-index: var(--z-base);
    pointer-events: none;
}

/* ============================================
   4. NAVIGATION
   ============================================ */
.nav-primary {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 20px 30px;
    background-color: var(--off-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: var(--z-nav);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.nav-primary a {
    color: var(--black);
    text-decoration: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    transition: opacity 0.3s ease;
    font-family: 'Instrument Serif', serif;
}

.nav-primary a:hover {
    opacity: 0.7;
}

.nav-primary a.active {
    color: var(--cherry-red);
}

.nav-primary a:focus-visible {
    outline: 2px solid var(--cherry-red);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ============================================
   5. HOME / HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    z-index: var(--z-content);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    width: 100%;
    min-height: 100vh;
}

.hero-logo-container {
    position: absolute;
    bottom: 45vh;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--container-max-width);
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.hero-content-wrapper {
    position: absolute;
    bottom: 15vh;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--container-max-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    height: 30vh;
    box-sizing: border-box;
}

.hero-tagline {
    font-family: 'Instrument Serif', 'Times New Roman', serif;
    font-size: clamp(3.375rem, 10.125vw, 4.725rem);
    font-weight: 400;
    color: var(--off-white);
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.0;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-family: 'Nanum Myeongjo', serif;
    font-size: clamp(0.6rem, 2vw, 1rem);
    font-weight: 600;
    color: var(--off-white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-email {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 24px;
    line-height: 1.4;
    text-align: center;
    margin-top: 1.25rem;
    white-space: normal;
    display: block;
    color: var(--off-white);
}

.hero-email a {
    color: inherit;
    text-decoration: none;
}

.hero-email a:hover {
    color: var(--cherry-red);
}

.hero-email a:focus-visible {
    outline: 2px solid var(--cherry-red);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Text variants for responsive line breaks */
.hero-tagline .line-2-mobile,
.hero-tagline .line-3-mobile {
    display: none;
}

.hero-tagline .line-2-desktop,
.hero-tagline .line-3-desktop {
    display: inline;
}

.hero-tagline .desktop-only {
    display: inline;
}

.hero-tagline .mobile-only {
    display: none;
}

.hero-tagline br.mobile-only {
    display: none;
}

/* ============================================
   6. ABOUT SECTION
   ============================================ */
.about-section {
    min-height: 100vh;
    background-color: var(--off-white);
    padding: 100px 20px;
    display: none;
    flex-direction: column;
    justify-content: center;
}

.about-content {
    max-width: 64rem;
    margin: 0 auto;
    padding: 3rem;
    text-align: center;
}

.about-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-size: 1.98rem;
    font-weight: 300;
    color: #1f2937;
    line-height: 1.5;
    max-width: 48rem;
    margin: 0 auto;
    font-family: 'Instrument Serif', serif;
}

.about-text p {
    margin: 0;
}

.about-text .desktop-break {
    display: inline;
}

/* ============================================
   7. BRAND LOGOS SECTION
   ============================================ */
.brands-section {
    padding: 60px 20px;
    background-color: var(--off-white);
}

.brands-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 3rem 2rem;
    align-items: center;
    justify-items: center;
}

.brand-logo-item {
    width: 100%;
    max-width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.brand-logo-item:hover {
    opacity: 1;
}

.brand-logo-item img,
.brand-logo-item svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-logo-item img[src$=".svg"],
.brand-logo-item svg {
    filter: brightness(0) saturate(100%);
}

/* Brand-specific sizing */
.brand-logo-google {
    transform: scale(0.5);
}

.brand-logo-jordan {
    transform: scale(0.5) translateX(-20%);
}

.brand-logo-timberland {
    transform: scale(1.2);
}

.brand-logo-cotton-on {
    transform: translateX(25%);
}

/* ============================================
   8. CONTACT SECTION
   ============================================ */
.contact-section {
    background-image: url('assets/images/Gradient_Spot.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.contact-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 40px 20px;
    max-width: var(--container-max-width);
    font-family: 'Instrument Serif', serif;
}

.contact-content p {
    font-family: 'Instrument Serif', 'Times New Roman', serif;
    font-size: clamp(3.375rem, 10.125vw, 4.725rem);
    line-height: 1.0;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.contact-content .contact-text-italic {
    font-style: italic;
}


.contact-content a {
    color: white;
    text-decoration: none;
    border-bottom: 2px solid white;
    padding-bottom: 2px;
    transition: opacity 0.3s ease;
}

.contact-content a:hover {
    opacity: 0.8;
}

.contact-content a:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ============================================
   9. FOOTER
   ============================================ */
.site-footer {
    display: none;
    padding: 40px 20px;
    text-align: center;
    background-color: var(--off-white);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.site-footer p {
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
    font-family: 'Instrument Serif', serif;
}

/* ============================================
   10. ACCESSIBILITY
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--cherry-red);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   11. DESKTOP STYLES (min-width: 769px)
   ============================================ */
@media (min-width: 769px) {
    html {
        scroll-behavior: smooth;
    }

    body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    body::after {
        display: none;
    }

    .hero-section {
        min-height: 100vh;
        position: relative;
    }

    .hero-logo-container {
        bottom: calc(45vh - 100px);
    }

    .hero-content-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        height: 45vh;
        bottom: 40px;
    }

    .hero-content-wrapper .hero-tagline {
        margin-top: 0;
    }

    .hero-subtitle {
        display: none;
    }

    /* Show desktop sections */
    .about-section {
        display: flex;
        scroll-margin-top: 80px;
    }

    .contact-section {
        display: flex;
        scroll-margin-top: 80px;
    }

    .site-footer {
        display: block;
    }

    /* Desktop text variants */
    .hero-tagline .line-2-mobile,
    .hero-tagline .line-3-mobile {
        display: none;
    }

    .hero-tagline .line-2-desktop,
    .hero-tagline .line-3-desktop {
        display: inline;
    }

    .hero-tagline .desktop-only {
        display: inline;
    }

    .hero-tagline .mobile-only {
        display: none;
    }

    .hero-tagline br.mobile-only {
        display: none;
    }

    /* Contact email - desktop only */
    #contact .contact-content .contact-email,
    .contact-content .contact-email {
        font-family: 'Nanum Myeongjo', serif !important;
        font-size: 24px !important;
        line-height: 1.4 !important;
        margin-top: 4rem;
        font-weight: 400;
    }
}

/* ============================================
   12. MOBILE STYLES (max-width: 767px)
   ============================================ */
@media (max-width: 767px) {
    html {
        height: 100%;
        overflow: hidden;
    }

    body {
        position: relative;
        height: 100vh;
        overflow: hidden;
        width: 100%;
    }

    .nav-primary {
        padding: 15px 20px;
    }

    .nav-container {
        gap: 20px;
    }

    .hero-section {
        padding: 40px 20px;
        height: 100dvh;
        max-height: 100dvh;
    }

    .hero-logo {
        max-height: 315.9px;
    }

    .hero-logo-container {
        top: 35px;
        bottom: auto;
        height: 55dvh;
        display: flex;
        justify-content: center;
        align-items: center;
        transform: none;
        left: 0;
        right: 0;
    }

    .hero-content-wrapper {
        bottom: -20px;
        height: 45dvh;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 80px;
    }

    .hero-content-wrapper .hero-tagline {
        margin-top: -40px; /* Reduced margin above by 40px total */
        margin-bottom: 0;
    }

    .hero-tagline {
        font-size: clamp(2.025rem, 6.075vw, 2.835rem);
        color: var(--black);
        line-height: calc(1em + 1px);
    }

    .hero-subtitle {
        display: none;
    }

    .hero-email {
        font-size: 15px;
        line-height: 1.3;
        white-space: nowrap;
        color: var(--black);
        margin-top: 2rem;
        margin-bottom: 0;
        padding: 0;
    }

    /* Mobile text variants */
    .hero-tagline .line-2-mobile,
    .hero-tagline .line-3-mobile {
        display: inline;
    }

    .hero-tagline .line-2-desktop,
    .hero-tagline .line-3-desktop {
        display: none;
    }

    .hero-tagline .desktop-only {
        display: none;
    }

    .hero-tagline .mobile-only {
        display: inline;
    }

    .hero-tagline br.mobile-only {
        display: block;
    }

    /* Hide desktop sections on mobile */
    .about-section,
    .contact-section,
    .site-footer {
        display: none;
    }

    /* Contact email - mobile */
    #contact .contact-content .contact-email,
    .contact-content .contact-email {
        font-family: 'Nanum Myeongjo', serif !important;
        font-size: clamp(18px, 4vw, 24px) !important;
        line-height: 1.4 !important;
        font-weight: 400;
    }
}

/* ============================================
   MOBILE ORIENTATION LOCK (Portrait Only)
   ============================================ */
@media (max-width: 767px) and (orientation: landscape) {
    #orientation-lock {
        display: flex !important;
    }
    
    body,
    html,
    main,
    .hero-section,
    .hero-contact,
    .about-section,
    .contact-section,
    .brands-section,
    .site-footer,
    .nav-primary,
    .hero-content,
    .contact-content,
    .text-section,
    .text-content {
        display: none !important;
    }
    
    html,
    body {
        overflow: hidden !important;
        height: 100vh !important;
    }
}

@media (max-width: 767px) and (orientation: portrait) {
    #orientation-lock {
        display: none !important;
    }
    
    body,
    html,
    main,
    .hero-section,
    .hero-contact,
    .about-section,
    .contact-section,
    .brands-section,
    .site-footer,
    .nav-primary,
    .hero-content,
    .contact-content,
    .text-section,
    .text-content {
        display: block !important;
    }
    
    .hero-section,
    .hero-contact,
    .about-section,
    .contact-section,
    .brands-section {
        display: flex !important;
    }
    
    .nav-primary {
        display: block !important;
    }
    
    .text-content {
        display: flex !important;
    }
}

/* ============================================
   13. SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .hero-section {
        padding: 30px 15px;
    }

    .hero-logo {
        max-height: 252.72px;
    }
}
