/* =============================================================================
   Gayathri Machine Tools & Services — Stylesheet v4
   Theme: Blue & White | 3D Cards | Full Responsive
   ============================================================================= */

:root {
    --primary:       #1d4ed8;
    --primary-dark:  #1e3a8a;
    --primary-light: #dbeafe;
    --primary-mid:   #2563eb;
    --text-dark:     #0f172a;
    --text-body:     #334155;
    --text-muted:    #64748b;
    --bg-light:      #f1f5f9;
    --bg-white:      #ffffff;
    --border:        #e2e8f0;
    --shadow-sm:     0 2px 8px rgba(29,78,216,0.08);
    --shadow:        0 4px 24px rgba(29,78,216,0.12);
    --shadow-lg:     0 12px 40px rgba(29,78,216,0.18);
    --shadow-3d:     0 24px 64px rgba(29,78,216,0.28);
    --radius:        14px;
    --radius-sm:     8px;
    --transition:    0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--bg-white);
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── 3D Card Effect — Applied to ALL cards ───────────────────────────────── */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.4s ease;
    will-change: transform;
    cursor: default;
}
.card-3d:hover {
    transform: perspective(900px) rotateX(-4deg) rotateY(4deg)
               translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-3d);
}

/* ── Top Bar ─────────────────────────────────────────────────────────────── */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.70);
    font-size: 13px;
    padding: 8px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.top-bar-right { display: flex; gap: 24px; align-items: center; }
.top-bar a { color: rgba(255,255,255,0.70); transition: var(--transition); }
.top-bar a:hover { color: white; }

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 16px rgba(29,78,216,0.08);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-size: 16px; font-weight: 800; color: var(--text-dark); line-height: 1.2; }
.logo-sub  { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
    background: var(--primary-light);
    color: var(--primary);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.03em;
}
.btn-full { width: 100%; }
.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(29,78,216,0.3);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(29,78,216,0.4);
}
.btn-accent {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(29,78,216,0.3);
}
.btn-accent:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(29,78,216,0.4);
}
.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    background: transparent;
}
.btn-outline-light:hover {
    border-color: white;
    background: rgba(255,255,255,0.12);
}
.btn-white {
    background: white;
    color: var(--primary);
    border-color: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-white:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}
.btn-outline-white {
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    background: transparent;
}
.btn-outline-white:hover {
    border-color: white;
    background: rgba(255,255,255,0.12);
}
.btn-whatsapp {
    background: #25d366;
    color: white;
    border-color: #25d366;
}
.btn-whatsapp:hover {
    background: #20b558;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

/* ── Section ────────────────────────────────────────────────────────────── */
.section { padding: 88px 0; }
.bg-light { background: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.15;
}
.section-header p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 540px;
    margin: 8px auto 0;
}
.tag-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}
.tag-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 65% 50%, rgba(29,78,216,.3) 0%, transparent 60%),
        repeating-linear-gradient(45deg, transparent, transparent 40px,
            rgba(255,255,255,.02) 40px, rgba(255,255,255,.02) 41px);
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 88px 0;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #93c5fd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
}
.highlight { color: #60a5fa; }
.hero p {
    font-size: 17px;
    color: rgba(255,255,255,0.82);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 460px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Stat Cards — on dark hero bg */
.stat-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), box-shadow 0.4s ease,
                background 0.3s ease;
}
.stat-card:hover {
    background: rgba(255,255,255,.13);
}
.stat-card strong {
    display: block;
    font-size: 2.6rem;
    font-weight: 800;
    color: #60a5fa;
    line-height: 1;
}
.stat-card span {
    font-size: 12px;
    color: rgba(255,255,255,0.82);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 8px;
    display: block;
    font-weight: 600;
}

