@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;1,600;1,700&display=swap');

:root {
    --brown-dark: #432818;
    --brown: #99582a;
    --beige: #ffe6a7;
    --sage: #c2c5aa;
    --ink: #1d1713;
    --paper: #fffaf0;
    --white: #fff;
    --shadow: 0 18px 45px rgba(67, 40, 24, 0.14);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.65;
    overflow-x: hidden;
}

body.lightbox-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(1180px, 92%);
    margin: auto;
}

/* Fluid layout safeguards: keeps grids/flex items from overflowing at browser zoom levels. */
.container > *,
.split > *,
.section-head > *,
.purpose > *,
.contact-grid > *,
.solutions-grid > *,
.footer-grid > *,
.video-showcase-grid > * {
    min-width: 0;
}

p,
li,
a,
span {
    overflow-wrap: anywhere;
}

/* ---------- Header ---------- */
.topbar {
    position: relative;
    z-index: 1100;
    background: var(--brown-dark);
    color: #fff;
    font-size: 0.82rem;
}

.topbar .container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    padding: 8px 0;
}

.topbar .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.topbar i {
    margin-right: 7px;
    color: var(--beige);
}

.topbar a {
    transition: color 0.25s ease;
}

.topbar a:hover {
    color: var(--beige);
}

.site-header {
    position: absolute;
    top: 37px;
    left: 0;
    z-index: 1000;
    width: 100%;
    background: transparent;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
}

.logo img {
    width: 200px;
    max-height: 78px;
    object-fit: contain;
}

.logo-fallback {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 10px 13px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    transition: 0.25s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.13);
}

.nav-links a.active {
    background: var(--beige);
    color: var(--brown-dark);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.15);
}

.nav-cta {
    border-radius: 999px !important;
    background: var(--brown) !important;
    color: #fff !important;
}

.nav-cta.active {
    background: var(--beige) !important;
    color: var(--brown-dark) !important;
}

.menu-btn {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(67, 40, 24, 0.75);
    color: #fff;
    font-size: 1.35rem;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background: var(--brown-dark);
    color: #fff;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, #432818, #99582a);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(38, 23, 14, 0.92) 0%,
        rgba(67, 40, 24, 0.62) 48%,
        rgba(67, 40, 24, 0.18) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    min-height: 720px;
}

.hero-copy {
    max-width: 820px;
    padding: 155px 0 90px;
}

.eyebrow {
    margin-bottom: 16px;
    color: var(--beige);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.08;
}

