@font-face {
    font-family: "Gabriel";
    src: url("Gabriel Weiss' Friends Font.ttf");
}
@font-face {
    font-family: "April";
    src: url(April.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-new-silver: #B7C3BE;
    --color-blanced-almond: #ffe9cf;
    --color-navajo-white: #ffd6a0;
    --color-saddle-brown: #883501;
    --color-dark-brown: #441a00;
    --color-olive: #a29b1f;
    --cornerRad: 4px;
}

body {
    background-color: #ffe9cf;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── NAV ── */
nav {
    font-family: "April", sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding-top: 75px;
    padding-bottom: 12px;
    padding-left: 20px;
    padding-right: 20px;
}

nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    margin-top: -5px;
    background-image: url('images/home/roofFront_main.png');
    background-size: auto 100px;
    background-position: center top;
    background-repeat: repeat-x;
}

/* ── Logo ── */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 110px;
}

/* ── Desktop Nav Links ── */
.nav-links {
    display: flex;
    list-style: none;
    background-color: #FFD6A0;
    border-radius: 30px;
    padding: 8px 20px;
    gap: 4px;
}

.nav-links li {
    margin: 0 4px;
}

.nav-links a {
    color: var(--color-dark-brown);
    text-decoration: none;
    font-size: 16px;
    font-family: "April", sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding: 5px 8px;
    border-radius: 20px;
}

.nav-links a::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--color-dark-brown);
    bottom: 90%;
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    transform-origin: bottom;
    transition: all 0.4s;
}

.nav-links a:hover::before {
    transform: translateX(-50%) scaleY(1);
}

.nav-links a.active {
    color: var(--color-saddle-brown);
}

.nav-links a.active::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--color-saddle-brown);
    bottom: 90%;
    left: 50%;
    transform: translateX(-50%) scaleY(1);
    transition: none;
}

/* ── Hamburger Menu (hidden on desktop) ── */
.hamburger-menu {
    display: none;
    position: relative;
    z-index: 1001;
}

.hamburger-menu details {
    margin: 0;
}

.hamburger-menu summary {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    user-select: none;
    outline: none;
    transition: transform 200ms ease-in-out;
    list-style: none;
    padding: 0;
}

.hamburger-menu summary::marker,
.hamburger-menu summary::-webkit-details-marker {
    display: none;
}

.hamburger-menu summary::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-saddle-brown);
    border-radius: 2px;
    box-shadow:
        0 8px 0 var(--color-saddle-brown),
        0 16px 0 var(--color-saddle-brown);
}

.hamburger-menu summary:hover {
    transform: scale(1.1);
}

.hamburger-menu details[open] summary::before {
    content: "";
}

.hamburger-menu details[open] summary::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-saddle-brown);
    border-radius: 2px;
    box-shadow:
        0 8px 0 var(--color-saddle-brown),
        0 16px 0 var(--color-saddle-brown);
}

.hamburger-menu .menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    height: 0;
    width: fit-content;
    min-width: 160px;
    border-radius: var(--cornerRad);
    background-color: var(--color-navajo-white);
    box-shadow: 0 4px 12px 0 rgba(68, 26, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    animation: closeMenu 300ms ease-in-out forwards;
    z-index: 1002;
}

.hamburger-menu details[open] .menu {
    animation: menuAnim 300ms ease-in-out forwards;
}

.hamburger-menu .menu a {
    padding: 12px 24px;
    margin: 0 8px;
    color: var(--color-dark-brown);
    border-bottom: 1px solid rgba(68, 26, 0, 0.15);
    text-decoration: none;
    text-align: center;
    font-family: "April", sans-serif;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: background 200ms linear;
    white-space: nowrap;
}

.hamburger-menu .menu a:nth-of-type(1) {
    padding-top: 20px;
}

.hamburger-menu .menu a:nth-last-of-type(1) {
    border-bottom: none;
    padding-bottom: 20px;
}

.hamburger-menu .menu a:hover {
    background-color: rgba(136, 53, 1, 0.1);
    color: var(--color-saddle-brown);
}

.hamburger-menu .menu a.active {
    color: var(--color-saddle-brown);
}

