/* ================================================================
   BAUTECHNIK STAUB AG — Modernized Stylesheet
   Design Direction: Refined Swiss Precision
   - Palette: Deep navy (#1a1a4e) + warm off-white (#f7f5f0) + gold accent (#c8a96e)
   - Typography: Playfair Display (headings) + DM Sans (body)
   - Layered shadows, smooth transitions, scroll-reveal animations
   ================================================================ */

/* ----------------------------------------------------------------
   CSS CUSTOM PROPERTIES (Design Tokens)
   ---------------------------------------------------------------- */
:root {
    --navy:       #1a1a4e;
    --navy-mid:   #2e2e8a;
    --navy-light: #3d3daa;
    --gold:       #c8a96e;
    --gold-light: #e0c99a;
    --off-white:  #f7f5f0;
    --white:      #ffffff;
    --text-dark:  #1c1c2e;
    --text-mid:   #4a4a6a;
    --text-light: #8888aa;
    --border:     #e4e2dd;

    /* Layered shadows */
    --shadow-sm:  0 2px 8px rgba(26,26,78,0.06), 0 1px 3px rgba(26,26,78,0.04);
    --shadow-md:  0 8px 24px rgba(26,26,78,0.10), 0 2px 8px rgba(26,26,78,0.06);
    --shadow-lg:  0 20px 48px rgba(26,26,78,0.14), 0 4px 16px rgba(26,26,78,0.08);
    --shadow-gold: 0 8px 32px rgba(200,169,110,0.22);

    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ----------------------------------------------------------------
   SCROLL-REVEAL ANIMATION
   Elements with .reveal fade+slide up when they enter the viewport
   ---------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------------------------------
   TYPOGRAPHY HELPERS
   ---------------------------------------------------------------- */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-sub {
    text-align: center;
    color: var(--text-mid);
    font-size: 1rem;
    margin-top: -12px;
    margin-bottom: 36px;
    font-weight: 400;
}

/* ----------------------------------------------------------------
   SECTION TITLES
   ---------------------------------------------------------------- */
.title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    text-align: center;
    color: var(--navy);
    position: relative;
    display: inline-block;
    margin: 60px 0 16px;
}

.title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ----------------------------------------------------------------
   HEADER & NAVIGATION
   ---------------------------------------------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 22px 60px;
    z-index: 1000;
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
    background: transparent;
}

/* Scrolled state: frosted-glass white bar */
.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 60px;
    box-shadow: var(--shadow-md);
}

.nav-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo: hidden until scroll, then fades in */
.LogoHeader {
    max-width: 220px;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity var(--transition);
}

.scrolled .LogoHeader {
    opacity: 1;
}

/* Nav list */
.navbar ul {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.linkNav {
    text-decoration: none;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    position: relative;
    white-space: nowrap;
    letter-spacing: 0.01em;
    transition: color var(--transition), background var(--transition);
}

/* After scrolling, nav links go dark */
.scrolled .linkNav {
    color: var(--text-dark);
}

/* Underline indicator */
.linkNav::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: center;
}

.linkNav:hover::after,
.linkNav.clicked::after {
    transform: scaleX(1);
}

.linkNav:hover {
    color: var(--gold-light);
    background: rgba(255,255,255,0.08);
}

.scrolled .linkNav:hover {
    color: var(--navy);
    background: var(--off-white);
}

.linkNav.clicked {
    color: var(--gold-light);
}

.scrolled .linkNav.clicked {
    color: var(--navy);
}

/* Hamburger */
.hamburger {
    display: none;          /* hidden on desktop */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    z-index: 10;
}