h1 {
    font-size: clamp(2.7rem, 6vw, 5.7rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.65rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

h3 {
    font-size: 1.18rem;
}

.duotone em {
    color: var(--beige);
    font-style: italic;
}

.duotone .accent {
    color: var(--brown);
}

.hero p {
    max-width: 720px;
    margin: 22px 0 30px;
    color: #f2e9df;
    font-size: 1.02rem;
}

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

.btn {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    padding: 13px 20px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 700;
    transition: 0.25s ease;
}

.btn-primary {
    background: var(--brown);
    color: #fff;
}

.btn-primary:hover {
    background: #7f451f;
    transform: translateY(-2px);
}

.btn-light {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.btn-light:hover {
    background: #fff;
    color: var(--brown-dark);
}

.btn-dark {
    background: var(--brown-dark);
    color: #fff;
}

.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    z-index: 5;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.hero-dot.active {
    background: var(--beige);
}

/* ---------- Global Sections ---------- */
.section {
    padding: 96px 0;
}

.section-soft {
    background: #f6f4ef;
}

.section-dark {
    background: var(--brown-dark);
    color: #fff;
}

.section-brown {
    background: var(--brown);
    color: #fff;
}

.section-head {
    display: flex;
    gap: 40px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 44px;
}

.section-head p {
    max-width: 560px;
    color: #6e655f;
}

.section-dark .section-head p,
.products-parallax .section-head p,
.mission-parallax .section-head p {
    color: #f1e7dd;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 72px;
    align-items: center;
}

.media-stack {
    position: relative;
    min-height: 500px;
}

.media-stack .photo {
    position: absolute;
    overflow: hidden;
    background: var(--sage);
    box-shadow: var(--shadow);
}

.media-stack .photo:first-child {
    inset: 0 18% 14% 0;
}

.media-stack .photo:last-child {
    right: 0;
    bottom: 0;
    width: 58%;
    height: 52%;
    border: 10px solid #fff;
}

.media-stack .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.check-list {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    list-style: none;
}

.check-list li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
}

.check-list i {
    margin-top: 5px;
    color: var(--brown);
}

.section-dark .check-list i {
    color: var(--beige);
}

/* ---------- Home ---------- */
.products-parallax {
    position: relative;
    background: url('../imgs/portfolio/7.png') center / cover fixed;
    color: #fff;
}

.products-parallax::before {
    position: absolute;
    inset: 0;
    content: '';
    background: rgba(38, 23, 14, 0.72);
}

.products-parallax > .container {
    position: relative;
    z-index: 1;
}

.cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.card {
    min-height: 225px;
    padding: 26px 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(44, 28, 19, 0.91);
    backdrop-filter: blur(5px);
    transition: 0.25s ease;
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

.card .icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    background: var(--beige);
    color: var(--brown-dark);
}

.card .icon i {
    animation: iconFloat 3s ease-in-out infinite;
}

.card p {
    margin: 12px 0 18px;
    color: #e3d7cc;
    font-size: 0.88rem;
}

.card a {
    color: var(--beige);
    font-size: 0.8rem;
    font-weight: 700;
}

.work-method {
    background: url('../imgs/portfolio/8.png') center / cover no-repeat;
}

.purpose {
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    background: transparent;
    box-shadow: var(--shadow);
}

.purpose > div {
    padding: 58px;
    background: rgba(255, 250, 240, 0.94);
    color: var(--ink);
}

.purpose .vision {
    background: rgba(153, 88, 42, 0.95);
    color: #fff;
}

.purpose p {
    margin-top: 18px;
}

.purpose .vision p {
    color: #f8eee6;
}

.purpose .eyebrow {
    color: var(--brown);
}

.purpose .vision .eyebrow {
    color: var(--beige);
}

.benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.benefit {
    padding: 36px 24px;
    border: 1px solid #ece6df;
    background: #fff;
    text-align: center;
}

.benefit i {
    margin-bottom: 18px;
    color: var(--brown);
    font-size: 1.8rem;
    animation: iconFloat 3.2s ease-in-out infinite;
}

.benefit h3 {
    font-size: 1.08rem;
}

.benefit p {
    margin-top: 10px;
    color: #6e655f;
    font-size: 0.9rem;
}

.flip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.flip-card {
    height: 255px;
    perspective: 1100px;
    cursor: pointer;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.65s ease;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-inner,
.flip-card:focus-within .flip-inner {
    transform: rotateY(180deg);
}

.flip-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 34px 22px;
    border: 1px solid #ece6df;
    background: #fff;
    text-align: center;
    backface-visibility: hidden;
}

.flip-front > i:first-child {
    margin-bottom: 20px;
    color: var(--brown);
    font-size: 2.65rem;
    animation: iconPulse 2.8s ease-in-out infinite;
}

.flip-front h3 {
    font-size: 1.35rem;
}

.flip-hint {
    position: absolute;
    right: 14px;
    bottom: 12px;
    color: var(--brown);
    font-size: 1rem;
}

.flip-back {
    background: var(--brown-dark);
    color: #fff;
    transform: rotateY(180deg);
}

.flip-back i {
    margin-bottom: 16px;
    color: var(--beige);
    font-size: 2rem;
}

.flip-back p {
    color: #eadfd5;
    font-size: 0.92rem;
}

/* ---------- Home / Video Showcase ---------- */
.video-showcase {
    position: relative;
    overflow: hidden;
    background: #fffaf0;
}

.video-showcase::before {
    position: absolute;
    top: -140px;
    right: -140px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    content: '';
    background: rgba(255, 230, 167, 0.5);
    filter: blur(6px);
}

.video-showcase .container {
    position: relative;
    z-index: 1;
}

.video-showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(24px, 4vw, 58px);
    align-items: center;
}

.video-copy {
    max-width: 620px;
}

.video-copy p {
    margin-top: 20px;
    color: #6e655f;
}

.video-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
    list-style: none;
}

.video-points li {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 13px 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(67, 40, 24, 0.08);
    font-size: 0.88rem;
    font-weight: 600;
}

.video-points i {
    flex: 0 0 auto;
    color: var(--brown);
}

.video-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.52fr);
    gap: clamp(12px, 2vw, 22px);
    align-items: end;
}

.video-frame {
    position: relative;
    overflow: hidden;
    background: var(--brown-dark);
    box-shadow: var(--shadow);
}

.video-frame::after {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 230, 167, 0.42);
    content: '';
    pointer-events: none;
}

.video-frame-square {
    aspect-ratio: 1 / 1;
}

.video-frame-vertical {
    aspect-ratio: 9 / 16;
    max-height: 520px;
}

.video-frame video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--brown-dark);
}

.video-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 9px 12px;
    background: rgba(67, 40, 24, 0.86);
    color: var(--beige);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    backdrop-filter: blur(5px);
}

