/*
Theme Name: Victoria Cross Campaign
Theme URI: https://victoriacross.ca
Author: IntelliWorks
Author URI: https://victoriacross.ca
Description: Custom theme for Victoria Cross Campaign
Version: 1.0
Text Domain: victoriacross
*/

/* =Global styles
----------------------------------------------- */
:root {
    --primary: #1a365d;
    --secondary: #b22234;
    --accent: #d4af37;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
}

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

html {
    scroll-padding-top: 100px;
}

body {
    font-family: 'Lato', sans-serif;
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('images/background.webp') center/cover fixed no-repeat;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: -1;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Header Styles */
header {
    background: rgba(26, 54, 93, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    width: 100%;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
}

.logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 0.5rem;
}

nav a:hover {
    color: var(--accent);
}

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

nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 80px;
    min-height: 100vh;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 2rem;
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    z-index: 10;
}

.btn-primary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 10px rgba(178, 34, 52, 0.4);
}

.btn-primary:hover {
    background: #9c1c2a;
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.carousel-controls {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.carousel-dots {
    display: flex;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background: var(--accent);
    transform: scale(1.3);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
}

.carousel-nav button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
}

.carousel-nav button:hover {
    background: var(--accent);
}

/* Honoree Selector */
.honoree-selector {
    background: rgba(0, 0, 0, 0.8);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.selector-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.selector-container h2 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

.honoree-card {
    background: rgba(26, 54, 93, 0.7);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.honoree-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.honoree-card.active {
    border: 3px solid var(--accent);
}

.honoree-image {
    position: relative;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    aspect-ratio: 3/4;
    width: 100%;
    max-height: 400px;
    height: auto;
}

.medal-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}

.honoree-info {
    padding: 1.5rem;
}

.honoree-info h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.honoree-info p {
    color: #ddd;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.honoree-info .service {
    font-weight: bold;
    color: var(--accent);
}

/* Hero Profiles */
.hero-profiles {
    background: rgba(0, 0, 0, 0.8);
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
}

.profiles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.profiles-container h2 {
    font-size: 2.5rem;
    color: var(--accent);
    text-align: center;
    margin-bottom: 3rem;
}

.profile-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-tab {
    padding: 1rem 2rem;
    background: rgba(26, 54, 93, 0.7);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    min-width: 150px;
    text-align: center;
}

.profile-tab.active, .profile-tab:hover {
    border-bottom: 3px solid var(--accent);
    color: var(--accent);
}

.profile-content {
    display: none;
    background: rgba(26, 54, 93, 0.7);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.profile-content.active {
    display: block;
}

.profile-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Updated profile image to match honoree image style */
.profile-image {
    flex: 1;
    min-width: 300px;
    aspect-ratio: 3/4;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 400px;
    height: auto;
}

.profile-details {
    flex: 2;
    min-width: 300px;
}

.profile-details h3 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-left: 3px solid var(--accent);
}

.info-label {
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.profile-text {
    margin-top: 2rem;
    line-height: 1.8;
}

.profile-text p {
    margin-bottom: 1rem;
}

.quote {
    background: rgba(0, 0, 0, 0.4);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    position: relative;
}

.quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.1);
    font-family: serif;
}

.quote-author {
    display: block;
    font-weight: 700;
    margin-top: 1rem;
    color: var(--accent);
}

/* Campaign Info */
.campaign-info {
    background: rgba(0, 0, 0, 0.8);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.info-container h2 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.info-card {
    background: rgba(26, 54, 93, 0.7);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.info-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    flex-grow: 0;
}

.info-card h3 {
    color: white;
    margin-bottom: 1rem;
}

.info-card p {
    color: #ddd;
    flex-grow: 1;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4rem 2rem 2rem;
    border-top: 2px solid var(--accent);
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-logo span {
    color: white;
}

.footer-about {
    max-width: 300px;
}

.footer-links h4 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: background 0.3s;
}

.social-link:hover {
    background: var(--accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    nav ul {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 0;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 54, 93, 0.95);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    nav a {
        display: block;
        padding: 0.8rem;
        font-size: 1.1rem;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .hero-carousel {
        padding-top: 140px;
        min-height: calc(100vh - 80px);
    }
    
    .hero-content {
        padding: 1.5rem;
        margin-top: 0;
        transform: none;
    }
    
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .carousel-nav button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .profile-header {
        flex-direction: column;
    }
    
    .profile-content {
        padding: 1.5rem;
    }
    
    .profile-tab {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        min-width: 120px;
    }
    
    .profile-info {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Fixes */
    .profile-image, 
    .profile-details {
        min-width: 100% !important;
        max-width: 100% !important;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    body {
        background-attachment: scroll;
    }
    
    .hero-carousel {
        padding-top: 160px;
        min-height: calc(100vh - 80px);
    }
    
    .hero-content {
        padding: 1rem;
        max-width: 95%;
        transform: translateY(0);
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    .media-container {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .profile-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .profile-tab {
        width: 100%;
        max-width: 250px;
        margin-bottom: 5px;
    }
    
    .hero-profiles {
        padding: 3rem 1rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .carousel-controls {
        bottom: 1rem;
    }
    
    .carousel-dots {
        gap: 0.5rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .carousel-nav button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .honoree-image,
    .profile-image {
        max-height: 300px;
        height: auto;
    }
    
    /* Mobile Fixes */
    .profile-content {
        padding: 1rem;
    }
    
    .profile-image,
    .profile-details {
        min-width: 100% !important;
    }
    
    .info-card {
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Additional optimization for large screens */
@media (min-width: 1200px) {
    /* No changes needed */
}