/* ========== GLOBAL STYLES ========== */
:root {
    --amber: #533C3C;
    --amber-light: #3C5353;
    --gray: #f8f8f8;
    --text: #FFF;
    --white: #fff;
    --beige: #EFD6AC;
    --dark-gray: #364553;
    --dark-olive: #22200d;
    --dark-yellow: #b0ac43;
    --brown: #4A3F2F;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'adelle', serif;
    font-size: 1.0rem;
    background-color: #ddd8d8;
    color: var(--dark-gray);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'adelle', serif;
    margin-top: 0;
    color: var(--dark-gray);
}


a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--beige);
    text-decoration: underline;
}

/* ---- Global link styles ---- */







/* ========== HEADER & NAV ========== */
header {
    background-color: var(--amber);
    color: var(--white);
    padding: 1rem 2rem;
}

header .nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-family: 'adelle', serif;
    text-transform: uppercase;
}

header h1 {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

header h1 a {
    color: var(--white);
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--white);
    font-size: 1rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--white);
    color: var(--white);
    font-size: 1.2rem;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        margin-top: 0.5rem;
    }

    .nav-links {
        width: 100%;
        display: none;
        flex-direction: column;
        margin-top: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 0.5rem 0;
        padding: 0.5rem;
        font-size: 1rem;
    }

    header .nav-container {
        flex-direction: column;
        text-align: center;
    }

    header h1 {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(rgba(146, 64, 14, 0.6), rgba(146, 64, 14, 0.6)),
        url(images/historic_map_attakapas.png) center/cover;
    color: var(--white);
    text-align: center;
    padding: 5rem 1rem;
}

.hero-text {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 8px;
    display: inline-block;
    max-width: 800px;
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0 0 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    color: var(--white);
}

.hero p {
    margin: 0 auto 2rem;
    max-width: 600px;
}

/*==============HOME PAGE LAYOUT======================================*/

/* ========== FEATURES ========== */
.features {
    background-color: var(--brown);
    padding: 3rem 1rem;
    text-align: center;
}

.feature-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background-color: var(--beige);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-family: 'adelle', serif;
    font-weight: 500;
    text-transform: uppercase;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* ========== RECORDS ========== */
.records {
    background-color: var(--gray);
    padding: 4rem 1rem;
    text-align: center;
}

.records h2 {
    font-size: 1.5rem;
    color: var(--amber);
    margin-bottom: 1rem;
    font-weight: 400;
}

.records p.intro {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

.record-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.record-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.record-card h3 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 400;
}

.record-card p {
    text-align: center;
    line-height: 1.5;
    font-size: 1.1rem;
}

.record-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.record-card a {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
    width: 100%;
}

@media (max-width: 480px) {
    .record-card {
        padding: 1rem;
    }
}

/* ========== FAMILIES ========== */
.families {
    background-color: var(--beige);
    padding: 3rem 1rem 4rem;
    text-align: center;
}

.families h2 {
    font-size: 2rem;
    color: var(--amber);
    margin-bottom: 2rem;
    font-weight: 400;
}

.family-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.family-card {
    background-color: #9c4901;
    color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.family-card h3 {
    margin-bottom: 1rem;
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--white);
}

.family-card p {
    line-height: 1.5;
    font-size: 1rem;
}

.family-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.family-card a {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
    width: 100%;
}

/* ========== MAP SECTION ========== */
.map-section {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: var(--white);
    padding: 1rem 0;
}

.map-container {
    width: 100%;
    overflow: hidden;
}

.map-container iframe,
.map-container img {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
    object-fit: cover;
}

.map-section h2 {
    color: var(--amber);
    text-align: center;
    margin-bottom: 0.5rem;
}

.map-section p {
    color: #555;
    text-align: center;
    margin-bottom: 1rem;
}

.map-credit {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}

.map-credit a {
    color: var(--amber);
}

.map-credit a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {

    .map-container iframe,
    .map-container img {
        height: 300px;
    }
}

@media (max-width: 480px) {

    .map-container iframe,
    .map-container img {
        height: 250px;
    }

    .map-section h2 {
        font-size: 1.5rem;
    }

    .map-section p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
}

/* ========== CONTACT ========== */
.contact-section {
    max-width: 600px;
    margin: 5rem auto;
    padding: 2rem;
    background-color: var(--amber);
    color: var(--white);
    border-radius: 8px;
}

.contact-section h1 {
    color: var(--white);
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin: 1rem 0 0.5rem;
    font-weight: 400;
}

input,
textarea {
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-family: 'adelle', serif;
    font-size: 1rem;
}

button {
    margin-top: 1.5rem;
    padding: 0.75rem;
    background-color: var(--beige);
    color: var(--dark-gray);
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'adelle', serif;
}

button:hover {
    background-color: #d4c296;
}

#form-status {
    margin-top: 1rem;
    text-align: center;
}

