/* Front Row Website - Microsoft Edge Compatible Styles */

/* ── Self-hosted fonts (GDPR-safe, no CDN) ──────────────────────────────── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/inter-300-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/inter-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/inter-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/inter-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/inter-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/playfair-display-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/playfair-display-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/playfair-display-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/playfair-display-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Design Tokens */
:root {
    --color-primary: #007bff;
    --color-primary-dark: #0056b3;
    --color-secondary: #0056b3;
    --color-secondary-dark: #004494;
    --color-dark: #1a1a2e;
    --color-dark-2: #16213e;
    --color-text: #333;
    --color-text-muted: #666;
    --color-bg-light: #f8f9fa;
    --color-border: #e9ecef;
    --gradient-brand: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --shadow-sm: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --radius-sm: 10px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', serif;
    /* Single source of truth for the fixed navbar height.
       Keep in sync with the inline critical CSS (72px) in both index.html files. */
    --navbar-h: 72px;
    /* Fluid spacing scale */
    --space-xs: clamp(0.75rem, 1.5vw, 1rem);
    --space-sm: clamp(1rem, 2vw, 1.5rem);
    --space-md: clamp(1.5rem, 3vw, 2.5rem);
    --space-lg: clamp(2rem, 4vw, 4rem);
    --space-xl: clamp(3rem, 6vw, 5rem);
}

/* -- Global keyboard focus ring (WCAG 2.4.7) ----------------------------- */
/* Only shows for keyboard navigation, never for mouse clicks */
:focus-visible {
    outline: 3px solid #007bff;
    outline-offset: 3px;
}

/* Suppress browser default for mouse users � :focus-visible handles keyboard */
:focus:not(:focus-visible) {
    outline: none;
}