.cta-band {
    padding: 72px 0;
    background: linear-gradient(90deg, var(--brown-dark), var(--brown));
    color: #fff;
}

.cta-band .container {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: space-between;
}

.cta-band h2 {
    max-width: 780px;
}

/* ---------- Inner Pages ---------- */
.page-hero {
    padding: 190px 0 110px;
    background:
        linear-gradient(115deg, rgba(67, 40, 24, 0.9), rgba(153, 88, 42, 0.68)),
        url('../imgs/slide/2.png') center / cover;
    color: #fff;
}

.page-hero p {
    max-width: 720px;
    margin-top: 18px;
    color: #f5e9dd;
}

/* ---------- Gallery / Masonry ---------- */
.gallery-section {
    background: #fffdf8;
}

.gallery-container {
    width: min(1120px, 90%);
}

.gallery {
    column-count: 4;
    column-gap: 14px;
    line-height: 0;
}

.gallery-item {
    position: relative;
    margin: 0 0 14px;
    overflow: hidden;
    break-inside: avoid;
    background: var(--sage);
    cursor: zoom-in;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    filter: none;
    transform: none;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    content: '\f00e';
    background: rgba(67, 40, 24, 0.46);
    color: #fff;
    font-family: 'Font Awesome 6 Free';
    font-size: 2rem;
    font-weight: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(0.72);
    transform: scale(1.045);
}

.gallery-item:hover::after {
    opacity: 1;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.94);
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    filter: none !important;
    transform: none !important;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* ---------- Catalog ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.product-card {
    padding: 30px;
    border: 1px solid #e8e1da;
    background: #fff;
}

.product-card .icon {
    margin-bottom: 18px;
    color: var(--brown);
    font-size: 1.8rem;
    animation: iconFloat 3.2s ease-in-out infinite;
}

.product-card p {
    margin: 14px 0 22px;
    color: #6b625c;
}

.solutions-band {
    background: var(--beige);
}

.solutions-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 50px;
    align-items: center;
}

.solutions-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.solution-pill {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(67, 40, 24, 0.08);
}

.solution-pill i {
    color: var(--brown);
    font-size: 1.2rem;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 45px;
}

.contact-panel {
    padding: 42px;
    background: var(--brown-dark);
    color: #fff;
}

.contact-row {
    display: flex;
    gap: 15px;
    margin-top: 24px;
}

.contact-row i {
    margin-top: 5px;
    color: var(--beige);
}

.form {
    display: grid;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form input,
.form textarea,
.form select {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd3ca;
    background: #fff;
    font: inherit;
}

.form textarea {
    min-height: 145px;
    resize: vertical;
}

.form label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.84rem;
    font-weight: 600;
}

.form .hp {
    position: absolute;
    left: -9999px;
}

/* ---------- Maps / Location ---------- */
.map-embed {
    display: block;
    width: 100%;
    height: 430px;
    border: 0;
}

.location-strip {
    display: grid;
    grid-template-columns: 1.45fr 0.8fr;
    width: 100%;
}

.location-strip .map-embed {
    height: 450px;
}

.location-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px;
    background: var(--brown-dark);
    color: #fff;
}

.location-info .contact-row {
    margin-top: 18px;
}

/* ---------- About ---------- */
.mission-parallax {
    position: relative;
    background: url('../imgs/portfolio/9.png') center / cover fixed;
    color: #fff;
}

.mission-parallax::before {
    position: absolute;
    inset: 0;
    content: '';
    background: rgba(67, 40, 24, 0.66);
}

.mission-parallax > .container {
    position: relative;
    z-index: 1;
}

.mission-parallax .section-head .eyebrow,
.mission-parallax .section-head h2,
.mission-parallax .section-head h2 .accent {
    color: var(--beige) !important;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.mv-card {
    padding: 46px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 250, 240, 0.94);
    color: var(--ink);
    backdrop-filter: blur(4px);
}

.mv-card:nth-child(2) {
    background: rgba(153, 88, 42, 0.94);
    color: #fff;
}

.mv-card i {
    margin-bottom: 20px;
    color: var(--brown);
    font-size: 2.1rem;
    animation: iconFloat 3s ease-in-out infinite;
}

.mv-card:nth-child(2) i {
    color: var(--beige);
}

.mv-card p {
    margin-top: 14px;
}

.mv-card:nth-child(2) p {
    color: #f8eee6;
}

.principles-section {
    background: var(--beige);
}

.principles-section .benefit {
    border-color: rgba(67, 40, 24, 0.1);
    box-shadow: 0 14px 34px rgba(67, 40, 24, 0.08);
}

