/* ==========================================
   CORE.CSS - SHARED STYLES
   Contains: CSS Reset, Variables, Fonts, Navigation, Breadcrumbs, Animations, Utilities
========================================== */

/* ==========================================
   CSS RESET & ROOT VARIABLES
========================================== */

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

:root {
    /* Standardized color variables */
    --primary-dark: #2c2c2c;
    --primary-teal: #0f5f5f;
    --secondary-teal: #4a9999;
    --accent-orange: #d4956b;
    --accent-orange-muted: #b8835a;
    --background-cream: #faf8f5;
    --background-gray: #f5f3f0;
    --text-light: #6a6a6a;
    --text-dark: #1a1a1a;
    --success-green: #10b981;
    --error-red: #ef4444;
}

/* ==========================================
   FONT DECLARATIONS
========================================== */

@font-face {
    font-family: 'Josefin Sans';
    src: url('../Josefin_Sans/JosefinSans-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Josefin Sans';
    src: url('../Josefin_Sans/JosefinSans-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 700;
    font-style: italic;
    font-display: swap;
}

/* ==========================================
   BASE STYLES
========================================== */

body {
    font-family: 'Josefin Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.sans-serif {
    font-family: 'Josefin Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================
   ANIMATION SYSTEM
========================================== */

/* Base animation class - MUST start hidden */
.fade-in-element {
    opacity: 0 !important;
    transform: translateY(50px) !important;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    will-change: opacity, transform;
}

/* Active state - visible */
.fade-in-element.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Hero animation classes */
.hero-animate {
    opacity: 0;
    transform: translateY(60px);
}

.hero-animate.loaded {
    opacity: 1;
    transform: translateY(0);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-visual {
    opacity: 0;
    transform: translateX(60px);
}

.hero-visual.loaded {
    opacity: 1;
    transform: translateX(0);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}

/* ==========================================
   NAVIGATION STYLES
========================================== */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 60px;
    background: rgba(250, 248, 245, 0.97);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(15, 95, 95, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-teal) 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 400;
    overflow: hidden;
    position: relative;
}

.logo-mark-foot {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 400;
    overflow: hidden;
    position: relative;
}

.logo-mark.logo-bg {
    background-image: url("../images/logos/aisle-to-islands-logo.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
}

.logo-mark-foot.logo-bg-foot {
    background-image: url("../images/logos/aisle-to-islands-brand-logo.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
}

.logo-text {
    font-size: 22px;
    font-weight: 400;
    color: var(--primary-dark);
    letter-spacing: -0.3px;
}

/*.tagline {
    font-size: 10px;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 1px;
}*/

/* Desktop Navigation */
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    position: relative;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange-muted);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--primary-dark);
    outline: none;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

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

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

.mobile-nav {
    display: none;
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(25px);
    border-top: 1px solid rgba(15, 95, 95, 0.08);
    padding: 20px;
    z-index: 999;
}

.mobile-nav.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav a {
    display: block;
    padding: 15px 0;
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    border-bottom: 1px solid rgba(15, 95, 95, 0.05);
    transition: color 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
    color: var(--primary-dark);
    outline: none;
}

/* ==========================================
   BREADCRUMB STYLES - CLEAN VERSION
========================================== */

.breadcrumb {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 25px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-align: left;
    width: 100%;
    grid-column: 1 / -1; /* Always spans full width in grid layouts */
}

.breadcrumb a {
    color: var(--primary-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-teal);
}

/* ==========================================
   HERO FOUNDATION STYLES - STANDARDIZED FOR ALL PAGES
========================================== */

.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 120px 60px 80px;
    background: var(--background-cream);
    position: relative;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Standard two-column for all pages */
    gap: 80px;
    align-items: center;
}

/* ==========================================
   RESPONSIVE BREADCRUMB ADJUSTMENTS
========================================== */

@media (max-width: 768px) {
    .breadcrumb {
        font-size: 13px;
        margin-bottom: 20px;
    }

    /* Mobile switches to single column, breadcrumb still spans full width */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .hero-container {
        gap: 40px;
    }
}

/* ==========================================
   UTILITY CLASSES
========================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================
   FOOTER STYLES - SLEEK & PROFESSIONAL
========================================== */

.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-teal) 50%, transparent 100%);
}

/* ==========================================
   MAIN FOOTER CONTENT
========================================== */

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 60px 60px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ==========================================
   FOOTER SECTIONS
========================================== */

.footer-section h4 {
    font-size: 18px;
    font-weight: 500;
    color: white;
    margin-bottom: 25px;
    font-family: 'Josefin Sans', sans-serif;
    letter-spacing: -0.2px;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-orange) 0%, var(--primary-teal) 100%);
}

/* ==========================================
   FOOTER LOGO SECTION
========================================== */

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the logo content */
    gap: 15px;
    margin-bottom: 25px;
    /* Remove the background: white; line */

    /* Add a contained background for just the logo area */
    width: fit-content; /* Only as wide as the content */
    margin-left: auto;
    margin-right: auto;
    padding: 1px 30px; /* Add some padding around the logo */
    background: var(--background-cream); /* Subtle background that fits the dark theme */
    border-radius: 12px; /* Rounded corners for a modern look */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    backdrop-filter: blur(10px); /* Glassmorphism effect */
}

