/* ==========================================================================
   MechCon Technologies — Site Stylesheet
   Design system shared across every page. Ports cleanly to a CMS theme.
   ========================================================================== */

:root {
  --dark: #15110D;
  --dark2: #211A12;
  --gold: #D4AF37;
  --gold-deep: #A9822A;
  --gold-soft: #E9D9A8;
  --cream: #F7F3EA;
  --ink: #221E19;
  --body-text: #3A342C;
  --mute: #6E6759;
  --line: #E3D9BE;
  --white: #FFFFFF;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-md: 0 12px 32px rgba(21, 17, 13, 0.10);
  --shadow-lg: 0 24px 56px rgba(21, 17, 13, 0.18);
  --maxw: 1180px;
  --font-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; color: var(--ink); line-height: 1.2; margin: 0 0 16px 0; }
p { margin: 0 0 16px 0; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
section { position: relative; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--gold); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--dark); transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255,255,255,0.55); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--dark); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }

/* ---------------- topbar ---------------- */
.topbar {
  background: var(--dark); color: #C9BFA6; font-size: 13px;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding: 8px 24px; gap: 12px; flex-wrap: wrap; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar a { color: #C9BFA6; display:flex; align-items:center; gap:6px; }
.topbar a:hover { color: var(--gold); }
.topbar svg { width: 14px; height: 14px; flex: none; }
.topbar-social { display:flex; gap: 12px; }
.topbar-social a svg { width: 15px; height: 15px; }

/* ---------------- header / nav ---------------- */
header.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.97); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img, .brand-logo { height: 48px; width: auto; max-width: 44vw; }
nav.main-nav { display: flex; align-items: center; gap: 4px; }
nav.main-nav a { font-size: 14.5px; font-weight: 600; color: var(--ink); padding: 10px 14px; border-radius: var(--radius-pill); }
nav.main-nav a:hover, nav.main-nav a.active { color: var(--gold-deep); background: var(--cream); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display:none; background:none; border:none; cursor:pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw); height: 100vh;
    background: var(--dark); flex-direction: column; align-items: stretch;
    padding: 90px 24px 24px; gap: 4px; transform: translateX(100%);
    transition: transform .3s ease; overflow-y: auto;
  }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav a { color: #E9E2CE; padding: 14px 12px; border-radius: 8px; }
  nav.main-nav a:hover, nav.main-nav a.active { background: rgba(212,175,55,0.12); color: var(--gold); }
  .nav-cta { margin-left: 0; margin-top: 12px; }
  .nav-scrim { display:none; position: fixed; inset:0; background: rgba(0,0,0,0.4); z-index: 90; }
  .nav-scrim.open { display:block; }
}

