/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #080808;
  --bg-surface:  #111111;
  --bg-hover:    #181818;
  --text:        #f0eeeb;
  --text-muted:  #7a7672;
  --text-subtle: #3d3a37;
  --accent:      #0ea5a4;
  --accent-dim:  rgba(14, 165, 164, 0.12);
  --accent-glow: rgba(14, 165, 164, 0.25);
  --border:      #1f1f1f;
  --border-hover:#2e2e2e;
  --radius:      16px;
  --radius-sm:   8px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:       1200px;
  --transition:  0.25s ease;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(44px, 6vw, 88px); }
h2 { font-size: clamp(32px, 4vw, 56px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: 18px; }
p  { color: var(--text-muted); font-size: 17px; }

.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ─── Layout helpers ────────────────────────────────────────── */
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section    { padding: 120px 0; }
.section-sm { padding: 80px 0; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #0cc5c4;
  border-color: #0cc5c4;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hover);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), border-bottom var(--transition), padding var(--transition);
}
.nav.scrolled {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.nav-logo span { color: var(--text); }
.nav-logo em { color: var(--accent); font-style: normal; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 8px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all var(--transition);
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(14,165,164,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-label { margin-bottom: 24px; }
.hero-title {
  margin-bottom: 28px;
}
.hero-title .accent { color: var(--accent); }
.hero-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 48px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero-stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  display: block;
}
.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-photo-wrap {
  position: relative;
  z-index: 1;
}
.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0deg, transparent 180deg, var(--accent) 360deg);
  animation: spin 12s linear infinite;
  opacity: 0.5;
}
.hero-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bg);
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-photo {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  position: relative;
  z-index: 2;
  border: 3px solid var(--bg);
  filter: grayscale(20%) contrast(1.05);
}
.hero-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,164,0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ─── Section headers ────────────────────────────────────────── */
.section-header { margin-bottom: 64px; }
.section-header .label { margin-bottom: 16px; }
.section-header h2 { margin-bottom: 20px; }
.section-header p { max-width: 560px; font-size: 18px; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }

/* ─── Services ───────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 24px;
  flex-shrink: 0;
}
.contact-item-icon {
  color: var(--accent);
}
.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 15px;
  line-height: 1.6;
}

/* ─── About ──────────────────────────────────────────────────── */
.about-bg { background: var(--bg-surface); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}
.about-photo-wrap { position: relative; }
.about-photo {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  filter: grayscale(15%) contrast(1.05);
}
.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  line-height: 1.3;
  text-align: center;
  min-width: 120px;
}
.about-badge strong { display: block; font-size: 28px; }
.about-content .label { margin-bottom: 16px; }
.about-content h2 { margin-bottom: 8px; }
.about-title-sub {
  color: var(--accent);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 28px;
}
.about-bio {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  margin-bottom: 40px;
}
.credential {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── Blog list ──────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.post-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-tag {
  display: inline-flex;
  align-items: center;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.post-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  line-height: 1.3;
}
.post-card p {
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.post-date { font-size: 12px; color: var(--text-subtle); }
.post-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.post-card:hover .post-link { gap: 8px; }

/* ─── Single post ────────────────────────────────────────────── */
.post-hero {
  padding: 160px 0 80px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.post-hero h1 { max-width: 800px; margin-bottom: 24px; }
.post-hero-lead { max-width: 680px; font-size: 20px; }
.post-cover {
  margin: 64px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 500px;
}
.post-cover img { width: 100%; object-fit: cover; }
.post-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 80px 32px;
}
.post-content h2 { font-size: 32px; margin: 48px 0 20px; }
.post-content h3 { font-size: 24px; margin: 36px 0 16px; }
.post-content p  { font-size: 17px; line-height: 1.8; color: var(--text-muted); margin-bottom: 24px; }
.post-content ul, .post-content ol {
  margin: 0 0 24px 24px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.8;
}
.post-content li { margin-bottom: 8px; list-style: disc; }
.post-content ol li { list-style: decimal; }
.post-content strong { color: var(--text); }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
  font-style: italic;
}
.post-content code {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Fira Code', monospace;
}
.post-content pre {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  overflow-x: auto;
  margin: 24px 0;
}
.post-content pre code { background: none; border: none; padding: 0; }
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
  margin-bottom: 48px;
}
.post-back:hover { color: var(--accent); }

/* ─── Blog listing page ──────────────────────────────────────── */
.blog-hero {
  padding: 160px 0 80px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.blog-hero h1 { margin-bottom: 20px; }
.blog-hero p { font-size: 20px; max-width: 560px; }
.blog-page-content { padding: 80px 0; }

/* ─── Contact ────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info .label { margin-bottom: 16px; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info > p { font-size: 18px; margin-bottom: 48px; }
.contact-items { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-item-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 4px;
}
.contact-item a {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--accent); }
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  min-height: 400px;
}
.contact-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%) contrast(1.1);
  transition: filter var(--transition);
}
.contact-map:hover img { filter: grayscale(40%) contrast(1.1); }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 20px; }
.footer-brand p { font-size: 14px; max-width: 280px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: 13px; color: var(--text-subtle); }
.footer-bottom a {
  color: var(--text-muted);
  font-size: 13px;
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--text); }
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: all var(--transition);
}
.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ─── Fade-in animation ──────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ─── Blog listing: featured post ───────────────────────────── */
.post-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.post-card-featured .post-card-image {
  aspect-ratio: auto;
  min-height: 320px;
}
.post-card-featured .post-card-body {
  padding: 48px;
  justify-content: center;
}
.post-card-featured h3 { font-size: 28px; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .blog-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .footer-brand   { grid-column: 1 / -1; }
  .hero-photo     { width: 320px; height: 320px; }
}

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

  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .about-grid { gap: 48px; }
  .hero-visual { order: -1; }
  .hero-photo { width: 260px; height: 260px; }
  .hero-glow  { width: 320px; height: 320px; }
  .hero-stats { gap: 32px; flex-wrap: wrap; }

  .about-badge { right: 0; bottom: -10px; }

  .services-grid  { grid-template-columns: 1fr; }
  .blog-grid      { grid-template-columns: 1fr; }
  .post-card-featured { grid-template-columns: 1fr; }
  .post-card-featured .post-card-body { padding: 28px; }

  .footer-grid    { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom  { flex-direction: column; gap: 16px; text-align: center; }

  .nav-links      { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(8,8,8,0.97);
    padding: 32px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open a { font-size: 18px; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}