/* ---------- Footer ---------- */
.footer {
    padding: 68px 0 24px;
    background: #21150f;
    color: #ded2c8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.25fr;
    gap: 38px;
}

.footer h4 {
    margin-bottom: 16px;
    color: #fff;
}

.footer h4 i {
    margin-right: 8px;
    color: var(--beige);
}

.footer ul {
    display: grid;
    gap: 9px;
    list-style: none;
    font-size: 0.9rem;
}

.footer li i,
.footer p i {
    margin-right: 8px;
    color: var(--beige);
}

.footer a {
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer a:hover {
    color: var(--beige);
}

.footer-logo img {
    width: 245px;
    max-height: none;
    margin-bottom: 18px;
}

.footer-services li,
.footer-phone {
    width: fit-content;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-services li:hover,
.footer-phone:hover {
    color: var(--beige);
    transform: translateX(5px);
}

.footer-services li:hover i,
.footer-phone:hover i {
    transform: scale(1.15) rotate(-5deg);
}

.footer-services i,
.footer-phone i {
    transition: transform 0.25s ease;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

/* ---------- Floating UI ---------- */
.float-stack {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    cursor: pointer;
}

.whatsapp {
    background: #25d366;
}

.backtop {
    background: var(--brown-dark);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
}

.backtop.show {
    opacity: 1;
    pointer-events: auto;
}

.notice {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-left: 4px solid var(--brown);
    background: #fff4dd;
}

/* ---------- Motion ---------- */
.reveal-title {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.75s ease,
        transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-title.is-visible {
    opacity: 1;
    transform: none;
}

.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--beige);
    mix-blend-mode: difference;
}

.cursor-ring {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(153, 88, 42, 0.75);
    transition:
        width 0.2s ease,
        height 0.2s ease,
        border-color 0.2s ease;
}

.cursor-ring.cursor-hover {
    width: 52px;
    height: 52px;
    border-color: var(--beige);
}

@keyframes iconFloat {
    0%,
    100% {
        transform: translateY(0);
    }

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

@keyframes iconPulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .nav {
        gap: 18px;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-links a {
        padding-inline: 10px;
        font-size: 0.82rem;
    }

    .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-grid {
        gap: 28px;
    }
}

@media (max-width: 980px) {
    .site-header {
        top: 0;
    }

    .nav-links {
        position: fixed;
        top: 92px;
        right: -100%;
        width: min(340px, 88vw);
        height: calc(100vh - 92px);
        flex-direction: column;
        align-items: flex-start;
        padding: 34px;
        background: var(--brown-dark);
        box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.1);
        transition: 0.3s ease;
    }

    .nav-links.open {
        right: 0;
    }

    .menu-btn {
        display: grid;
        place-items: center;
    }

    .topbar {
        display: none;
    }

    .split,
    .contact-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits,
    .flip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .purpose,
    .location-strip {
        grid-template-columns: 1fr;
    }

    .gallery {
        column-count: 2;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-hero {
        padding-top: 170px;
    }

    .products-parallax,
    .mission-parallax {
        background-attachment: scroll;
    }

    .video-showcase-grid {
        grid-template-columns: 1fr;
    }

    .video-copy {
        max-width: 760px;
    }

    .video-media {
        width: min(760px, 100%);
        margin-inline: auto;
    }
}

@media (max-width: 640px) {
    .logo img {
        width: 200px;
    }

    .footer-logo img {
        width: 235px;
    }

    .section {
        padding: 72px 0;
    }

    .hero,
    .hero-content {
        min-height: 650px;
    }

    .hero-copy {
        padding: 145px 0 70px;
    }

    .section-head {
        display: block;
    }

    .section-head p {
        margin-top: 18px;
    }

    .cards,
    .product-grid,
    .footer-grid,
    .form-row,
    .mission-vision,
    .solutions-list {
        grid-template-columns: 1fr;
    }

    .benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .flip-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .flip-card {
        height: 230px;
    }

    .flip-face {
        padding: 24px 12px;
    }

    .flip-front > i:first-child {
        font-size: 2.1rem;
    }

    .flip-front h3 {
        font-size: 1rem;
    }

    .flip-back p {
        font-size: 0.78rem;
    }

    .purpose > div {
        padding: 34px;
    }

    .cta-band .container {
        display: block;
    }

    .cta-band .btn {
        margin-top: 24px;
    }

    .media-stack {
        min-height: 380px;
    }

    .gallery {
        column-count: 2;
        column-gap: 10px;
    }

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

    .footer,
    .footer-grid,
    .footer-bottom {
        text-align: center;
    }

    .footer-logo img {
        margin: 0 auto 18px;
    }

    .footer ul {
        justify-items: center;
    }

    .footer-services li,
    .footer-phone {
        width: auto;
    }

    .footer-services li:hover,
    .footer-phone:hover {
        transform: none;
    }

    .footer-bottom {
        justify-content: center;
    }

    .location-info {
        padding: 38px 24px;
    }

    .video-points {
        grid-template-columns: 1fr;
    }

    .video-media {
        grid-template-columns: minmax(0, 1fr) minmax(120px, 0.55fr);
        gap: 10px;
    }

    .video-frame::after {
        inset: 7px;
    }

    .video-badge {
        top: 10px;
        left: 10px;
        padding: 7px 9px;
        font-size: 0.68rem;
    }

    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

@media (max-width: 460px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .nav {
        min-height: 82px;
    }

    .logo img {
        width: min(180px, 46vw);
    }

    .nav-links {
        top: 82px;
        height: calc(100dvh - 82px);
        width: min(320px, 92vw);
        padding: 28px 22px;
    }

    .hero,
    .hero-content {
        min-height: 610px;
    }

    .hero-copy {
        padding-top: 125px;
    }

    h1 {
        font-size: clamp(2.25rem, 12vw, 3.45rem);
    }

    h2 {
        font-size: clamp(1.85rem, 9vw, 2.65rem);
    }

    .btns .btn {
        width: 100%;
        justify-content: center;
    }

    .media-stack {
        min-height: 320px;
    }

    .media-stack .photo:last-child {
        border-width: 6px;
    }

    .benefits,
    .flip-grid {
        gap: 8px;
    }

    .flip-card {
        height: 216px;
    }

    .flip-face {
        padding: 20px 9px;
    }

    .flip-back p {
        font-size: 0.72rem;
        line-height: 1.45;
    }

    .video-media {
        grid-template-columns: 1fr;
        width: min(420px, 100%);
    }

    .video-frame-vertical {
        width: min(72%, 290px);
        margin-left: auto;
    }

    .gallery {
        column-count: 1;
    }

    .location-strip .map-embed,
    .map-embed {
        height: 340px;
    }
}

@media (min-width: 1400px) {
    .container {
        width: min(1280px, 88%);
    }

    .hero,
    .hero-content {
        min-height: min(820px, 92vh);
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ---------- Social Links & Video Showcase refinements ---------- */
.topbar-right {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.topbar-social,
.footer-social,
.contact-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-social a,
.footer-social a {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 230, 167, 0.35);
    border-radius: 50%;
    color: var(--beige);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.topbar-social a {
    width: 27px;
    height: 27px;
}

.topbar-social a i,
.footer-social a i {
    margin: 0;
}

.topbar-social a:hover,
.footer-social a:hover {
    background: var(--beige);
    color: var(--brown-dark);
    transform: translateY(-3px);
}

.footer-social {
    margin-top: 18px;
}

.footer-logo img {
    width: 220px;
}

.video-showcase {
    background: #f7edcf;
}

.video-showcase::before {
    background: rgba(153, 88, 42, 0.10);
}

.video-showcase-grid {
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(28px, 4vw, 64px);
}

.video-copy {
    max-width: 520px;
}

.video-media {
    grid-template-columns: minmax(0, 1.18fr) minmax(210px, 0.72fr);
    gap: clamp(16px, 2vw, 26px);
}

.video-frame-vertical {
    max-height: 620px;
}

.contact-social {
    margin-top: 26px;
}

.contact-social > strong {
    display: block;
    margin-bottom: 12px;
}

.contact-social-links {
    flex-wrap: wrap;
}

.contact-social-links a {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid rgba(255, 230, 167, 0.35);
    color: #fff;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.contact-social-links a:hover {
    background: var(--beige);
    color: var(--brown-dark);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .video-showcase-grid {
        grid-template-columns: 1fr;
    }

    .video-copy {
        max-width: 720px;
    }

    .video-media {
        width: min(900px, 100%);
        grid-template-columns: minmax(0, 1.2fr) minmax(190px, 0.65fr);
    }
}

@media (max-width: 640px) {
    .footer-logo img {
        width: 210px;
    }

    .footer-social {
        justify-content: center;
    }

    .contact-social-links {
        justify-content: flex-start;
    }

    .video-media {
        grid-template-columns: minmax(0, 1fr) minmax(135px, 0.58fr);
    }
}

@media (max-width: 460px) {
    .video-media {
        grid-template-columns: 1fr;
    }

    .video-frame-vertical {
        width: min(78%, 330px);
        margin-left: auto;
    }
}
