/* Mindolo Software Solutions — website
   Palette: logo red + white. Panels use white toned down with a hint of the red; no greys. Type: Century Gothic (bundled look-alike as fallback). */

@font-face { font-family: "Mindolo Gothic"; src: local("Century Gothic"), url("../fonts/adventor-regular.woff2") format("woff2"); font-weight: 100 549; font-style: normal; font-display: swap; }
@font-face { font-family: "Mindolo Gothic"; src: local("Century Gothic Bold"), local("CenturyGothic-Bold"), url("../fonts/adventor-bold.woff2") format("woff2"); font-weight: 550 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Mindolo Gothic"; src: local("Century Gothic Italic"), url("../fonts/adventor-italic.woff2") format("woff2"); font-weight: 100 549; font-style: italic; font-display: swap; }

:root {
  --red: #F0281D;
  --red-deep: #C91F15;
  --red-wash: #FDECEB;
  --ink: #2B1E1D;        /* headings: near-black with a red undertone */
  --body: #6A4E4B;       /* body text: warm, not grey */
  --soft: #A8837E;       /* small print */
  --tint: #FDF3F2;       /* white, toned down with a hint of the logo red */
  --line: #F2E1DF;
  --line-strong: #EBC9C5;
  --white: #FFFFFF;
  --font: "Century Gothic", CenturyGothic, "Mindolo Gothic", AppleGothic, sans-serif;
  --fs: 1.04;          /* text & control size; grows with screen width below */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --space: clamp(64px, 9vw, 112px);
}

@media (min-width: 1500px) { :root { --fs: 1.1;  --wrap: 1360px; } }
@media (min-width: 1800px) { :root { --fs: 1.18; --wrap: 1560px; } }
@media (min-width: 2300px) { :root { --fs: 1.3;  --wrap: 1820px; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(90px * var(--fs)); }
body { margin: 0; font-family: var(--font); font-size: calc(17px * var(--fs)); line-height: 1.6; color: var(--body); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.12; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: calc(50px * var(--fs)); padding: 0 26px; border-radius: 6px; font-weight: 700; font-size: calc(16px * var(--fs)); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-line { border-color: var(--red); color: var(--red); background: #fff; }
.btn-line:hover { background: var(--red); color: #fff; }
.btn-whatsapp { margin-top: 28px; }
.btn-whatsapp svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header::before { content: ""; display: block; height: 4px; background: var(--red); }
.header-row { display: flex; align-items: center; gap: 28px; height: calc(72px * var(--fs)); }
.brand img { width: calc(160px * var(--fs)); height: auto; }
.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: calc(15px * var(--fs)); }
.nav a:not(.btn):hover { color: var(--red); }
.nav-cta { min-height: calc(42px * var(--fs)); padding: 0 18px; font-size: calc(15px * var(--fs)); color: #fff !important; }
.login { display: inline-flex; align-items: center; gap: 6px; font-size: calc(13px * var(--fs)); font-weight: 700; color: var(--body); text-decoration: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 11px; }
.login svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.login:hover { color: var(--red); border-color: var(--red); }
.menu { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.menu span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 88px); background: linear-gradient(to right, var(--white) 55%, var(--tint) 55%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 3.6vw, 4.4rem); max-width: 19ch; text-wrap: balance; }
.lead { margin-top: 24px; font-size: calc(18.5px * var(--fs)); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.frame { margin: 0; background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 1px 0 rgba(120,20,12,.04), 0 18px 40px -18px rgba(120,20,12,.28); }
.bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--tint); border-bottom: 1px solid var(--line); }
.bar i { width: 9px; height: 9px; border-radius: 50%; background: #F3C3C0; }
.bar i:first-child { background: var(--red); }
.bar span { margin-left: 10px; font-size: calc(11.5px * var(--fs)); color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { width: 100%; height: auto; aspect-ratio: 1400 / 672; object-fit: cover; object-position: top; }

.hero-stack { position: relative; aspect-ratio: 1.32; }
.hero-stack .frame { position: absolute; width: 78%; }
.f-back-a { top: 0; left: 0; }
.f-back-b { top: 10%; right: 0; }
.f-front { bottom: 0; left: 9%; width: 84% !important; box-shadow: 0 2px 0 rgba(120,20,12,.05), 0 30px 60px -22px rgba(120,20,12,.4); }

/* One orchestrated entrance: the three windows settle into a stack */
@media (prefers-reduced-motion: no-preference) {
  .hero-stack .frame { animation: settle .9s cubic-bezier(.2,.8,.2,1) both; }
  .f-back-a { animation-delay: .05s !important; --from: translate(-18px, 14px); }
  .f-back-b { animation-delay: .18s !important; --from: translate(18px, 14px); }
  .f-front  { animation-delay: .32s !important; --from: translate(0, 28px); }
  @keyframes settle { from { opacity: 0; transform: var(--from); } to { opacity: 1; transform: none; } }
}

/* ---------- Service bar (the letterhead line) ---------- */
.servicebar { background: var(--red); }
.servicebar-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: calc(64px * var(--fs)); overflow-x: auto; scrollbar-width: none; }
.servicebar-row::-webkit-scrollbar { display: none; }
.servicebar a { color: #fff; text-decoration: none; font-weight: 700; font-size: clamp(13px, 1.1vw, 22px); letter-spacing: .08em; white-space: nowrap; padding: 6px 2px; border-bottom: 2px solid transparent; }
.servicebar a:hover { border-bottom-color: #fff; }
.servicebar span { color: rgba(255,255,255,.55); font-weight: 400; }

/* ---------- Sections ---------- */
.section { padding: var(--space) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 2.6vw, 3.4rem); }
.section-head p { max-width: 52ch; }

/* Services: a definition-style list, not a card grid */
.services { border-top: 2px solid var(--red); }
.service { display: grid; grid-template-columns: calc(300px * var(--fs)) minmax(0, 1fr) calc(280px * var(--fs)); gap: 20px 48px; padding: 32px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.service-name { display: flex; align-items: center; gap: 14px; }
.service-name svg { width: 30px; height: 30px; flex-shrink: 0; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: calc(22px * var(--fs)); }
.service p { max-width: 60ch; }
.service ul { list-style: none; margin: 0; padding: 0; font-size: calc(15px * var(--fs)); color: var(--ink); }
.service li { padding: 3px 0 3px 18px; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 2px; background: var(--red); }
.service:target { background: linear-gradient(to right, var(--red-wash), transparent 70%); }

/* Work: toned-down white band */
.work { background: var(--tint); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.project .kind { display: inline-block; margin-top: 18px; font-size: calc(13px * var(--fs)); font-weight: 700; color: #fff; background: var(--red); padding: 2px 10px; border-radius: 3px; }
.project h3 { font-size: calc(19px * var(--fs)); margin-top: 10px; }
.project p { margin-top: 8px; font-size: calc(15.5px * var(--fs)); }
.project-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-bottom: 16px; }
.project-feature .kind { margin-top: 0; }
.project-feature h3 { font-size: clamp(1.6rem, 2.2vw, 2.8rem); margin-top: 14px; }
.project-feature p { font-size: calc(17px * var(--fs)); margin-top: 14px; max-width: 42ch; }

/* Process: a real sequence, so it's numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--red); padding-top: 22px; }
.steps li::before { content: counter(step); display: block; font-size: calc(44px * var(--fs)); font-weight: 700; line-height: 1; color: var(--red); margin-bottom: 14px; }
.steps h3 { font-size: calc(20px * var(--fs)); }
.steps p { margin-top: 10px; font-size: calc(15.5px * var(--fs)); }

/* ---------- Contact ---------- */
.contact { background: var(--tint); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact h2 { font-size: clamp(1.9rem, 2.6vw, 3.4rem); }
.contact-info > p { margin-top: 16px; max-width: 40ch; }
.contact dl { display: grid; grid-template-columns: 88px 1fr; gap: 12px 16px; margin: 32px 0 0; }
.contact dt { font-size: calc(14px * var(--fs)); color: var(--soft); padding-top: 2px; }
.contact dd { margin: 0; color: var(--ink); font-weight: 700; }
.contact dd a { text-decoration: none; }
.contact dd a:hover { color: var(--red); }

.enquiry { background: #fff; border-radius: 10px; padding: clamp(22px, 3.5vw, 36px); border: 1px solid var(--line); border-top: 4px solid var(--red); display: grid; gap: 18px; }
.enquiry label { display: grid; gap: 7px; font-size: calc(14px * var(--fs)); font-weight: 700; color: var(--ink); }
.enquiry .req { color: var(--red); }
.enquiry .lbl { display: block; }
.enquiry input, .enquiry select, .enquiry textarea { width: 100%; min-height: calc(48px * var(--fs)); padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--ink); font-weight: 400; font-size: calc(16px * var(--fs)); }
.enquiry textarea { resize: vertical; min-height: 130px; }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(240,40,29,.15); }
.enquiry [aria-invalid="true"] { border-color: var(--red); background: var(--red-wash); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { font-size: calc(15px * var(--fs)); font-weight: 700; }
.form-status.ok { color: #1E8E5A; }
.form-status.err { color: var(--red-deep); }
.enquiry.sent { border-top-color: #1E8E5A; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Footer: logo red ---------- */
.site-footer { background: var(--red); color: rgba(255,255,255,.88); padding: 56px 0 0; font-size: calc(14px * var(--fs)); }
.footer-grid { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; padding-bottom: 40px; }
.letterhead { display: grid; gap: 4px; text-align: right; line-height: 1.6; }
.letterhead strong { color: #fff; font-size: calc(16px * var(--fs)); }
.letterhead a { text-decoration: none; color: #fff; font-weight: 700; }
.letterhead a:hover { text-decoration: underline; }
.lh-services { color: #fff; font-weight: 700; letter-spacing: .06em; margin-top: 6px; }
.lh-web { font-weight: 700; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.3); font-size: calc(13px * var(--fs)); }
.footer-base a { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .service { grid-template-columns: 240px minmax(0, 1fr); }
  .service ul { grid-column: 2; }
  .work-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu { display: block; }
  .header-row { gap: 12px; }
  .login { margin-left: auto; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(120,20,12,.2); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--tint); font-size: calc(17px * var(--fs)); }
  .nav .nav-cta { margin-top: 14px; min-height: 50px; border-bottom: 0; }
  .menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { background: var(--white); }
  .hero-grid, .contact-grid, .section-head, .project-feature { grid-template-columns: 1fr; }
  .hero-stack { aspect-ratio: auto; }
  .hero-stack .f-back-a, .hero-stack .f-back-b { display: none; }
  .hero-stack .f-front { position: static; width: 100% !important; }
  .servicebar-row { justify-content: flex-start; gap: 18px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .letterhead { text-align: left; }
}
@media (max-width: 640px) {
  body { font-size: calc(16px * var(--fs)); }
  .brand img { width: 128px; }
  .service { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .service ul { grid-column: auto; }
  .work-grid, .steps, .row2 { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .footer-base { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
