/* ── Variables ─────────────────────────────────────── */
:root {
  --bg:         #fdf8f3;
  --surface:    #ffffff;
  --accent:     #c47a3a;
  --accent-lt:  #f5ede3;
  --text:       #1e1e1e;
  --text-sec:   #6b5e52;
  --border:     #e0d9d0;
  --tag-text:   #7a5c3a;
  --max-w:      960px;
  --radius:     10px;
  --radius-btn: 6px;
  --font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --success:    #2d7a3a;
  --error:      #b03a2e;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Layout ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
}

/* ── Typography helpers ──────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 32px;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }

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

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-lt);
  opacity: 1;
}

/* ── Navigation ──────────────────────────────────────── */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

#nav.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

.nav-logo {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}

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

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-sec);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.lang-toggle {
  background: var(--accent-lt);
  border: none;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--tag-text);
  cursor: pointer;
  transition: background 0.2s;
}
.lang-toggle:hover { background: var(--border); }

/* ── Mobile nav ──────────────────────────────────────── */
/* Nav links hidden on mobile — no hamburger in v1, add in a future enhancement */
@media (max-width: 640px) {
  .nav-links a { display: none; }
  .nav-links { gap: 12px; }
}

/* ── Hero ────────────────────────────────────────────── */
#hero {
  background: linear-gradient(135deg, var(--bg) 0%, var(--accent-lt) 100%);
  padding: 96px 0 80px;
  text-align: center;
}

.hero-inner {
  max-width: 680px;
}

#hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 12px 0 20px;
  color: var(--text);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-sec);
  max-width: 520px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Services ────────────────────────────────────────── */
#services {
  background: var(--surface);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.service-card {
  background: var(--accent-lt);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.service-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-sec);
  line-height: 1.55;
}

.service-card--wide {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .service-card--wide { grid-column: span 1; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ── How We Work ─────────────────────────────────────── */
#process {
  background: var(--accent-lt);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 8px;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.process-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.process-step p {
  font-size: 0.82rem;
  color: var(--text-sec);
  line-height: 1.5;
}

.process-arrow {
  color: var(--border);
  font-size: 1.5rem;
  padding-top: 10px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .process-steps {
    flex-direction: column;
    gap: 20px;
  }
  .process-arrow { display: none; }
  .process-step { text-align: left; display: flex; gap: 16px; align-items: flex-start; }
  .step-num { flex-shrink: 0; margin: 0; }
}

/* ── Expertise ───────────────────────────────────────── */
#expertise {
  background: var(--surface);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: var(--accent-lt);
  color: var(--tag-text);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── Case Studies ────────────────────────────────────── */
#work {
  background: var(--bg);
}

.case-study-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 760px;
}

.case-study-img-wrap {
  margin: -36px -32px 24px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  height: 180px;
}

.case-study-img-wrap img,
.case-study-img-wrap svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-study-img-wrap.phone-screen {
  background: #1a0a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.case-study-img-wrap.phone-screen img {
  width: auto;
  height: 158px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.case-study-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.case-study-tag {
  background: var(--accent-lt);
  color: var(--tag-text);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.case-study-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.3;
}

.case-study-card p {
  font-size: 0.9rem;
  color: var(--text-sec);
  line-height: 1.65;
  margin-bottom: 16px;
}

.case-study-card ul {
  list-style: none;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-study-card ul li {
  font-size: 0.9rem;
  color: var(--text-sec);
  line-height: 1.55;
  padding-left: 20px;
  position: relative;
}

.case-study-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.82rem;
}

.case-study-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.case-study-outcome {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 0.9rem !important;
  color: var(--text) !important;
  font-weight: 600;
}

.badge-in-progress {
  background: #fff8e6;
  color: #996600;
  border: 1px solid #f5d87a;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ── Contact ─────────────────────────────────────────── */
#contact {
  background: var(--accent-lt);
}

.contact-sub {
  color: var(--text-sec);
  margin-bottom: 36px;
  font-size: 0.95rem;
}

#contactForm {
  max-width: 480px;
}

/* Hide honeypot visually and from layout */
#honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea { resize: vertical; }

#submitBtn { margin-top: 8px; }

.form-status {
  margin-top: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 20px;
}
.form-status.sending { color: var(--text-sec); }
.form-status.success { color: var(--success); }
.form-status.error   { color: var(--error); }

/* ── Footer ──────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-sec);
}

.footer-inner a {
  color: var(--accent);
}
.footer-inner a:hover { text-decoration: underline; }

/* ── Cookie Banner ───────────────────────────────────── */
#cookieBanner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  padding: 20px 24px;
  max-width: 480px;
  width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  font-size: 0.82rem;
  color: var(--text-sec);
  line-height: 1.5;
  min-width: 200px;
}

.cookie-text strong {
  color: var(--text);
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-accept {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-decline {
  background: transparent;
  color: var(--text-sec);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-decline:hover { border-color: var(--accent); color: var(--accent); }

/* ── Responsive — global ─────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 52px 0; }
  .section-heading { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  #hero { padding: 64px 0 52px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Bio ────────────────────────────────────────────── */
.bio-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.bio-avatar {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 50%;
  background: var(--accent-lt);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
}

.bio-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.bio-title {
  font-size: 0.85rem;
  color: var(--text-sec);
  margin-bottom: 12px;
}

.bio-text {
  color: var(--text-sec);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .bio-card { flex-direction: column; align-items: center; text-align: center; }
}

/* ── Testimonials ───────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 16px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.testimonials-note {
  font-size: 0.8rem;
  color: var(--text-sec);
  margin-top: 8px;
}

/* ── FAQ ────────────────────────────────────────────── */
.faq-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 28px;
  background: var(--surface);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.faq-a {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-sec);
}

/* ── Card link ──────────────────────────────────────── */
.card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
}

.card-link:hover { opacity: 0.75; }
