/* main.css */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Jost:wght@300;400;500;600&display=swap');

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

:root {
    --blue: #4f8586;
    --blue-dark: #3a6667;
    --blue-light: #6aa4a5;
    --blue-muted: #eef4f4;
    --orange: #f1953b;
    --orange-dark: #d97d28;
    --orange-light: #f7b472;
    --border: #e5e7eb;
    --text: #374151;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --banner-background: white;
    --cream: #fafaf9;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Jost', sans-serif;

    --shadow-sm: 0 1px 6px rgba(79, 133, 134, 0.08);
    --shadow-md: 0 6px 24px rgba(79, 133, 134, 0.14);
    --shadow-lg: 0 16px 48px rgba(79, 133, 134, 0.18);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--text);
    line-height: 1.7;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--banner-background);
    box-shadow: 0 2px 16px rgba(79, 133, 134, 0.1);
    transition: box-shadow var(--transition);
}

/* Push body down so content doesn't hide behind fixed header */
body {
    padding-top: 140px;
}

.logo-banner-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 48px;
    border-bottom: 1px solid var(--border);
    max-height: 120px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.2s ease, padding 0.2s ease, opacity 0.15s ease;
}

header.scrolled .logo-banner-area {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: none;
    opacity: 0;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease;
}

header.scrolled {
    box-shadow: 0 2px 20px rgba(79, 133, 134, 0.2);
}

.banner-img {
    max-width: 50%;
    max-height: 75px;
    width: auto;
    object-fit: contain;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.contact-info a {
    text-decoration: none;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.03em;
    transition: color var(--transition);
}

.contact-info a:hover {
    color: var(--blue);
}

.contact-info a.phone-number p {
    font-size: 20px;
    font-weight: 600;
    color: var(--blue);
}

.contact-info p {
    margin: 0;
}

/* Navigation */
nav {
    background: var(--blue);
    position: relative;
}

.hamburger {
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0;
    justify-content: center;
}

.nav-links li a {
    display: block;
    padding: 13px 22px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color var(--transition), background var(--transition);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 22px;
    right: 22px;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.nav-links li a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.nav-links li a:hover::after {
    transform: scaleX(1);
}

/* Welcome / Hero Section */
.welcome {
    position: relative;
    height: 82vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: videoFade 23s ease-in-out infinite;
}

@keyframes videoFade {
    0% {
        opacity: 0;
    }

    2% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.welcome::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
            rgba(58, 102, 103, 0.65) 0%,
            rgba(79, 133, 134, 0.35) 50%,
            rgba(58, 102, 103, 0.7) 100%);
    z-index: 1;
}

.welcome-text {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    animation: heroFadeIn 1.2s ease both;
}

.welcome-text h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 300;
    color: white;
    letter-spacing: 0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
}

.welcome-text h1::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: var(--orange);
    margin: 22px auto 0;
    border-radius: 2px;
}

.welcome-text p {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.08em;
    margin-top: 20px;
    text-transform: uppercase;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(408px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Divider / Section Header */
.divider {
    text-align: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--blue-dark);
    letter-spacing: 0.05em;
    padding: 64px 48px 16px;
}

.divider::before,
.divider::after {
    content: '';
    display: inline-block;
    width: 52px;
    height: 2px;
    background: var(--orange);
    vertical-align: middle;
    margin: 0 18px;
    border-radius: 1px;
}

/* Staff Section */
.staff-info {
    width: 100%;
    max-width: 80%;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    padding: 24px 48px 80px;
}

.staff-info>tbody>tr {
    display: flex;
    align-items: stretch;
    background: var(--banner-background);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
    overflow: hidden;
}

.staff-info>tbody>tr:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.staff-info>tbody>tr>td {
    display: block;
}

/* PICTURE SIZE */
.staff-info>tbody>tr>td:first-child {
    flex: 0 0 40%;
}

/* make the info side fill remaining space */
.staff-info>tbody>tr>td:last-child {
    flex: 1;
}

.staff-member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: filter var(--transition);
}

.staff-info>tbody>tr:hover .staff-member-image {
    filter: grayscale(0%);
}

/* Inner staff info table */
.staff-member-contact-info {
    border-collapse: collapse;
    padding: 36px 40px;
    width: 100%;
}

.staff-member-contact-info caption {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--blue-dark);
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--orange);
    margin-bottom: 16px;
    caption-side: top;
    letter-spacing: 0.03em;
}

.staff-member-contact-info td {
    padding: 5px 0;
    vertical-align: top;
}

.staff-member-contact-info p {
    font-size: 20px;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin: 0;
}

