:root {
    --navy: #071a3a;
    --blue: #10345f;
    --blue-soft: #174774;
    --beige: #f4ead8;
    --beige-soft: #fbf6ee;
    --gold: #b8873b;
    --gold-soft: #ead4ad;
    --text: #202633;
    --muted: #667085;
    --line: rgba(7, 26, 58, .12);
    --white: #ffffff;
    --shadow: 0 18px 48px rgba(7, 26, 58, .11);
    --soft-shadow: 0 10px 28px rgba(7, 26, 58, .07);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    background: var(--beige-soft);
    line-height: 1.68;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.top-strip {
    background: var(--navy);
    color: #fff;
    font-size: 14px;
}
.top-strip-inner {
    min-height: 42px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}
.top-strip a { color: #fff; }
.top-strip strong { font-weight: 600; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(135deg, rgba(244, 234, 216, .78), rgba(255, 255, 255, .46));
    backdrop-filter: blur(20px) saturate(145%);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    border-bottom: 1px solid rgba(16, 52, 95, .18);
    box-shadow: 0 14px 34px rgba(7, 26, 58, .11);
}
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .45), transparent 38%);
}
.nav-wrap {
    position: relative;
    min-height: 122px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 350px;
}
.brand-logo {
    width: 162px;
    max-width: 100%;
    max-height: 92px;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    display: block;
}
.brand strong {
    display: block;
    color: var(--navy);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: .7px;
    line-height: 1.1;
}
.brand small {
    display: block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.35px;
    margin-top: 4px;
}
.main-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-wrap: wrap;
}
.main-nav a {
    padding: 10px 12px;
    border-radius: 999px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, .52);
    color: var(--blue-soft);
    box-shadow: inset 0 0 0 1px rgba(16, 52, 95, .10);
}
.header-cta,
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 0;
    cursor: pointer;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.header-cta,
.btn.primary {
    background: linear-gradient(135deg, var(--navy), var(--blue-soft));
    color: #fff;
    box-shadow: 0 10px 24px rgba(7, 26, 58, .18);
}
.btn.secondary {
    background: #fff;
    color: var(--navy);
    border: 1px solid rgba(184, 135, 59, .42);
}
.header-cta:hover,
.btn:hover { transform: translateY(-2px); }
.btn.full-width { width: 100%; }
.menu-toggle {
    display: none;
    background: var(--navy);
    color: #fff;
    border: 0;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 22px;
}

.hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: var(--navy);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 26, 58, .94), rgba(16, 52, 95, .68), rgba(7, 26, 58, .25));
}
.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
    gap: 54px;
    align-items: center;
    padding: 92px 0;
}
.hero-content h1 {
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -.8px;
    margin: 14px 0 22px;
    max-width: 820px;
}
.hero-content p { max-width: 690px; color: rgba(255,255,255,.88); font-size: 18px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 34px 0; }
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 640px;
}
.hero-stats div {
    padding: 18px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(10px);
    border-radius: 18px;
}
.hero-stats strong { display: block; font-size: 24px; font-weight: 700; line-height: 1.1; }
.hero-stats span { color: rgba(255,255,255,.78); }
.hero-logo-card {
    background: rgba(255, 255, 255, .96);
    color: var(--navy);
    border-radius: 30px;
    padding: 34px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid rgba(255,255,255,.74);
}
.hero-logo-card img { width: 540px; max-width: 100%; margin: 0 auto 18px; }
.hero-logo-card p { color: var(--muted); margin-bottom: 0; font-size: 16px; }