@keyframes menuAnim {
    0%   { height: 0; }
    100% { height: 320px; }
}

@keyframes closeMenu {
    0%   { height: 320px; }
    100% { height: 0; }
}

/* ── Main ── */
main {
    flex: 1;
    padding-top: 0px;
}

/* ── Footer ── */
footer {
    position: relative;
    background-color: var(--color-navajo-white);
    font-family: "April", sans-serif;
    color: var(--color-olive);
    font-size: 13px;
    margin-top: auto;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 18px;
    border: none;
    outline: none;
    box-shadow: none;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-image: url('images/home/trimExtended.png');
    background-size: auto 40px;
    background-position: left top;
    background-repeat: repeat-x;
    z-index: 1;
}

.footer-plants {
    position: absolute;
    bottom: -10px;
    display: flex;
    align-items: flex-end;
    gap: 0px;
}

.footer-plants-left {
    left: -10px;
}

.footer-plants img {
    height: 120px;
    display: block;
}

.footer-share {
    position: absolute;
    bottom: 20px;
    right: 30px;
    border: 2px dashed var(--color-olive);
    border-radius: 12px;
    padding: 12px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.footer-share span {
    font-family: "April", sans-serif;
    font-size: 14px;
    color: var(--color-olive);
    letter-spacing: 1px;
}

.footer-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-icons a img {
    height: 28px;
    width: 28px;
    transition: filter 0.3s ease, transform 0.3s ease;
    filter: brightness(0) saturate(100%) invert(58%) sepia(30%) saturate(400%) hue-rotate(30deg) brightness(90%);
}

.footer-icons a:hover img {
    filter: brightness(0) saturate(100%) invert(58%) sepia(30%) saturate(400%) hue-rotate(30deg) brightness(90%) drop-shadow(0 0 6px var(--color-blanced-almond)) drop-shadow(0 0 12px var(--color-olive));
    transform: scale(1.15);
}

.footer-copyright {
    font-family: "April", sans-serif;
    font-size: 12px;
    color: var(--color-olive);
    z-index: 2;
}

/* ── Hero Home ── */
.hero-home {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 900px;
    overflow: hidden;
    margin-top: -100px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    z-index: 0;
}

/* ── Hero Bottom Trim ── */
.hero-bottom-trim {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background-image: url('images/home/trimExtended.png');
    background-size: auto 45px;
    background-repeat: repeat-x;
    background-position: left center;
    z-index: 2;
}

/* ── Hero Content Layout ── */
.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 130px 60px 80px 60px;
    gap: 40px;
}

/* ── Left Text Block ── */
.mendoza-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex-shrink: 0;
    width: 280px;
}

.mendoza-title {
    font-family: "Gabriel", serif;
    font-size: 50px;
    color: var(--color-saddle-brown);
    line-height: 1.0;
    text-transform: uppercase;
}

.mendoza-intro {
    font-family: "April", sans-serif;
    font-size: 17px;
    color: var(--color-dark-brown);
    line-height: 1.5;
    text-align: left;
}

.mendoza-btn button {
    margin-top: 8px;
    padding: 10px 28px;
    background-color: var(--color-navajo-white);
    border: none;
    border-radius: 6px;
    font-family: "April", sans-serif;
    font-size: 15px;
    color: var(--color-saddle-brown);
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.25s ease, color 0.25s ease;
}

.mendoza-btn button:hover {
    background-color: var(--color-saddle-brown);
    color: var(--color-navajo-white);
}