/* ── About ───────────────────────────────────────────────────────────────── */
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: center;
}
.about-visual { position: relative; }
.about-img-box {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-img-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 20px,
        rgba(255,255,255,.03) 20px, rgba(255,255,255,.03) 21px);
}
.about-float-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: white;
    padding: 20px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 12px 32px rgba(29,78,216,.45);
}
.about-float-badge strong {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}
.about-float-badge span {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: .9;
    display: block;
    margin-top: 4px;
}
.about-content h2 {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}
.about-content p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.8; }
.check-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 28px;
}
.check-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}
.check-list li::before {
    content: '✓';
    width: 22px;
    height: 22px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Services List ───────────────────────────────────────────────────────── */
.services-list { display: flex; flex-direction: column; gap: 12px; }
.service-row {
    display: grid;
    grid-template-columns: 64px 1fr 44px;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.35s cubic-bezier(0.23,1,0.32,1);
    box-shadow: var(--shadow-sm);
}
.service-row:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(29,78,216,.18);
    transform: translateY(-4px) scale(1.01);
}
.svc-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    transition: var(--transition);
}
.service-row:hover .svc-num { color: var(--primary); }
.svc-body h3 { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.svc-body p { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-tags span {
    background: var(--bg-light);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.service-row:hover .svc-tags span {
    background: var(--primary-light);
    border-color: #bfdbfe;
    color: var(--primary);
}
.svc-arrow {
    width: 44px;
    height: 44px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
    transition: var(--transition);
    flex-shrink: 0;
}
.service-row:hover .svc-arrow { background: var(--primary); color: white; }

/* ── Expertise Grid ──────────────────────────────────────────────────────── */
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.exp-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.23,1,0.32,1),
                box-shadow 0.4s ease, border-color 0.3s ease;
}
.exp-card:hover { border-color: var(--primary); }
.exp-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}
.exp-card h3 {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}
.brand-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-tags span {
    background: var(--bg-light);
    color: var(--text-body);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.exp-card:hover .brand-tags span {
    background: var(--primary-light);
    border-color: #bfdbfe;
    color: var(--primary);
}

/* ── Machines Grid ───────────────────────────────────────────────────────── */
.machines-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.machine-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.23,1,0.32,1),
                box-shadow 0.4s ease;
}
.mc-bg {
    position: absolute;
    inset: 0;
    font-size: 5.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .20;
}
.mc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,0.2) 55%, transparent 100%);
}
.mc-body {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
}
.mc-body span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93c5fd;
    display: block;
    margin-bottom: 4px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.mc-body h3 {
    font-size: 16px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* ── Why Section ─────────────────────────────────────────────────────────── */
.why-section { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); }
.why-tag::before { background: #93c5fd !important; }
.why-tag { color: #93c5fd !important; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.23,1,0.32,1),
                box-shadow 0.4s ease, background 0.3s ease;
}
.why-card:hover {
    background: rgba(96,165,250,.14);
    border-color: rgba(96,165,250,.35);
}
.why-card > span {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 14px;
}
.why-card h3 {
    font-size: 15px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}
.why-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.82);
    line-height: 1.7;
}

/* ── Testimonials ────────────────────────────────────────────────────────── */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.23,1,0.32,1),
                box-shadow 0.4s ease, border-color 0.3s ease;
}
.testi-card:hover { border-color: var(--primary); }
.testi-card::before {
    content: '"';
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
}
.testi-stars { color: #f59e0b; margin-bottom: 14px; font-size: 15px; }
.testi-card p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
    font-size: 14px;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    font-weight: 800;
    flex-shrink: 0;
}
.testi-author strong { display: block; font-size: 14px; font-weight: 700; color: var(--text-dark); }
.testi-author span { display: block; font-size: 12px; color: var(--text-muted); }

/* ── Contact CTA Strip ───────────────────────────────────────────────────── */
.contact-cta-strip {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
    padding: 60px 0;
}
.contact-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.contact-cta-strip h2 {
    font-size: 26px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}
.contact-cta-strip p { color: rgba(255,255,255,0.80); font-size: 15px; }
.cta-strip-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Page Hero (inner pages) ─────────────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
    padding: 72px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 40px,
        rgba(255,255,255,.02) 40px, rgba(255,255,255,.02) 41px);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .tag-label { color: #93c5fd; }
.page-hero .tag-label::before { background: #93c5fd; }
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: white;
    margin: 12px 0;
    line-height: 1.1;
}
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.82); max-width: 580px; margin: 0 auto; }

/* ── Services Detail Page ────────────────────────────────────────────────── */
.service-detail-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 36px;
    align-items: start;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.23,1,0.32,1),
                box-shadow 0.4s ease, border-color 0.3s ease;
}
.service-detail-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-3d);
    transform: perspective(900px) rotateX(-3deg) rotateY(3deg)
               translateY(-8px) scale(1.02);
}
.service-detail-card.reverse { direction: rtl; }
.service-detail-card.reverse > * { direction: ltr; }
.service-detail-icon {
    font-size: 52px;
    padding: 16px;
    background: var(--primary-light);
    border-radius: var(--radius);
    border: 1px solid #bfdbfe;
    min-width: 90px;
    text-align: center;
}
.service-detail-content h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.service-detail-content p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.7; }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.service-list li {
    font-size: 14px;
    color: var(--text-body);
    padding-left: 18px;
    position: relative;
}
.service-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ── About Page ──────────────────────────────────────────────────────────── */
.about-highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.highlight-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.23,1,0.32,1),
                box-shadow 0.4s ease, border-color 0.3s ease;
}
.highlight-card:hover { border-color: var(--primary); }
.highlight-card strong {
    display: block;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.highlight-card span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 8px;
    display: block;
}

