/* ============================================================
   Kotar DOO — static site styles
   Brand: deep navy + gold accent, cream cards
   ============================================================ */

:root {
  --navy-900: #0a1526;
  --navy-800: #0d1a30;
  --navy-700: #101f38;
  --navy-600: #16233d;
  --ink: #16233d;
  --gold: #c19a5b;
  --gold-soft: #d3b483;
  --cream: #f4f1ea;
  --cream-2: #efeae0;
  --paper: #ffffff;
  --muted: #5a6373;
  --muted-light: #97a0b0;
  --line: rgba(255, 255, 255, 0.10);
  --line-dark: rgba(22, 35, 61, 0.12);
  --radius: 14px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-lg { padding: 17px 34px; font-size: 1.02rem; }
.btn-gold { background: var(--gold); color: #1a1206; }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 21, 38, 0.0);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 21, 38, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px;
  display: block;
  border-radius: 9px;
}
.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  color: #fff;
}
.brand-dot { color: var(--gold); }

.nav { display: flex; gap: 34px; margin-left: auto; margin-right: 28px; }
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.28s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(10, 21, 38, 0.98);
  border-top: 1px solid var(--line);
  padding: 8px 24px 18px;
}
.mobile-menu a {
  padding: 14px 0;
  color: rgba(255,255,255,0.82);
  font-family: var(--font-head);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 130% at 80% -10%, #16294a 0%, var(--navy-800) 42%, var(--navy-900) 100%);
  color: #fff;
  padding: 170px 0 120px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -180px; right: -140px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(193,154,91,0.22) 0%, rgba(193,154,91,0) 68%);
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; }
.hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.hero-title .accent { color: var(--gold); }
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: rgba(255,255,255,0.74);
  max-width: 620px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 12px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
}
.hero-meta strong { color: #fff; font-weight: 600; }
.hero-meta .dot { color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: #34415c;
  max-width: 780px;
  line-height: 1.7;
}

/* ---------- About facts ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 60px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact {
  background: var(--paper);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fact-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  font-weight: 600;
}
.fact-value {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}

/* ---------- Services ---------- */
.section-services { background: var(--cream); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 34px 30px;
  border-left: 3px solid var(--gold);
  box-shadow: 0 1px 2px rgba(22,35,61,0.04);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -18px rgba(16,31,56,0.35);
}
.service-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.22rem;
  margin-bottom: 12px;
  color: var(--ink);
}
.service-card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Work / Projects ---------- */
.section-work { background: var(--paper); }
.project {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 30px;
  padding: 52px 0;
  border-top: 1px solid var(--line-dark);
}
.project:last-of-type { border-bottom: 1px solid var(--line-dark); }
.project-index {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--cream-2);
  line-height: 1;
  -webkit-text-stroke: 1px var(--gold);
  color: transparent;
}
.project-cat {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.project-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--ink);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.project-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 44px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 24px;
}
.project-specs > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.98rem;
  color: var(--ink);
}
.project-specs span {
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-light);
  font-weight: 600;
}
.project-specs a { color: var(--gold); font-weight: 600; }
.project-specs a:hover { text-decoration: underline; }
.project-desc { color: var(--muted); max-width: 760px; margin-bottom: 22px; }
.delivered {
  list-style: none;
  display: grid;
  gap: 9px;
  margin-bottom: 26px;
}
.delivered li {
  position: relative;
  padding-left: 24px;
  color: #3b475e;
  font-size: 0.96rem;
}
.delivered li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 2px;
  transform: rotate(45deg);
}
.project-link {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}
.project-link:hover { color: var(--gold); }

/* ---------- Contact ---------- */
.section-contact {
  background: radial-gradient(120% 130% at 20% -20%, #16294a 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: #fff;
  text-align: center;
}
.contact-inner { max-width: 660px; margin: 0 auto; }
.contact-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.contact-sub {
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
  margin-bottom: 38px;
}
.contact-email {
  margin-top: 26px;
  font-family: var(--font-head);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.55);
}
.contact-email a {
  color: var(--gold);
  border-bottom: 1px solid rgba(193,154,91,0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease);
}
.contact-email a:hover { border-bottom-color: var(--gold); }

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.field label {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #fff;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,0.35); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.08);
}
.contact-form .btn { margin-top: 6px; }

/* Honeypot — hide from users, keep in DOM for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Submission status banner */
.form-status {
  max-width: 620px;
  margin: 0 auto 24px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.98rem;
  text-align: left;
}
.form-status.success {
  background: rgba(122, 184, 122, 0.12);
  border: 1px solid rgba(122, 184, 122, 0.4);
  color: #cfe9cf;
}
.form-status.error {
  background: rgba(214, 120, 120, 0.12);
  border: 1px solid rgba(214, 120, 120, 0.4);
  color: #f0cccc;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand-text { font-size: 1.3rem; }
.footer-brand p { margin-top: 12px; max-width: 280px; font-size: 0.95rem; }
.footer-details p { font-size: 0.92rem; line-height: 1.9; }
.footer-details strong { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--muted-light);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .hero { padding: 140px 0 90px; }
  .section { padding: 80px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; gap: 8px; }
  .project-index { font-size: 2rem; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .service-card:hover { transform: none; }
}