.hamburger div {
    width: 26px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

/* After scrolling the bars turn dark */
.scrolled .hamburger div {
    background: var(--navy);
}

/* Animated X when menu open */
.hamburger.active div:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.hamburger.active div:nth-child(2) { opacity: 0; }
.hamburger.active div:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

/* ----------------------------------------------------------------
   HERO SECTION
   ---------------------------------------------------------------- */
.home {
    min-height: 100vh;
    width: 100%;
    background-image: url('content/images/nature.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 0 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Darkening gradient overlay for legibility */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(10, 10, 40, 0.72) 0%,
        rgba(26, 26, 78, 0.55) 60%,
        rgba(10, 10, 30, 0.70) 100%
    );
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    animation: heroFadeUp 1s ease 0.2s both;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Small label above the H1 */
.hero-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(200,169,110,0.4);
    padding: 6px 16px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
}

.home h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero-accent {
    color: var(--gold);
    font-style: italic;
}

.home h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    color: rgba(255,255,255,0.82);
    letter-spacing: 0.04em;
}

/* Hero CTA button */
.hero-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 14px 36px;
    background: var(--gold);
    color: var(--navy);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    border-radius: 100px;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-gold);
}

.hero-cta:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(200,169,110,0.35);
}

.hero-cta:active {
    transform: translateY(0);
}

/* Wave bars — kept from original, refined timing */
.home .wave {
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    height: 11rem;
    width: 100%;
    background: url('content/images/wave.png');
    background-size: 100rem 11rem;
    animation: waves 8s linear infinite;
    background-repeat: repeat-x;
    z-index: 1;
    opacity: 0.6;
}

.home .wave2 {
    animation-direction: reverse;
    animation-duration: 6s;
    opacity: 0.2;
}

.home .wave3 {
    animation-duration: 4s;
    opacity: 0.35;
}

@keyframes waves {
    0%   { background-position-x: 0; }
    100% { background-position-x: 100rem; }
}

/* ----------------------------------------------------------------
   INTRO SECTION
   ---------------------------------------------------------------- */
.intro {
    background: var(--off-white);
    padding: 0 0 80px;
    text-align: center;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: left;
}

.text {
    flex: 1;
    min-width: 280px;
    max-width: 520px;
}

.text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--navy);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 14px;
}

.text h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    position: absolute;
    bottom: 0;
    left: 0;
}

.text-sub {
    font-style: italic;
    color: var(--text-mid);
    display: block;
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.text p {
    color: var(--text-mid);
    line-height: 1.8;
    font-size: 0.97rem;
}

/* Image wrapper with refined shadow */
.image-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 0 6px rgba(200,169,110,0.12);
    transition: transform var(--transition), box-shadow var(--transition);
}

.image-frame:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 0 8px rgba(200,169,110,0.2);
}

.image-frame img {
    width: 100%;
    display: block;
}

.image {
    flex: 1;
    min-width: 280px;
    max-width: 480px;
}

/* ----------------------------------------------------------------
   SERVICE SECTION
   ---------------------------------------------------------------- */
.service {
    padding: 20px 24px 80px;
    text-align: center;
    background: var(--white);
}

.service-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    padding: 20px 0;
    max-width: 1100px;
    margin: 0 auto;
}

.service-box-link {
    text-decoration: none;
    color: inherit;
}

/* Service card */
.service-box {
    width: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

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

.service-box:active {
    transform: translateY(-2px);
}

/* Image area */
.service .image-placeholder {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: var(--off-white);
}

.service .image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.service-box:hover .image-placeholder img {
    transform: scale(1.06);
}

/* Overlay shimmer on hover */
.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,78,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-box:hover .service-overlay {
    opacity: 1;
}

/* Label bar at bottom */
.service-product {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.service-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--navy);
    letter-spacing: 0.01em;
}

.service-arrow {
    color: var(--gold);
    font-size: 0.9rem;
    transition: transform var(--transition);
}

.service-box:hover .service-arrow {
    transform: translateX(4px);
}

/* ----------------------------------------------------------------
   GALLERY SECTION
   ---------------------------------------------------------------- */
.gallery-section {
    background: var(--off-white);
    padding: 20px 24px 80px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 40px;
}

.gallery-grid video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sm);
}

.gallery-grid video:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-md);
}

/* "Mehr ansehen" button */
.button {
    background: var(--navy);
    color: var(--white);
    padding: 14px 36px;
    border: none;
    border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sm);
}