/* Leader Card */
.leader-card {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.23,1,0.32,1),
                box-shadow 0.4s ease, border-color 0.3s ease;
}
.leader-card:hover { border-color: var(--primary); }
.leader-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(29,78,216,.35);
    letter-spacing: 0.05em;
}
.leader-info h3 { font-size: 26px; font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
.leader-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.leader-info p { color: var(--text-muted); line-height: 1.8; margin-bottom: 24px; }
.leader-contact { display: flex; gap: 12px; flex-wrap: wrap; }

/* Values Grid */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.23,1,0.32,1),
                box-shadow 0.4s ease, border-color 0.3s ease;
}
.value-card:hover { border-color: var(--primary); }
.value-icon { font-size: 2.5rem; margin-bottom: 14px; display: block; }
.value-card h3 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Contact Page ────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.contact-info h2 { font-size: 28px; font-weight: 800; color: var(--text-dark); margin-bottom: 10px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 28px; line-height: 1.7; }
.contact-items-list { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--bg-light);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: transform 0.4s cubic-bezier(0.23,1,0.32,1),
                box-shadow 0.3s ease, border-color 0.3s ease,
                background 0.3s ease;
}
.contact-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 24px rgba(29,78,216,.12);
}
.ci-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.contact-item h4 {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}
.contact-item a, .contact-item p {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
}
.contact-item a:hover { color: var(--primary); }
.contact-cta-box {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
    border-radius: var(--radius);
    padding: 40px 32px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.contact-cta-box:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-3d);
}
.contact-cta-box::before {
    content: '⚙';
    position: absolute;
    bottom: -30px;
    right: -30px;
    font-size: 160px;
    color: rgba(255,255,255,.04);
    animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.contact-cta-box h3 {
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
    color: white;
}
.contact-cta-box p {
    color: rgba(255,255,255,0.82);
    margin-bottom: 24px;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    font-size: 15px;
}
.contact-cta-box .btn { position: relative; z-index: 2; margin-bottom: 10px; }
.commitment-box {
    margin-top: 20px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: var(--radius-sm);
    padding: 18px;
    position: relative;
    z-index: 2;
}
.commitment-box h4 { color: #93c5fd; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.commitment-box p { color: rgba(255,255,255,0.82); font-size: 13px; margin: 0; line-height: 1.6; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { background: #070f19; color: #94a3b8; padding: 64px 0 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-brand p {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,.45);
    max-width: 280px;
}
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.08);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-col h4 {
    font-size: 12px;
    font-weight: 800;
    color: white;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
    font-size: 14px;
    color: #94a3b8;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-col ul li a::before { content: '›'; color: var(--primary); font-size: 16px; }
.footer-col ul li a:hover { color: white; }
.footer-contact-list p { font-size: 14px; margin-bottom: 8px; }
.footer-contact-list a { color: #94a3b8; transition: var(--transition); }
.footer-contact-list a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}
.footer-bottom a { color: #60a5fa; }

/* ── Scroll to Top ───────────────────────────────────────────────────────── */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(29,78,216,.4);
    transition: all 0.3s ease;
    z-index: 900;
    opacity: 0;
    pointer-events: none;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(29,78,216,.5); }

/* =============================================================================
   RESPONSIVE — Mobile · Tablet · Desktop
   ============================================================================= */

/* ── Large Desktop (1200px+) — defaults above ── */

/* ── Desktop (1024px – 1199px) ──────────────────────────────────────────── */
@media (max-width: 1199px) {
    .hero-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 28px; }
}

