/* theme.css: AI for Architects brand layer.
   Charcoal, brushed gold and white, taken from the logo. Loaded last on every page,
   so the tokens below drive the colours used in each page's own styles. */

:root {
  /* Surfaces */
  --bg: #15191c;
  --bg-alt: #1a1f23;
  --bg-deep: #101316;
  --hero-bg: #11161a;
  --surface: #1e2327;
  --surface-2: #272d32;
  --line: #30373d;
  --line-strong: #444c53;

  /* Text */
  --text: #f4f2ee;
  --text-soft: #d2d4d5;
  --muted: #a3a8ac;
  --faint: #868c91;

  /* Brushed gold */
  --accent: #c6a875;
  --accent-hover: #d8c095;
  --accent-rgb: 198, 168, 117;
  --on-accent: #15191c;

  /* Navigation */
  --nav-height: 72px;
  --nav-bg: rgba(16, 19, 22, 0.94);
  --nav-bg-solid: #101316;

  /* Type and shape */
  --font-head: 'Barlow', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 8px;
}

html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .section-title, .hero-title { font-family: var(--font-head); letter-spacing: 0.005em; }
::selection { background: rgba(var(--accent-rgb), 0.35); color: var(--text); }

/* ---------- Navigation ---------- */
.nav-container {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  height: var(--nav-height);
  padding: 0;
  display: flex;
  align-items: center;
}
.nav-content { width: 100%; }
.nav-logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.nav-mark { display: block; height: 44px; width: auto; }
.nav-wordmark {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.nav-wordmark-accent { color: var(--accent); font-size: 0.8rem; }
.nav-wordmark > span:last-child { color: var(--text); font-size: 1.12rem; margin-top: 0.2rem; }

.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links .nav-link,
.nav-links .nav-link:hover,
.nav-links .nav-link.active {
  background: transparent;
  border-radius: 0;
  padding: 0.4rem 0;
  font-size: 0.93rem;
  font-weight: 500;
  position: relative;
  text-decoration: none;
}
.nav-links .nav-link { color: var(--text-soft); transition: color 0.2s ease; }
.nav-links .nav-link:hover { color: var(--text); }
.nav-links .nav-link.active { color: var(--accent); }
.nav-links .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
}
.nav-toggle { color: var(--text); }

.lang-switch { border: 1px solid var(--line); border-radius: 4px; margin-left: 0.4rem; }
.lang-btn { color: var(--muted); font-family: var(--font-body); letter-spacing: 0.04em; }
.lang-btn:hover { background: var(--surface-2); color: var(--text); }
.lang-btn.active { background: var(--accent); color: var(--on-accent); }

@media (max-width: 768px) {
  .nav-mark { height: 38px; }
  .nav-wordmark-accent { font-size: 0.72rem; }
  .nav-wordmark > span:last-child { font-size: 1rem; }
  .nav-links {
    top: var(--nav-height);
    background: var(--nav-bg-solid);
    border-bottom: 1px solid var(--line);
    gap: 0;
    align-items: stretch;
  }
  .nav-links .nav-link,
  .nav-links .nav-link:hover,
  .nav-links .nav-link.active {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav-links .nav-link.active::after { left: 0; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .lang-switch { margin: 1rem 2rem; align-self: flex-start; }
}

/* ---------- Sections and type ---------- */
.section-title {
  font-weight: 600;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.2;
  color: var(--text);
}
.section-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin: 1.1rem auto 0;
  background: var(--accent);
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: none;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  border: 1px solid rgba(var(--accent-rgb), 0.7);
  color: var(--accent);
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.btn-secondary:hover { background: rgba(var(--accent-rgb), 0.1); }

/* ---------- Cards and icons ---------- */
.card-icon {
  background: transparent;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: var(--radius);
  color: var(--accent);
}

/* ---------- Homepage hero ---------- */
.hero-section { background: var(--hero-bg); }
.hero-banner { display: block; width: 100%; max-width: 1920px; height: auto; margin: 0 auto; }
.hero-subtitle {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero-description { color: var(--text-soft); }
@media (max-width: 600px) {
  .hero-section picture { display: block; padding-top: 1.5rem; }
  .hero-banner { max-width: 340px; border-radius: var(--radius); }
}

/* ---------- What we do ---------- */
.wwd-num { font-family: var(--font-head); font-weight: 600; color: var(--accent); }
.wwd-text h3 { font-family: var(--font-head); font-weight: 600; }
.wwd-desc { color: var(--text-soft); }
.wwd-media img { border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35); }

/* ---------- Services ---------- */
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.price-card.featured { border: 1px solid var(--accent); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.25); }
.badge { border-radius: 4px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Tools directory ---------- */
.tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: none; }
.tool-card:hover { border-color: rgba(var(--accent-rgb), 0.55); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35); }

/* ---------- About ---------- */
.about-photo { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* ---------- Forms ---------- */
input:focus, textarea:focus, select:focus { outline: none; box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.55); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-bottom: 1rem; }
.footer-logo img { display: block; height: 44px; width: auto; }
.site-footer p { color: var(--muted); line-height: 1.6; }
.site-footer h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent); }
.social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.social-links a:hover { color: var(--accent); border-color: var(--accent); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); text-align: center; }
.footer-bottom p { color: var(--faint); font-size: 0.9rem; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Standalone pages (404, thank you) ---------- */
.page-mark { display: inline-block; margin-bottom: 1.75rem; }
.page-mark img { display: block; height: 72px; width: auto; }
.price-card .badge { align-self: flex-start; }