/* Scroll offset so section headings land below the fixed navbar */
html {
    scroll-padding-top: var(--navbar-h);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Responsive media — prevents overflow on any screen width */
img {
    max-width: 100%;
    height: auto;
}

/* Suppress the 300ms tap delay and default highlight on touch devices */
a, button, [role="button"] {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    /* Fluid horizontal gutter — never needs a media-query override */
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* Loading screen removed � no loader needed on a static HTML site (LCP impact). */

/* Navigation - Edge Compatible */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    -webkit-transition: background 0.3s ease, -webkit-box-shadow 0.3s ease, border-color 0.3s ease;
    -moz-transition: background 0.3s ease, -moz-box-shadow 0.3s ease, border-color 0.3s ease;
    -ms-transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    -webkit-box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.nav-wordmark {
    display: -ms-inline-flexbox;
    display: -webkit-inline-flex;
    display: inline-flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 0;
    text-decoration: none;
    letter-spacing: 0.18em;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    -webkit-transition: opacity 0.2s ease;
    transition: opacity 0.2s ease;
}

.nav-wordmark:hover {
    opacity: 0.75;
}

.nav-logo-img {
    height: 38px;
    width: auto;
    display: block;
}

.footer-logo-img {
    height: 38px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    margin-bottom: 1.2rem;
}

.wordmark-front {
    color: #1a1a2e;
    font-weight: 800;
}

.wordmark-divider {
    display: inline-block;
    width: 1px;
    height: 18px;
    background: linear-gradient(180deg, #007bff, #0056b3);
    margin: 0 8px;
    border-radius: 1px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.wordmark-row {
    background: linear-gradient(90deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.nav-menu {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    list-style: none;
    gap: 2rem;
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    -webkit-transition: color 200ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 120ms ease-out, opacity 120ms ease-out;
    -moz-transition: color 200ms cubic-bezier(0.4, 0, 0.2, 1), -moz-transform 120ms ease-out, opacity 120ms ease-out;
    -ms-transition: color 200ms cubic-bezier(0.4, 0, 0.2, 1), -ms-transform 120ms ease-out, opacity 120ms ease-out;
    transition: color 200ms cubic-bezier(0.4, 0, 0.2, 1), transform 120ms ease-out, opacity 120ms ease-out;
    position: relative;
    padding: 0.5rem 0;
}

/* Pressed state: instant snap in, ease out.
   Overriding transform/opacity transition to 0ms means the press registers
   the frame it happens. The base transition (120ms) applies on the way back out. */
.nav-link.pressing {
    opacity: 0.7;
    -webkit-transform: scale(0.97);
    -ms-transform: scale(0.97);
    transform: scale(0.97);
    -webkit-transition: color 200ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0ms, opacity 0ms;
    -moz-transition: color 200ms cubic-bezier(0.4, 0, 0.2, 1), -moz-transform 0ms, opacity 0ms;
    -ms-transition: color 200ms cubic-bezier(0.4, 0, 0.2, 1), -ms-transform 0ms, opacity 0ms;
    transition: color 200ms cubic-bezier(0.4, 0, 0.2, 1), transform 0ms, opacity 0ms;
}

/* Active + hover color (indicator handles the underline) */
.nav-link:hover,
.nav-link.active {
    color: #0056b3;
}

/* Sliding underline indicator � JS owns all transitions on this element */
#nav-slide-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
    pointer-events: none;
    opacity: 0;
    -webkit-transition: opacity 200ms ease;
    -moz-transition: opacity 200ms ease;
    -ms-transition: opacity 200ms ease;
    transition: opacity 200ms ease;
}

#nav-slide-indicator.active {
    opacity: 1;
}

@media (max-width: 768px) {
    #nav-slide-indicator { display: none; }
}

.hamburger {
    display: none;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    flex-direction: column;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    cursor: pointer;
    gap: 5px;
    /* WCAG 2.5.5 — minimum 44×44px touch target */
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
    background: none;
    border: none;
    border-radius: 6px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    -webkit-transition: background 0.3s ease, -webkit-transform 0.3s ease;
    -moz-transition: background 0.3s ease, -moz-transform 0.3s ease;
    -ms-transition: background 0.3s ease, -ms-transform 0.3s ease;
    transition: background 0.3s ease, transform 0.3s ease;
    border-radius: 2px;
}

/* -- Language Switcher ----------------------------------------------------- */
.nav-lang {
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
    text-decoration: none;
    padding: 0.25rem 0.6rem;
    background: #007bff;
    border: 2px solid #007bff;
    border-radius: 4px;
    -webkit-transition: background 0.2s, border-color 0.2s, -webkit-box-shadow 0.2s;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
}
.nav-lang:hover {
    background: #0056b3;
    border-color: #0056b3;
    -webkit-box-shadow: 0 2px 12px rgba(0, 86, 179, 0.5);
    box-shadow: 0 2px 12px rgba(0, 86, 179, 0.5);
}
/* Scrolled state — same blue, still visible on white navbar */
.navbar.scrolled .nav-lang {
    color: #fff;
    background: #007bff;
    border-color: #007bff;
}
.navbar.scrolled .nav-lang:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* -- Nav CTA Button -------------------------------------------------------- */
.nav-cta {
    display: -ms-inline-flexbox;
    display: -webkit-inline-flex;
    display: inline-flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 0.55rem 1.3rem;
    background: -webkit-linear-gradient(135deg, #007bff, #0056b3);
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    -webkit-transition: opacity 0.2s ease, -webkit-transform 0.2s ease, -webkit-box-shadow 0.2s ease;
    -moz-transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-box-shadow: 0 4px 14px rgba(0, 123, 255, 0.4);
    box-shadow: 0 4px 14px rgba(0, 123, 255, 0.4);
    white-space: nowrap;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.nav-cta:hover {
    opacity: 0.9;
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
    -webkit-box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}

/* Mobile-only CTA nav item */
.nav-item-cta {
    display: none;
}

.nav-cta-mobile {
    display: inline-block;
    padding: 0.6rem 1.6rem;
    background: -webkit-linear-gradient(135deg, #007bff, #0056b3);
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    -webkit-box-shadow: 0 4px 14px rgba(0, 123, 255, 0.35);
    box-shadow: 0 4px 14px rgba(0, 123, 255, 0.35);
}

/* Hero Section - Edge Compatible */
.hero {
    /* min-height instead of height — content can grow on very small screens */
    min-height: 100vh;
    /* 100svh = viewport minus collapsible mobile browser chrome */
    min-height: 100svh;
    /* Push content below the fixed navbar */
    padding-top: var(--navbar-h);
    /* Bottom breathing room on landscape mobile */
    padding-bottom: 2rem;
    position: relative;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Images/Images_web/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    /* Performance optimizations for Edge */
    will-change: transform;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    /* float animation removed � continuous translateY causes composite repaints with no perceptible value */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.hero-content {
    width: 100%;
    z-index: 1;
}

.hero-text {
    max-width: min(800px, 100%);
    margin-bottom: clamp(2rem, 4vw, 4rem);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.title-line {
    display: block;
    opacity: 0;
    -webkit-transform: translateY(14px);
    -moz-transform: translateY(14px);
    -ms-transform: translateY(14px);
    transform: translateY(14px);
    -webkit-animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    -moz-animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    -ms-animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: min(600px, 100%);
    opacity: 0;
    -webkit-transform: translateY(14px);
    -moz-transform: translateY(14px);
    -ms-transform: translateY(14px);
    transform: translateY(14px);
    -webkit-animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    -moz-animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    -ms-animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-buttons {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    gap: 1rem;
    -ms-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    opacity: 0;
    -webkit-transform: translateY(14px);
    -moz-transform: translateY(14px);
    -ms-transform: translateY(14px);
    transform: translateY(14px);
    -webkit-animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    -moz-animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    -ms-animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.btn {
    display: -ms-inline-flexbox;
    display: -webkit-inline-flex;
    display: inline-flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 160px;
}

.btn-primary {
    background: -ms-linear-gradient(135deg, #007bff, #0056b3);
    background: -webkit-linear-gradient(135deg, #007bff, #0056b3);
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    -webkit-box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    -moz-box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    -moz-box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
}

.hero-stats {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    gap: clamp(1.5rem, 4vw, 3rem);
    -ms-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    opacity: 0;
    -webkit-transform: translateY(14px);
    -moz-transform: translateY(14px);
    -ms-transform: translateY(14px);
    transform: translateY(14px);
    -webkit-animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    -moz-animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    -ms-animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Styles - Edge Compatible */
section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 4rem);
}

.section-subtitle {
    display: inline-block;
    background: -ms-linear-gradient(135deg, #007bff, #0056b3);
    background: -webkit-linear-gradient(135deg, #007bff, #0056b3);
    background: linear-gradient(135deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.section-description {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #666;
    max-width: min(600px, 100%);
    margin: 0 auto;
    line-height: 1.8;
}

/* About Section */
.about {
    background: #f8f9fa;
}

.about-content {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 4rem;
}

.about-text {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 3rem 1fr 3rem 1fr;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    -ms-flex-align: start;
    align-items: start;
}

.about-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.about-item h3::after {
    content: '';
    display: block;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    margin-top: 0.6rem;
    border-radius: 2px;
}

.about-item p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-values {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1.5rem 1fr 1.5rem 1fr 1.5rem 1fr;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.value-card {
    background: white;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border-radius: 15px;
    text-align: center;
    -webkit-box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    -webkit-transition: -webkit-transform 250ms ease, -webkit-box-shadow 250ms ease;
    -moz-transition: -moz-transform 250ms ease, -moz-box-shadow 250ms ease;
    -ms-transition: -ms-transform 250ms ease, box-shadow 250ms ease;
    transition: transform 250ms ease, box-shadow 250ms ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.value-card:hover {
    -webkit-transform: translateY(-5px);
    -moz-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    transform: translateY(-5px);
    -webkit-box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: -ms-linear-gradient(135deg, #007bff, #0056b3);
    background: -webkit-linear-gradient(135deg, #007bff, #0056b3);
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.value-card h4 {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.value-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Services Section - Edge Compatible */
.services {
    background: white;
}

.services-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: repeat(4, 1fr);
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 20px;
    -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    -webkit-transition: -webkit-transform 250ms ease, -webkit-box-shadow 250ms ease;
    -moz-transition: -moz-transform 250ms ease, -moz-box-shadow 250ms ease;
    -ms-transition: -ms-transform 250ms ease, box-shadow 250ms ease;
    transition: transform 250ms ease, box-shadow 250ms ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: -ms-linear-gradient(135deg, #007bff, #0056b3);
    background: -webkit-linear-gradient(135deg, #007bff, #0056b3);
    background: linear-gradient(135deg, #007bff, #0056b3);
    -webkit-transform: scaleX(0);
    -moz-transform: scaleX(0);
    -ms-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transition: -webkit-transform 250ms ease;
    -moz-transition: -moz-transform 250ms ease;
    -ms-transition: -ms-transform 250ms ease;
    transition: transform 250ms ease;
}

.service-card:hover::before {
    -webkit-transform: scaleX(1);
    -moz-transform: scaleX(1);
    -ms-transform: scaleX(1);
    transform: scaleX(1);
}

.service-card:hover {
    -webkit-transform: translateY(-10px);
    -moz-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    transform: translateY(-10px);
    -webkit-box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: -ms-linear-gradient(135deg, #007bff, #0056b3);
    background: -webkit-linear-gradient(135deg, #007bff, #0056b3);
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 20px;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    color: #666;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '?';
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

/* Projects Section - Edge Compatible */
.projects {
    background: white;
}

.projects-grid {
    display: -ms-grid;
    display: grid;
    /* min(350px, 100%) prevents overflow on screens narrower than 350px */
    -ms-grid-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    -webkit-transition: -webkit-transform 250ms ease, -webkit-box-shadow 250ms ease;
    -moz-transition: -moz-transform 250ms ease, -moz-box-shadow 250ms ease;
    -ms-transition: -ms-transform 250ms ease, box-shadow 250ms ease;
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.project-card:hover {
    -webkit-transform: translateY(-10px);
    -moz-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    transform: translateY(-10px);
    -webkit-box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    -ms-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: -ms-linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(0, 86, 179, 0.9));
    background: -webkit-linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(0, 86, 179, 0.9));
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(0, 86, 179, 0.9));
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    opacity: 0;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    -ms-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    text-align: center;
    color: white;
    -webkit-transform: translateY(20px);
    -moz-transform: translateY(20px);
    -ms-transform: translateY(20px);
    transform: translateY(20px);
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    -ms-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
}

.project-card:hover .project-info {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.project-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

.project-content {
    padding: clamp(1.25rem, 2.5vw, 2rem);
}

.project-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.project-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: -ms-linear-gradient(135deg, #007bff, #0056b3);
    background: -webkit-linear-gradient(135deg, #007bff, #0056b3);
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Team Section */
.team-grid {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    gap: 2.5rem;
}

.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    -webkit-transition: -webkit-transform 250ms ease, -webkit-box-shadow 250ms ease;
    transition: transform 250ms ease, box-shadow 250ms ease;
    width: 100%;
    max-width: 480px;
}

.team-card:hover {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
    -webkit-box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Square photo — padding-bottom trick for Edge/old browser support */
.team-card-photo {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    background: #f0f4f8;
}

.team-card-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #0056b3);
    padding-bottom: 75%;
}

.team-card-initials {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.05em;
    pointer-events: none;
}

.team-card-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center top;
    object-position: center top;
    display: block;
}

.team-card-body {
    padding: clamp(1.25rem, 2.5vw, 2rem);
}

.team-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}

.team-card-title {
    color: #007bff;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    margin-bottom: 1.25rem;
}

.team-card-bio {
    color: #666;
    line-height: 1.75;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.team-card-tags {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.team-card-linkedin {
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 0.4rem;
    color: #007bff;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
}

.team-card-linkedin:hover {
    color: #0056b3;
}

/* Keep .team-features for fallback if referenced elsewhere */
.team-features {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    -webkit-transition: -webkit-transform 250ms ease, -webkit-box-shadow 250ms ease;
    -moz-transition: -moz-transform 250ms ease, -moz-box-shadow 250ms ease;
    -ms-transition: -ms-transform 250ms ease, box-shadow 250ms ease;
    transition: transform 250ms ease, box-shadow 250ms ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    -webkit-transform: translateY(-10px);
    -moz-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    transform: translateY(-10px);
    -webkit-box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: -ms-linear-gradient(135deg, #007bff, #0056b3);
    background: -webkit-linear-gradient(135deg, #007bff, #0056b3);
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Contact Section - Edge Compatible */
.contact {
    background: #f8f9fa;
}

.contact-content {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 4rem 1.2fr;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    -ms-flex-align: start;
    align-items: start;
}

/* Centred single-column variant � used when contact-info column is removed */
.contact-content--centered {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
}

.contact-content--centered .booking-card {
    max-width: 640px;
    width: 100%;
}

/* Booking card */
.booking-card {
    background: white;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 20px;
    -webkit-box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.booking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: -webkit-linear-gradient(left, #007bff, #0056b3);
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.booking-card-icon {
    width: 52px;
    height: 52px;
    background: -webkit-linear-gradient(135deg, #007bff, #0056b3);
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.booking-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.booking-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.booking-btn {
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.booking-alternative {
    font-size: 0.875rem;
    color: #999;
    margin-top: 1.75rem;
    margin-bottom: 0;
}

.booking-alternative a {
    color: #0056b3;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.booking-alternative a:hover {
    color: #007bff;
}

.form-consent {
    font-size: 0.78rem;
    color: #aaa;
    margin-top: 0.85rem;
    margin-bottom: 0;
    line-height: 1.5;
    text-align: center;
}

.form-consent a {
    color: #888;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-consent a:hover {
    color: #007bff;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 0.4rem;
}

.form-group label span[aria-hidden] {
    color: #dc3545;
    margin-left: 2px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-transition: border-color 0.3s ease, background 0.3s ease, -webkit-box-shadow 0.3s ease;
    -moz-transition: border-color 0.3s ease, background 0.3s ease, -moz-box-shadow 0.3s ease;
    -ms-transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    background: #f8f9fa;
}

.form-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: block;
}

#contact-form .btn {
    width: 100%;
    position: relative;
}

/* -- Contact Form ---------------------------------------------------------- */
.form-row {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1rem 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-submit-btn {
    width: 100%;
    margin-top: 0.25rem;
    gap: 0.6rem;
    -webkit-justify-content: center;
    justify-content: center;
    position: relative;
}

/* Spinner shown while EmailJS request is in flight */
.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    border-radius: 50%;
    -webkit-animation: spin 0.7s linear infinite;
    animation: spin 0.7s linear infinite;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); } }
@keyframes spin         { to { transform: rotate(360deg); } }

.contact-submit-btn.loading .btn-text   { display: none; }
.contact-submit-btn.loading .btn-spinner { display: block; }

/* Inline success / error feedback banners */
.form-feedback[hidden] {
    display: none;
}

.form-feedback {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-align: flex-start;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-feedback--success {
    background: rgba(25, 135, 84, 0.08);
    border: 1px solid rgba(25, 135, 84, 0.3);
    color: #146c43;
}

.form-feedback--error {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #b02a37;
}

.form-feedback i {
    margin-top: 2px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.form-feedback p {
    margin: 0;
}

.form-feedback--error a {
    color: #b02a37;
    text-decoration: underline;
}

/* Validation error state on inputs */
.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: #dc3545;
}

@media (max-width: 480px) {
    .form-row {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }
}

/* Footer - Modern */
.footer {
    background: #0f0f1a;
    color: white;
    padding: 0 0 0;
    position: relative;
}

.footer-top-bar {
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.footer-content {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 2fr 1fr 1fr 1.4fr;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 3rem;
    padding: 4rem 0 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Brand column */
.footer-wordmark {
    display: -ms-inline-flexbox;
    display: -webkit-inline-flex;
    display: inline-flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    text-decoration: none;
    letter-spacing: 0.18em;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1.2rem;
}

.footer-wordmark .wordmark-front {
    color: white;
    font-weight: 800;
}

.footer-wordmark .wordmark-row {
    background: linear-gradient(90deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.footer-brand {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
}

.footer-description {
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    max-width: 260px;
}

/* Section headings */
.footer-section h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Links */
.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 0;
    -webkit-transition: color 0.2s ease, gap 0.2s ease;
    transition: color 0.2s ease, gap 0.2s ease;
    position: relative;
    padding-left: 0;
}

.footer-section ul li a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    margin-right: 0;
    -webkit-transition: width 0.2s ease, margin-right 0.2s ease;
    transition: width 0.2s ease, margin-right 0.2s ease;
    vertical-align: middle;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section ul li a:hover::before {
    width: 12px;
    margin-right: 6px;
}

/* Contact items */
.footer-contact {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-item {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    text-decoration: none;
    -webkit-transition: color 0.2s ease;
    transition: color 0.2s ease;
}

a.footer-contact-item:hover {
    color: white;
}

.footer-contact-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

/* Bottom bar */
.footer-bottom {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem 0;
    gap: 0.4rem;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
    margin: 0;
}

.footer-legal {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    font-style: italic;
    margin: 0;
}

.footer-dev a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    -webkit-transition: color 0.2s ease;
    transition: color 0.2s ease;
}

.footer-dev {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    font-style: italic;
    margin: 0;
}

.footer-dev a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Back to Top Button - Edge Compatible */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: -ms-linear-gradient(135deg, #007bff, #0056b3);
    background: -webkit-linear-gradient(135deg, #007bff, #0056b3);
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: -webkit-transform 0.3s ease, opacity 0.3s ease;
    -moz-transition: -moz-transform 0.3s ease, opacity 0.3s ease;
    -ms-transition: -ms-transform 0.3s ease, opacity 0.3s ease;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    -webkit-transform: translateY(-3px);
    -moz-transform: translateY(-3px);
    -ms-transform: translateY(-3px);
    transform: translateY(-3px);
    -webkit-box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
    -moz-box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

/* Animations - Edge Compatible */
@-webkit-keyframes slideUp {
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}
@-moz-keyframes slideUp {
    to {
        opacity: 1;
        -moz-transform: translateY(0);
    }
}
@-ms-keyframes slideUp {
    to {
        opacity: 1;
        -ms-transform: translateY(0);
    }
}
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@-webkit-keyframes fadeIn {
    to { opacity: 1; }
}
@-moz-keyframes fadeIn {
    to { opacity: 1; }
}
@-ms-keyframes fadeIn {
    to { opacity: 1; }
}
@keyframes fadeIn {
    to { opacity: 1; }
}

/* Tablet breakpoint */
@media (max-width: 992px) {
    .about-text {
        -ms-grid-columns: 1fr 3rem 1fr;
        grid-template-columns: repeat(2, 1fr);
    }

    .about-values {
        -ms-grid-columns: 1fr 1.5rem 1fr 1.5rem 1fr 1.5rem 1fr;
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Process section CTA */
.process-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Medium screens: 4-col grid is too cramped below 1100px */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
}

/* Mid-size navbar: tighten spacing so items don't crowd at laptop widths
   (769 – 960 px CSS pixels, e.g. 1366 px screen at 125–150 % DPI scaling) */
@media (max-width: 960px) {
    .nav-container {
        padding: 0.9rem 1.25rem;
    }
    .nav-menu {
        gap: 1.1rem;
    }
    .nav-link {
        font-size: 0.875rem;
    }
    .nav-cta {
        padding: 0.45rem 0.9rem;
        font-size: 0.85rem;
    }
    .nav-lang {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Responsive Design - Edge Compatible */
@media (max-width: 768px) {
    .hamburger {
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--navbar-h);
        /* Limit height on short viewports (landscape phone) */
        max-height: calc(100vh - var(--navbar-h));
        overflow-y: auto;
        -ms-flex-direction: column;
        -webkit-flex-direction: column;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        -webkit-transition: left 0.3s ease;
        -moz-transition: left 0.3s ease;
        -ms-transition: left 0.3s ease;
        transition: left 0.3s ease;
        -webkit-box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        -moz-box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Desktop CTA hidden on mobile */
    .nav-cta {
        display: none;
    }

    /* Mobile CTA item in nav-menu */
    .nav-item-cta {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        -webkit-transform: translateY(7px) rotate(45deg);
        -moz-transform: translateY(7px) rotate(45deg);
        -ms-transform: translateY(7px) rotate(45deg);
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        -webkit-transform: translateY(-7px) rotate(-45deg);
        -moz-transform: translateY(-7px) rotate(-45deg);
        -ms-transform: translateY(-7px) rotate(-45deg);
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-stats {
        -ms-flex-direction: column;
        -webkit-flex-direction: column;
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .hero-buttons {
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
    }

    .about-text {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-values {
        -ms-grid-columns: 1fr 1.5rem 1fr;
        grid-template-columns: repeat(2, 1fr);
    }

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

    .team-features {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }

    .team-card {
        max-width: 100%;
    }

    .footer-content {
        -ms-grid-columns: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        text-align: left;
    }

    .footer-brand {
        -ms-grid-column-span: 2;
        grid-column: span 2;
    }

    .footer-bottom {
        -ms-flex-direction: column;
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
    }

    /* Disable parallax on mobile for better performance */
    .hero-background {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .footer-content {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }

    .footer-brand {
        -ms-grid-column-span: 1;
        grid-column: span 1;
    }

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

    /* Value cards: single column on small phones avoids unequal row heights
       caused by long Portuguese words like "Sustentabilidade" wrapping */
    .about-values {
        grid-template-columns: 1fr;
    }

    /* Services always single column on small phones */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        min-width: 120px;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* ── Landscape mobile: hero must not be taller than visible area ───────────
   Targets devices in landscape where vh ≤ 600px (e.g. iPhone SE, Galaxy S)  */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        height: auto;
        padding-top: var(--navbar-h);
        padding-bottom: 3rem;
    }

    .hero-text {
        margin-bottom: 1.5rem;
    }

    /* Keep stats in a row so they don't push content below fold */
    .hero-stats {
        -ms-flex-direction: row;
        -webkit-flex-direction: row;
        flex-direction: row;
        gap: 1.5rem;
    }
}

/* ── Ultrawide (1920px+): slightly wider container for breathing room ──────*/
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
}

/* -- Process Section -------------------------------------------------------- */
.process {
    background: #f8f9fa;
}

.process-steps {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 2.4rem;
    left: calc(16.67% + 1rem);
    right: calc(16.67% + 1rem);
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    z-index: 0;
}

.process-step {
    -ms-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    text-align: center;
    /* Fluid side padding — stops the 3 steps being cramped on laptop widths */
    padding: 0 clamp(1rem, 2.5vw, 2.5rem);
    position: relative;
    z-index: 1;
}

.process-step-number {
    width: 4.8rem;
    height: 4.8rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    -webkit-box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
}

.process-step h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.process-step p {
    color: #666;
    line-height: 1.75;
    font-size: 0.95rem;
    max-width: 260px;
    margin: 0 auto;
}

/* -- Trust Bar Section ------------------------------------------------------ */
.trust-bar {
    background: #1a1a2e;
}

.trust-bar-inner {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr auto;
    grid-template-columns: 1fr auto;
    gap: 5rem;
    -ms-flex-align: center;
    align-items: center;
}

.trust-bar-statement h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.trust-bar-statement > p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    line-height: 1.75;
    max-width: 520px;
}

.trust-bar-numbers {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-number-item .trust-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.trust-number-item .trust-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
}

.trust-bar-certs {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 1.5rem;
    -ms-flex-negative: 0;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

.cert-badge {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.75rem;
    border: 1px solid rgba(0, 123, 255, 0.25);
    border-radius: 12px;
    background: rgba(0, 123, 255, 0.06);
    -webkit-transition: border-color 0.3s ease;
    transition: border-color 0.3s ease;
    min-width: 200px;
}

.cert-badge:hover {
    border-color: rgba(0, 123, 255, 0.5);
}

.cert-badge .cert-icon {
    font-size: 1.75rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.cert-badge-text {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
}

.cert-badge .cert-name {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.15rem;
}

.cert-badge .cert-level {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: white;
    font-weight: 600;
    line-height: 1;
}

@media (max-width: 960px) {
    .trust-bar-inner {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .trust-bar-certs {
        -ms-flex-direction: row;
        -webkit-flex-direction: row;
        flex-direction: row;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .process-steps::before { display: none; }
    .process-steps {
        -ms-flex-direction: column;
        -webkit-flex-direction: column;
        flex-direction: column;
        gap: 2.5rem;
    }
    .process-step {
        padding: 0 1rem;
    }
    .trust-bar-numbers {
        gap: 2rem;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
}

/* Scroll Animations - Edge Compatible */
/* Custom Scrollbar - Edge Compatible */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: -webkit-linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: -webkit-linear-gradient(135deg, #0056b3, #007bff);
}

/* Edge-specific fixes */
@supports (-ms-ime-align: auto) {
    .services-grid {
        display: -ms-grid;
        -ms-grid-columns: 1fr 1.5rem 1fr 1.5rem 1fr 1.5rem 1fr;
    }
    
    .service-card:nth-child(1) {
        -ms-grid-column: 1;
        grid-column: 1;
    }
    
    .service-card:nth-child(2) {
        -ms-grid-column: 3;
        grid-column: 2;
    }
    
    .service-card:nth-child(3) {
        -ms-grid-column: 5;
        grid-column: 3;
    }

    .service-card:nth-child(4) {
        -ms-grid-column: 7;
        grid-column: 4;
    }
}

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

    .title-line,
    .hero-subtitle,
    .hero-buttons,
    .hero-stats {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .hero-background::before {
        animation: none;
    }
}