.button:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.button:active {
    transform: translateY(0);
    box-shadow: none;
}

.buttonclick {
    text-decoration: none;
    display: inline-block;
}

/* ----------------------------------------------------------------
   TESTIMONIALS / REVIEWS — CSS Infinite Marquee
   Cards scroll continuously left using a CSS animation.
   Pauses on hover. Edge fade via mask-image.
   ---------------------------------------------------------------- */
.reviews {
    padding: 20px 0 80px;          /* no side padding — marquee must bleed full-width */
    text-align: center;
    background: var(--white);
    overflow: hidden;
}

.testimonial-section {
    /* Title / sub text still constrained */
}

.testimonial-section .title,
.testimonial-section .section-sub {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

/* Outer track: clips the scrolling row and adds soft edge fades */
.testimonial-slider-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 16px 0 32px;
    /* Fade cards into transparency at left & right edges */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
}

/* The scrolling row — JS clones cards, CSS animates */
.testimonial-slider {
    display: flex;
    gap: 24px;
    width: max-content;
    /* CSS infinite scroll: moves exactly half its width (original set)
       JS will double the cards so the loop is seamless */
    animation: marquee 32s linear infinite;
    will-change: transform;
}

/* Pause on hover for comfortable reading */
.testimonial-slider-wrapper:hover .testimonial-slider {
    animation-play-state: paused;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial-card {
    width: 320px;
    flex-shrink: 0;              /* never squish */
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px 28px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: box-shadow var(--transition), transform var(--transition);
    cursor: default;
}

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

/* Big decorative quote mark */
.quote-icon {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--gold);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 20px;
    user-select: none;
}

.testimonial-text {
    font-size: 0.97rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* Star rating row */
.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
    color: var(--gold);
    font-size: 0.85rem;
}

.testimonial-author {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
}

/* ----------------------------------------------------------------
   TEAM SECTION
   ---------------------------------------------------------------- */
.team-section {
    background: var(--off-white);
    padding: 20px 24px 80px;
    text-align: center;
}

.team-container {
    max-width: 1100px;
    margin: 0 auto;
}

.team-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: left;
    margin-bottom: 60px;
}

.team-text {
    flex: 1;
    min-width: 280px;
    max-width: 520px;
}

.team-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 14px;
    position: relative;
}

.team-text h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    position: absolute;
    bottom: 0;
    left: 0;
}

.team-text p {
    color: var(--text-mid);
    line-height: 1.8;
    font-size: 0.97rem;
    margin-bottom: 12px;
}

.team-image {
    flex: 1;
    min-width: 280px;
    max-width: 480px;
}

/* Team member cards — reuse service-box shell, customized */
.team-members {
    gap: 24px;
}

.team-card {
    width: 230px;
}

.team-photo {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 3rem;
}

.team-photo::before {
    content: '\f007'; /* fa-user */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.team-member {
    padding: 16px;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.member-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--navy);
    background: rgba(26,26,78,0.07);
    border-radius: 100px;
    padding: 3px 10px;
    letter-spacing: 0.02em;
}

/* ----------------------------------------------------------------
   CONTACT SECTION
   ---------------------------------------------------------------- */
.contact {
    background: var(--white);
    padding: 20px 24px 80px;
    text-align: center;
}

.contact-info {
    max-width: 1000px;
    margin: 0 auto 60px;
}

.info-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding-top: 16px;
}

.info-box {
    max-width: 240px;
    text-align: left;
    background: var(--off-white);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    border: 1px solid var(--border);
    transition: box-shadow var(--transition), transform var(--transition);
}

