/* Bunyodbek Web Design — studio site styles */

:root {
  --ink: #16161A;
  --muted: #55565B;
  --grey: #F7F7F5;
  --white: #fff;
  --orange: #FF6A00;
  --orange-hover: #E05D00;
  --orange-text: #B84A00; /* AA-contrast orange for small text on white/grey */
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo-tile { width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 1.3rem/1 var(--serif); flex: none; }
.logo-word { font: 700 1.15rem/1.1 var(--serif); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; border-radius: 999px; border: 0; font: 600 .98rem/1 var(--sans); text-decoration: none; color: #fff; cursor: pointer; white-space: nowrap; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: #000; }
.btn-orange { background: var(--orange); box-shadow: 0 10px 22px -12px rgba(255, 106, 0, .8); }
.btn-orange:hover { background: var(--orange-hover); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #ECECEA; }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .94rem; font-weight: 500; color: var(--ink); padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform .2s ease; }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { margin-left: 8px; }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.band { background: var(--grey); }
.sec-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.eyebrow { color: var(--orange-text); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
.sec-head .lead { margin-top: 18px; color: var(--muted); font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero { padding: 112px 0 120px; text-align: center; }
.hero .eyebrow { margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; max-width: 880px; margin: 0 auto 26px; }
.hero-sub { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 1.12rem; }
.hero .btn-row { justify-content: center; margin-top: 38px; }
.hero-note { margin-top: 20px; font-size: .92rem; color: var(--muted); }

/* ---------- work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.work-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.work-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0, 0, 0, .12); }
.browser { margin: 18px 18px 0; border-radius: 10px; overflow: hidden; border: 1px solid #E6E6E3; background: #fff; }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; background: #F1F1EF; border-bottom: 1px solid #E6E6E3; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D3D3D0; }
.browser-bar span { margin-left: 8px; flex: 1; height: 16px; border-radius: 999px; background: #fff; font: 500 10px/16px var(--sans); color: #8A8B90; padding: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser-shot { aspect-ratio: 1280 / 800; overflow: hidden; background: #fff; }
.browser-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tile { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font: 700 4rem/1 var(--serif); }
.work-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.work-body h3 { font-size: 1.3rem; }
.work-tag { color: var(--muted); font-size: .92rem; }
.work-link { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--orange-text); text-decoration: none; }
.work-link:hover { text-decoration: underline; }
.work-note { text-align: center; margin-top: 26px; font-size: .9rem; color: var(--muted); }
.cta-card { margin: 40px auto 0; max-width: 720px; border: 2px dashed #CFCFCB; border-radius: var(--radius); padding: 44px 32px; text-align: center; background: transparent; }
.cta-card h3 { font-size: 1.6rem; margin-bottom: 10px; }
.cta-card p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }

/* ---------- included ---------- */
.inc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.inc-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 28px; }
.inc-icon { width: 48px; height: 48px; border-radius: 12px; background: #FFF1E6; color: var(--orange); display: grid; place-items: center; margin-bottom: 18px; }
.inc-icon svg { width: 24px; height: 24px; }
.inc-card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.inc-card p { color: var(--muted); font-size: .97rem; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 28px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 1.1rem/1 var(--serif); margin-bottom: 18px; }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .97rem; }
.steps-note { text-align: center; margin-top: 36px; font-weight: 500; }

/* ---------- about ---------- */
.about { max-width: 760px; margin: 0 auto; text-align: center; }
.about p { color: var(--muted); font-size: 1.07rem; margin-bottom: 18px; }
.about .about-link { margin-top: 10px; color: var(--ink); font-weight: 500; }
.about .about-link a { color: var(--orange-text); font-weight: 600; text-decoration: none; }
.about .about-link a:hover { text-decoration: underline; }

/* ---------- contact ---------- */
.contact { max-width: 760px; margin: 0 auto; text-align: center; }
.contact-line { color: var(--muted); font-size: 1.07rem; }
.contact-email { display: inline-block; margin-top: 34px; font: 700 clamp(1.15rem, 3.2vw, 2rem)/1.3 var(--serif); color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--orange); padding-bottom: 4px; overflow-wrap: anywhere; }
.contact-email:hover { color: var(--orange-text); }
.contact-alt { margin-top: 24px; font-size: 1rem; }
.contact-alt a { color: var(--orange-text); font-weight: 600; text-decoration: none; }
.contact-alt a:hover { text-decoration: underline; }
.contact-small { margin-top: 12px; font-size: .9rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 48px 0 32px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .logo { color: #fff; }
.site-footer .logo-tile { background: #fff; color: var(--ink); }
.footer-tag { color: #C9C9CC; font-size: .95rem; }
.footer-email { color: #fff; font-weight: 500; text-decoration: none; }
.footer-email:hover { color: #FFB47F; }
.footer-copy { margin-top: 32px; padding-top: 22px; border-top: 1px solid #2C2C31; color: #9C9CA1; font-size: .85rem; text-align: center; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .work-grid, .inc-grid, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 36px); }
  .section { padding: 76px 0; }
  .hero { padding: 72px 0 80px; }
  .work-grid, .inc-grid, .steps { grid-template-columns: 1fr; }
  .sec-head { margin-bottom: 40px; }
  .btn-row .btn { flex: 1 1 200px; }
  .footer-top { flex-direction: column; text-align: center; }
  .cta-card { padding: 34px 22px; }
}
@media (max-width: 420px) {
  .logo-word { font-size: 1rem; }
  .logo-tile { width: 34px; height: 34px; font-size: 1.15rem; }
  .header-cta { padding: 0 14px; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
