/* ===================================
   GUMBRAIN DESIGN SYSTEM
   =================================== */

:root {
  --ink: #0a0a0a;
  --paper: #f6f3ee;
  --accent: #c8ff00;
  --accent-dark: #a3d100;
  --muted: #7a756d;
  --border: #d4cfc6;
  --card-bg: #edeae4;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

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

/* ===================================
   NAVIGATION
   =================================== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

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

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0;
}

.logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.logo-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
  margin-left: 1px;
  margin-bottom: 2px;
  vertical-align: baseline;
}

.footer-logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 12px;
  display: block;
  text-decoration: none;
}

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

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 100px;
  transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
  background: var(--card-bg);
}

.main-nav .has-dropdown {
  position: relative;
  display: inline-flex;
}

.main-nav .has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-arrow {
  width: 10px;
  height: 10px;
  display: inline-block;
  transition: transform 0.3s;
}

.dropdown-arrow::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-dropdown:hover .dropdown-arrow::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
}

.dropdown-menu a:hover {
  background: var(--card-bg);
}

.nav-cta {
  background: var(--ink) !important;
  color: var(--paper) !important;
  padding: 10px 22px !important;
  font-weight: 500 !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: #222 !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: all 0.3s;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--paper);
    flex-direction: column;
    padding: 80px 24px 40px;
    align-items: stretch;
    gap: 4px;
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 40px rgba(0,0,0,0.05);
  }

  .main-nav.open { right: 0; }

  .main-nav a { padding: 12px 16px; font-size: 1rem; }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    display: none;
  }

  .has-dropdown.open .dropdown-menu { display: block; }

  .nav-cta { margin-left: 0; margin-top: 12px; text-align: center; }
}

/* ===================================
   HERO (HOME) - Split layout
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 80px;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: fit-content;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 600px;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero h1 em {
  font-style: italic;
  position: relative;
  white-space: nowrap;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--accent);
  z-index: -1;
  opacity: 0.7;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 480px;
  margin-top: 20px;
  font-weight: 300;
  line-height: 1.7;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.3s both;
}

/* Hero visual: card + floating badge */
.hero-visual {
  position: relative;
  animation: fadeUp 0.8s ease 0.25s both;
  margin-bottom: 32px;
}

.hero-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.06;
}

.hero-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.hero-card-num {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 3.2rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-card-desc {
  display: block;
  color: rgba(246,243,238,0.5);
  font-size: 0.88rem;
  margin-top: 6px;
}

.hero-card-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 28px 0;
}

.hero-card-skills-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(246,243,238,0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.hero-card-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.hero-skill-item {
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.hero-skill-item:nth-child(odd) {
  padding-right: 16px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.hero-skill-item:nth-child(even) {
  padding-left: 16px;
}

.hero-skill-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--paper);
}

.hero-skill-desc {
  display: block;
  font-size: 0.78rem;
  color: rgba(246,243,238,0.4);
  margin-top: 2px;
}

.hero-floating-badge {
  position: absolute;
  bottom: -24px;
  right: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  animation: floatBadge 3s ease-in-out infinite;
  z-index: 2;
}

.hero-badge-num {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hero-badge-text {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero-floating-badge { bottom: -16px; left: 10px; }
  .hero-visual { margin-bottom: 24px; }
}

@media (max-width: 600px) {
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; justify-content: center; }
  .hero-card { padding: 28px; }
  .hero-card-num { font-size: 2.4rem; }
}

/* ===================================
   HERO (SUBPAGES)
   =================================== */
.hero-sub-page {
  background: var(--ink);
  color: var(--paper);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-sub-page::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.04;
  top: -200px;
  right: -100px;
}

.hero-sub-page h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  animation: fadeUp 0.8s ease both;
}

.hero-sub-page p {
  color: rgba(246,243,238,0.6);
  font-size: 1.1rem;
  max-width: 560px;
  margin-top: 16px;
  font-weight: 300;
  line-height: 1.7;
  animation: fadeUp 0.8s ease 0.1s both;
}

/* ===================================
   BUTTONS
   =================================== */
.btn-primary {
  background: var(--ink);
  color: var(--accent);
  padding: 16px 36px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  padding: 16px 36px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border: 1.5px solid var(--border);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.btn-secondary:hover { border-color: var(--ink); }

.btn-small {
  font-size: 0.9rem;
  padding: 10px 24px;
}

.btn-on-dark {
  background: var(--accent);
  color: var(--ink);
}

.btn-on-dark:hover { background: var(--accent-dark); }

/* ===================================
   SECTIONS
   =================================== */
section { padding: 100px 0; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  max-width: 650px;
  line-height: 1.15;
}

.section-desc {
  color: var(--muted);
  max-width: 560px;
  margin-top: 16px;
  font-weight: 300;
  line-height: 1.7;
  font-size: 1.05rem;
}

.bg-dark { background: var(--ink); color: var(--paper); }
.bg-dark .section-label { color: var(--accent); }
.bg-dark .section-title { color: var(--paper); }
.bg-dark .section-desc { color: rgba(246,243,238,0.6); }

.bg-alt { background: var(--card-bg); }

/* ===================================
   CARDS
   =================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

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

.card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  border-color: transparent;
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover::after { transform: scaleX(1); }

.card-num {
  font-family: 'DM Serif Display', serif;
  font-size: 3.5rem;
  color: var(--card-bg);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.4s;
}

.card:hover .card-num { color: var(--accent); }

.card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: gap 0.3s;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.card-link:hover { gap: 12px; }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .card-grid, .card-grid-2 { grid-template-columns: 1fr; }
  .card { padding: 32px; }
}

/* Dark card variant */
.card-dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
}

