/* ============================================
   ANM Site CSS — Structure (anmV2.css)
   Layout, positioning, display, spacing only.
   No colors, border-radius, shadows, or fonts.
   For cosmetic changes see anm-theme.css
   ============================================ */

/* === DEBUG (uncomment to visualize layout) ===
div { border: 1px solid black; }
body * { outline: 2px solid rgba(255,0,0,0.4) !important; }
*/

/* ============================================
   CONDITIONS
   ============================================ */

ul.conditions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    list-style: none;
    margin: 16px auto 28px;
    padding: 0;
    justify-content: center;
    max-width: 800px;
}

ul.conditions-list li {
    font-size: 15px;
    padding: 4px 0;
}

.conditions-expand {
    max-width: 780px;
    margin: 20px auto 28px;
    width: 100%;
}

.condition-item {
    margin-bottom: 10px;
}

.condition-item summary {
    font-size: 1rem;
    font-weight: bold;
    padding: 10px 18px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.condition-item summary::-webkit-details-marker {
    display: none;
}

.condition-item summary::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 300;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 12px;
}

.condition-item[open] summary::after {
    transform: rotate(45deg);
}

.condition-body {
    padding: 16px 20px 20px;
}

/* ============================================
   BASE
   ============================================ */

body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: sans-serif;
}

/* ============================================
   BANNER & CONTACT BAR
   ============================================ */

.banner {
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    position: static;
    display: block;
    height: auto;
    text-align: center;
    z-index: 1;
    overflow: visible;
}

.contact {
    position: static;
    top: 0;
    margin: 0;
    padding: 6px 16px;
    width: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.contact-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
}

address.contact-inner {
    font-style: normal;
}

.contact-nowrap {
    display: inline-block;
    white-space: nowrap;
}

.contact h5 {
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: right;
}

/* ============================================
   LINKS
   ============================================ */

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.contact a:hover,
.nav-menu li a:hover,
.nav-dropdown li a:hover {
    text-decoration: none;
}

/* ============================================
   SOCIAL LINKS
   ============================================ */

.social-links {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .social-links {
        flex-direction: column;
        gap: 4px;
    }
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: background 0.2s;
}

/* ============================================
   TAGLINE
   ============================================ */

.tagline {
    margin: 0;
    padding: 0;
    position: static;
    text-align: center;
    z-index: 1;
}

/* ============================================
   NAV BAR
   ============================================ */

nav {
    position: relative;
}

.accent {
    position: relative;
    top: 15px;
    left: 10%;
    height: 30px;
    width: 80%;
    border-style: hidden;
    z-index: 6 !important;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.nav-menu {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
    justify-content: center;
    gap: 1vw;
    flex: 1;
    min-width: 0;
}

.nav-menu li a {
    text-decoration: none;
    font-size: 12px;
    padding: 0 4px;
    line-height: 30px;
    display: block;
    white-space: nowrap;
}

.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    height: 30px;
    position: relative;
    z-index: 3;
    margin-right: 4px;
}

.nav-toggle span {
    display: block;
    width: 16px;
    height: 2px;
}

.nav-toggle-check {
    display: none;
}

.nav-dropdown {
    position: absolute;
    top: 34px;
    left: 10%;
    right: 10%;
    list-style: none;
    margin: 0;
    padding-top: 15px;
    padding-bottom: 0;
    z-index: 2;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease-out, padding-bottom 0.25s ease-out;
}

.nav-toggle-check:checked ~ .nav-dropdown {
    max-height: 90px;
    padding-bottom: 4px;
}

.nav-dropdown li a {
    display: block;
    text-decoration: none;
    font-size: 12px;
    padding: 0 20px;
    line-height: 30px;
    white-space: nowrap;
    text-align: center;
    transition: box-shadow 0.2s;
}

.accent ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 8vw;
}

.accent li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.accent li a {
    display: block;
    padding: 0 14px;
    line-height: 30px;
    background-color: transparent;
    text-align: center;
    border: none;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

/* ============================================
   CORPUS / CONTENT WRAPPER
   ============================================ */

.corpus {
    margin: 0 auto;
    padding: 0 20px;
    max-width: 1100px;
    width: 100%;
    box-sizing: border-box;
}

/* ============================================
   HERO IMAGE
   ============================================ */

.graphic {
    position: relative;
    display: block;
    margin: 0 auto;
    padding: 0;
    max-width: 100%;
}

.graphic > a {
    display: block;
    cursor: pointer;
}

.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    width: auto;
}

.graphic img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 983 / 738;
    z-index: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.hero-byline {
    font-size: clamp(0.6rem, 1.4vw, 0.8rem) !important;
    font-style: italic;
    font-family: serif;
    font-weight: 400;
    margin: 0 !important;
    padding: 4px 12px !important;
    text-align: right !important;
    line-height: 1.4;
    display: inline-block;
}

