/* ============================================
   Skadrix Tech Inc — Site Styles (light theme)
   ============================================ */

:root {
  --bg: #f6f3ee;
  --bg-alt: #efeae1;
  --surface: #ffffff;
  --surface-2: #faf7f2;

  --ink: #1a1d24;
  --ink-soft: #3d4250;
  --muted: #6b7080;
  --muted-2: #8a8f9c;

  --line: #e2dccf;
  --line-strong: #c9c0ad;

  --accent: #d97757;
  --accent-deep: #b85b3d;
  --accent-soft: #f3d9cc;

  --shadow-xs: 0 1px 2px rgba(40, 35, 25, 0.04);
  --shadow-sm: 0 2px 6px rgba(40, 35, 25, 0.06);
  --shadow-md: 0 8px 24px rgba(40, 35, 25, 0.08);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --container: 1140px;
  --space-section: clamp(72px, 10vw, 128px);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-deep);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--ink);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

section {
  padding-block: var(--space-section);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 238, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.logo:hover {
  color: var(--ink);
}

.logo-mark {
  width: 34px;
  height: 34px;
  color: var(--accent);
  flex-shrink: 0;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--accent-deep);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-large {
  padding: 14px 28px;
  font-size: 0.98rem;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn .arrow {
  transition: transform 0.18s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* Mobile menu */

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */

.hero {
  position: relative;
  padding-block: clamp(80px, 12vw, 140px) clamp(64px, 9vw, 110px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--ink);
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-deep);
}

.hero .lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  display: grid;
  place-items: center;
}

.hero-figure {
  width: 100%;
  height: 100%;
  color: var(--ink);
}

/* Section headings */

.section-header {
  margin-bottom: 64px;
  max-width: 720px;
}

.section-header.center {
  text-align: center;
  margin-inline: auto;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 18px;
}

.section-header h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-deep);
}

.section-header p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 60ch;
}

.section-header.center p {
  margin-inline: auto;
}

/* About */

.about {
  position: relative;
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: start;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 28px;
}

.about-text h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-deep);
}

.about-text p {
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin-bottom: 22px;
  line-height: 1.7;
}

.about-text p:last-of-type {
  margin-bottom: 32px;
}

.about-side {
  position: sticky;
  top: 100px;
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.about-side dl {
  display: grid;
  gap: 28px;
}

.about-side dt {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.about-side dd {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
}

/* Services */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--surface);
  padding: 40px 32px;
  position: relative;
  transition: background-color 0.2s ease;
}

.service-card:hover {
  background: var(--surface-2);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.65;
}

/* Contacts */

.contacts {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}

.contacts-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}

.contacts h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--bg);
}

.contacts h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.contacts-list {
  display: grid;
  gap: 28px;
}

.contact-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  align-items: baseline;
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row dt {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(246, 243, 238, 0.55);
}

.contact-row dd {
  font-size: 1.02rem;
  color: var(--bg);
  line-height: 1.5;
}

.contact-row dd a {
  color: var(--bg);
  border-bottom: 1px solid rgba(217, 119, 87, 0.5);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.contact-row dd a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Footer */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-block: 56px 28px;
  margin-top: var(--space-section);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-top: 16px;
  max-width: 36ch;
  line-height: 1.6;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: var(--accent-deep);
}

.footer-col p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

.footer-col p strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  font-family: var(--font-mono);
}

/* Legal pages */

.legal-hero {
  padding-block: clamp(64px, 8vw, 96px) clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 14px;
  color: var(--ink);
}

.legal-hero .meta {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) 28px var(--space-section);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 56px;
  margin-bottom: 18px;
  color: var(--ink);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content > p:first-child {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.legal-content p {
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-content ul {
  margin-bottom: 18px;
  padding-left: 22px;
  color: var(--ink-soft);
}

.legal-content ul li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.legal-content ul li::marker {
  color: var(--accent);
}

.legal-content a {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 1px;
  word-break: break-word;
}

.legal-content a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.legal-content strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-content .uppercase-block {
  font-size: 0.92rem;
  letter-spacing: 0.005em;
}

.legal-contact-box {
  margin-top: 32px;
  padding: 28px;
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
}

.legal-contact-box p {
  margin-bottom: 6px;
}

.legal-contact-box p:last-child {
  margin-bottom: 0;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-visual {
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-side {
    position: static;
    padding-left: 24px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid .service-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .contacts-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav .btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 28px 20px;
  }

  .nav.is-open .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open .nav-links li:last-child {
    border-bottom: none;
  }

  .nav.is-open .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }

  .nav.is-open .btn {
    display: inline-flex;
    position: absolute;
    top: 100%;
    right: 28px;
    margin-top: -14px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-grid .service-card:nth-child(3) {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .service-card {
    padding: 32px 24px;
  }

  .contacts {
    padding: 36px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
