/*
 * Structural layout for every section.
 *
 * In the Next.js build this layout lived as inline `style={{...}}` objects in
 * JSX. Here it's real CSS classes instead — same computed values, translated
 * property-for-property — because a plain PHP/CSS stack has no JSX to carry
 * it. Utility classes (.glass-card, .btn-primary, .font-display, animation
 * keyframes, etc.) still live in style.css, ported from globals.css.
 */

/* ─── Nav ────────────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.4s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-nav.nav-scrolled {
  background: rgb(var(--background-rgb) / 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgb(var(--primary-rgb) / 0.1);
}
.site-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-logo-link { display: flex; align-items: center; gap: 0.625rem; text-decoration: none; }
.site-logo-name { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.08em; color: var(--foreground); }
.nav-links { display: flex; gap: 2.5rem; align-items: center; flex-wrap: wrap; }
.nav-link {
  color: rgb(var(--foreground-rgb) / 0.65);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-link:hover { color: var(--primary); }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero-section { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-radial-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgb(var(--primary-rgb) / 0.06) 0%, transparent 60%);
}
.hero-bottom-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 200px; pointer-events: none;
  background: linear-gradient(to top, var(--background), transparent);
}
.hero-inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 0 2rem; padding-top: 6rem; width: 100%; }
.hero-content { max-width: 780px; }
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 900; line-height: 1.05;
  letter-spacing: -0.02em; margin: 0 0 1.5rem; color: var(--foreground);
}
.hero-subtitle {
  font-size: 1.125rem; line-height: 1.75; color: rgb(var(--foreground-rgb) / 0.6);
  max-width: 560px; margin: 0 0 2.5rem; font-weight: 300;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { margin-top: 4rem; display: flex; gap: 3rem; flex-wrap: wrap; }
.hero-stat-value { font-size: 2rem; font-weight: 700; }
.hero-stat-label {
  font-size: 0.7rem; color: rgb(var(--foreground-rgb) / 0.45); letter-spacing: 0.15em;
  text-transform: uppercase; margin-top: 0.25rem;
}
.hero-scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.hero-scroll-label { font-size: 0.6rem; letter-spacing: 0.2em; color: rgb(var(--foreground-rgb) / 0.35); text-transform: uppercase; }
.hero-scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgb(var(--primary-rgb) / 0.8), transparent);
  animation: float 2s ease-in-out infinite;
}
.hero-canvas-mount { position: absolute; inset: 0; z-index: 0; }

/* ─── Section heading (shared) ───────────────────────────────────────────── */
.section-heading { text-align: center; }
.section-heading.align-left { text-align: left; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.01em; color: var(--foreground); margin: 0; }

/* ─── Services ───────────────────────────────────────────────────────────── */
.services-section { padding: 8rem 2rem; max-width: 1280px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.service-card {
  padding: 2.5rem; cursor: default; position: relative; overflow: hidden;
  animation: fade-up 0.8s ease both;
}
.service-card-glow {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgb(var(--primary-rgb) / 0.08), transparent);
}
.service-card:hover .service-card-glow { opacity: 1; }
.service-badge {
  position: absolute; top: 1.25rem; right: 1.25rem;
  font-size: 0.58rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: 999px;
  background: rgb(var(--primary-rgb) / 0.15); border: 1px solid rgb(var(--primary-rgb) / 0.4);
  color: var(--primary); box-shadow: 0 0 16px rgb(var(--primary-rgb) / 0.25);
}
.service-icon-badge {
  width: 56px; height: 56px; border-radius: 12px;
  background: rgb(var(--primary-rgb) / 0.12); border: 1px solid rgb(var(--primary-rgb) / 0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; color: var(--primary); transition: box-shadow 0.4s;
}
.service-card:hover .service-icon-badge { box-shadow: 0 0 24px rgb(var(--primary-rgb) / 0.3); }
.service-title { font-size: 1rem; font-weight: 700; letter-spacing: 0.06em; margin: 0 0 0.875rem; color: var(--foreground); }
.service-desc { font-size: 0.875rem; color: rgb(var(--foreground-rgb) / 0.55); line-height: 1.7; margin: 0 0 1.5rem; }
.service-link {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--primary);
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: gap 0.3s;
}
.service-link:hover { gap: 0.75rem; }