.section { padding: 86px 0; background: #fff; }
.muted-section { background: var(--beige-soft); }
.section-kicker {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-size: 12px;
    font-weight: 700;
}
.section-heading { margin-bottom: 38px; }
.section-heading.centered { text-align: center; max-width: 800px; margin-left: auto; margin-right: auto; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.16; }
.hero h1, .image-page-hero h1 { color: #fff; }
h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; letter-spacing: -.35px; margin: 10px 0 15px; }
h3 { font-size: 22px; font-weight: 650; margin: 0 0 10px; }
h4 { font-size: 18px; font-weight: 650; }
p { color: var(--muted); margin-top: 0; }

.capability-grid,
.product-grid,
.process-grid,
.quality-grid,
.contact-info-grid,
.gallery-grid {
    display: grid;
    gap: 24px;
}
.capability-grid,
.product-grid,
.process-grid,
.quality-grid,
.gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-info-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.capability-card,
.product-card,
.product-detail,
.values-card,
.contact-card,
.info-box,
.quality-grid article,
.process-grid article,
.cta-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
}
.capability-card { padding: 28px; }
.capability-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--beige);
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 18px;
}
.capability-card p { margin-bottom: 0; }
.product-card { overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card img { width: 100%; height: 230px; object-fit: cover; }
.product-card div { padding: 24px; }
.product-card a { color: var(--gold); font-weight: 600; }

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 54px;
    align-items: center;
}
.align-start { align-items: start; }
.rounded-img { border-radius: 28px; width: 100%; min-height: 420px; object-fit: cover; box-shadow: var(--shadow); }
.feature-list { display: grid; gap: 14px; margin-top: 28px; }
.feature-list div {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;
    align-items: start;
    padding: 18px;
    background: rgba(251,246,238,.95);
    border: 1px solid var(--line);
    border-radius: 18px;
}
.feature-list strong { color: var(--gold); font-size: 22px; font-weight: 700; }
.feature-list span { color: var(--muted); }

.process-grid article { overflow: hidden; }
.process-grid article img { width: 100%; height: 245px; object-fit: cover; }
.process-grid article h3,
.process-grid article p { padding-left: 22px; padding-right: 22px; }
.process-grid article h3 { padding-top: 22px; }
.process-grid article p { padding-bottom: 22px; }
.quality-grid article,
.info-box,
.values-card { padding: 26px; }
.info-box h3 { margin-bottom: 12px; }
.info-box p { margin-bottom: 8px; }

.cta-section { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 38px;
}
.cta-section .cta-card { background: rgba(255,255,255,.97); }

.page-hero {
    padding: 110px 0;
    background: var(--navy);
    color: #fff;
}
.image-page-hero {
    background-size: cover;
    background-position: center;
    position: relative;
}
.image-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 26, 58, .9), rgba(16, 52, 95, .54));
}
.image-page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(38px, 5vw, 66px); font-weight: 700; margin: 12px 0; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 790px; font-size: 18px; }

.product-list { display: grid; gap: 28px; }
.product-detail {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 28px;
    padding: 22px;
    align-items: center;
}
.product-detail img { height: 270px; width: 100%; object-fit: cover; border-radius: 18px; }
.check-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: var(--muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

.gallery-item {
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    min-height: 260px;
}
.gallery-item img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: rgba(7, 26, 58, .84);
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
}

