/* ============================================
   GOODER FLOOR - Industrial Flooring Website
   Premium Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Primary Palette */
    --blue-900: #001D3D;
    --blue-800: #002D62;
    --blue-700: #003580;
    --blue-600: #0047AB;
    --blue-500: #0060DF;
    --blue-400: #4D94FF;
    --blue-100: #E8F0FE;

    /* Accent */
    --orange-600: #E85D04;
    --orange-500: #F77F00;
    --orange-400: #FCBF49;
    --orange-100: #FFF3E0;

    /* Neutrals */
    --grey-900: #1A1A2E;
    --grey-800: #2D2D44;
    --grey-700: #3D3D5C;
    --grey-600: #555573;
    --grey-500: #6E6E87;
    --grey-400: #9595A8;
    --grey-300: #C4C4D4;
    --grey-200: #E2E2EC;
    --grey-100: #F4F4F8;
    --grey-50: #FAFAFC;
    --white: #FFFFFF;

    /* Icon Color - consistent flat icon color */
    --icon-color: var(--blue-600);

    /* Semantic */
    --text-primary: var(--grey-900);
    --text-secondary: var(--grey-600);
    --text-muted: var(--grey-500);
    --surface-primary: var(--white);
    --surface-secondary: var(--grey-50);
    --border-default: var(--grey-200);

    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.16), 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 30px rgba(0, 96, 223, 0.15);

    /* Transition */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 200ms;
    --duration-normal: 350ms;
    --duration-slow: 500ms;

    /* Layout */
    --container-max: 1280px;
    --header-height: 80px;
    --section-padding: 120px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 28px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
    color: var(--text-primary);
    line-height: 1.7;
    background: var(--surface-primary);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-fast) var(--ease-out);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 40px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all var(--duration-normal) var(--ease-out);
}

.header.scrolled {
    height: 64px;
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    box-shadow: 0 8px 0 var(--orange-500), 0 -8px 0 var(--white);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--blue-800);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo-slogan {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 500;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links li a {
    display: block;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all var(--duration-fast) var(--ease-out);
    position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--blue-600);
    background: var(--blue-100);
}

/* CTA Button */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: 0 2px 8px rgba(0, 71, 171, 0.3);
    white-space: nowrap;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 71, 171, 0.4);
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2.5px;
    background: var(--grey-800);
    border-radius: 2px;
    transition: all var(--duration-normal) var(--ease-out);
    transform-origin: center;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO CAROUSEL
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slides */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s var(--ease-out), visibility 0.8s;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s linear;
}

.hero-slide.active .hero-bg img {
    transform: scale(1.06);
}

.hero-slide .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 29, 61, 0.85) 0%,
            rgba(0, 45, 98, 0.7) 40%,
            rgba(0, 71, 171, 0.5) 100%);
}

.hero-slide .hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-text-box {
    max-width: 680px;
}

/* Slide text animations */
.hero-slide .hero-text-box>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.hero-slide.active .hero-text-box>*:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

.hero-slide.active .hero-text-box>*:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.hero-slide.active .hero-text-box>*:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.45s;
}

.hero-slide.active .hero-text-box>*:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--orange-400);
    background: rgba(252, 191, 73, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(252, 191, 73, 0.25);
    border-radius: 30px;
    margin-bottom: 28px;
    letter-spacing: 1px;
}