/* ─── Process ────────────────────────────────────────────────────────────── */
.process-section { padding: 8rem 2rem; background: linear-gradient(135deg, rgb(var(--primary-rgb) / 0.03) 0%, transparent 50%); }
.process-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.process-step {
  display: flex; gap: 1.5rem; align-items: flex-start;
  opacity: 0; transform: translateX(-30px); transition: all 0.8s cubic-bezier(0.23,1,0.32,1);
}
.process-step.step-visible { opacity: 1; transform: none; }
.process-step-marker { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.process-step-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgb(var(--primary-rgb) / 0.12); border: 2px solid rgb(var(--primary-rgb) / 0.6);
  display: flex; align-items: center; justify-content: center; position: relative; color: var(--primary);
}
.process-step-num {
  position: absolute; top: -8px; right: -8px; font-size: 0.6rem;
  background: var(--primary); color: #fff; border-radius: 50%;
  width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.process-step-connector {
  width: 2px; height: 80px; margin: 0.5rem 0;
  background: linear-gradient(to bottom, rgb(var(--primary-rgb) / 0.5), rgb(var(--primary-rgb) / 0.05));
}
.process-step-body { padding-top: 0.75rem; padding-bottom: 2.5rem; }
.process-step-title { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.1em; color: var(--foreground); margin: 0 0 0.5rem; }
.process-step-desc { font-size: 0.875rem; color: rgb(var(--foreground-rgb) / 0.5); line-height: 1.7; margin: 0; }
.process-visual { position: relative; height: 480px; }
.process-ring-outer {
  position: absolute; top: 50%; left: 50%; width: 320px; height: 320px; transform: translate(-50%, -50%);
  border: 1px solid rgb(var(--primary-rgb) / 0.12); border-radius: 50%;
}
.process-ring-inner {
  position: absolute; top: 50%; left: 50%; width: 220px; height: 220px; transform: translate(-50%, -50%);
  border: 1px solid rgb(var(--secondary-rgb) / 0.1); border-radius: 50%;
  animation: spin-slow 14s linear infinite reverse;
}
.process-center-card { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 2rem 2.5rem; text-align: center; }
.process-center-label { font-size: 0.75rem; letter-spacing: 0.2em; color: var(--primary); margin-top: 0.75rem; }
.process-node {
  position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; margin-left: -14px; margin-top: -14px;
}
.process-node-inner { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.process-node-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: 0.9; }

/* ─── Portfolio ──────────────────────────────────────────────────────────── */
.portfolio-section { padding: 8rem 2rem; }
.portfolio-inner { max-width: 1280px; margin: 0 auto; }
.portfolio-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4rem; flex-wrap: wrap; gap: 1.5rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; }
.portfolio-card {
  position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer;
  display: block; text-decoration: none; transform: scale(1); transition: transform 0.5s cubic-bezier(0.23,1,0.32,1), box-shadow 0.5s;
}
.portfolio-card:hover { transform: scale(1.02); box-shadow: 0 30px 80px rgb(0 0 0 / 0.5); }
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.portfolio-card:hover img { transform: scale(1.06); }
.portfolio-card-overlay {
  position: absolute; inset: 0; transition: opacity 0.3s; opacity: 0.6;
  background: linear-gradient(to top, rgb(var(--background-rgb) / 0.95) 0%, rgb(var(--background-rgb) / 0.4) 60%, transparent 100%);
}
.portfolio-card:hover .portfolio-card-overlay { opacity: 1; }
.portfolio-card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; transform: translateY(8px); opacity: 0.8; transition: all 0.4s ease; }
.portfolio-card:hover .portfolio-card-body { transform: translateY(0); opacity: 1; }
.portfolio-card-cat { font-size: 0.6rem; color: var(--primary); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.375rem; }
.portfolio-card-title { font-size: 1rem; font-weight: 700; color: var(--foreground); margin: 0; transition: margin-bottom 0.4s ease; }
.portfolio-card:hover .portfolio-card-title { margin-bottom: 0.875rem; }
.portfolio-card-tags { display: none; gap: 0.5rem; flex-wrap: wrap; }
.portfolio-card:hover .portfolio-card-tags { display: flex; }
.portfolio-card-tag {
  font-size: 0.65rem; padding: 0.25rem 0.625rem; border-radius: 3px;
  background: rgb(var(--primary-rgb) / 0.15); border: 1px solid rgb(var(--primary-rgb) / 0.25);
  color: rgb(var(--foreground-rgb) / 0.7);
}