/* ── Right: Hover Image ── */
.hero-image-hover {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.hero-fam-base,
.hero-fam-hover {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 990px;
    height: auto;
    object-fit: contain;
    object-position: bottom right;
    transition: opacity 0.5s ease;
}

.hero-fam-hover {
    opacity: 0;
}

.hero-image-hover:hover .hero-fam-hover {
    opacity: 1;
}

.hero-image-hover:hover .hero-fam-base {
    opacity: 0;
}

/* ── Second Floor Windows ── */
.second-floor {
    width: 100%;
    background-color: var(--color-blanced-almond);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0;
    padding: 40px 0 0 0;
    margin: 0;
    margin-bottom: 70px;
}

.second-floor-left,
.second-floor-right {
    width: 22%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    align-self: flex-end;
    flex-shrink: 0;
    display: block;
}

.second-floor-center {
    width: 56%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}
/* ── Window Video Wrapper ── */
.window-video-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.window-video {
    position: absolute;
    top: 20%;
    left: 4%;
    width: 95%;
    height: 78%;
    z-index: 0;
    border-radius: 2px;
}

.window-frame-overlay {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    z-index: 1;
    pointer-events: none;
}

/* ── Trim Divider ── */
.hero-trim-bottom {
    width: 100%;
    height: 45px;
    background-image: url('images/home/trimExtended.png');
    background-size: auto 45px;
    background-repeat: repeat-x;
    background-position: left center;
    position: relative;
    z-index: 10;
}

/* ── Roof Divider ── */
    .section-roof {
    width: 100%;
    height: 100px;
    background-image: url('images/home/roofFront_2.png'), url('images/home/wallwall.png');
    background-size: auto 90px, cover;
    background-repeat: repeat-x, no-repeat;
    background-position: center top, center center;
    margin: 0;
    margin-top: -2px;
    display: block;
}



/* ── About Section ── */
.about-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 100px 40px;
    background-color: var(--color-blanced-almond);
}

.about-label h2 {
    font-family: "Gabriel", serif;
    font-size: 55px;
    color: var(--color-saddle-brown);
    line-height: 1.1;
    text-align: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.about-text p {
    font-family: "April", sans-serif;
    font-size: 18px;
    color: var(--color-saddle-brown);
    line-height: 1.6;
    max-width: 650px;
    text-align: center;
}

/* ── Hero Sala ── */
.hero-sala {
    position: relative;
    width: 100%;
    height: 900px;
    overflow: hidden;
    margin-top: -20px;
}

/* ── Contact Hero ── */
.contact-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin-top: -110px;
    overflow: hidden;
}

.contact-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
}

/* ── Contact Section ── */
.contact-section {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 180px 20px 80px 20px;
    min-height: 100vh;
}

/* ── Contact Card ── */
.contact-card {
    background-color: var(--color-navajo-white);
    border-radius: 0px;
    padding: 52px 64px 56px;
    width: 100%;
    max-width: 740px;
    opacity: 0.95;
    box-shadow: 0 6px 32px rgba(68, 26, 0, 0.12);
    margin-top: 150px;
}

.contact-card h1 {
    font-family: "Gabriel", serif;
    font-size: 44px;
    color: var(--color-saddle-brown);
    text-align: center;
    margin-bottom: 44px;
}

.contact-field {
    margin-bottom: 30px;
}

.contact-field label {
    display: block;
    font-family: "April", sans-serif;
    font-size: 15px;
    color: var(--color-saddle-brown);
    margin-bottom: 6px;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--color-saddle-brown);
    padding: 8px 0;
    font-family: "April", sans-serif;
    font-size: 15px;
    color: var(--color-dark-brown);
    outline: none;
    transition: border-color 0.25s ease;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-bottom-color: var(--color-dark-brown);
}

.contact-field textarea {
    resize: none;
    height: 90px;
    display: block;
}