.badge-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--orange-400), var(--orange-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 540px;
    margin-bottom: 44px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Carousel Dots */
.hero-dots {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.hero-dot {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    padding: 0;
}

.hero-dot.active {
    background: var(--white);
    width: 56px;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Carousel Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal) var(--ease-out);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-arrow svg {
    width: 20px;
    height: 20px;
}

.hero-arrow-prev {
    left: 32px;
}

.hero-arrow-next {
    right: 32px;
}

/* Stats Bar */
.hero-stats-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(0, 29, 61, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stats {
    display: flex;
    justify-content: space-around;
    padding: 28px 0;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
}

.hero-stats .stat-number span {
    font-size: 1rem;
    color: var(--orange-400);
    font-weight: 600;
}

.hero-stats .stat-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    white-space: nowrap;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
    color: var(--white);
    box-shadow: 0 4px 16px rgba(232, 93, 4, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(232, 93, 4, 0.45);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: var(--white);
    backdrop-filter: blur(4px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
}

/* ============================================
   SECTIONS - Common
   ============================================ */
.section {
    padding: var(--section-padding) 0;
}

.section-bg-light {
    background: var(--surface-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-header.align-left {
    text-align: left;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-600), var(--orange-500));
    border-radius: 4px;
    margin: 16px auto 0;
}

.section-header.align-left h2::after {
    margin-left: 0;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

.section-header.align-left p {
    margin: 0;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.grid {
    display: grid;
    gap: 28px;
}

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

/* Last row with 2 items - center them */
.product-grid>.card:nth-last-child(2):nth-child(3n + 1) {
    grid-column: 1 / 2;
    margin-left: auto;
    margin-right: 0;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    border: 1px solid var(--border-default);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.card-img-wrapper .tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
    border-radius: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(232, 93, 4, 0.3);
    z-index: 2;
}

.card-body {
    padding: 24px;
}

.card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.card-body .tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.card-body .tags span {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    background: var(--blue-100);
    color: var(--blue-600);
    border-radius: 6px;
}

.card-body p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--blue-600);
    transition: all var(--duration-fast) var(--ease-out);
}

.link-arrow span {
    transition: transform var(--duration-fast) var(--ease-out);
}

.link-arrow:hover {
    color: var(--blue-500);
}

.link-arrow:hover span {
    transform: translateX(4px);
}

/* ============================================
   APPLICATION SCENARIOS
   ============================================ */
.app-grid {
    grid-template-columns: repeat(3, 1fr);
}

.app-card {
    position: relative;
    height: 300px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.app-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
    transition: all var(--duration-slow) var(--ease-out);
}

.app-card:hover img {
    filter: brightness(0.35);
    transform: scale(1.08);
}

.app-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    z-index: 2;
    color: var(--white);
    transform: translateY(8px);
    transition: transform var(--duration-normal) var(--ease-out);
}

.app-card:hover .app-content {
    transform: translateY(0);
}

/* Flat SVG icons for app cards */
.app-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 12px;
    color: var(--white);
}

.app-icon svg {
    width: 22px;
    height: 22px;
}

.app-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.app-content p {
    font-size: 0.88rem;
    opacity: 0;
    transform: translateY(12px);
    transition: all var(--duration-normal) var(--ease-out);
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}

.app-card:hover .app-content p {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   SOLUTIONS SECTION
   ============================================ */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.solution-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
}

.solution-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-default);
    transition: all var(--duration-normal) var(--ease-out);
}

.solution-list li:hover {
    border-color: var(--blue-400);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transform: translateX(4px);
}

/* Flat SVG icon boxes */
.icon-box {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-100);
    border-radius: 14px;
    color: var(--icon-color);
}

.icon-box svg {
    width: 24px;
    height: 24px;
}

.solution-text h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-weight: 700;
}

.solution-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Case Study Card */
.case-study-glass {
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-default);
    aspect-ratio: 4/5;
}

.case-study-glass img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45);
}

.case-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    color: var(--white);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
}

.case-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--orange-400);
    background: rgba(252, 191, 73, 0.12);
    border: 1px solid rgba(252, 191, 73, 0.25);
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.case-badge .badge-icon {
    width: 12px;
    height: 12px;
}

.case-info h4 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.case-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.case-details li {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
}

.case-details li strong {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(180deg, var(--blue-900) 0%, #000D1A 100%);
    color: var(--white);
    padding: 100px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.2fr;
    gap: 64px;
    margin-bottom: 64px;
}

/* Footer Brand */
.footer-brand .logo-footer {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--white), var(--blue-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand>p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 380px;
}

.contact-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info p strong {
    color: rgba(255, 255, 255, 0.85);
}

/* Footer Links */
.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links ul li a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all var(--duration-fast) var(--ease-out);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links ul li a::before {
    content: '';
    width: 6px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
    transition: all var(--duration-fast) var(--ease-out);
}

.footer-links ul li a:hover {
    color: var(--orange-400);
    transform: translateX(4px);
}

.footer-links ul li a:hover::before {
    background: var(--orange-400);
    width: 12px;
}

/* Footer Form */
.footer-form {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 36px;
    backdrop-filter: blur(8px);
}

.footer-form h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--white);
}