.forms-grid {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 28px;
    align-items: start;
}
.contact-card { padding: 32px; }
.accent-card { border-color: rgba(184, 135, 59, .36); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 8px; margin-bottom: 16px; color: var(--navy); font-weight: 600; }
input, textarea, select {
    width: 100%;
    border: 1px solid rgba(7, 26, 58, .16);
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    font-weight: 400;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border .2s ease, box-shadow .2s ease, background .2s ease;
}
input::placeholder, textarea::placeholder { color: #8a94a6; }
input:focus, textarea:focus, select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(184, 135, 59, .12);
}
input.invalid, textarea.invalid, select.invalid {
    border-color: #d93025;
    background: #fff8f8;
}
.field-error {
    color: #d93025;
    font-size: 12px;
    min-height: 16px;
}
.form-status {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
}
.form-status.success { display: block; background: #eefaf0; color: #137333; border: 1px solid #bce8c5; }
.form-status.error { display: block; background: #fff1f0; color: #b42318; border: 1px solid #f5c2c0; }
.form-status.loading { display: block; background: #f6f2ea; color: var(--navy); border: 1px solid var(--gold-soft); }
button:disabled { opacity: .72; cursor: not-allowed; }
.small-link, .whatsapp-link { color: var(--gold); font-weight: 600; }

.map-section { padding: 78px 0; background: var(--beige); }
.map-section .section-heading { margin-bottom: 24px; }
.map-section iframe {
    width: min(1180px, calc(100% - 40px));
    height: 440px;
    border: 0;
    display: block;
    margin: 0 auto;
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.site-footer { background: #06142b; color: #fff; padding-top: 66px; }
.site-footer p, .site-footer a { color: rgba(255,255,255,.78); }
.site-footer h4 { color: #fff; margin-top: 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr .8fr .8fr 1fr;
    gap: 32px;
}
.footer-grid a { display: block; margin: 8px 0; }
.footer-brand .brand-logo { width: 180px; max-width: 100%; max-height: 104px; height: auto; }
.footer-brand strong { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 50px;
    padding: 20px 0;
    color: rgba(255,255,255,.72);
    font-size: 14px;
}
.floating-whatsapp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 30;
    background: #25d366;
    color: #fff;
    border-radius: 999px;
    padding: 13px 18px;
    box-shadow: 0 16px 32px rgba(0,0,0,.18);
    font-weight: 600;
}

@media (max-width: 1180px) {
    .nav-wrap { min-height: 110px; }
    .brand { min-width: 310px; }
    .brand-logo { width: 138px; max-height: 78px; height: auto; }
    .brand strong { font-size: 24px; }
    .header-cta { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 1040px) {
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .main-nav {
        display: none;
        position: absolute;
        left: 20px;
        right: 20px;
        top: 116px;
        background: linear-gradient(145deg, rgba(244, 234, 216, .90), rgba(255, 255, 255, .70));
        backdrop-filter: blur(18px) saturate(140%);
        -webkit-backdrop-filter: blur(18px) saturate(140%);
        border: 1px solid rgba(16, 52, 95, .16);
        border-radius: 22px;
        box-shadow: var(--shadow);
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 13px 15px; }
    .header-cta { display: none; }
    .hero-grid, .split-grid, .forms-grid, .product-detail { grid-template-columns: 1fr; }
    .product-grid, .process-grid, .quality-grid, .gallery-grid, .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-info-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { min-height: auto; }
    .hero-logo-card { max-width: 560px; }
    .rounded-img { min-height: 340px; }
}

@media (max-width: 640px) {
    body { font-size: 15.5px; }
    .container { width: min(100% - 24px, 1180px); }
    .top-strip-inner { flex-direction: column; align-items: flex-start; padding: 10px 0; }
    .nav-wrap { min-height: 92px; }
    .main-nav { top: 100px; left: 12px; right: 12px; }
    .brand { min-width: auto; gap: 10px; }
    .brand-logo { width: 118px; max-height: 64px; height: auto; border-radius: 0; }
    .brand strong { font-size: 19px; }
    .brand small { font-size: 10px; letter-spacing: 1px; }
    .hero-grid { padding: 58px 0; gap: 30px; }
    .hero-content h1 { font-size: clamp(38px, 12vw, 50px); }
    .hero-content p, .page-hero p { font-size: 16px; }
    .hero-stats, .product-grid, .process-grid, .quality-grid, .gallery-grid, .contact-info-grid, .footer-grid, .form-row, .capability-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .page-hero { padding: 78px 0; }
    .cta-card { flex-direction: column; align-items: flex-start; padding: 26px; }
    .contact-card { padding: 22px; }
    .map-section iframe { width: min(100% - 24px, 1180px); height: 360px; border-radius: 20px; }
    .footer-brand .brand-logo { width: 132px; max-height: 72px; height: auto; }
    .floating-whatsapp { right: 12px; bottom: 12px; padding: 11px 15px; }
}


/* MG symbol logo fit fix - unique 2026 update */
.brand-logo {
    width: 150px !important;
    max-height: 78px !important;
    height: auto !important;
    object-fit: contain !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
.hero-logo-card img {
    width: min(520px, 92%) !important;
    height: auto !important;
    object-fit: contain !important;
}
.footer-brand .brand-logo {
    width: 180px !important;
    max-height: 95px !important;
}
@media (max-width: 1180px) {
    .brand-logo { width: 130px !important; max-height: 68px !important; }
}
@media (max-width: 640px) {
    .brand-logo { width: 112px !important; max-height: 58px !important; }
    .hero-logo-card img { width: min(360px, 92%) !important; }
    .footer-brand .brand-logo { width: 132px !important; max-height: 70px !important; }
}