.contact-submit {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.contact-submit button {
    padding: 11px 60px;
    background: transparent;
    border: 1.5px solid var(--color-saddle-brown);
    border-radius: 6px;
    font-family: "April", sans-serif;
    font-size: 15px;
    color: var(--color-saddle-brown);
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.25s ease, color 0.25s ease;
}

.contact-submit button:hover {
    background-color: var(--color-saddle-brown);
    color: var(--color-navajo-white);
}

/* ── Meet the Mendozas / About Page Section ── */
.mendoza-section {
    position: relative;
    width: 100%;
    padding: 80px 20px 100px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url('images/home/wallwall.png');
    margin-top: -10px;
}

.mendoza-header {
    text-align: center;
    max-width: 780px;
    margin-bottom: 30px;
}

.mendoza-header h2 {
    font-family: "Gabriel", serif;
    font-size: 72px;
    color: var(--color-saddle-brown);
    text-align: center;
    line-height: 1.05;
    text-transform: uppercase;
}

.mendoza-gallery {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 750px;
    margin: 40px auto 0;
}

/* ── About Page Background ── */
.team-header {
    text-align: center;
    max-width: 780px;
    margin-bottom: 5px;
    margin-top: 100px;
}

.team-header h2 {
    font-family: "Gabriel", serif;
    font-size: 72px;
    color: var(--color-saddle-brown);
    text-align: center;
    line-height: 1.05;
    text-transform: uppercase;
}

.about-page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/home/wallwall.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* ── 3D Flip Card ── */
.flip-card {
    position: absolute;
    background-color: transparent;
    perspective: 1200px;
    overflow: visible;
    transition: z-index 0s 0s;
}

.flip-card:hover {
    z-index: 999;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg) scale(1.08);
    z-index: 999;
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip-card-front img,
.flip-card-back img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(6px 8px 12px rgba(0,0,0,0.25));
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* ── Press Container ── */
.press-container {
    position: absolute;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.press-container img {
    width: 100%;
    filter: drop-shadow(6px 8px 12px rgba(0,0,0,0.25));
}

.press-container:active {
    transform: scale(1.15);
    z-index: 100;
}

/* ── Frame Placements (sapagitan page) ── */
.frame-fam {
    top: -50px;
    left: -20px;
    width: 510px;
    z-index: 2;
}

.frame-iris {
    top: -30px;
    right: 50px;
    width: 350px;
    height: 480px;
    z-index: 3;
}

.frame-sis {
    top: 370px;
    left: -80px;
    width: 350px;
    height: 480px;
    z-index: 1;
}

.frame-tita {
    top: 420px;
    left: 240px;
    width: 420px;
    height: 420px;
    z-index: 5;
}

.frame-couple {
    top: 380px;
    right: -90px;
    width: 350px;
    height: 420px;
    z-index: 2;
}

/* ── Frame Placements (about page) ── */
.frame-zha {
    top: 20px;
    left: -120px;
    width: 500px;
    height: 360px;
    z-index: 2;
}

.frame-eritch {
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 450px;
    height: 370px;
    z-index: 3;
}

.frame-caro {
    top: -20px;
    right: -150px;
    width: 500px;
    height: 360px;
    z-index: 3;
}

.frame-zo {
    top: 370px;
    left: 50px;
    width: 500px;
    height: 360px;
    z-index: 1;
    margin-top: 50px;
}

.frame-eloi {
    top: 360px;
    left: 50px;
    margin-left: 320px;
    width: 500px;
    height: 360px;
    z-index: 2;
}

/* ── Forum Hero ── */
.forum-hero {
    position: relative;
    width: 100%;
    height: 900px;
    overflow: hidden;
    margin-top: -20px;
}

.forum-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    z-index: 0;
}

.forum-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: var(--color-blanced-almond);
    position: relative;
    z-index: 2;
}

.laptop-container {
    position: relative;
    width: 100%;
    max-width: 850px;
    margin: 0px auto;
    margin-top: 20px;
}

.laptop-img {
    width: 900px;
    height: auto;
    display: block;
    filter: drop-shadow(0px 15px 25px rgba(0, 0, 0, 0.15));
}

.laptop-screen {
    position: absolute;
    top: 8.5%;
    left: 11%;
    width: 78%;
    height: 75%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 5;
}

.forum-box-wrapper {
    width: 100%;
    margin: auto;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* ── Forum Box Refinement ── */
.forum-box {
    border-radius: 8px;
    padding: 30px 40px;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    opacity: 0.98;
    align-items: center;
    margin-left: 50px;
}

.forum-box h2 {
    font-family: "Gabriel", serif;
    font-size: 28px;
    color: var(--color-saddle-brown);
    text-align: center;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.forum-field {
    margin-bottom: 20px;
}

.forum-field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    border-bottom: 1.5px solid var(--color-saddle-brown);
    border-radius: 4px 4px 0 0;
    padding: 12px;
    font-family: "April", sans-serif;
    font-size: 15px;
    color: var(--color-dark-brown);
    outline: none;
    resize: vertical;
    min-height: 120px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.forum-field textarea:focus {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: var(--color-dark-brown);
}

.forum-submit {
    display: flex;
    justify-content: center;
}

.forum-submit button {
    padding: 12px 40px;
    background: transparent;
    border: 1.5px solid var(--color-saddle-brown);
    border-radius: 6px;
    font-family: "April", sans-serif;
    font-size: 15px;
    color: var(--color-saddle-brown);
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.25s ease, color 0.25s ease;
}

.forum-submit button:hover {
    background-color: var(--color-saddle-brown);
    color: var(--color-navajo-white);
}

/* ── Play Hero ── */
.play-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin-top: -110px;
    overflow: hidden;
}

.play-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
}