.form-group {
    margin-bottom: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    outline: none;
    transition: all var(--duration-fast) var(--ease-out);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group select {
    appearance: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.3);
}

.form-group select:valid {
    color: var(--white);
}

.form-group select option {
    background: var(--blue-900);
    color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue-400);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(77, 148, 255, 0.15);
}

/* Footer Bottom */
.footer-bottom {
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.3px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--duration-slow) var(--ease-out),
        transform var(--duration-slow) var(--ease-out);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .two-col-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

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

    .hero-stats {
        gap: 20px;
    }

    .hero-arrow-prev {
        left: 16px;
    }

    .hero-arrow-next {
        right: 16px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
        --header-height: 68px;
    }

    .header {
        padding: 0 20px;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--white);
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
        padding: 100px 32px 32px;
        transition: right var(--duration-normal) var(--ease-out);
        z-index: 999;
    }

    .nav.open {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 4px;
    }

    .nav-links li a {
        padding: 14px 18px;
        font-size: 1.05rem;
        border-radius: 10px;
    }

    .header .cta-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Hero */
    .hero {
        min-height: 600px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
    }

    .hero-arrow svg {
        width: 16px;
        height: 16px;
    }

    .hero-dots {
        bottom: 108px;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 32px;
        padding: 20px 0;
    }

    .hero-stats .stat-number {
        font-size: 1.5rem;
    }

    .hero-stats .stat-label {
        font-size: 0.75rem;
    }

    /* Products */
    .product-grid {
        grid-template-columns: 1fr;
    }

    .card-img-wrapper {
        height: 180px;
    }

    /* Applications */
    .app-grid {
        grid-template-columns: 1fr;
    }

    .app-card {
        height: 240px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .case-study-glass {
        aspect-ratio: 16/10;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .btn-large {
        padding: 16px 28px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .badge {
        font-size: 0.72rem;
        padding: 6px 14px;
    }

    .hero-arrow {
        display: none;
    }
}

/* ============================================
   FLOATING SIDE WIDGET
   ============================================ */
.floating-widget {
    position: fixed;
    right: 24px;
    bottom: 120px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateX(20px);
    transition: all var(--duration-normal) var(--ease-out);
    pointer-events: none;
}

.floating-widget.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.float-item {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow-md);
}

.float-item svg {
    width: 22px;
    height: 22px;
}

.float-phone {
    background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
    color: var(--white);
}

.float-phone:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(232, 93, 4, 0.4);
}

.float-form {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: var(--white);
}

.float-form:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 71, 171, 0.4);
}

.float-top {
    background: var(--white);
    color: var(--grey-700);
    border: 1px solid var(--border-default);
}

.float-top:hover {
    transform: scale(1.1);
    color: var(--blue-600);
    border-color: var(--blue-400);
    box-shadow: var(--shadow-lg);
}

/* Tooltip */
.float-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 16px;
    background: var(--grey-900);
    color: var(--white);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--duration-fast) var(--ease-out);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.float-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid var(--grey-900);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.float-item:hover .float-tooltip {
    opacity: 1;
}

.float-tooltip strong {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.float-tooltip em {
    font-style: normal;
    font-size: 1rem;
    font-weight: 700;
    color: var(--orange-400);
    letter-spacing: 0.5px;
}

/* ============================================
   QUOTE CALCULATOR
   ============================================ */
.calc-form {
    position: relative;
    overflow: hidden;
}

.calc-form::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-600), var(--orange-500), var(--blue-400));
    border-radius: 3px 3px 0 0;
}

/* Calculator Header */
.calc-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.calc-header h4 {
    margin-bottom: 0;
}

.calc-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.calc-icon svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.calc-subtitle {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
    letter-spacing: 0.5px;
}