.info-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* Icon above each info block */
.info-icon {
    width: 44px;
    height: 44px;
    background: var(--navy);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.title-info-box {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 12px;
}

.p1 {
    font-weight: 500;
    font-size: 0.97rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.p2 {
    font-size: 0.93rem;
    color: var(--text-mid);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.p2 a {
    text-decoration: none;
    color: var(--navy);
    transition: color var(--transition);
}

.p2 a:hover {
    color: var(--gold);
}

.p2 .icon {
    color: var(--gold);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Form + Map layout */
.form-map-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
}

.form-section {
    width: 100%;
    max-width: 480px;
    flex-shrink: 0;
}

.map-container {
    flex: 1;
    min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Form */
.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--navy);
    margin-bottom: 28px;
    text-align: left;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0; /* spacing handled per-element */
}

input, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--off-white);
    margin-bottom: 16px;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    outline: none;
}

input::placeholder, textarea::placeholder {
    color: var(--text-light);
}

input:focus, textarea:focus {
    border-color: var(--navy-mid);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(46,46,138,0.1);
}

textarea {
    height: 140px;
    resize: none;
}

.form-row {
    display: flex;
    gap: 14px;
}

.form-row input {
    flex: 1;
    min-width: 0;
}

/* Submit button */
form button[type="submit"] {
    background: var(--navy);
    color: var(--white);
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.97rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sm);
}

form button[type="submit"]:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

form button[type="submit"]:active {
    transform: translateY(0);
}

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
footer {
    background: var(--navy);
}

.footerContainer {
    padding: 56px 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 240px;
}

.footer-logo {
    max-width: 160px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}

/* Footer nav */
.footerNav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footerNav ul li a {
    text-decoration: none;
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    transition: color var(--transition);
}

.footerNav ul li a:hover {
    color: var(--gold);
}

/* Social icons */
.socialIcons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.socialIcons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
}

.socialIcons a:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

.socialIcons a i {
    font-size: 1.1rem;
    color: var(--white);
}

.footerBottom {
    background: rgba(0,0,0,0.25);
    padding: 18px 60px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.footerBottom p {
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
}

.designer {
    font-size: 0.75rem;
    opacity: 0.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ----------------------------------------------------------------
   RESPONSIVE — TABLET & MOBILE (≤900px)
   Hamburger appears, desktop nav collapses into slide-down drawer
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
    header {
        padding: 16px 24px;
    }

    .scrolled {
        padding: 8px 24px;
    }

    .nav-container {
        padding: 0;
    }

    /* Show the three bars */
    .hamburger {
        display: flex;
    }

    /* Slide-down mobile nav drawer */
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 28px 0;
        /* Hidden above the header — slides down on .active */
        clip-path: inset(0 0 100% 0);
        transition: clip-path 0.38s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
        pointer-events: none;
    }

    .navbar.active {
        clip-path: inset(0 0 0% 0);
        pointer-events: auto;
    }

    .navbar ul {
        flex-direction: column;
        gap: 4px;
        align-items: center;
    }

    /* Force dark text inside the white drawer */
    .linkNav {
        color: var(--navy) !important;
        font-size: 1.05rem;
        padding: 12px 24px;
    }

    .linkNav::after {
        background: var(--gold);
    }

    /* Content sections stack vertically */
    .content, .team-content {
        flex-direction: column;
    }

    .text, .image, .team-text, .team-image {
        max-width: 100%;
        width: 100%;
    }

    .form-map-container {
        flex-direction: column;
    }

    .map-container {
        min-height: 300px;
    }

    .info-container {
        gap: 20px;
    }

    .info-box {
        max-width: 100%;
        width: 100%;
    }

    /* Gallery: 2 columns on tablet */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }

    .gallery-grid video {
        height: 180px;
        transform: none !important;
    }

    .footerContainer {
        padding: 40px 24px 28px;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footerBottom {
        padding: 18px 24px;
    }
}

/* ----------------------------------------------------------------
   RESPONSIVE — MOBILE (≤600px)
   ---------------------------------------------------------------- */
@media (max-width: 600px) {
    .home h1 { font-size: 2.8rem; }
    .home h2 { font-size: 1.1rem; }

    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .service-box {
        width: 100%;
        max-width: 340px;
    }

    .testimonial-card {
        width: 260px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .title {
        font-size: 1.7rem;
    }
}