/* ---------------- hero ---------------- */
.hero { position: relative; color: #fff; background: var(--dark); overflow:hidden; }
.hero-media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-scrim { position:absolute; inset:0; background: linear-gradient(180deg, rgba(21,17,13,0.55) 0%, rgba(21,17,13,0.80) 55%, rgba(21,17,13,0.96) 100%); }
.hero-inner { position: relative; z-index: 2; padding: 100px 24px 90px; max-width: var(--maxw); margin: 0 auto; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.kicker.dark { color: var(--gold-deep); }
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 54px); max-width: 820px; margin-bottom: 20px; }
.hero h1 .gold { color: var(--gold); }
.hero-lead { font-size: 18px; font-style: italic; color: #EFE6CE; max-width: 640px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-pills { display:flex; flex-wrap:wrap; gap:10px; }
.pill { display:inline-block; border:1.3px solid rgba(212,175,55,0.6); color:#F3EAD0; background: rgba(255,255,255,0.05); font-size:12.5px; font-weight:600; padding:8px 16px; border-radius:var(--radius-pill); }
.pill-light { border-color: var(--gold-deep); color: var(--ink); background:#FFFDF7; }

/* ---------------- page hero (interior pages, shorter) ---------------- */
.page-hero { position: relative; color:#fff; background: var(--dark); }
.page-hero .hero-inner { padding: 64px 24px 64px; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4.2vw, 42px); margin-bottom: 10px; }
.breadcrumbs { font-size: 13px; color: #B9AE8F; margin-bottom: 14px; }
.breadcrumbs a { color: #D8CFA9; } .breadcrumbs a:hover { color: var(--gold); }

/* ---------------- sections ---------------- */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--dark); color: #D9CFB2; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-lead { font-size: 17px; font-style: italic; color: var(--ink); }

/* ---------------- grid utilities ---------------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------------- cards ---------------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 30px; }
.card-accent { border-left: 4px solid var(--gold-deep); background: var(--cream); border-radius: var(--radius-sm); padding: 26px 28px; }
.card-accent h3 { font-size: 17px; margin-bottom: 8px; }
.card-accent p { font-size: 14.5px; color: var(--mute); margin-bottom: 0; }
.icon-badge { width: 52px; height: 52px; border-radius: 50%; background: var(--dark); color: var(--gold); display:flex; align-items:center; justify-content:center; font-weight:700; font-size: 17px; margin-bottom: 18px; }
.stat { border: 1px solid var(--line); background: var(--cream); padding: 20px 22px; border-radius: var(--radius-sm); }
.stat-label { font-size: 11.5px; font-weight:700; letter-spacing:1.4px; text-transform:uppercase; color: var(--gold-deep); margin-bottom:6px; }
.stat-value { font-size: 16px; font-weight:700; color: var(--ink); }

.quote-block { border-left: 4px solid var(--gold-deep); background: var(--cream); padding: 26px 30px; font-size: 18px; font-style: italic; font-weight: 500; color: #35302A; border-radius: var(--radius-sm); }
.quote-block.on-dark { border-left-color: var(--gold); background: rgba(255,255,255,0.06); color: #EFE6CE; }

/* ---------------- numbered items ---------------- */
.numgrid { display:grid; grid-template-columns: 1fr 1fr; gap: 34px 44px; }
@media (max-width: 700px) { .numgrid { grid-template-columns: 1fr; } }
.numitem { border-top: 1px solid var(--line); padding-top: 18px; }
.numitem .n { font-size: 30px; font-weight: 700; color: var(--gold-deep); font-family: var(--font-head); }
.numitem h3 { font-size: 17px; margin: 8px 0 6px; }
.numitem p { font-size: 14.5px; color: var(--mute); margin-bottom: 0; }

/* ---------------- service list rows (tech services) ---------------- */
.svc-row { display:flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items:flex-start; }
.svc-row:last-child { border-bottom: none; }
.svc-num { width: 42px; height: 42px; min-width:42px; border-radius:50%; background: var(--dark); color: var(--gold); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:15px; }
.svc-row h3 { font-size: 17px; margin-bottom: 6px; }
.svc-row p { font-size: 14.5px; color: var(--mute); margin-bottom: 0; }

/* ---------------- process steps ---------------- */
.steps { counter-reset: step; }
.step-row { display:flex; gap:22px; padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.step-row:last-child { border:none; margin:0; padding-bottom:0; }
.step-num { width:48px; height:48px; min-width:48px; border-radius:50%; background:var(--gold-deep); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:19px; }
.step-row h3 { font-size:18px; margin-bottom:6px; }
.step-row p { color: var(--mute); margin-bottom:0; max-width: 620px; }

/* ---------------- image + text split ---------------- */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split img, .split .imgbox { border-radius: var(--radius-md); overflow:hidden; box-shadow: var(--shadow-md); }
.split .imgbox { position:relative; }

/* ---------------- FAQ accordion ---------------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width:100%; text-align:left; background:none; border:none; cursor:pointer; padding: 22px 0; display:flex; justify-content:space-between; align-items:center; gap:16px; font-family: var(--font-head); font-weight:600; font-size:16.5px; color: var(--ink); }
.faq-q .plus { flex:none; width:22px; height:22px; position:relative; }
.faq-q .plus::before, .faq-q .plus::after { content:""; position:absolute; background: var(--gold-deep); transition: transform .2s ease; }
.faq-q .plus::before { left:0; top:50%; width:100%; height:2px; transform: translateY(-50%); }
.faq-q .plus::after { top:0; left:50%; height:100%; width:2px; transform: translateX(-50%); }
.faq-item.open .plus::after { transform: translateX(-50%) rotate(90deg); opacity:0; }
.faq-a { max-height:0; overflow:hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding-bottom:22px; color: var(--mute); font-size:15px; margin-bottom:0; }

/* ---------------- blog cards ---------------- */
.blog-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius-md); overflow:hidden; display:flex; flex-direction:column; transition: transform .15s ease, box-shadow .15s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card .thumb { aspect-ratio: 3/2; background-size:cover; background-position:center; position:relative; }
.blog-card .tag { position:absolute; top:14px; left:14px; background: var(--gold); color: var(--dark); font-size:11px; font-weight:700; letter-spacing:0.8px; text-transform:uppercase; padding:5px 12px; border-radius: var(--radius-pill); }
.blog-card .bbody { padding: 22px 22px 24px; display:flex; flex-direction:column; flex:1; }
.blog-card h3 { font-size:17px; margin-bottom:8px; }
.blog-card p { font-size:14px; color: var(--mute); flex:1; }
.blog-card .readmore { font-size:13.5px; font-weight:700; color: var(--gold-deep); margin-top:12px; }
.blog-meta { font-size: 12.5px; color: var(--mute); margin-bottom: 10px; letter-spacing: 0.3px; }

/* ---------------- article page ---------------- */
.article-body { max-width: 760px; margin: 0 auto; font-size: 16.5px; }
.article-body h2 { font-size: 24px; margin-top: 36px; }
.article-body h3 { font-size: 19px; margin-top: 26px; }
.article-body ul { margin: 0 0 20px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body p { margin-bottom: 20px; }
.article-hero-img { border-radius: var(--radius-md); overflow:hidden; margin-bottom: 8px; box-shadow: var(--shadow-md); }
.article-tags { display:flex; gap:10px; flex-wrap:wrap; margin: 28px 0 0; }

/* ---------------- contact page ---------------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 18px; }
.form-field label { display:block; font-size: 13.5px; font-weight:600; color: var(--ink); margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width:100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 8px;
  font-family: var(--font-body); font-size: 15px; color: var(--ink); background: #fff;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--gold-deep); }
.contact-info-item { display:flex; gap:14px; margin-bottom: 22px; }
.contact-info-item .ico { width:44px; height:44px; min-width:44px; border-radius:50%; background: var(--dark); color: var(--gold); display:flex; align-items:center; justify-content:center; }
.contact-info-item .ico svg { width:20px; height:20px; }
.contact-info-item h3 { font-size: 15px; margin-bottom: 3px; }
.contact-info-item p { font-size: 14.5px; color: var(--mute); margin-bottom: 0; }
.map-frame { border-radius: var(--radius-md); overflow:hidden; border:1px solid var(--line); }

/* ---------------- CTA band ---------------- */
.cta-band { background: var(--dark); color:#fff; padding: 70px 0; text-align:center; position:relative; overflow:hidden; }
.cta-band h2 { color:#fff; }
.cta-band p { color:#D9CFB2; max-width: 560px; margin: 0 auto 28px; }

/* ---------------- footer ---------------- */
footer.site-footer { background: var(--dark); color: #B9AE8F; font-size: 14px; }
.footer-top { padding: 64px 0 40px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display:flex; align-items:center; gap:10px; margin-bottom: 16px; }
.footer-brand img, .footer-logo { height: 54px; width: auto; max-width: 100%; }
.footer-tagline { font-size: 14px; color: #9C9187; max-width: 280px; margin-bottom: 20px; }
.footer-social { display:flex; gap: 10px; }
.footer-social a { width:36px; height:36px; border-radius:50%; border:1px solid rgba(212,175,55,0.35); display:flex; align-items:center; justify-content:center; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); }
.footer-social a:hover svg { fill: var(--dark); }
.footer-social svg { width:16px; height:16px; fill: #C9BFA6; }
.footer-col h4 { color: var(--gold); font-size: 12.5px; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-head); }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(212,175,55,0.18); padding: 22px 0; font-size: 12.8px; color: #8D8371; }
.footer-bottom .container { display:flex; justify-content:space-between; align-items:center; gap: 12px; flex-wrap:wrap; }
.footer-credit a { color: #C9BFA6; font-weight:600; }
.footer-credit a:hover { color: var(--gold); }

/* ---------------- WhatsApp floating button ---------------- */
.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
  transition: transform .15s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 30px; height: 30px; fill: #fff; }

/* ---------------- cookie consent ---------------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 300;
  max-width: 640px; margin: 0 auto;
  background: var(--dark); color: #E7DCC0; border: 1px solid rgba(212,175,55,0.3);
  border-radius: var(--radius-md); padding: 20px 24px;
  display:flex; align-items:center; gap:18px; flex-wrap:wrap;
  box-shadow: var(--shadow-lg);
  transform: translateY(140%); transition: transform .4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 13.5px; margin: 0; flex: 1; min-width: 220px; color: #D9CFB2; }
.cookie-banner a { text-decoration: underline; color: var(--gold); }

/* ---------------- back to top ---------------- */
.backtotop {
  position: fixed; right: 22px; bottom: 90px; z-index: 199;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--dark); color: var(--gold); border: 1px solid rgba(212,175,55,0.4);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  opacity:0; pointer-events:none; transition: opacity .2s ease, transform .15s ease;
}
.backtotop.show { opacity: 1; pointer-events: auto; }
.backtotop:hover { transform: translateY(-3px); }

@media (max-width: 480px) {
  .whatsapp-fab { width: 52px; height:52px; right:16px; bottom:16px; }
  .backtotop { right:16px; bottom:78px; }
  .hero-inner, .page-hero .hero-inner { padding-left:20px; padding-right:20px; }
}
