/* Mahathi Infra USA — site styles (mobile first) */

@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("../fonts/archivo-narrow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --charcoal: #1b1b1d;
  --ink: #222224;
  --body: #4d4d4f;
  --muted: #5a5a5c;
  --bg: #faf8f5;
  --bg-alt: #f2efea;
  --white: #ffffff;
  --rule: #ddd8d0;
  --rule-strong: #d3cdc3;
  --tile-border: #e6e2da;
  --input-border: #b9b3a9;
  --orange: #e8781a;
  --orange-logo: #f08020;
  --red: #b8282b;
  --on-dark: #c9c9cc;
  --on-dark-muted: #a0a0a4;
  --on-dark-rule: #3a3a3e;
  --eyebrow-dark: #f5b27a;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --narrow: "Archivo Narrow", "Arial Narrow", sans-serif;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--charcoal); color: var(--bg); padding: 10px 16px; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--bg); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--alt { background: var(--bg-alt); }

.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--orange); flex: none; }
.eyebrow--dark { color: var(--eyebrow-dark); }
.h2 { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -0.01em; color: var(--charcoal); }
.lede { color: var(--body); max-width: 420px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn--accent { background: var(--orange); color: var(--charcoal); }
.btn--accent:hover { background: #f08a33; color: var(--charcoal); }
.btn--dark { background: var(--charcoal); color: var(--bg); }
.btn--dark:hover { background: #333336; color: var(--bg); }
.btn--ghost { border-color: var(--on-dark); color: var(--bg); font-weight: 500; }
.btn--ghost:hover { background: rgba(255,255,255,.08); color: var(--bg); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; white-space: nowrap; }
.hide-sm { display: none; }
@media (min-width: 480px) { .hide-sm { display: inline; } }

/* Logo lockup */
.logo { display: inline-flex; flex-direction: column; gap: 2px; text-decoration: none; }
.logo img { width: 140px; height: 30px; }
.logo span { font-family: var(--narrow); font-size: 18px; line-height: 1; color: var(--orange-logo); padding-left: 2px; }
@media (min-width: 900px) {
  .logo { gap: 3px; }
  .logo img { width: 190px; height: 41px; }
  .logo span { font-size: 25px; }
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--rule); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 10px var(--gutter); max-width: 1440px; margin: 0 auto; }
.site-header__actions { display: flex; align-items: center; gap: 4px; }
.nav-toggle { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 0; }
.site-nav { display: none; }
.site-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: flex; align-items: center; min-height: 48px; font-size: 16px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) {
  .site-header__inner { min-height: 88px; }
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; padding: 0; border: 0; background: none; }
  .site-nav ul { display: flex; gap: 36px; }
  .site-nav a { min-height: 44px; font-size: 14px; border: 0; }
  .site-header__actions .btn--sm { padding: 0 22px; }
}

/* Hero: text + project collage */
.hero { background: var(--charcoal); color: var(--bg); padding: 56px 0 64px; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.hero h1 { max-width: 11ch; font-family: var(--serif); font-size: clamp(44px, 5.4vw, 80px); line-height: 1.03; letter-spacing: -0.015em; color: var(--bg); }
.hero .eyebrow { margin-bottom: 24px; }
.hero__sub { margin-top: 24px; max-width: 600px; font-size: clamp(16px, 1.4vw, 19px); color: #e2e2e4; }
.hero__ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
.hero__collage { margin: 0; }
.collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.collage__tile { position: relative; overflow: hidden; background: #2a2a2e; aspect-ratio: 1; }
.collage__tile--wide { grid-column: 1 / -1; aspect-ratio: 550 / 200; }
.collage__tile img { width: 100%; height: 100%; object-fit: cover; }
.collage__tile span { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 3px 8px; background: rgba(27, 27, 29, 0.78); color: #fff; font-size: 10px; letter-spacing: 0.03em; text-transform: uppercase; }
.hero__collage figcaption { margin-top: 12px; font-size: 13px; color: var(--on-dark-muted); }
@media (min-width: 640px) {
  .hero__ctas { flex-direction: row; flex-wrap: wrap; gap: 16px; }
}
@media (min-width: 1000px) {
  .hero { padding: 96px 0 104px; }
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; min-height: 560px; }
  .collage { gap: 10px; }
  .collage__tile span { left: 12px; bottom: 12px; font-size: 11px; letter-spacing: 0.06em; }
}

/* What we buy */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 32px; margin-bottom: 40px; }
.criteria { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); display: grid; grid-template-columns: 1fr; }
.criteria li { display: flex; gap: 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--rule-strong); }
.criteria__num { flex: none; width: 24px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--red); }
.criteria__label { font-family: var(--serif); font-size: 21px; line-height: 1.3; color: var(--charcoal); }
@media (min-width: 900px) {
  .section-head { margin-bottom: 56px; }
  .criteria { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .criteria li { flex-direction: column; gap: 40px; padding: 32px 28px 36px 0; }
  .criteria__label { font-size: 24px; line-height: 1.25; }
}

/* Why us */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
.card { background: var(--bg); padding: 28px 24px 30px; border-top: 2px solid var(--orange); }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.25; color: var(--charcoal); margin-bottom: 10px; }
.card p { color: var(--body); }
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 64px; }
  .card { padding: 44px 44px 48px; }
  .card h3 { font-size: 28px; margin-bottom: 16px; }
  .card p { font-size: 17px; }
}