/* ─── Testimonials ───────────────────────────────────────────────────────── */
.testimonials-section { padding: 8rem 2rem; background: linear-gradient(180deg, transparent, rgb(var(--primary-rgb) / 0.03) 50%, transparent); }
.testimonials-inner { max-width: 1280px; margin: 0 auto; }
.testimonials-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.testimonial-card {
  padding: 2.25rem; border-radius: 16px; cursor: pointer; text-align: left; font: inherit;
  transition: all 0.5s cubic-bezier(0.23,1,0.32,1);
  background: rgb(255 255 255 / 0.03); border: 1px solid rgb(255 255 255 / 0.07);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.testimonial-card.active {
  background: rgb(var(--primary-rgb) / 0.08); border-color: rgb(var(--primary-rgb) / 0.35);
  box-shadow: 0 0 40px rgb(var(--primary-rgb) / 0.12); transform: translateY(-6px);
}
.testimonial-quote-mark { font-size: 4rem; line-height: 0.8; color: rgb(var(--primary-rgb) / 0.25); margin-bottom: 1rem; }
.testimonial-text { font-size: 0.9rem; color: rgb(var(--foreground-rgb) / 0.75); line-height: 1.75; margin: 0 0 1.5rem; font-style: italic; }
.testimonial-person { display: flex; align-items: center; gap: 0.875rem; }
.testimonial-avatar, .testimonial-avatar-fallback {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgb(var(--primary-rgb) / 0.4); object-fit: cover;
}
.testimonial-avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  background: rgb(var(--primary-rgb) / 0.15); color: var(--primary); font-size: 0.7rem; font-weight: 700;
}
.testimonial-name { font-size: 0.75rem; font-weight: 700; color: var(--foreground); }
.testimonial-role { font-size: 0.65rem; color: rgb(var(--foreground-rgb) / 0.4); margin-top: 0.125rem; }
.testimonial-dots { display: flex; justify-content: center; gap: 0.625rem; margin-top: 2.5rem; }
.testimonial-dot {
  width: 6px; height: 6px; border-radius: 3px; border: none; cursor: pointer; padding: 0;
  background: rgb(255 255 255 / 0.2); transition: all 0.3s ease;
}
.testimonial-dot.active { width: 24px; background: var(--primary); }