/* ── Tablet (768px – 1023px) ─────────────────────────────────────────────── */
@media (max-width: 1023px) {
    .section { padding: 64px 0; }
    .section-title { font-size: 30px; }

    /* Hero */
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 0;
        text-align: center;
    }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-btns { justify-content: center; }
    .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .stat-card { padding: 20px 12px; }
    .stat-card strong { font-size: 2rem; }

    /* About */
    .about-inner { grid-template-columns: 1fr; gap: 40px; }
    .about-visual { max-width: 480px; margin: 0 auto; }

    /* Grids */
    .expertise-grid { grid-template-columns: 1fr 1fr; }
    .machines-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .testi-grid { grid-template-columns: 1fr 1fr; }
    .values-grid { grid-template-columns: 1fr 1fr; }
    .about-highlights-grid { grid-template-columns: repeat(2, 1fr); }

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

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

/* ── Mobile Large (576px – 767px) ───────────────────────────────────────── */
@media (max-width: 767px) {
    .container { padding: 0 16px; }
    .section { padding: 52px 0; }
    .section-title { font-size: 26px; }
    .section-header { margin-bottom: 36px; }

    /* Top bar */
    .top-bar-right { display: none; }

    /* Hero */
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 18px 12px; }
    .stat-card strong { font-size: 1.8rem; }

    /* Grids → single column */
    .expertise-grid { grid-template-columns: 1fr; }
    .testi-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }

    /* Service rows */
    .service-row { grid-template-columns: 50px 1fr; gap: 16px; padding: 18px 16px; }
    .svc-arrow { display: none; }

    /* Service detail */
    .service-detail-card { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
    .service-detail-card.reverse { direction: ltr; }
    .service-list { grid-template-columns: 1fr; }
    .service-detail-icon { font-size: 40px; padding: 12px; min-width: auto; }

    /* About */
    .check-list { grid-template-columns: 1fr; }
    .about-highlights-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .highlight-card { padding: 20px 14px; }
    .highlight-card strong { font-size: 2rem; }

    /* Values */
    .values-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

    /* Leader */
    .leader-card { flex-direction: column; gap: 20px; padding: 24px; }
    .leader-avatar { width: 70px; height: 70px; font-size: 20px; }
    .leader-info h3 { font-size: 22px; }

    /* CTA */
    .contact-cta-inner { flex-direction: column; text-align: center; }
    .cta-strip-btns { justify-content: center; }
    .contact-cta-strip h2 { font-size: 22px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-brand p { max-width: 100%; }
}

/* ── Mobile (< 576px) ────────────────────────────────────────────────────── */
@media (max-width: 575px) {
    /* Nav */
    .nav-toggle { display: flex; }
    .navbar { position: relative; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--border);
        padding: 12px 16px;
        gap: 4px;
        box-shadow: var(--shadow);
        z-index: 200;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 10px 14px; width: 100%; }
    .logo-main { font-size: 14px; }

    /* Hero */
    .hero h1 { font-size: 1.9rem; }
    .hero p { font-size: 15px; }
    .hero-btns { flex-direction: column; align-items: center; }
    .hero-btns .btn { width: 100%; max-width: 300px; justify-content: center; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-card { padding: 14px 10px; }
    .stat-card strong { font-size: 1.6rem; }
    .stat-card span { font-size: 10px; }

    /* Sections */
    .section { padding: 44px 0; }
    .section-title { font-size: 23px; }
    .page-hero { padding: 48px 0; }
    .page-hero h1 { font-size: 1.8rem; }

    /* Grids → all single column */
    .machines-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .about-highlights-grid { grid-template-columns: 1fr 1fr; }
    .expertise-grid { grid-template-columns: 1fr; }

    /* About */
    .about-float-badge { bottom: -12px; right: -8px; padding: 14px 16px; }
    .about-float-badge strong { font-size: 1.6rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }

    /* Contact */
    .contact-cta-box { padding: 28px 20px; }
    .contact-cta-box h3 { font-size: 20px; }
    .leader-card { padding: 20px; }

    /* 3D effect - reduce on small screens for perf */
    .card-3d:hover {
        transform: perspective(600px) rotateX(-2deg) rotateY(2deg)
                   translateY(-6px) scale(1.02);
    }
    .service-detail-card:hover {
        transform: translateY(-4px) scale(1.01);
    }

    /* Scroll btn */
    .scroll-top { bottom: 16px; right: 16px; width: 40px; height: 40px; font-size: 15px; }
}

/* ── Very small (< 380px) ────────────────────────────────────────────────── */
@media (max-width: 379px) {
    .hero h1 { font-size: 1.6rem; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .about-highlights-grid { grid-template-columns: 1fr; }
    .check-list { grid-template-columns: 1fr; }
    .service-row { grid-template-columns: 40px 1fr; }
    .svc-num { font-size: 1.6rem; }
}