/* Alternative option - if you want a more prominent white background */
.footer-logo.white-bg {
    background: white;
    padding: 25px 35px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Adjust logo mark for the new container */
.footer-logo .logo-mark {
    width: 45px; /* Slightly larger for better visibility */
    height: 45px;
    flex-shrink: 0;
}

/* Update text colors if using white background variant */
.footer-logo.white-bg .footer-logo-text {
    color: var(--primary-dark); /* Dark text on white background */
}

.footer-logo.white-bg .footer-tagline {
    color: var(--text-light); /* Lighter text for tagline on white background */
}

/* ==========================================
   FOOTER NAVIGATION LISTS
========================================== */

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-section a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-teal) 0%, var(--accent-orange) 100%);
    transition: width 0.3s ease;
}

.footer-section a:hover,
.footer-section a:focus {
    color: white;
    transform: translateX(3px);
    outline: none;
}

.footer-section a:hover::before,
.footer-section a:focus::before {
    width: 100%;
}

/* ==========================================
   SOCIAL LINKS & CONTACT INFO
========================================== */

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.social-links a {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-links a::before {
    display: none; /* Remove the underline effect for social links */
}

.social-links a:hover,
.social-links a:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-teal);
    transform: translateY(-2px);
}

.contact-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    margin: 8px 0;
    transition: color 0.3s ease;
}

.contact-info p:hover {
    color: var(--primary-teal);
}

/* ==========================================
   FOOTER BOTTOM BAR
========================================== */

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 0;
    backdrop-filter: blur(10px);
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.footer-bottom-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.footer-bottom-links a:hover,
.footer-bottom-links a:focus {
    color: var(--primary-teal);
    outline: none;
}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */

/* Large Desktop (1441px+) */
@media (min-width: 1441px) {
    .footer-content,
    .footer-bottom-content {
        max-width: 1600px;
        padding-left: 80px;
        padding-right: 80px;
    }
}

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 50px;
    }

    /* Merge Company and Connect sections on tablet */
    .footer-section:nth-child(3) {
        grid-column: 2;
    }

    .footer-section:nth-child(4) {
        grid-column: 3;
    }
}

/* Mobile (481px - 768px) */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 60px 30px 40px;
    }

    .footer-section:first-child {
        grid-column: 1 / -1; /* Logo section spans full width */
        margin-bottom: 20px;
        text-align: center;
    }

    .footer-logo {
        padding: 18px 25px;
        margin-bottom: 30px;
    }

    .footer-logo .logo-mark {
        width: 40px;
        height: 40px;
    }

    .footer-description {
        max-width: 100%;
        text-align: center;
    }

    .footer-section h4 {
        font-size: 16px;
        margin-bottom: 20px;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section ul {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-info {
        text-align: center;
    }

    .footer-bottom-content {
        padding: 0 30px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-bottom-links {
        gap: 20px;
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 50px 20px 30px;
    }

    .footer-section:first-child {
        grid-column: 1;
    }

    .footer-logo-text {
        font-size: 18px;
    }

    .footer-logo {
        padding: 15px 20px;
        gap: 12px;
    }

    .footer-logo .logo-mark {
        width: 35px;
        height: 35px;
    }

    .footer-tagline {
        font-size: 11px;
    }

    .footer-description {
        font-size: 14px;
    }

    .footer-section h4 {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .social-links {
        gap: 15px;
    }

    .social-links a {
        padding: 8px 12px;
        font-size: 12px;
    }

    .footer-bottom-content {
        padding: 0 20px;
    }

    .footer-bottom-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-bottom p,
    .footer-bottom-links a {
        font-size: 12px;
    }
}

/* ==========================================
   ACCESSIBILITY & HOVER STATES
========================================== */

/* Focus states for keyboard navigation */
.footer-section a:focus,
.social-links a:focus,
.footer-bottom-links a:focus {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .footer-section a,
    .social-links a,
    .footer-bottom-links a,
    .contact-info p {
        transition: none;
    }

    .footer-section a:hover,
    .social-links a:hover {
        transform: none;
    }
}

/* ==========================================
   RESPONSIVE BREAKPOINTS FOR NAVIGATION
========================================== */

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    nav {
        padding: 12px 20px;
    }

    .logo-text {
        font-size: 18px;
    }

    .tagline {
        display: none;
    }
}

/* Mobile (481px - 768px) */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    nav {
        padding: 15px 30px;
    }
}

/* Large Desktop (1441px+) */
@media (min-width: 1441px) {
    nav {
        padding: 20px 80px;
    }
}

/* ==========================================
   ACCESSIBILITY & REDUCED MOTION
========================================== */

/* Focus and Accessibility */
*:focus {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
}

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