/* TDP Code — site styles. Colours and fonts come from business/brand.md */

:root {
  --bg: #0B0F14;
  --surface: #121821;
  --border: #1E2733;
  --text: #E6EDF3;
  --muted: #8B98A5;
  --cyan: #22D3EE;
  --cyan-hover: #67E8F9;
  --cyan-deep: #0891B2;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", Consolas, monospace;

  --radius: 12px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-hover); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) { .container { padding: 0 24px; } }

.mono { font-family: var(--font-mono); }
.accent { color: var(--cyan); }
.muted { color: var(--muted); }

/* Placeholder highlight so unfinished content is easy to spot */
.placeholder {
  background: rgba(34, 211, 238, 0.08);
  border: 1px dashed rgba(34, 211, 238, 0.5);
  border-radius: 4px;
  padding: 0 4px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.logo:hover { color: var(--text); }
.logo .br { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 0; }
  .nav-links .btn { margin-top: 8px; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--cyan); color: var(--bg); }
.btn-primary:hover { background: var(--cyan-hover); color: var(--bg); }
.btn-primary:active { background: var(--cyan-deep); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-links .btn-primary { color: var(--bg); padding: 8px 16px; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.eyebrow {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: block;
}
.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Hero ---------- */
.hero {
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, transparent 0%, var(--bg) 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 760px; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 600px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.page-hero { padding: 80px 0 40px; }
.page-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.alt .card { background: var(--bg); }
.card:hover { border-color: rgba(34, 211, 238, 0.5); }
.card p { color: var(--muted); }
.card .icon {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: inline-block;
}
.card .link { font-weight: 600; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 26px; position: relative; margin-bottom: 10px; color: var(--muted); }
.check-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step .num {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 8px;
}

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card .price { font-size: 1.6rem; font-weight: 700; color: var(--text); margin: 8px 0 16px; }
.price-card .price small { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.price-card .check-list { flex: 1; margin-bottom: 20px; }
.price-card.featured { border-color: var(--cyan); }
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--bg);
  background: var(--cyan);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 8px;
  align-self: flex-start;
}

.service-block { padding: 64px 0; border-bottom: 1px solid var(--border); }
.service-block:last-of-type { border-bottom: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 500; font-size: 0.9rem; }
td strong { color: var(--text); }

/* ---------- Portfolio ---------- */
.project-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), transparent 60%),
    var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  color: var(--muted);
  margin-bottom: 20px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
}

/* ---------- Testimonials ---------- */
.quote { font-size: 1.05rem; color: var(--text); }
.quote-by { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 320px 1fr; } }
.photo-placeholder {
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 1px dashed rgba(34, 211, 238, 0.5);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-mono);
  text-align: center;
  padding: 16px;
}
.skills { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at top, rgba(34, 211, 238, 0.12), transparent 70%),
    var(--surface);
  padding: 40px 28px 28px;
  text-align: center;
}
.brand-mark {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.6rem;
  margin-bottom: 28px;
}
.brand-mark .br { color: var(--cyan); }
.brand-facts { list-style: none; margin: 0; padding: 0; text-align: left; }
.brand-facts li { padding: 10px 0; border-top: 1px solid var(--border); color: var(--muted); }

.notice {
  border: 1px dashed rgba(34, 211, 238, 0.5);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  background: var(--surface);
}
.notice p { color: var(--muted); max-width: 560px; margin: 0 auto 24px; }

/* ---------- CTA band ---------- */
.cta {
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.1), transparent 70%);
}
.cta p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }

/* ---------- Forms ---------- */
.contact-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1.4fr 1fr; } }

.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.95rem; }
input, select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
textarea { min-height: 140px; resize: vertical; }
.form-status { margin: 0; font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--cyan); }
.form-status.error { color: #F87171; }
.hidden { display: none !important; }
button[disabled] { opacity: 0.6; cursor: wait; }

.whatsapp-alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.btn-whatsapp { border-color: var(--border); color: var(--text); }
.btn-whatsapp::before { content: "#"; font-family: var(--font-mono); color: var(--cyan); margin-right: 8px; font-weight: 700; }
.btn-whatsapp:hover { border-color: var(--cyan); color: var(--cyan); }

.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-item .icon { font-family: var(--font-mono); color: var(--cyan); font-weight: 700; min-width: 28px; }
.contact-item p { margin: 0; }

/* ---------- FAQ ---------- */
details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-mono); color: var(--cyan); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 12px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; margin-bottom: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { color: var(--text); margin: 0 0 12px; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