/* Calculator Field */
.calc-field {
    margin-bottom: 16px;
}

.calc-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 8px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.calc-label em {
    font-style: normal;
    color: var(--orange-500);
    margin-left: 2px;
}

.calc-optional {
    font-size: 0.68rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.25);
    text-transform: none;
    letter-spacing: 0;
    margin-left: 4px;
}

.calc-field.has-error .radio-group {
    animation: fieldShake 0.4s var(--ease-out);
}

.calc-field.has-error .calc-label {
    color: var(--orange-500);
}

@keyframes fieldShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
}

/* Radio Pill Group */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.radio-pill {
    display: inline-flex;
    cursor: pointer;
    user-select: none;
}

.radio-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.radio-pill span {
    display: inline-block;
    padding: 7px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all var(--duration-fast) var(--ease-out);
    white-space: nowrap;
    line-height: 1.3;
}

.radio-pill:hover span {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
}

.radio-pill input[type="radio"]:checked+span {
    background: rgba(0, 96, 223, 0.2);
    border-color: var(--blue-500);
    color: var(--blue-400);
    font-weight: 600;
}

/* Area Input Row */
.calc-input-row {
    position: relative;
}

.calc-input-row input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    outline: none;
    transition: all var(--duration-fast) var(--ease-out);
}

.calc-input-row input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.calc-input-row input:focus {
    border-color: var(--blue-400);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(77, 148, 255, 0.15);
}

.calc-unit {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
    pointer-events: none;
}

/* Region Selects */
.region-selects {
    display: flex;
    gap: 8px;
}

.region-selects select {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.region-selects select:not(:disabled):valid {
    color: var(--white);
}

.region-selects select option {
    background: var(--blue-900);
    color: var(--white);
}

.region-selects select:focus {
    border-color: var(--blue-400);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(77, 148, 255, 0.15);
}

.region-selects select:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Submit Button in Calc */
.calc-form .btn-block {
    margin-top: 20px;
    gap: 8px;
}

/* ============================================
   INLINE RESULT CARD
   ============================================ */
.calc-result {
    margin-top: 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s var(--ease-out), opacity 0.4s var(--ease-out), margin-top 0.4s var(--ease-out);
}

.calc-result.visible {
    max-height: 280px;
    opacity: 1;
}

.calc-result-inner {
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 96, 223, 0.12), rgba(252, 191, 73, 0.08));
    border: 1px solid rgba(77, 148, 255, 0.2);
    border-radius: 14px;
    text-align: center;
}

.result-header {
    margin-bottom: 10px;
}

.result-badge {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--orange-400);
    background: rgba(252, 191, 73, 0.12);
    border: 1px solid rgba(252, 191, 73, 0.2);
    border-radius: 20px;
}

.result-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.result-detail {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    margin-bottom: 14px;
}

.result-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
    border-radius: 8px;
    transition: all var(--duration-fast) var(--ease-out);
    box-shadow: 0 2px 10px rgba(232, 93, 4, 0.3);
}

.result-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(232, 93, 4, 0.4);
}

/* Remove old suffix layout (no longer needed) */
.form-group-suffix {
    position: relative;
}

.form-group-suffix input {
    padding-right: 72px;
}

.input-suffix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ============================================
   QR CODES
   ============================================ */
.qr-codes {
    display: flex;
    gap: 24px;
    margin-top: 32px;
}

.qr-item {
    text-align: center;
}

.qr-item img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    background: var(--white);
    padding: 4px;
    transition: all var(--duration-normal) var(--ease-out);
}

.qr-item:hover img {
    border-color: var(--blue-400);
    transform: scale(1.05);
}

.qr-item span {
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE - New Elements
   ============================================ */
@media (max-width: 768px) {
    .floating-widget {
        right: 16px;
        bottom: 100px;
    }

    .float-item {
        width: 46px;
        height: 46px;
    }

    .float-item svg {
        width: 20px;
        height: 20px;
    }

    .float-tooltip {
        display: none;
    }

    .qr-codes {
        display: none;
    }

    .footer-links {
        display: none;
    }
}