/* Fiat Club of Victoria - Modern Light CSS */

:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --accent: #457b9d;
    --accent-light: #a8dadc;
    --text-primary: #1d3557;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg-body: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --transition: all 0.2s ease;
    --radius: 12px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-body);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header-spacer {
    height: 90px;
    background: var(--bg-body);
}

.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    overflow: visible;
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 100;
}

.header::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: var(--bg-body);
    z-index: -1;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-section a {
    display: block;
    position: relative;
    top: 1px;
}

.logo {
    width: auto;
    height: 85px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    margin-top: -18px;
    margin-bottom: -18px;
}

.club-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.club-title span {
    color: var(--primary);
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background: var(--bg-body);
    color: var(--text-primary);
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 0.5rem;
    z-index: 200;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: var(--bg-body);
    color: var(--primary);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-body);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
}

.social-links a:hover img {
    filter: brightness(0) invert(1);
}

.social-links img {
    width: 18px;
    height: 18px;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    order: 1;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    border-radius: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Main Content */
.main-content {
    padding: 4rem 0 3rem 0;
}

/* Page Title Section */
.page-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.page-intro h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.page-intro p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-primary);
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Featured Magazine Section */
.featured-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
}

.featured-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #f0f4f8;
}

.featured-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-content {
    padding: 2rem;
}

.featured-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.featured-content h2 a:hover {
    color: var(--primary);
}

.highlight-list {
    list-style: none;
}

.highlight-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.highlight-list li:last-child {
    border-bottom: none;
}

.highlight-list strong {
    color: var(--primary);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-light) 0%, #d4edee 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* About Section */
.about-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
}

.about-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.about-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.about-section em {
    color: var(--text-muted);
}

/* Instagram Section */
.instagram-section {
    margin-bottom: 2.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.section-header a {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

.section-header a:hover {
    text-decoration: underline;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
}

.instagram-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.instagram-grid img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

#load-more {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.75rem 2rem;
    background: var(--bg-white);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

#load-more:hover {
    border-color: var(--text-primary);
}

/* Footer */
.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-brand img {
    width: 48px;
}

.footer-brand h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.25rem 0;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-bottom a {
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* Fullscreen overlay */
#fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#magnified-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-image {
        max-height: 300px;
        overflow: hidden;
    }

    .featured-image img {
        max-height: 280px;
        width: auto;
        margin: 0 auto;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-spacer {
        height: 75px;
    }

    .header {
        position: fixed;
        top: 15px;
    }

    .header::before {
        top: -15px;
        height: 15px;
    }

    .header-inner {
        height: 44px;
    }

    .logo {
        height: 65px;
        margin-top: -12px;
        margin-bottom: -12px;
    }

    /* Hide nav on mobile, show menu when active */
    nav {
        position: static;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 50%;
        max-width: 280px;
        background: var(--bg-white);
        padding: 1.5rem;
        padding-top: 4rem;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu > li > a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu > li:last-child > a {
        border-bottom: none;
    }

    .menu-toggle {
        display: block;
        order: 2;
        z-index: 1001;
    }

    .header-right {
        gap: 0.5rem;
    }

    .social-links {
        order: 1;
    }

    .club-title {
        font-size: 0.9rem;
    }


    .page-intro h1 {
        font-size: 1.75rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-name {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-email {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-email:hover {
    text-decoration: underline;
}

/* Calendar Page Styles */
.calendar-month {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.calendar-month h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    padding: 1rem;
    background: var(--bg-body);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.event-date {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.event-details h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.event-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.event-contact {
    color: var(--text-muted) !important;
    font-size: 0.85rem !important;
    margin-top: 0.5rem !important;
}

.add-calendar {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.cal-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
}

.cal-google {
    background: #4285f4;
    color: white;
}

.cal-google:hover {
    background: #3367d6;
}

.cal-apple {
    background: #333;
    color: white;
}

.cal-apple:hover {
    background: #000;
}

@media (max-width: 600px) {
    .event {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .event-date {
        color: var(--primary);
    }
}

.calendar-section {
    margin-bottom: 2.5rem;
}

.calendar-image-container {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.calendar-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Forms Page Styles */
.forms-section {
    margin-bottom: 2.5rem;
}

.forms-section h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.forms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.form-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.form-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.form-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.form-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.form-link {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    margin-top: auto;
}

.form-card:hover .form-link {
    background: var(--primary-dark);
}

/* Links Page Styles */
.links-section {
    margin-bottom: 2.5rem;
}

.links-section h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.link-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: block;
    text-align: center;
}

.link-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.link-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.link-logo img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.link-card h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.link-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Magazine Page Styles */
.magazine-section {
    margin-bottom: 2.5rem;
}

.magazine-section h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}

.magazine-card {
    display: block;
    text-align: center;
    transition: var(--transition);
}

.magazine-card:hover {
    transform: translateY(-4px);
}

.magazine-cover {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    aspect-ratio: 0.7;
    margin-bottom: 0.75rem;
}

.magazine-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.magazine-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.magazine-card:hover .magazine-label {
    color: var(--primary);
}

/* Renewals Page Styles */
.renewal-steps {
    list-style: none;
    counter-reset: step;
}

.renewal-steps li {
    counter-increment: step;
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 1.5rem;
}

.renewal-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.renewal-steps li strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.renewal-steps li p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.info-list {
    list-style: none;
}

.info-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.about-section a {
    color: var(--primary);
}

.about-section a:hover {
    text-decoration: underline;
}

/* Preserve button styles inside about-section */
.about-section .btn {
    text-decoration: none;
}

.about-section .btn-primary {
    color: white;
}

.about-section .btn-primary:hover {
    color: white;
    text-decoration: none;
}

/* Responsive for new pages */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .forms-grid {
        grid-template-columns: 1fr;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .magazine-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .renewal-steps li {
        padding-left: 3rem;
    }

    .renewal-steps li::before {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
    }
}
