/* =========================================================
   OURBLOODLINE — design tokens
   Dark tone mirrors the original site 1:1.
   Light tone is the same system re-mapped for a light canvas.
   ========================================================= */

:root[data-theme="dark"] {
  --background: 0 0% 2%;
  --foreground: 0 0% 96%;
  --card: 0 0% 6%;
  --card-foreground: 0 0% 96%;
  --primary: 353 87% 29%;
  --primary-foreground: 0 0% 97%;
  --secondary: 356 78% 36%;
  --muted: 0 0% 10%;
  --muted-foreground: 0 0% 65%;
  --accent: 0 0% 75%;
  --border: 0 0% 16%;
  --input: 0 0% 16%;
  --ring: 353 87% 29%;

  --section-muted: hsl(0 0% 10% / 0.3);
  --hero-glow: rgba(139, 10, 26, 0.12);
  --shadow-card: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --logo-filter: none;
}

:root[data-theme="light"] {
  --background: 0 0% 100%;
  --foreground: 0 0% 8%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 8%;
  --primary: 353 87% 32%;
  --primary-foreground: 0 0% 100%;
  --secondary: 356 78% 40%;
  --muted: 0 0% 96%;
  --muted-foreground: 0 0% 40%;
  --accent: 0 0% 30%;
  --border: 0 0% 87%;
  --input: 0 0% 87%;
  --ring: 353 87% 32%;

  --section-muted: hsl(0 0% 96% / 0.7);
  --hero-glow: rgba(139, 10, 26, 0.10);
  --shadow-card: 0 20px 50px -32px rgba(0, 0, 0, 0.35);
  --logo-filter: none;
}

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

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4, .font-heading {
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

::selection {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* ------------------------ layout ------------------------- */
.container {
  width: 100%;
  max-width: 1536px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 768px) {
  .container { padding-inline: 32px; }
}

.section {
  padding-block: 96px;
  background-color: hsl(var(--background));
}

@media (min-width: 768px) {
  .section { padding-block: 128px; }
}

.section-muted { background-color: var(--section-muted); }
.section-bordered { border-top: 1px solid hsl(var(--border)); }

.section-head { margin-bottom: 48px; }

@media (min-width: 768px) {
  .section-head { margin-bottom: 64px; }
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

.section-title {
  max-width: 48rem;
  font-size: 30px;
  font-weight: 700;
  color: hsl(var(--foreground));
  text-wrap: balance;
}

.section-sub {
  max-width: 42rem;
  margin-top: 16px;
  font-size: 16px;
  color: hsl(var(--muted-foreground));
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .section-title { font-size: 36px; }
  .section-sub { font-size: 18px; }
}

@media (min-width: 1024px) {
  .section-title { font-size: 48px; }
}

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------ buttons ------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 0;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 3px hsl(var(--ring));
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover { background-color: hsl(var(--primary) / 0.9); }

.btn-outline {
  background-color: transparent;
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

.btn-outline:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 20px 32px; font-size: 16px; }
.btn-block { width: 100%; }

.icon-16 { width: 16px; height: 16px; }
.icon-20 { width: 20px; height: 20px; }
.icon-24 { width: 24px; height: 24px; }
.accent { color: hsl(var(--primary)); }

/* ------------------------ header ------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled { border-bottom-color: hsl(var(--border)); }

.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: var(--logo-filter);
}

.brand:hover .brand-logo { transform: scale(1.05); }

.brand-name {
  display: none;
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.025em;
  color: hsl(var(--foreground));
}

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

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}

.main-nav a:hover { color: hsl(var(--foreground)); }

.header-actions { display: none; align-items: center; gap: 16px; }

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}

.header-phone:hover { color: hsl(var(--foreground)); }

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-utils {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary));
}

.theme-toggle svg { width: 18px; height: 18px; }

:root[data-theme="dark"] .theme-toggle .icon-moon,
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }

.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  cursor: pointer;
}

.mobile-toggle svg { width: 22px; height: 22px; }
.mobile-toggle .icon-close { display: none; }
.site-header.menu-open .mobile-toggle .icon-close { display: block; }
.site-header.menu-open .mobile-toggle .icon-menu { display: none; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-top: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
}

.site-header.menu-open .mobile-menu { display: flex; }

.mobile-menu a {
  padding: 12px 8px;
  font-size: 15px;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.mobile-menu a:hover { color: hsl(var(--foreground)); }
.mobile-menu-phone { color: hsl(var(--primary)) !important; }
.mobile-menu .btn { margin-top: 8px; }

@media (min-width: 768px) {
  .brand-name { display: inline; }
  .main-nav { display: flex; }
  .header-actions { display: flex; }
  .mobile-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ------------------------- hero -------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: hsl(var(--background));
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, var(--hero-glow), transparent 50%);
}

.hero-inner {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-block: 32px;
}

.hero-logo {
  height: 192px;
  width: auto;
  margin-inline: auto;
  margin-bottom: 32px;
  object-fit: contain;
  filter: var(--logo-filter);
}

.hero-title {
  max-width: 64rem;
  margin-inline: auto;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  color: hsl(var(--foreground));
  text-wrap: balance;
}

.hero-sub {
  max-width: 42rem;
  margin: 24px auto 0;
  font-size: 18px;
  color: hsl(var(--muted-foreground));
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .hero-logo { height: 256px; }
  .hero-title { font-size: 60px; }
  .hero-sub { font-size: 20px; }
  .hero-actions { flex-direction: row; }
}

@media (min-width: 1024px) {
  .hero-logo { height: 320px; }
  .hero-title { font-size: 72px; }
}

/* ------------------------- cards ------------------------- */
.card {
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card { padding: 32px; }

.service-card:hover,
.work-card:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--primary));
  box-shadow: var(--shadow-card);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border: 1px solid hsl(var(--primary));
  color: hsl(var(--primary));
  transition: background-color 0.3s ease, color 0.3s ease;
}

.service-card:hover .card-icon {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.card-title {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.card-text {
  font-size: 14px;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  text-wrap: pretty;
}

/* ------------------------- about ------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 16px;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .about-copy { font-size: 18px; }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--border));
}

.stat {
  background-color: hsl(var(--card));
  padding: 32px;
  text-align: center;
}

@media (min-width: 768px) {
  .stat { padding: 40px; }
}

.stat-value {
  margin-bottom: 8px;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: hsl(var(--primary));
}

@media (min-width: 768px) {
  .stat-value { font-size: 36px; }
}

.stat-label {
  font-size: 14px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

/* -------------------------- work ------------------------- */
.work-card { overflow: hidden; }

.work-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: hsl(var(--muted));
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .work-media img { transform: scale(1.05); }

.work-body { padding: 24px; }

.work-tag {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

/* ------------------------ clients ------------------------ */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--border));
}

@media (min-width: 768px) {
  .clients-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .clients-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.client {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background-color: hsl(var(--card));
  transition: background-color 0.3s ease;
}

.client:hover { background-color: hsl(var(--muted)); }

.client span {
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-align: center;
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .client { padding: 40px; }
  .client span { font-size: 20px; }
}

/* --------------------- testimonials ---------------------- */
.testimonial {
  position: relative;
  padding: 32px;
}

@media (min-width: 768px) {
  .testimonial { padding: 40px; }
}

.quote-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 24px;
  color: hsl(var(--primary));
}

.testimonial-text {
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.75;
  color: hsl(var(--foreground));
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .testimonial-text { font-size: 18px; }
}

.testimonial-name {
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.testimonial-role {
  margin-top: 4px;
  font-size: 14px;
  color: hsl(var(--muted-foreground));
}

/* ------------------------ contact ------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-heading {
  font-size: 24px;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}

.contact-row:not(.contact-row-static):hover { color: hsl(var(--foreground)); }

.contact-row span { font-size: 18px; word-break: break-word; }

.contact-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--primary));
}

.contact-note {
  font-size: 16px;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
  text-wrap: pretty;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--input));
  border-radius: 0;
  font-size: 15px;
  color: hsl(var(--foreground));
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea { resize: vertical; min-height: 120px; }

.field input::placeholder,
.field textarea::placeholder { color: hsl(var(--muted-foreground) / 0.7); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 1px hsl(var(--ring));
}

.form-status {
  min-height: 20px;
  font-size: 14px;
  color: hsl(var(--primary));
}

/* ------------------------- footer ------------------------ */
.site-footer {
  padding-block: 64px;
  background-color: hsl(var(--background));
  border-top: 1px solid hsl(var(--border));
}

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

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: span 2; }
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: var(--logo-filter);
}

.footer-name {
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.025em;
  color: hsl(var(--foreground));
}

.footer-desc {
  max-width: 28rem;
  font-size: 14px;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  text-wrap: pretty;
}

.footer-heading {
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
}

.footer-list { display: flex; flex-direction: column; gap: 12px; }

.footer-list a {
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}

.footer-list a:hover { color: hsl(var(--foreground)); }

.footer-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 32px;
  border-top: 1px solid hsl(var(--border));
  font-size: 14px;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* --------------------- scroll reveal --------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
