* {
    box-sizing: border-box;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
}

hr {
    border-top: 1px solid var(--md-sys-color-outline-variant);
    border-bottom: 0;
    border-left: 0;
    border-right: 0;

}



.contact-details a {
    color: inherit;
    text-decoration: none;
}

.contact-group {
    margin-top: 2.5rem;
}

.contact-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    display: flex;
    flex: 0 0 3.5rem;
    width: 3.5rem;
    height: 3.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: 50%;
    background-color: var(--md-sys-color-surface-container-low);
    color: var(--md-sys-color-on-surface);
    text-decoration: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;                
}

.contact-icon:hover {
    opacity: 0.6;
    transform: translateY(-1px);
}



.contact-icon .material-symbols-rounded {
    font-size: 1.5rem;
    color: var(--md-sys-color-on-surface);
    line-height: 1;
}


.contact-text {    
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
    text-align: left;
}

.contact-text span {
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.contact-hours  {    
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
    text-align: left;
}

.contact-hours h3 {
    margin: 0;
}

.contact-hours span {   
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

/* ==============================
   HEADER
============================== */

.site-header {
    position: fixed;
    top: 18px;
    left: 30px;
    right: 30px;

    height: 64px;

    padding: 0 28px;

    background: var(--md-sys-color-surface-container-low);
    color: var(--md-sys-color-on-surface);

    display: flex;
    align-items: center;

    border-radius: 999px;

    z-index: 1000;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.logo {
    color: var(--md-sys-color-on-surface);
    text-decoration: none;

    font-weight: bold;
    font-size: 1.1rem;

    white-space: nowrap;
}

.main-nav {
    background: var(--md-sys-color-surface-container-low);
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav a {
    color: var(--md-sys-color-on-surface);
    border-bottom-color: var(--md-sys-color-outline-variant);
    text-decoration: none;
    white-space: nowrap;
    font-family: "Inter", sans-serif;
    font-size: 1.0rem;
    font-weight: 400;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.main-nav a:hover {
    opacity: 0.55;
    transform: translateY(-1px);
}


/* ==============================
   MOBILE MENU BUTTON
============================== */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: var(--md-sys-color-surface-container-low);

    cursor: pointer;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 4px;
}

.menu-toggle span {
    display: block;

    width: 19px;
    height: 2px;

    background: var(--md-sys-color-on-surface);

    transition:
        transform 0.3s ease,
        opacity 0.6s ease;
}


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

section {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);

    min-height: 100vh;

    scroll-snap-align: start;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 100px 40px 40px;

    position: relative;
    overflow: hidden;
}

.content {
    width: min(1100px, 100%);

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;
}


/* ==============================
   TEXT ANIMATIONS
============================== */

h1,
h2 {
    margin: 0 0 20px;

    font-size: clamp(2.5rem, 6vw, 6rem);
    line-height: 0.95;

    transform: translateY(80px);
    opacity: 0;

    transition:
        transform 1.2s cubic-bezier(.2, .8, .2, 1),
        opacity 1.2s ease;
}
h3,
.contact-cards,
.contact-hours span {
    transform: translateY(120px);
    opacity: 0;
    transition:
        transform 1.5s cubic-bezier(.2, .8, .2, 1),
        opacity 1.5s ease;
    transition-delay: 0.15s;
}

p {
    font-size: 1.2rem;
    line-height: 1.6;

    max-width: 600px;

    transform: translateY(120px);
    opacity: 0;

    transition:
        transform 1.5s cubic-bezier(.2, .8, .2, 1),
        opacity 1.5s ease;

    transition-delay: 0.15s;
}


/* ==============================
   IMAGE ANIMATIONS
============================== */

.image {
    height: 70vh;

    background-size: cover;
    background-position: center;

    transform: translateY(180px) scale(1.08);
    opacity: 0;

    transition:
        transform 1.8s cubic-bezier(.2, .8, .2, 1),
        opacity 1.2s ease;
}


/* ==============================
   VISIBLE STATE
============================== */

section.visible h1,
section.visible h2,
section.visible h3,
section.visible .contact-cards,
section.visible .contact-hours span,
section.visible p,
section.visible .image {
    transform: translateY(0) scale(1);
    opacity: 1;
}

section.visible .button{
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;  
    transform: translateY(0) scale(1);
    opacity: 1;
}

section.visible .button:hover {
    opacity: 0.6;
    transform: translateY(-1px); 
}

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

.hero {
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)
        ),
        image-set(
            url("/images/Hero.avif") type("image/avif"),
            url("/images/Hero.jpg") type("image/jpeg")
        );
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero .content {
    display: block;
}

.hero h1 {
    max-width: 900px;
}

.hero p {
    opacity: 0.7;
}

/* ==============================
   BUTTON
============================== */


.button {
    display: inline-block;
    margin-top: 20px;
    padding: 16px 28px;
    background: var(--md-sys-color-surface-container-low);
    color: var(--md-sys-color-on-surface);
    text-decoration: none;
    font-weight: 600;
    border-radius: 999px;

    transform: translateY(120px);
    opacity: 0;

    transition:
        transform 1.5s cubic-bezier(.2, .8, .2, 1),
        opacity 1.5s ease,
        translate 0.2s ease,
        filter 0.2s ease;

    transition-delay: 0.15s;
}

.button:hover {
    opacity: 0.6;
    transform: translateY(-1px);
}


/* ==============================
   MOBILE
============================== */

@media (max-width: 1124px) {

    .site-header {
        top: 14px;
        left: 16px;
        right: 16px;

        height: 58px;

        padding: 0 9px 0 18px;

        border-radius: 999px;

        justify-content: space-between;
    }

    .logo {
        order: 1;

        margin: 0;

        font-size: 1rem;
    }

    .menu-toggle {
        display: flex;

        order: 2;
    }

    /* ------------------------------
       DROPDOWN MENU CARD
    ------------------------------ */

    .main-nav {
        position: fixed;

        top: 84px;
        left: 16px;
        right: 16px;

        width: auto;

        margin: 0;

        padding: 10px 22px 16px;

        background: var(--md-sys-color-surface-container-low);

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        border-radius: 28px;

        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);

        transform: translateY(-30px);
        opacity: 0;

        transition:
            transform 0.4s cubic-bezier(.2, .8, .2, 1),
            opacity 0.3s ease;

        pointer-events: none;
    }

    .main-nav a {   

        width: 100%;

        padding: 17px 4px;

        color: #111;

        font-size: 1.05rem;
        font-weight: 600;

        border-bottom: 1px solid #e5e5e5;

        transform: none;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .main-nav a:hover {
        opacity: 0.55;
        transform: none;
    }

    .site-header.menu-open .main-nav {
        transform: translateY(0);
        opacity: 1;

        pointer-events: auto;
    }


    /* ------------------------------
       BURGER → X
    ------------------------------ */

    .site-header.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .site-header.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }


    /* ------------------------------
       SECTIONS
    ------------------------------ */

    section {
        padding: 105px 25px 40px;
        align-items: flex-start;
    }

    .content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .image {
        height: 40vh;
    }

    h1,
    h2 {
        font-size: 3rem;
    }

    .hero {
        background-attachment: scroll;
    }
}


/* ==============================
   SMALL PHONES
============================== */

@media (max-width: 520px) {

    .site-header {
        top: 10px;
        left: 12px;
        right: 12px;

        height: 56px;

        padding-left: 16px;
        padding-right: 7px;
    }

    .logo {
        font-size: 0.95rem;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .main-nav {
        top: 76px;
        left: 12px;
        right: 12px;

        padding-left: 20px;
        padding-right: 20px;

        border-radius: 25px;
    }

    .main-nav a {
        padding: 16px 3px;
        font-size: 1rem;
    }

    section {
        padding: 95px 20px 35px;
        align-items: flex-start;
    }

    h1,
    h2 {
        font-size: 2.6rem;
    }

    p {
        font-size: 1rem;
    }

    .image {
        height: 35vh;
    }
}


/* ==============================
   LANDSCAPE / LOW HEIGHT
============================== */

@media (max-height: 600px) and (orientation: landscape) {

    section {
        min-height: auto;
        padding: 85px 25px 30px;
        overflow: visible;
    }

    .content {
        gap: 25px;
    }

    h1,
    h2 {
        font-size: 2.4rem;
    }

    p {
        font-size: 1rem;
    }

    .image {
        height: 45vh;
    }
}
