/* ============================================================
   L'Academie Atlantienne de la Danse — Stylesheet
   Redesign 2026
   ============================================================ */

/* ===== Custom Properties ===== */
:root {
    --navy:        #1a1e4a;
    --navy-dark:   #0f1230;
    --navy-mid:    #252b6b;
    --gold:        #c9a84c;
    --gold-light:  #e8d48a;
    --gold-pale:   #f7f0dc;
    --white:       #ffffff;
    --off-white:   #faf8f4;
    --text:        #1a1a1a;
    --text-muted:  #5a5a5a;
    --border:      #ddd5b8;

    --max-width:   880px;
    --radius:      6px;
    --radius-lg:   10px;
}

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

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

body {
    margin: 0;
    padding: 0;
    background-color: var(--off-white);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
}

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

/* ===== Skip Link ===== */
.skip-link {
    position: absolute;
    top: -60px;
    left: 16px;
    background: var(--gold);
    color: var(--navy-dark);
    font-weight: bold;
    padding: 10px 18px;
    text-decoration: none;
    z-index: 999;
    border-radius: 0 0 var(--radius) var(--radius);
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--navy);
    line-height: 1.3;
    margin: 0 0 0.5em;
}
h1 { font-size: 2rem; margin-top: 0; }
h2 { font-size: 1.45rem; margin-top: 1.5em; }
h3 { font-size: 1.15rem; margin-top: 1.2em; }
h4 { font-size: 1rem; font-style: italic; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.5em; }
li { margin-bottom: 0.35em; }

a:link, a:visited { color: var(--navy-mid); }
a:hover, a:focus  { color: var(--gold); text-decoration: underline; }

blockquote {
    border-left: 4px solid var(--gold);
    margin: 1em 0;
    padding: 0.5em 1em;
    color: var(--text-muted);
    background: var(--gold-pale);
    border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote p:last-child { margin-bottom: 0; }

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2em 0;
}

/* ===== Site Header / Top Nav ===== */
#site-header {
    background-color: var(--navy-dark);
    border-bottom: 3px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 100;
}

#header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Logo / brand link */
#site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    padding: 10px 0;
}
#site-logo img { height: 44px; width: auto; display: inline-block; }
#site-logo:hover { opacity: 0.85; }

/* Horizontal nav links */
#nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    flex: 1;
}

#nav-links > li {
    display: flex;
}

#nav-links > li > a {
    display: flex;
    align-items: center;
    padding: 16px 14px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: bold;
    font-family: Georgia, serif;
    letter-spacing: 0.01em;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

#nav-links > li > a:hover,
#nav-links > li > a:focus {
    color: var(--gold-light);
    border-bottom-color: var(--gold);
    text-decoration: none;
}

#nav-links > li > a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Hamburger button — hidden on desktop */
#nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-size: 1.3rem;
    padding: 5px 12px;
    cursor: pointer;
    border-radius: var(--radius);
    line-height: 1.3;
    margin-left: auto;
    flex-shrink: 0;
}

/* ===== Hero (home page) ===== */
.hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
    border-bottom: 3px solid var(--gold);
    padding: 56px 20px;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
}

.hero-text { flex: 1; min-width: 0; }

.hero-eyebrow {
    display: inline-block;
    background: var(--gold);
    color: var(--navy-dark);
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.hero-text h1 {
    color: #fff;
    font-size: 3rem;
    margin: 0 0 16px;
    line-height: 1.1;
}

.hero-text p {
    color: rgba(255,255,255,0.78);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero,
.btn-hero:link,
.btn-hero:visited {
    display: inline-block;
    padding: 11px 24px;
    background: var(--gold);
    color: var(--navy-dark);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    border: 2px solid var(--gold);
    transition: background 0.15s, color 0.15s;
}
.btn-hero:hover, .btn-hero:focus {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--navy-dark);
    text-decoration: none;
}

.btn-hero-outline,
.btn-hero-outline:link,
.btn-hero-outline:visited {
    background: transparent;
    color: var(--gold-light);
    border-color: var(--gold-light);
}
.btn-hero-outline:hover, .btn-hero-outline:focus {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #fff;
    text-decoration: none;
}

.hero-image {
    flex-shrink: 0;
    opacity: 0.85;
}
.hero-image img {
    max-height: 200px;
    width: auto;
}

/* ===== Page Content Container ===== */
#site-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 36px 20px 48px;
}

