/* ==========================================================================
   L'Entente TapaSablliane - Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables - Taupe/Beige palette
   -------------------------------------------------------------------------- */
:root {
    --taupe: #8b7e74;
    --taupe-dark: #6b5f56;
    --taupe-light: #a99f96;
    --beige: #d4c8b8;
    --beige-light: #e8e0d5;
    --cream: #f8f6f3;
    --warm-gray: #9a9590;
    --charcoal: #4a4543;
    --sand: #c9b896;
    --text-dark: #3d3835;
    --text-medium: #5a5550;
    --text-light: #7a756f;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 400;
    font-size: 17px;
}

h1, h2, h3, h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--beige);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 70px;
    width: auto;
}

.nav-links {
    display: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-medium);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--taupe-dark);
}

.nav-links .btn-nav {
    background: var(--taupe);
    color: white;
    padding: 0.7rem 1.75rem;
    border-radius: 25px;
    font-weight: 600;
}

.nav-links .btn-nav:hover {
    background: var(--taupe-dark);
    color: white;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid var(--beige-light);
    padding: 1.5rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.85rem 0;
    color: var(--text-medium);
    font-weight: 500;
    border-bottom: 1px solid var(--beige-light);
}

.mobile-menu .btn-nav {
    display: block;
    background: var(--taupe);
    color: white;
    padding: 0.85rem 1.5rem;
    border-radius: 25px;
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Announcement Banner (temporary)
   -------------------------------------------------------------------------- */
.announcement-banner {
    background: linear-gradient(135deg, var(--taupe) 0%, var(--taupe-dark) 100%);
    color: white;
    padding: 1.5rem 1rem;
    text-align: center;
}

.announcement-content {
    max-width: 600px;
    margin: 0 auto;
}

.announcement-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.announcement-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.announcement-date {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sand);
    margin-bottom: 0.25rem;
}

.announcement-location {
    font-size: 1rem;
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    padding: 4rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--cream) 0%, white 50%, var(--beige-light) 100%);
}

.hero-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 150px;
    opacity: 0.25;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-logo-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.hero-logo {
    max-width: 380px;
    height: auto;
}

.hero .tagline {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.7;
    font-weight: 400;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
    padding: 5rem 1.5rem;
}

.section-white {
    background: white;
}

.section-cream {
    background: var(--cream);
}

.section-colored {
    background: linear-gradient(135deg, var(--taupe) 0%, var(--taupe-dark) 100%);
    color: white;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.section-colored .section-header h2 {
    color: white;
}

.section-header .divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--sand), var(--taupe));
    margin: 0 auto;
    border-radius: 2px;
}

.section-colored .section-header .divider {
    background: linear-gradient(90deg, var(--sand), var(--beige));
}

.section p.lead {
    font-size: 1.15rem;
    color: var(--text-medium);
    line-height: 1.85;
    text-align: center;
}

.section-colored p.lead {
    color: rgba(255, 255, 255, 0.9);
}

.qui-list {
    text-align: center;
}

.qui-list p.lead {
    margin-bottom: 1rem;
}

.qui-list p.lead:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Values Grid
   -------------------------------------------------------------------------- */
.values-grid {
    display: grid;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.values-grid-3 {
    gap: 2rem;
}

.value-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.value-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--beige-light) 0%, var(--beige) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--taupe-dark);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.value-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.value-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Defense List
   -------------------------------------------------------------------------- */
.defense-list {
    margin-top: 2.5rem;
}

.defense-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.defense-number {
    width: 42px;
    height: 42px;
    background: var(--sand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--taupe-dark);
    flex-shrink: 0;
}

.defense-item p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.95);
    padding-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta {
    text-align: center;
}

.cta p {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.85;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: 'Nunito', sans-serif;
}

.btn-primary {
    background: var(--taupe);
    color: white;
    border-radius: 30px;
}

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

.btn-secondary {
    background: transparent;
    color: var(--taupe);
    border: 2px solid var(--taupe);
    border-radius: 30px;
}

.btn-secondary:hover {
    background: var(--taupe);
    color: white;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: linear-gradient(180deg, var(--beige-light) 0%, var(--beige) 100%);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.footer-logo {
    margin: 0;
}

.footer-logo img {
    height: 100px;
    width: auto;
}

/* --------------------------------------------------------------------------
   Gallery Section
   -------------------------------------------------------------------------- */
.gallery-section {
    padding: 0;
}

.container-wide {
    max-width: 100%;
    padding: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.gallery-item {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Placeholder Styles
   -------------------------------------------------------------------------- */
.placeholder {
    background: linear-gradient(135deg, var(--beige-light) 0%, var(--beige) 50%);
    border: 2px dashed var(--taupe-light);
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1.5rem;
    color: var(--text-light);
}

.placeholder-content svg {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
    stroke: var(--taupe-light);
}

.placeholder-content span {
    font-size: 0.9rem;
    text-align: center;
    color: var(--taupe);
}

/* --------------------------------------------------------------------------
   Candidates Section
   -------------------------------------------------------------------------- */
.subsection-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--taupe-dark);
    text-align: center;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
}

.subsection-title:first-of-type {
    margin-top: 0;
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.candidates-grid-1 {
    display: flex;
    justify-content: center;
}

.candidates-grid-1 .candidate-card {
    width: calc((100% - 6rem) / 4);
    min-width: 180px;
}

.candidates-grid-2 {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.candidate-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.candidate-card {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.candidate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.candidate-photo {
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--beige-light) 0%, var(--beige) 100%);
}

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

/* Placeholder Avatar with Initials */
.placeholder-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--beige) 0%, var(--taupe-light) 100%);
    position: relative;
}

.placeholder-avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3) 0%, transparent 50%);
}

.avatar-initials {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
    letter-spacing: 0.05em;
    z-index: 1;
}

/* To add a photo: replace placeholder-avatar class with just candidate-photo and add an img tag */
.candidate-card .candidate-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.candidate-card.placeholder .candidate-photo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.candidate-card.placeholder .candidate-photo svg {
    width: 60px;
    height: 60px;
    stroke: var(--taupe-light);
}

.candidate-info {
    padding: 1.25rem;
}

.candidate-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.candidate-role {
    font-size: 0.95rem;
    color: var(--taupe);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Contact Form
   -------------------------------------------------------------------------- */
.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--cream);
    padding: 2.5rem;
    border-radius: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 2px solid var(--beige);
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background: white;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--taupe);
    box-shadow: 0 0 0 4px rgba(139, 126, 116, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--taupe-light);
}

.contact-form .btn {
    width: 100%;
    margin-top: 0.5rem;
}

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

    .candidates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .hero-logo {
        max-width: 320px;
    }
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .hero {
        padding: 5rem 2rem 6rem;
    }

    .hero-logo {
        max-width: 450px;
    }

    .hero .tagline {
        font-size: 1.35rem;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 4rem;
    }

    .values-grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

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

    .candidates-grid-2 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
    }

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

    .candidates-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .section {
        padding: 6rem 2rem;
    }

    .section-header h2 {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-logo {
        max-width: 500px;
    }
}