.staff-member-contact-info ul {
    margin: 16px 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.staff-member-contact-info ul li {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
    font-weight: 300;
}

.staff-member-contact-info ul li::marker {
    color: var(--orange);
}

.staff-member-contact-info .staff-bio {
    text-indent: 30px;
    text-align: justify;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 1.05rem;
    color: var(--text);
    font-weight: 300;
    line-height: 1.8;
    margin-top: 8px;
}

/* Scroll down prompt */
.scroll-prompt {
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    animation: fadeInUp 2s ease 1.5s both, bounce 1.4s ease 3.5s infinite;
}

.scroll-prompt span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--orange);
    border-bottom: 2px solid var(--orange);
    transform: rotate(45deg);
    justify-content: center;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Footer */
footer {
    background: var(--blue-dark);
    border-top: 3px solid var(--orange);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 52px 48px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    align-items: center;
    text-align: center;
}

.street-address {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 20px;
    color: var(--cream);
    text-align: center;
}

#logo {
    max-width: 220px;
    height: auto;
}

.footer-info p {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 300px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-contact a {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--orange-light);
}

.review-link {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange-light);
    text-decoration: none;
    border: 1px solid var(--orange);
    padding: 8px 16px;
    border-radius: 4px;
    transition: background var(--transition), color var(--transition);
    align-self: center;
}

.review-link:hover {
    background: var(--orange);
    color: white;
}

.footer-map {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-map iframe {
    width: 100%;
    height: 280px;
    border: 0;
    border-radius: 6px;
    display: block;
    filter: grayscale(20%) contrast(1.05);
    opacity: 0.9;
    transition: opacity var(--transition), filter var(--transition);
}

.footer-map iframe:hover {
    opacity: 1;
    filter: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 18px 48px;
}

.footer-bottom p {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.05em;
}





/* Responsive */
@media (max-width: 450px) {

    /* Scroll down prompt */
    /* TODO: make this scale to the right position based on screen width/height */
    .scroll-prompt {
        display: none;
    }
}


@media (max-width: 1126px) {

    /* ── Staff ── */
    .staff-info {
        padding: 12px 12px 40px;
    }

    .staff-info>tbody>tr {
        flex-direction: column;
    }

    .staff-info>tbody>tr>td:first-child {
        flex-shrink: unset;
    }

    .staff-member-image {
        width: 50%;
        height: auto;
        object-fit: cover;
        object-position: center top;
        margin-left: auto;
        margin-right: auto;
    }

    .staff-member-contact-info .staff-bio {
        font-size: 20px;
    }
}

@media (max-width: 829px) {

    /* ── Scrolling Header ── */
    .logo-banner-area {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 20px;
        text-align: center;
        max-height: 160px;
        opacity: 1;
        overflow: hidden;
        transition: max-height 0.2s ease, padding 0.2s ease, opacity 0.15s ease;
    }

    header.scrolled .logo-banner-area {
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-bottom: none;
        opacity: 0;
        transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease;
    }

    .banner-img {
        max-width: 70%;
        max-height: 60px;
        width: auto;
        object-fit: contain;
    }

    .contact-info {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .contact-info a {
        font-size: 15px;
    }

    .contact-info a.phone-number p {
        font-size: 15px;
    }

    /* ── Nav ── */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 12px 20px;
        margin-left: auto;
    }

    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: white;
        border-radius: 2px;
        transition: transform var(--transition), opacity var(--transition);
    }

    /* Animate to X when open */
    .hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-container {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--blue);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: var(--shadow-md);
        z-index: 99;
    }

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

    .nav-links li a {
        padding: 14px 24px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-align: left;
    }

    .nav-links li a::after {
        display: none;
    }

    /* ── Hero ── */
    .welcome {
        height: 60vh;
        min-height: 360px;
    }

    .welcome-text h1 {
        font-size: 2.2rem;
    }

    .welcome-text p {
        font-size: 14px;
    }

    /* ── Divider ── */
    .divider {
        padding: 40px 20px 12px;
        font-size: 1.5rem;
    }

    .divider::before,
    .divider::after {
        width: 30px;
        margin: 0 10px;
    }

    /* ── Staff ── */
    .staff-info {
        padding: 12px 12px 40px;
    }

    .staff-info>tbody>tr {
        flex-direction: column;
    }

    .staff-info>tbody>tr>td:first-child {
        flex-shrink: unset;
    }

    .staff-member-image {
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: center top;
        margin-left: auto;
        margin-right: auto;
    }

    .staff-member-contact-info {
        padding: 20px;
    }

    .staff-member-contact-info p {
        font-size: 15px;
    }

    .staff-member-contact-info .staff-bio {
        font-size: 1.05rem;
    }

    /* ── Footer ── */
    .footer-inner {
        flex-direction: column;
        padding: 32px 20px;
        gap: 28px;
    }

    .footer-info p {
        max-width: 100%;
    }

    .footer-map {
        width: 100%;
        max-width: 100%;
    }

    .footer-map iframe {
        height: 400px;
    }

    .footer-bottom {
        padding: 16px 20px;
    }
}