/* ===== Footer ===== */
#site-footer {
    background-color: var(--navy-dark);
    border-top: 3px solid var(--gold);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 28px 20px;
    font-size: 0.8rem;
}

#site-footer p { margin: 0 0 0.5em; }
#site-footer p:last-child { margin: 0; }

.footer-divider {
    border: none;
    border-top: 1px solid rgba(201,168,76,0.3);
    margin: 12px auto;
    width: 60%;
}

#footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
    margin: 8px 0 0;
}

#footer-links a {
    color: var(--gold-light);
    text-decoration: none;
    font-size: 0.8rem;
}
#footer-links a:hover { color: #fff; text-decoration: underline; }

/* ===== Hero / Page Banner ===== */
.page-banner {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
    color: #fff;
    padding: 48px 20px;
    text-align: center;
    border-bottom: 3px solid var(--gold);
}

.page-banner h1 {
    color: #fff;
    font-size: 2.4rem;
    margin-bottom: 0.3em;
}

.page-banner p {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Gold section rule ===== */
.section-rule {
    border: none;
    border-top: 2px solid var(--gold);
    opacity: 0.4;
    margin: 2em 0;
}

/* ===== Call-out / intro band ===== */
.callout {
    background: var(--gold-pale);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 14px 18px;
    margin: 0 0 1.5em;
}
.callout p:last-child { margin-bottom: 0; }

/* ===== Cards ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin: 1.5em 0;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.card h3 {
    margin-top: 0;
    font-size: 1.05rem;
    color: var(--navy);
}

.card p { flex: 1; color: var(--text-muted); font-size: 0.95rem; }

.card a.btn {
    margin-top: 12px;
    align-self: flex-start;
}

/* ===== Buttons ===== */
/* Use :link and :visited to win the specificity battle against a:link (0,1,1) */
.btn,
.btn:link,
.btn:visited {
    display: inline-block;
    padding: 9px 20px;
    background: var(--navy);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    border: 2px solid transparent;
    transition: background 0.15s, color 0.15s;
}
.btn:hover, .btn:focus {
    background: var(--navy-mid);
    color: var(--gold-light);
    text-decoration: none;
}

.btn-outline,
.btn-outline:link,
.btn-outline:visited {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-outline:hover,
.btn-outline:focus {
    background: var(--navy);
    color: #fff;
    text-decoration: none;
}

/* ===== Officer list ===== */
.officer-list { display: flex; flex-direction: column; gap: 0; }

.officer {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}
.officer:first-child { border-top: 1px solid var(--border); }

.officer-photo {
    width: 110px;
    min-width: 110px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    object-fit: cover;
}

.officer-info h3 { margin-top: 0; font-size: 1rem; }
.officer-info .role {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    color: var(--navy);
    font-weight: bold;
    margin-bottom: 4px;
}
.officer-info p:last-child { margin-bottom: 0; }

/* ===== Practice locations ===== */
.practice-list { display: flex; flex-direction: column; gap: 0; }

.practice {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.practice:first-child { border-top: 1px solid var(--border); }

.practice-name {
    font-family: Georgia, serif;
    font-size: 1.15rem;
    color: var(--navy);
    font-weight: bold;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.practice-name::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

.practice p { margin-bottom: 0; color: var(--text-muted); }
.practice .updated { font-size: 0.8rem; color: var(--text-muted); font-style: italic; }

/* ===== Newsletter list ===== */
.newsletter-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5em;
}

.newsletter-list li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.newsletter-list li:first-child { border-top: 1px solid var(--border); }

.newsletter-list .issue-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    min-width: 110px;
    flex-shrink: 0;
}

.newsletter-list a { font-weight: bold; }

/* ===== Jump nav (card page) ===== */
.jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5em;
}
.jump-nav a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--white);
    border: 1px solid var(--navy);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--navy);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.jump-nav a:hover {
    background: var(--navy);
    color: var(--gold-light);
}