.card-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); }
.card-dark h3 { color: var(--paper); }
.card-dark p { color: rgba(246,243,238,0.5); }
.card-dark .card-num { color: rgba(255,255,255,0.06); }
.card-dark:hover .card-num { color: var(--accent); }

/* ===================================
   PROCESS / STEPS
   =================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
}

.process-step {
  padding: 32px;
  border-left: 1px solid var(--border);
}

.process-step:first-child { border-left: none; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--accent);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.process-step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step { border-left: none; border-top: 1px solid var(--border); padding: 24px; }
  .process-step:first-child, .process-step:nth-child(2) { border-top: none; }
}

@media (max-width: 600px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-step:nth-child(2) { border-top: 1px solid var(--border); }
}

/* ===================================
   VALUES LIST
   =================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.value-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: 12px;
  transition: background 0.3s;
}

.value-item:hover { background: var(--white); }

.value-icon {
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.value-item strong { font-size: 1rem; display: block; margin-bottom: 4px; }
.value-item p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

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

.about-text h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.about-text p { color: var(--muted); line-height: 1.7; margin-bottom: 16px; font-size: 0.95rem; }
.about-text p:last-of-type { margin-bottom: 28px; }

.about-image {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { max-width: 400px; }
}

/* ===================================
   PROJECT CARDS (Bubble-style cases)
   =================================== */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

/* Offset: even cards pushed down for staggered effect */
.project-card:nth-child(even) {
  margin-top: 48px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.08);
  border-color: transparent;
}

.project-thumb {
  aspect-ratio: 16 / 10;
  background: var(--card-bg);
  overflow: hidden;
  position: relative;
}

.project-thumb > img.screenshot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-thumb > img.screenshot {
  transform: scale(1.03);
}

/* Fallback for logo-only (no screenshot) */
.project-thumb > img:not(.screenshot) {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 56px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  opacity: 0.35;
  transition: all 0.5s;
}

.project-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-body h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.project-body p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.project-tags span {
  background: var(--card-bg);
  color: var(--muted);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s;
}

.project-card:hover .project-tags span {
  background: var(--ink);
  color: var(--accent);
}

@media (max-width: 700px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-card:nth-child(even) { margin-top: 0; }
  .project-body { padding: 24px; }
}

/* ===================================
   MARQUEE
   =================================== */
.marquee-section {
  background: var(--ink);
  padding: 18px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 60s linear infinite;
  width: max-content;
}

.marquee-item {
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 400;
  white-space: nowrap;
  padding: 0 20px;
  opacity: 0.5;
  letter-spacing: 0.04em;
}

.marquee-sep {
  color: var(--accent);
  opacity: 0.6;
  padding: 0 4px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

.contact-info h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-info > p { color: var(--muted); line-height: 1.7; margin-bottom: 32px; }

.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.info-item a { text-decoration: none; transition: color 0.3s; }
.info-item a:hover { color: var(--accent-dark); }

.info-icon {
  width: 36px;
  height: 36px;
  background: var(--card-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid var(--border);
}

.contact-form-wrapper h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  margin-bottom: 28px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink);
}

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

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
  text-align: center;
  padding: 100px 0;
}

.cta-section .section-title {
  margin: 0 auto 16px;
  max-width: 700px;
  text-align: center;
}

.cta-section p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section.bg-dark p { color: rgba(246,243,238,0.6); }

.cta-contact-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}

.cta-contact-links a {
  color: var(--paper);
  text-decoration: none;
  font-size: 1rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.cta-contact-links a:hover { opacity: 1; }

/* ===================================
   FOOTER
   =================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}

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

.footer-widget .footer-logo-text {
  display: block;
  margin-bottom: 12px;
}

.site-footer p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

.footer-widget h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  color: var(--ink);
}

.footer-widget ul { list-style: none; }
.footer-widget li { margin-bottom: 8px; }

.footer-widget a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 0.3s;
}

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

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-contact-item a { color: var(--muted); text-decoration: none; }
.footer-contact-item a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .hero-sub-page { padding: 120px 0 60px; }
  .card-grid { grid-template-columns: 1fr; }
}

/* ===================================
   SERVICE PAGE TEMPLATE
   =================================== */

/* Service intro: left-aligned, clean two-column */
.service-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.service-intro-text h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.service-intro-text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.service-intro-highlights {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.service-highlight {
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: background 0.3s;
}

.service-highlight:last-child { border-bottom: none; }
.service-highlight:hover { background: var(--card-bg); }

.highlight-num {
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.service-highlight h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.service-highlight p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .service-intro { grid-template-columns: 1fr; gap: 40px; }
}

/* Service process: full-width horizontal strip */
.service-process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.service-process-step {
  padding: 40px 36px;
  border-right: 1px solid var(--border);
  position: relative;
}

.service-process-step:last-child { border-right: none; }

.service-process-step .step-num {
  margin-bottom: 20px;
}

.service-process-step h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 10px;
}

.service-process-step p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .service-process { grid-template-columns: 1fr; }
  .service-process-step { border-right: none; border-bottom: 1px solid var(--border); }
  .service-process-step:last-child { border-bottom: none; }
}

/* Service CTA inline */
.service-cta-inline {
  background: var(--ink);
  border-radius: 24px;
  padding: 56px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 48px;
}

.service-cta-inline h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  color: var(--paper);
  line-height: 1.2;
}

.service-cta-inline p {
  color: rgba(246,243,238,0.5);
  font-size: 0.95rem;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .service-cta-inline { flex-direction: column; text-align: center; padding: 40px 32px; }
}

/* Form status */
#form-status {
  margin-top: 16px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
}

#form-status.success { display: block; background: #e8f5e9; color: #2e7d32; }
#form-status.error { display: block; background: #fce4ec; color: #c62828; }

/* Honeypot */
.hp-field { display: none !important; }