/* ─── Contact ────────────────────────────────────────────────────────────── */
.contact-section { padding: 8rem 2rem; position: relative; overflow: hidden; }
.contact-orb-1 {
  position: absolute; width: 600px; height: 600px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgb(var(--primary-rgb) / 0.06), transparent 70%);
  top: -100px; right: -200px; animation: orb-drift 12s ease-in-out infinite;
}
.contact-orb-2 {
  position: absolute; width: 500px; height: 500px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgb(var(--secondary-rgb) / 0.04), transparent 70%);
  bottom: -100px; left: -150px; animation: orb-drift 16s ease-in-out infinite 4s;
}
.contact-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: center; position: relative; z-index: 1; }
.contact-intro { font-size: 0.95rem; color: rgb(var(--foreground-rgb) / 0.55); line-height: 1.75; margin: 0 0 3rem; }
.contact-info-list { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-item { display: flex; align-items: center; gap: 1rem; }
.contact-info-icon { color: var(--primary); font-size: 1rem; width: 20px; text-align: center; }
.contact-info-label { font-size: 0.65rem; color: rgb(var(--foreground-rgb) / 0.35); letter-spacing: 0.15em; text-transform: uppercase; }
.contact-info-value { font-size: 0.875rem; color: rgb(var(--foreground-rgb) / 0.8); margin-top: 0.125rem; }
.contact-form-card { padding: 3rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.contact-field-label {
  font-size: 0.65rem; letter-spacing: 0.15em; color: rgb(var(--foreground-rgb) / 0.45);
  text-transform: uppercase; display: block; margin-bottom: 0.5rem;
}
.contact-success { text-align: center; padding: 2rem; }
.contact-success-icon { font-size: 3rem; margin-bottom: 1rem; }
.contact-success-title { font-size: 1.25rem; color: var(--primary); margin: 0 0 0.75rem; }
.contact-success-body { color: rgb(var(--foreground-rgb) / 0.6); font-size: 0.9rem; margin: 0; }
.contact-error { color: var(--primary); font-size: 0.8rem; margin: 0; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid rgb(255 255 255 / 0.06); padding: 3rem 2rem; }
.site-footer-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.site-footer-brand { display: flex; align-items: center; gap: 0.625rem; }
.site-footer-brand-name { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; color: rgb(var(--foreground-rgb) / 0.6); }
.site-footer-copyright { font-size: 0.65rem; color: rgb(var(--foreground-rgb) / 0.25); letter-spacing: 0.1em; }
.site-footer-socials { display: flex; gap: 2rem; flex-wrap: wrap; }
.site-footer-social {
  font-size: 0.75rem; color: rgb(var(--foreground-rgb) / 0.35); text-decoration: none;
  letter-spacing: 0.05em; transition: color 0.3s;
}
.site-footer-social:hover { color: var(--primary); }

/* ─── Blog ───────────────────────────────────────────────────────────────── */
.blog-main { max-width: 1280px; margin: 0 auto; padding: 10rem 2rem 6rem; }
.blog-head { margin-bottom: 4rem; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.blog-card { display: block; text-decoration: none; overflow: hidden; }
.blog-card-cover { aspect-ratio: 1200/630; overflow: hidden; }
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.75rem; }
.blog-card-date { font-size: 0.62rem; color: var(--primary); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.75rem; }
.blog-card-title { font-size: 1.1rem; font-weight: 700; color: var(--foreground); margin: 0 0 0.75rem; }
.blog-card-excerpt { font-size: 0.875rem; color: rgb(var(--foreground-rgb) / 0.55); line-height: 1.7; margin: 0 0 1.25rem; }
.blog-card-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.blog-card-tag {
  font-size: 0.62rem; padding: 0.25rem 0.625rem; border-radius: 3px;
  background: rgb(var(--primary-rgb) / 0.12); border: 1px solid rgb(var(--primary-rgb) / 0.25);
  color: rgb(var(--foreground-rgb) / 0.7);
}

.blog-post-main { max-width: 760px; margin: 0 auto; padding: 10rem 2rem 6rem; }
.blog-post-back { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--primary); text-decoration: none; }
.blog-post-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--foreground); margin: 1.5rem 0 1rem; }
.blog-post-meta { font-size: 0.65rem; color: rgb(var(--foreground-rgb) / 0.45); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 2.5rem; }
.blog-post-cover { border-radius: 12px; overflow: hidden; margin-bottom: 3rem; }
.blog-post-cover img { width: 100%; display: block; aspect-ratio: 1200/630; object-fit: cover; }
.blog-post-cta { padding: 2rem; margin-top: 4rem; text-align: center; }
.blog-post-cta h2 { font-size: 1.1rem; color: var(--foreground); margin: 0 0 0.75rem; }
.blog-post-cta p { font-size: 0.875rem; color: rgb(var(--foreground-rgb) / 0.55); margin: 0 0 1.5rem; }
.blog-empty { color: rgb(var(--foreground-rgb) / 0.5); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .process-grid, .contact-grid { grid-template-columns: 1fr !important; gap: 3rem !important; }
  .process-visual { display: none !important; }
}