/* ===== Data table (dance card) ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    font-size: 0.9rem;
}
.data-table th {
    background: var(--navy);
    color: #fff;
    padding: 10px 12px;
    text-align: left;
    font-family: Georgia, serif;
    font-weight: normal;
    font-style: italic;
}
.data-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
}
.data-table tr:nth-child(even) td { background: var(--gold-pale); }

/* ===== Charter members ===== */
.charter-members { border-collapse: collapse; margin: 1em 0; }
.charter-members td { padding: 3px 10px; vertical-align: top; font-size: 0.95rem; }

/* ===== Responsive video ===== */
.video-wrap {
    position: relative;
    width: 100%;
    max-width: 560px;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 1.5em 0;
    border-radius: var(--radius);
    background: #000;
}
.video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ===== Image + text float ===== */
.float-left {
    float: left;
    margin: 0 20px 12px 0;
    border-radius: var(--radius);
}

/* ===== Inline tags / badges ===== */
.tag {
    display: inline-block;
    background: var(--gold-pale);
    color: var(--navy);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: bold;
    vertical-align: middle;
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.note        { font-size: 0.88rem; color: var(--text-muted); font-style: italic; }
.mb-0        { margin-bottom: 0; }

/* ===== External link indicator ===== */
a[href^="http"]::after,
a[href^="https"]::after {
    content: '\202F↗';
    font-size: 0.72em;
    opacity: 0.55;
    vertical-align: super;
}
/* Suppress on nav, footer, buttons, image links */
#nav-links a::after,
#site-footer a::after,
.btn::after,
a:has(img)::after,
.no-ext::after { content: none; }

/* ===== Responsive — Tablet ===== */
@media (max-width: 780px) {
    #nav-links > li > a { padding: 16px 10px; font-size: 0.82rem; }
}

/* ===== Responsive — Mobile ===== */
@media (max-width: 640px) {
    /* Sticky header stays compact */
    #site-logo img { height: 36px; }

    /* Show hamburger, hide nav by default */
    #nav-toggle { display: block; }

    #nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--navy-dark);
        border-bottom: 3px solid var(--gold);
        z-index: 200;
    }

    #nav-links.open { display: flex; }

    #nav-links > li { border-top: 1px solid rgba(255,255,255,0.08); }

    #nav-links > li > a {
        padding: 14px 20px;
        font-size: 1rem;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    #nav-links > li > a.active,
    #nav-links > li > a:hover {
        border-left-color: var(--gold);
        border-bottom: none;
    }

    /* Hero */
    .hero { padding: 36px 16px; }
    .hero-inner { flex-direction: column; gap: 24px; }
    .hero-text h1 { font-size: 2.1rem; }
    .hero-text p { font-size: 1rem; }
    .hero-image { display: none; }

    /* Content */
    #site-main { padding: 24px 16px 40px; }

    /* Typography */
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.25rem; }
    .page-banner h1 { font-size: 1.7rem; }
    .page-banner p { font-size: 1rem; }

    /* Layouts */
    .card-grid { grid-template-columns: 1fr; gap: 14px; }

    .officer { flex-direction: column; gap: 14px; }
    .officer-photo { width: 90px; min-width: unset; }

    .float-left {
        float: none;
        display: block;
        max-width: 180px;
        margin: 0 auto 16px;
    }

    .jump-nav a { font-size: 0.8rem; padding: 5px 10px; }

    .video-wrap { max-width: 100%; }

    /* Footer links wrap tightly */
    #footer-links { gap: 4px 10px; }

    /* Suppress ext-link arrows — too noisy on small screens */
    a[href^="http"]::after, a[href^="https"]::after { content: none; }
}
