/* =========================================================
   MJ Square Technologies Pvt Ltd — website styles
   File: Content/mjsquare.css
   Change brand colours here and the whole site updates.
   ========================================================= */
:root {
    --navy: #0D1B3E;
    --navy-dark: #041030;
    --blue: #1565E0;
    --blue-light: #E6F0FF;
    --accent: #38BDF8;
    --gold: #D4A537;
    --text: #1B2540;
    --muted: #5C6785;
    --line: #E5EAF3;
    --bg-soft: #F3F6FC;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--text);
    background: #FFFFFF;
    line-height: 1.5;
}
img { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: #0D47A8; }

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-weight: 600;
    padding: 14px 26px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    border: 2px solid transparent;
    transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }
.btn-gold { background: var(--gold); color: var(--navy); font-weight: 700; }
.btn-gold:hover { color: var(--navy); }
.btn-accent { background: var(--accent); color: #06173F; }
.btn-accent:hover { color: #06173F; }
.btn-outline { border-color: #FFFFFF; color: #FFFFFF; }
.btn-outline:hover { color: #FFFFFF; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #C9D6F2; font-size: 13px; }
.topbar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 9px; padding-bottom: 9px; }
.topbar a { color: #C9D6F2; text-decoration: none; margin-left: 20px; }
.topbar a:first-child { margin-left: 0; }

/* ---------- Header ---------- */
.site-header { background: #FFFFFF; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: block; flex: 0 1 430px; }
.logo img { width: 100%; max-width: 430px; height: auto; display: block; }
.header-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.callbox { display: flex; align-items: center; gap: 12px; }
.callbox .circle { width: 46px; height: 46px; border-radius: 50%; background: var(--blue-light); display: flex; align-items: center; justify-content: center; }
.callbox small { display: block; font-size: 13px; color: var(--muted); }
.callbox a { display: block; font-weight: 700; color: var(--navy); text-decoration: none; font-size: 17px; }

/* ---------- Menu ---------- */
.mainnav { background: var(--navy); border-top: 3px solid var(--gold); position: sticky; top: 0; z-index: 40; }
.mainnav nav { display: flex; gap: 30px; overflow-x: auto; white-space: nowrap; padding: 10px 0; }
.mainnav a { color: #FFFFFF; text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.mainnav a:hover, .mainnav a.active { color: var(--accent); border-bottom-color: var(--accent); }
.menu-toggle { display: none; align-items: center; gap: 8px; background: transparent; border: 0; color: #FFFFFF; font: 600 16px 'Poppins', Arial, sans-serif; padding: 12px 0; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, #071537 0%, #0D2A6E 55%, #1565E0 100%); color: #FFFFFF; position: relative; }
.hero-banner { background: #06173F; }
.hero-banner img { width: 100%; max-width: 1672px; height: auto; display: block; margin: 0 auto; }
.hero-strip { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; justify-content: space-between; padding-top: 56px; padding-bottom: 140px; }
.hero-text { flex: 1 1 560px; min-width: 0; }
.kicker { color: #7CD4FF; font-weight: 600; letter-spacing: .12em; font-size: 14px; }
.hero h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; font-weight: 800; }
.hero h1 span { color: var(--accent); }
.hero p { margin: 22px 0 0; font-size: 18px; line-height: 1.75; color: #C9D6F2; max-width: 620px; }
.hero-actions { display: flex; flex-direction: column; gap: 14px; flex: 0 1 300px; }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 100px; display: block; }

/* ---------- Promise strip ---------- */
.promises { position: relative; margin-top: -40px; }
.promise-grid { background: #FFFFFF; border-radius: 14px; box-shadow: 0 20px 60px -20px rgba(11,42,107,.35); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.promise { padding: 26px 28px; display: flex; gap: 14px; align-items: center; border-right: 1px solid #EEF1F7; }
.promise:last-child { border-right: 0; }
.promise strong { display: block; color: var(--navy); }
.promise span { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 100px 0 40px; }
.section-head { text-align: center; }
.eyebrow { color: var(--blue); font-weight: 600; letter-spacing: .12em; font-size: 14px; }
.section-title { margin: 10px 0 0; font-size: clamp(30px, 4vw, 42px); font-weight: 800; color: var(--navy); }
.section-sub { margin: 12px auto 0; color: var(--muted); max-width: 640px; line-height: 1.7; }
.bar { width: 70px; height: 4px; background: var(--blue); border-radius: 2px; margin: 18px auto 0; }

/* Software strip */
.software-strip { margin: 44px auto 0; max-width: 900px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; background: var(--bg-soft); border-radius: 18px; padding: 22px; }
.software-strip img { flex: 1 1 360px; min-width: 0; width: 100%; height: auto; display: block; border-radius: 12px; }
.software-strip div { flex: 1 1 280px; min-width: 0; }
.software-strip h3 { margin: 0; font-weight: 800; font-size: 24px; color: var(--navy); }
.software-strip p { margin: 10px 0 0; color: var(--muted); line-height: 1.7; }

/* Solution cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 22px; margin-top: 48px; }
.sol-card { border: 1px solid var(--line); border-radius: 12px; padding: 30px; box-shadow: 0 8px 30px -18px rgba(11,42,107,.4); transition: transform .2s, box-shadow .2s; }
.sol-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(11,42,107,.5); }
.icon-circle { width: 58px; height: 58px; border-radius: 50%; background: var(--blue-light); display: flex; align-items: center; justify-content: center; flex: none; }
.sol-card h3 { margin: 18px 0 8px; font-size: 20px; color: var(--navy); }
.sol-card p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 15px; }
.sol-wide { grid-column: 1 / -1; background: var(--navy); color: #FFFFFF; border-radius: 12px; padding: 30px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.sol-wide .icon-circle { background: var(--accent); }
.sol-wide div.text { flex: 1 1 400px; min-width: 0; }
.sol-wide h3 { margin: 0 0 6px; font-size: 20px; }
.sol-wide p { margin: 0; color: #C9D6F2; line-height: 1.7; font-size: 15px; }
.sol-wide a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* Solution images */
.solution-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; align-items: start; }
.solution-grid a { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px -18px rgba(11,42,107,.5); transition: transform .2s; }
.solution-grid a:hover { transform: translateY(-4px); }
.solution-grid img { width: 100%; height: auto; display: block; }
.solution-grid .wide { grid-column: 1 / -1; }
@media (max-width: 900px) { .solution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .solution-grid { grid-template-columns: 1fr; } }

/* Products */
.products { background: var(--bg-soft); margin-top: 80px; padding: 90px 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 48px; align-items: start; }
.product-tile { border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px -18px rgba(11,42,107,.5); transition: transform .2s; }
.product-tile:hover { transform: translateY(-4px); }
.product-tile img { width: 100%; height: auto; display: block; }
.quote-card { background: linear-gradient(135deg, var(--blue), var(--navy)); color: #FFFFFF; border-radius: 12px; padding: 28px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.quote-card h3 { margin: 0; font-weight: 800; font-size: 22px; }
.quote-card p { margin: 10px 0 0; color: #C9D6F2; line-height: 1.6; font-size: 15px; }
.quote-card .btn { align-self: flex-start; padding: 12px 20px; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 48px; }
.service { border-top: 4px solid var(--blue); background: #F8FAFE; border-radius: 10px; padding: 28px; }
.service.highlight { border-top-color: var(--accent); }
.service h3 { margin: 0 0 8px; font-size: 19px; color: var(--navy); }
.service p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 15px; }

/* Industries + how we work */
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding: 90px 0; }
.industries { flex: 1 1 440px; min-width: 0; }
.industries h2 { margin: 10px 0 24px; font-size: clamp(28px, 3.5vw, 38px); font-weight: 800; color: var(--navy); line-height: 1.2; }
.donut { max-width: 460px; margin: 0 auto; }
.donut svg { display: block; width: 100%; height: auto; font-family: 'Poppins', Arial, sans-serif; }
.howwork { flex: 1 1 480px; min-width: 0; background: var(--navy); color: #FFFFFF; border-radius: 16px; padding: 40px; }
.howwork .eyebrow { color: var(--accent); }
.steps { display: flex; flex-direction: column; gap: 22px; margin-top: 22px; }
.step { display: flex; gap: 16px; }
.step .num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #06173F; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step strong { display: block; font-weight: 600; }
.step span { color: #C9D6F2; font-size: 15px; }

/* Contact band */
.contact-band { background: linear-gradient(135deg, #071537, var(--blue)); color: #FFFFFF; }
.contact-band .container { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; padding-top: 64px; padding-bottom: 64px; }
.contact-band h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.contact-band p { margin: 10px 0 0; color: #C9D6F2; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #9AABD3; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; padding-top: 64px; padding-bottom: 32px; font-size: 15px; }
.footer-grid h4 { color: #FFFFFF; font-weight: 600; margin: 0 0 12px; font-size: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: #9AABD3; text-decoration: none; }
.footer-grid a:hover { color: #FFFFFF; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .mark { background: #FFFFFF; border-radius: 10px; padding: 6px 8px; display: inline-flex; }
.footer-brand .mark img { height: 40px; width: auto; display: block; }
.footer-brand strong { color: #FFFFFF; font-size: 18px; line-height: 1.2; }
.footer-brand small { display: block; font-size: 13px; letter-spacing: .18em; color: #7CD4FF; }
.footer-bottom { border-top: 1px solid #16285A; padding-top: 20px; padding-bottom: 32px; font-size: 13px; }

/* WhatsApp button */
.whatsapp { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; align-items: center; gap: 10px; background: #1FAF55; color: #FFFFFF; font-weight: 600; font-size: 15px; padding: 12px 20px 12px 14px; border-radius: 999px; text-decoration: none; box-shadow: 0 12px 30px -8px rgba(0,0,0,.45); }
.whatsapp:hover { color: #FFFFFF; background: #189A4A; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    .section { padding-top: 72px; }
    .products { margin-top: 56px; padding: 64px 0; }
    .about { gap: 40px; padding: 64px 0; }
    .hero-actions { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; }
    .hero-actions .btn { flex: 1 1 220px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
    /* phone menu */
    .menu-toggle { display: flex; }
    .mainnav nav { display: none; flex-direction: column; gap: 0; padding: 0 0 10px; white-space: normal; }
    .mainnav nav.open { display: flex; }
    .mainnav nav a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
    .mainnav nav a.active, .mainnav nav a:hover { border-bottom-color: rgba(255,255,255,.12); }
    /* bigger hero picture on phones (shows the worker) */
    .hero-banner img { height: 210px; object-fit: cover; object-position: 62% center; }
    .hero-strip { padding-top: 36px; }
    .section { padding-top: 56px; }
    .software-strip { padding: 14px; }
    .contact-band .btn { width: 100%; }
    .footer-grid { padding-top: 44px; }
    .topbar .container { justify-content: center; text-align: center; }
    .topbar .tagline { display: none; }
    .header-inner { justify-content: center; }
    .callbox { display: none; }
    .hero-strip { padding-bottom: 110px; }
    .promise { border-right: 0; border-bottom: 1px solid #EEF1F7; }
    .howwork { padding: 28px; }
    .whatsapp span { display: none; }
    .whatsapp { padding: 12px; }
}

/* ---------- Contact page ---------- */
.contact-page { display: flex; flex-wrap: wrap; gap: 40px; }
.contact-info { flex: 1 1 300px; min-width: 0; }
.contact-info .section-title { margin-bottom: 12px; }
.contact-info p { color: var(--muted); line-height: 1.7; }
.contact-info strong { color: var(--navy); }
.contact-form-box { flex: 2 1 420px; min-width: 0; background: #F8FAFE; border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.contact-form-box h2 { margin: 0 0 8px; color: var(--navy); }
.contact-form-box label { display: block; font-weight: 600; margin: 16px 0 6px; color: var(--navy); }
.input { width: 100%; padding: 12px 14px; border: 1px solid #C9D2E0; border-radius: 8px; font: inherit; background: #FFFFFF; }
.input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.input-validation-error { border-color: #C62828; }
.field-error { color: #C62828; font-size: 14px; }
.validation-summary-valid { display: none; }
.alert-success { background: #E7F7EE; color: #14632E; padding: 14px 16px; border-radius: 8px; margin-bottom: 12px; }
.contact-form-box .btn { margin-top: 22px; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
@media (max-width: 700px) { .contact-form-box { padding: 20px; } .contact-form-box .btn { width: 100%; } }