.play-section {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 180px 20px 80px 20px;
    min-height: 100vh;
}

/* ═══════════════════════════════════════════
   MEDIA QUERIES
   Breakpoints: 960px, 430px, 360px
═══════════════════════════════════════════ */

/* ── Tablet Portrait (≤ 960px) ── */
@media (max-width: 960px) {

    .nav-links {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    nav {
        padding-top: 60px;
        padding-left: 12px;
        padding-right: 12px;
    }

    nav::before {
        height: 80px;
        background-size: auto 80px;
    }

    .logo img {
        height: 80px;
    }

    main {
        padding-top: 0;
    }

    .hero-home {
        height: 680px;
        margin-top: -80px;
    }

    .hero-content {
        padding: 100px 30px 60px 30px;
        gap: 20px;
    }

    .mendoza-title {
        font-size: 50px;
    }

    .mendoza-text {
        width: 220px;
    }

    .hero-fam-base,
    .hero-fam-hover {
        max-width: 700px;
    }

    .second-floor {
        padding-top: 28px;
    }

    .second-floor-center {
        max-width: 700px;
    }

    .second-floor-left,
    .second-floor-right {
        width: 20%;
    }

    .about-section {
        gap: 60px;
        padding: 70px 30px;
    }

    .about-label h2 {
        font-size: 44px;
    }

    .about-text p {
        font-size: 15px;
    }

    .hero-sala {
        height: 580px;
        margin-top: -80px;
    }

    .mendoza-gallery {
        height: 580px;
        max-width: 700px;
    }

    .frame-fam    { width: 390px; top: -30px; left: -10px; }
    .frame-iris   { width: 270px; height: 370px; top: -20px; right: 30px; }
    .frame-sis    { width: 270px; height: 370px; top: 290px; left: -60px; }
    .frame-tita   { width: 320px; height: 320px; top: 330px; left: 180px; }
    .frame-couple { width: 270px; height: 320px; top: 290px; right: -60px; }

    .team-header h2 { font-size: 55px; }

    .frame-zha    { width: 280px; height: 395px; top: -15px;  left: -45px; }
    .frame-eritch { width: 280px; height: 395px; top: -55px; }
    .frame-caro   { width: 280px; height: 395px; top: -20px;  right: -60px; }
    .frame-zo     { width: 280px; height: 395px; top: 260px; left: 100px; }
    .frame-eloi   { width: 280px; height: 395px; top: 280px; margin-left: 300px; }

    .contact-card {
        padding: 40px 36px 44px;
    }

    .contact-card h1 {
        font-size: 36px;
    }

    .forum-hero {
        height: 660px;
        margin-top: -80px;
    }

    .laptop-img {
        width: 100%;
    }

    footer {
        min-height: 140px;
        padding-bottom: 16px;
    }

    .footer-copyright {
        position: absolute;
        bottom: 18px;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        z-index: 2;
    }

    .footer-plants img {
        height: 100px;
    }

    .footer-share {
        right: 16px;
        padding: 10px 16px;
        bottom: 16px;
    }
}

/* ── Large Mobile (≤ 430px) ── */
@media (max-width: 430px) {

    /* === NAV === */
    nav {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-top: 50px;
        padding-bottom: 8px;
        padding-left: 12px;
        padding-right: 12px;
        gap: 0;
    }

    nav::before {
        height: 65px;
        background-size: auto 65px;
    }

    .logo img {
        height: 60px;
    }

    main {
        padding-top: 0;
    }

    /* === HOME HERO === */
    .hero-home {
        height: auto;
        min-height: 560px;
        margin-top: -65px;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 120px 20px 45px 20px;
        gap: 40px;
        height: 100%;
        min-height: 560px;
        position: relative;
    }

    .mendoza-text {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        gap: 16px;
        z-index: 2;
        align-items: center;
        text-align: center;
    }

    .mendoza-title {
        font-size: 40px;
        margin-bottom: 6px;
        margin-top: 90px;
    }

    .mendoza-intro {
        font-size: 16px;
        text-align: center;
        margin-bottom: 8px;
    }

    .mendoza-btn button {
        font-size: 14px;
        padding: 10px 24px;
    }

    .hero-image-hover {
        position: relative;
        width: 100%;
        flex: 1;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .hero-fam-base {
        position: relative;
        width: 100%;
        height: auto;
        opacity: 1;
    }

    .hero-fam-hover {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: auto;
        opacity: 0;
    }

    /* === SECOND FLOOR === */
    .second-floor {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        padding: 16px 0 0 0;
        margin-bottom: 40px;
        gap: 0;
    }

    .second-floor-left,
    .second-floor-right {
        width: 22%;
        max-width: 120px;
        align-self: flex-end;
    }

    .second-floor-center {
        width: 56%;
        max-width: 100%;
        margin: 0;
        order: 0;
    }

    /* === ABOUT SECTION (home page) === */
    .about-section {
        flex-direction: column;
        gap: 24px;
        padding: 50px 24px;
        align-items: center;
    }

    .about-label h2 {
        font-size: 36px;
        text-align: center;
    }

    .about-text p {
        font-size: 14px;
        max-width: 100%;
        text-align: center;
    }

    /* === HERO SALA === */
    .hero-sala {
        height: 300px;
        margin-top: -65px;
    }

    /* === MENDOZA SECTION (sapagitan page) === */
    .mendoza-section {
        padding: 60px 16px 60px;
        overflow: hidden;
    }

    .mendoza-header {
        width: 100%;
        max-width: 100%;
        padding: 0 8px;
        margin-bottom: 20px;
    }

    .mendoza-header h2 {
        font-size: 36px;
        word-break: break-word;
        hyphens: auto;
        text-align: center;
    }

    /* === GALLERY: stacked layout for both sapagitan + about page === */
    .mendoza-gallery {
        position: relative !important;
        width: 100% !important;
        max-width: 340px !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        margin: 0 auto !important;
    }

    /* Force ALL flip-cards and named frames to stack — scoped to gallery */
    .mendoza-gallery .flip-card,
    .mendoza-gallery .press-container,
    .mendoza-gallery .frame-zha,
    .mendoza-gallery .frame-eritch,
    .mendoza-gallery .frame-caro,
    .mendoza-gallery .frame-zo,
    .mendoza-gallery .frame-eloi,
    .mendoza-gallery .frame-fam,
    .mendoza-gallery .frame-iris,
    .mendoza-gallery .frame-sis,
    .mendoza-gallery .frame-tita,
    .mendoza-gallery .frame-couple {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        min-height: unset !important;
        margin: 0 !important;
        z-index: auto !important;
        perspective: none !important;
    }

    /* Fix flip-card-inner so it has real height */
    .mendoza-gallery .flip-card-inner {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        transform-style: flat !important;
        transition: none !important;
    }

    /* Make front face normal flow */
    .mendoza-gallery .flip-card-front,
    .mendoza-gallery .flip-card-back {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        backface-visibility: visible !important;
        -webkit-backface-visibility: visible !important;
    }

    /* Hide back face on mobile — no 3D flip */
    .mendoza-gallery .flip-card-back {
        display: none !important;
    }

    /* Disable hover flip on mobile */
    .mendoza-gallery .flip-card:hover .flip-card-inner {
        transform: none !important;
    }

    .mendoza-gallery .flip-card-front img,
    .mendoza-gallery .flip-card-back img,
    .mendoza-gallery .press-container img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
    }

    /* === ABOUT PAGE (team frames) === */
    .team-header {
        margin-top: 80px;
        padding: 0 16px;
    }

    .team-header h2 {
        font-size: 36px;
        word-break: break-word;
    }

    /* === FORUM === */
    .forum-hero {
        height: 360px;
        margin-top: 0;
    }

    .forum-bg {
        object-position: left top;
    }

    .forum-main {
        padding: 0 0 40px 0;
    }

    .laptop-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .laptop-img {
        width: 100%;
    }

    .laptop-screen {
        top: 8%;
        left: 12%;
        width: 76%;
        height: 72%;
        overflow-y: auto;
    }

    .forum-box-wrapper {
        padding: 8px;
    }

    .forum-box {
        padding: 12px 16px;
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }

    .forum-box h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .forum-field textarea {
        font-size: 12px;
        min-height: 70px;
        padding: 8px;
    }

    .forum-submit button {
        padding: 8px 20px;
        font-size: 12px;
    }

    /* === FOOTER === */
    footer {
        min-height: 130px;
        padding-bottom: 14px;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 0;
    }

    .footer-copyright {
        position: absolute;
        bottom: 14px;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        z-index: 2;
    }

    .footer-plants img {
        height: 80px;
    }

    .footer-share {
        position: absolute;
        bottom: 14px;
        right: 12px;
        left: auto;
        transform: none;
        padding: 8px 14px;
        gap: 8px;
    }

    .footer-icons a img {
        height: 22px;
        width: 22px;
    }

    .footer-share span {
        font-size: 12px;
    }

    .hero-trim-bottom {
        height: 30px;
        background-size: auto 30px;
    }
}

/* ── Small Mobile (≤ 360px) ── */
@media (max-width: 360px) {

    nav::before {
        height: 55px;
        background-size: auto 55px;
    }

    .logo img {
        height: 50px;
    }

    nav {
        padding-top: 40px;
    }

    .mendoza-title {
        font-size: 34px;
    }

    .mendoza-header h2,
    .team-header h2 {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .about-label h2 {
        font-size: 30px;
    }

    /* === GALLERY: stacked layout for both sapagitan + about page === */
    .mendoza-gallery {
        max-width: 290px !important;
        gap: 16px !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Reset ALL absolute frames — sapagitan + about page frames */
    .mendoza-gallery .flip-card,
    .mendoza-gallery .press-container,
    .mendoza-gallery .frame-zha,
    .mendoza-gallery .frame-eritch,
    .mendoza-gallery .frame-caro,
    .mendoza-gallery .frame-zo,
    .mendoza-gallery .frame-eloi,
    .mendoza-gallery .frame-fam,
    .mendoza-gallery .frame-iris,
    .mendoza-gallery .frame-sis,
    .mendoza-gallery .frame-tita,
    .mendoza-gallery .frame-couple {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        min-height: unset !important;
        margin: 0 !important;
        z-index: auto !important;
        perspective: none !important;
    }

    .mendoza-gallery .flip-card-inner {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        transform-style: flat !important;
        transition: none !important;
    }

    .mendoza-gallery .flip-card-front,
    .mendoza-gallery .flip-card-back {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        backface-visibility: visible !important;
        -webkit-backface-visibility: visible !important;
    }

    .mendoza-gallery .flip-card-back {
        display: none !important;
    }

    .mendoza-gallery .flip-card:hover .flip-card-inner {
        transform: none !important;
    }

    .mendoza-gallery .flip-card-front img,
    .mendoza-gallery .flip-card-back img,
    .mendoza-gallery .press-container img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
    }


    .forum-hero {
        height: 300px;
    }

    .forum-box h2 {
        font-size: 13px;
    }

    .forum-field textarea {
        min-height: 55px;
        font-size: 11px;
    }

    .forum-submit button {
        font-size: 11px;
        padding: 6px 14px;
    }
    footer {
        min-height: 130px;
        padding-bottom: 14px;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 0;
    }

    .footer-copyright {
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        z-index: 2;
    }

    .footer-plants img {
        height: 75px;
    }

    .footer-share {
        position: absolute;
        bottom: 14px;
        right: 12px;
        left: auto;
        transform: none;
        padding: 8px 8px;
        gap: 8px;
    }

    .footer-icons a img {
        height: 22px;
        width: 22px;
    }

    .footer-share span {
        font-size: 12px;
    }
    
}