/* ========== SUBPAGE LAYOUT (History, Families, Records, etc.) ========== */
.subpage-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.subpage-layout .sidebar {
    flex: 0 0 220px;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.subpage-layout .sidebar h3 {
    margin-top: 0;
    color: var(--amber);
    font-size: 1.3rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.subpage-layout .sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .8rem;
}

.subpage-layout .sidebar a {
    display: block;
    padding: 0.4rem 0;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.subpage-layout .content {
    flex: 1;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

.subpage-layout .content h2 {
    color: var(--amber);
    font-weight: 400;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .subpage-layout {
        flex-direction: column;
    }

    .subpage-layout .sidebar {
        width: 100%;
    }
}

/* ========== PLACES PAGE (Special Layout) ========== */
.places-layout {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.place-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    flex-wrap: wrap;
}

.place-section.reverse {
    flex-direction: row-reverse;
}

.place-text {
    flex: 1;
    min-width: 280px;
}

.place-text h3 {
    color: var(--amber);
    margin-bottom: 1rem;
}

.place-text p {
    font-size: 1rem;
    line-height: 1.5;
}

.place-image {
    flex: 1;
    min-width: 280px;
}

.place-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

@media (max-width: 768px) {

    .place-section,
    .place-section.reverse {
        flex-direction: column;
    }
}

/* ========== FOOTER ========== */
footer {
    background-color: var(--amber);
    color: var(--white);
    padding: 3rem 1rem 1rem;
    margin-top: 4rem;
    border-top: 3px solid var(--beige);
    /* Optional top accent */
}

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

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    /* Horizontal line under columns */
    position: relative;
}

.footer-column {
    padding: 0 1rem;
    border-left: 3px solid rgba(255, 255, 255, 0.15);
    /* Vertical lines */
}

.footer-column:first-child {
    border-left: none;
    /* Remove left border on first column */
    padding-left: 0;
}

.footer-column:last-child {
    padding-right: 0;
}

.footer-column h4 {
    color: var(--beige);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

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

.footer-column a {
    color: var(--white);
    font-size: 0.95rem;
    display: block;
    padding: 0.35rem 0;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--beige);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    padding-top: 1.0rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: var(--beige);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Mobile: Stack columns, remove vertical lines */
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        border-bottom: none;
    }

    .footer-column {
        border-left: none !important;
        padding: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1rem;
    }

    .footer-column:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .footer-bottom {
        padding-top: 1rem;
    }
}


/* =================FAMILIES PAGE====================*/
/* Fuselier gallery */
.fuselier-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.fuselier-thumb {
    display: block;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f8f8;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fuselier-thumb:hover,
.fuselier-thumb:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    outline: none;
}

/* Ensure equal size thumbnails */
.fuselier-thumb img {
    width: 100%;
    height: 220px;
    /* controls uniform height */
    object-fit: cover;
    /* crops to fill evenly */
    display: block;
}

/* Responsive: stack on small screens */
@media (max-width: 640px) {
    .fuselier-gallery {
        grid-template-columns: 1fr;
    }

    .fuselier-thumb img {
        height: 200px;
    }
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    /* hidden by default */
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.78);
    z-index: 1000;
    padding: 24px;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 96vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background: #111;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 32px;
    line-height: 1;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
}

/* Constrain all Fuselier images to uniform size */
.fuselier-thumb img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    display: block;
}

/* Caption styling */
.fuselier-item figcaption {
    font-size: 0.9rem;
    font-family: 'adelle', serif;
    color: #555;
    margin-top: 8px;
    line-height: 1.3;
}

/* Responsive */
@media (max-width: 640px) {
    .fuselier-thumb img {
        width: 100%;
        height: 400px;
    }
}

/* ===== Lightbox Styles ===== */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    padding: 24px;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background: #111;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 36px;
    line-height: 1;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
}

/* ========== LIGHTBOX (for families.html) ========== *
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    padding: 24px;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 36px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
    .hero h2 {
        font-size: 1.8rem;
    }

    header h1 {
        font-size: 1.2rem;
    }
}

/* ===== FAMILY GROUP SHEET ===== */
.family-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.family-form fieldset {
    border: 2px solid var(--beige);
    border-radius: 8px;
    padding: 1.5rem;
    background-color: var(--gray);
}

.family-form legend {
    color: var(--amber);
    font-weight: 500;
    font-size: 1.2rem;
    padding: 0 0.5rem;
}

.family-form label {
    display: block;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.family-form input,
.family-form textarea {
    width: 100%;
    padding: 0.6rem;
    margin-top: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.child-group {
    margin-top: 1rem;
}

#add-child {
    background-color: var(--amber);
    color: var(--white);
    margin-top: 1rem;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#add-child:hover {
    background-color: #3c2b2b;
}

.family-form button[type="submit"] {
    background-color: var(--beige);
    color: var(--dark-gray);
    border: none;
    border-radius: 6px;
    padding: 0.8rem;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.family-form button[type="submit"]:hover {
    background-color: #d4c296;
}