/* Track record */
.record-band { background: var(--charcoal); color: var(--bg); padding: var(--section) 0 clamp(64px, 8vw, 112px); }
.record-band .h2 { color: var(--bg); max-width: 760px; margin-bottom: 40px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; border-top: 1px solid var(--on-dark-rule); padding-top: 28px; margin: 0; }
.stats div { margin: 0; }
.stats dt { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--orange); }
.stats dd { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--on-dark); }
@media (min-width: 900px) {
  .record-band .h2 { margin-bottom: 72px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 36px; }
  .stats dd { font-size: 15px; }
}

.credentials { display: grid; grid-template-columns: 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--rule); }
.label { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 20px; }
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.badges li, .clients li { background: var(--white); border: 1px solid var(--tile-border); display: flex; align-items: center; justify-content: center; }
.badges li { aspect-ratio: 1; }
.badges img { width: 80%; height: 80%; object-fit: contain; }
.clients li { height: 88px; padding: 18px 20px; }
.clients img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 900px) {
  .credentials { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; padding-bottom: 72px; }
  /* Same 4-column grid and tile shape on both sides so the tiles line up */
  .badges, .clients { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .badges li, .clients li { aspect-ratio: 5 / 4; height: auto; }
  .badges li { padding: 14px; }
  .badges img { width: 100%; height: 100%; }
  .clients li { padding: 22px 20px; }
}

.gallery-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin: 56px 0 28px; }
.gallery-head h3 { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; color: var(--charcoal); }
.gallery-head a { font-size: 14px; font-weight: 500; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 28px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-alt); }
.gallery figcaption { padding-top: 12px; }
.gallery strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 18px; line-height: 1.3; color: var(--charcoal); }
.gallery span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; } }
@media (min-width: 1000px) {
  .gallery-head { margin: 72px 0 40px; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
  .gallery strong { font-size: 20px; }
  .gallery span { font-size: 14px; }
}

/* How it works */
.steps { list-style: none; margin: 36px 0 0; padding: 0 0 0 28px; border-left: 1px solid #c8c2b8; display: grid; gap: 32px; }
.steps li { position: relative; }
.steps li::before { content: ""; position: absolute; left: -33px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--charcoal); }
.steps__num { font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--red); }
.steps__label { margin-top: 8px; font-family: var(--serif); font-size: 20px; line-height: 1.3; color: var(--charcoal); }
@media (min-width: 900px) {
  .steps { margin-top: 72px; padding: 0; border: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .steps li { border-top: 1px solid #c8c2b8; padding-top: 28px; }
  .steps li::before { left: 0; top: -5px; }
  .steps__num { font-size: 40px; }
  .steps__label { margin-top: 20px; font-size: 22px; }
}

/* Contact / form */
.contact { display: grid; grid-template-columns: 1fr; gap: 32px; }
.contact__intro p { margin-top: 16px; color: var(--body); max-width: 380px; }
.contact__email { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule-strong); font-size: 15px; }
.form { background: var(--white); border: 1px solid var(--rule); padding: 22px 18px 26px; }
.form__grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink); }
.field .req { color: var(--red); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border: 1px solid var(--input-border); border-radius: 0; background: var(--white); padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink); }
.field textarea { padding: 10px 12px; min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23222224' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field input::placeholder, .field textarea::placeholder { color: #8a8a8d; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--charcoal); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__captcha { margin-top: 22px; min-height: 78px; }
.form__actions { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.form__actions .btn { width: 100%; }
.form__note { font-size: 13px; color: var(--body); text-align: center; }
.form__status { margin-top: 16px; font-size: 15px; min-height: 1.6em; }
.form__status.is-error { color: var(--red); }
.form__status.is-success { color: #1f6b3a; }
.form.is-sent .form__grid, .form.is-sent .form__captcha, .form.is-sent .form__actions { display: none; }
@media (min-width: 900px) {
  .contact { grid-template-columns: minmax(280px, 1fr) minmax(0, 1.7fr); gap: 64px; }
  .contact__intro p { margin-top: 24px; }
  .contact__email { margin-top: 40px; padding-top: 28px; }
  .form { padding: 48px; }
  .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .field input, .field select { padding: 0 14px; font-size: 15px; }
  .field textarea { font-size: 15px; }
  .form__actions { flex-direction: row; align-items: center; gap: 20px; margin-top: 28px; }
  .form__actions .btn { width: auto; padding: 0 36px; }
  .form__note { text-align: left; font-size: 14px; }
}

/* Footer */
.site-footer { background: var(--charcoal); color: var(--on-dark); padding: 56px 0 40px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px 40px; padding-bottom: 32px; border-bottom: 1px solid var(--on-dark-rule); }
.site-footer .logo span { color: var(--orange-logo); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 15px; }
.site-footer a { color: var(--bg); }
.site-footer a:hover { color: var(--eyebrow-dark); }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__parent { margin-top: 24px; max-width: 640px; font-size: 14px; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 20px; font-size: 13px; color: var(--on-dark-muted); }
.site-footer__legal a { color: var(--on-dark); }

/* Simple pages */
.page { padding: clamp(56px, 8vw, 96px) 0; }
.page .container { max-width: 760px; }
.page h1 { font-family: var(--serif); font-size: clamp(36px, 4.4vw, 52px); line-height: 1.1; color: var(--charcoal); margin-bottom: 12px; }
.page h2 { font-family: var(--serif); font-size: 24px; color: var(--charcoal); margin: 40px 0 12px; }
.page p, .page li { color: var(--body); }
.page p + p { margin-top: 14px; }
.page .meta { font-size: 14px; color: var(--muted); }

/* Subtle fade-ins (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
