/* ============================================================
   DIOGENES DESIGNS — main.css
   Design System: Dark #0A0A0A + Gold #C8A96E
   Mobile-first | WCAG 2.1 AA | 8px spacing grid
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --bg:          #0A0A0A;
  --surface:     #141414;
  --surface-2:   #1C1C1C;
  --surface-3:   #242424;
  --border:      #2A2A2A;
  --border-gold: rgba(200,169,110,0.25);
  --text:        #F0F0F0;
  --text-muted:  #888888;
  --text-dim:    #555555;
  --gold:        #C8A96E;
  --gold-hover:  #DDB97E;
  --gold-light:  rgba(200,169,110,0.12);
  --nav-h:       72px;
  --max-w:       1200px;
  --radius:      4px;
  --radius-lg:   8px;
  --transition:  180ms ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-hover); }
button { cursor: pointer; font-family: inherit; }

/* ── Skip Link (Accessibility) ─────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--gold);
  color: #000;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 8px; }

/* ── Layout Utilities ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 600px)  { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

.section { padding: 64px 0; }
@media (min-width: 1024px) { .section { padding: 96px 0; } }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 560px;
}

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo svg { height: 48px; width: auto; }
.nav-links {
  display: none;
  list-style: none;
  gap: 32px;
  align-items: center;
}
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-cta {
  display: none;
}
@media (min-width: 768px) { .nav-cta { display: flex; } }

/* Mobile hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
@media (min-width: 768px) { .nav-hamburger { display: none; } }
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  padding: 32px 24px;
  flex-direction: column;
  gap: 8px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav-drawer .btn-primary { margin-top: 24px; text-align: center; width: 100%; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: #0A0A0A;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  min-height: 44px;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--gold-hover);
  color: #0A0A0A;
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 11px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-height: 44px;
  transition: border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-lg {
  font-size: 15px;
  padding: 14px 32px;
  min-height: 52px;
}

/* ── Page Header (non-hero pages) ──────────────────────────── */
.page-header {
  padding: calc(var(--nav-h) + 64px) 0 64px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.page-header .section-label { margin-bottom: 12px; }
.page-header h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.page-header p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
}

/* ── Gold Rule ──────────────────────────────────────────────── */
.gold-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 20px 0;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}
.card-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Grid ───────────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 600px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 600px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ── Stats Bar ──────────────────────────────────────────────── */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.stats-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  justify-content: center;
  align-items: center;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  white-space: nowrap;
}
.stat-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── Process Steps ──────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
}
.step h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}
.step p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── CTA Section ────────────────────────────────────────────── */
.cta-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 80px 0;
}
.cta-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group label .req {
  color: var(--gold);
  margin-left: 2px;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 16px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .span-2 { grid-column: 1 / -1; }
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--text); }
.footer-col address {
  font-style: normal;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}
.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-dim);
}

/* ── Page body offset for fixed nav ────────────────────────── */
.page-body { padding-top: var(--nav-h); }

/* ── Service Detail Block ───────────────────────────────────── */
.service-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1024px) {
  .service-block { grid-template-columns: 1fr 1fr; gap: 80px; }
  .service-block.reverse { direction: rtl; }
  .service-block.reverse > * { direction: ltr; }
}
.service-block-content h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.service-block-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.service-block-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Materials Table ─────────────────────────────────────────── */
.materials-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 16px;
}
.materials-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.materials-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}
.materials-table td:first-child {
  color: var(--text);
  font-weight: 600;
}
.materials-table tr:last-child td { border-bottom: none; }
.materials-table tr:hover td { background: var(--surface-2); }

/* ── Tag / Pill ──────────────────────────────────────────────── */
.tag {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border-gold);
}

/* ── Alert box ───────────────────────────────────────────────── */
.alert {
  background: var(--gold-light);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.alert strong { color: var(--gold); }

/* ── List style ──────────────────────────────────────────────── */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}
.check-list li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23C8A96E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Success/error states ────────────────────────────────────── */
.form-success {
  text-align: center;
  padding: 48px 24px;
}
.form-success h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gold);
}
.form-success p { color: var(--text-muted); }