/* ============================================
   REVIEWS / CAROUSEL
   ============================================ */

.reviews {
    position: relative;
    top: 10px;
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin: 0px 0px 30px;
    padding: 20px 10px;
    align-items: center;
    z-index: 3;
    contain: style paint;
    box-sizing: border-box;
}

.carousel {
    display: flex;
    width: 600%;
    height: 100%;
    transition: transform 0.3s ease-in-out;
    transform: translateX(0%);
    align-items: center;
    will-change: transform;
}

.carousel a {
    width: 16.67%;
    flex: 0 0 16.67%;
    margin: 0;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.carousel a img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
    display: block;
}

input {
    display: none;
}

@keyframes slideAnimation {
    0%     { transform: translateX(0%); }
    0.68%  { transform: translateX(0%); }
    16.67% { transform: translateX(-16.67%); }
    17.35% { transform: translateX(-16.67%); }
    33.34% { transform: translateX(-33.34%); }
    34.02% { transform: translateX(-33.34%); }
    50.01% { transform: translateX(-50.01%); }
    50.69% { transform: translateX(-50.01%); }
    66.68% { transform: translateX(-66.68%); }
    67.36% { transform: translateX(-66.68%); }
    83.35% { transform: translateX(-83.35%); }
    84.03% { transform: translateX(-83.35%); }
    100%   { transform: translateX(0%); }
}

.nav-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.nav-dots label {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* ============================================
   REVIEW OVERLAY
   ============================================ */

.review-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.review-overlay:target {
    display: flex;
}

.review-overlay img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.overlay-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: block;
}

.overlay-close::before,
.overlay-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: white;
    left: 5px;
    top: 14px;
}

.overlay-close::before { transform: rotate(45deg); }
.overlay-close::after  { transform: rotate(-45deg); }

/* ============================================
   BIO OVERLAY
   ============================================ */

.bio-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    justify-content: center;
    align-items: center;
}

.bio-overlay:target {
    display: flex;
}

@media (max-width: 600px) {
    .bio-overlay:target {
        position: fixed;
        z-index: 100;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
    }
    .bio-card {
        max-height: 80vh;
        overflow-y: auto;
    }
}

.bio-card {
    max-width: 680px;
    width: 88%;
    padding: 32px 36px;
}

.bio-card p,
.bio-p {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin: 0 0 16px !important;
    text-align: left !important;
    font-family: arial !important;
}

.bio-card p:last-child,
.bio-p:last-child {
    margin-bottom: 0 !important;
}

.bio-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: block;
}

.bio-close::before,
.bio-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: white;
    left: 5px;
    top: 14px;
}

.bio-close::before { transform: rotate(45deg); }
.bio-close::after  { transform: rotate(-45deg); }

/* ============================================
   PAGE SECTIONS
   ============================================ */

.page {
    position: relative;
    top: -7px;
    margin: 0px;
    padding: 10px 5px 30px;
    z-index: 3;
}

.page p {
    position: static;
}

.pagealt {
    position: relative;
    top: 0px;
    margin: 0px;
    padding: 10px 5px 30px;
}

.pagealt p {
    position: static;
}

.pagealt h4 {
    position: static;
}

.calendly {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.calendly iframe {
    width: 90%;
    height: 90vh;
    border: 0;
}

/* ============================================
   HEADINGS
   ============================================ */

h1 {
    text-align: center;
}

h2, .corpus > div > h3 {
    text-align: center;
    padding: 5px 20px;
    border-style: hidden;
    position: relative;
    top: -43px;
    margin-bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
}

.pagealt h2 {
    position: relative;
    top: -50px;
    margin-bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    z-index: 4;
}

.pagealt h3 {
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 1rem 0 0.5rem;
    padding: 8px 0;
    position: static;
    /* overrides for global h2/.corpus h3 rule */
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    left: auto !important;
    width: auto !important;
}

.page h3 {
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 1.5rem 0 0.5rem;
    padding: 8px 0;
    position: relative;
    top: -20px !important;
    /* overrides */
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    left: 50% !important;
    width: auto !important;
}

h4 {
    text-align: center;
}

/* ============================================
   LEGACY (kept for backward compat, unused)
   ============================================ */

.hname {
    position: absolute;
    top: 25px;
}

.hamburger {
    padding: 10px 14px 0px 0px;
    position: relative;
    float: right;
    overflow: visible;
    height: 55px;
}

.videopage {
    margin: 0px;
    padding: 5px;
}

.lastpage {
    margin: 0px;
    padding: 5px;
}

ul {
    display: block;
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-align: left;
}

p {
    text-align: center;
    font-family: arial;
    font-size: 20px;
    margin: 0px 0px 40px 0px;
}

video {
    display: block;
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
}
