/* =============================================
   TnM Tech Portfolio — Warm Earthy Redesign
   ============================================= */

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

:root {
  /* Warm earthy palette */
  --bg:          #FAF7F2;
  --bg-warm:     #F3EDE4;
  --bg-card:     #FFFFFF;
  --bg-dark:     #2C2418;
  --border:      rgba(44,36,24,.08);
  --border-mid:  rgba(44,36,24,.15);
  --border-hi:   rgba(44,36,24,.3);
  --text:        #2C2418;
  --text-light:  #FFFFFF;
  --muted:       #8C7E6E;
  --muted-mid:   #6B5D4F;
  --accent:      #C4653A;
  --accent-hover:#A8522C;
  --sage:        #7A8B6F;
  --sage-light:  #E8EDE5;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --transition:  .3s cubic-bezier(.4,0,.2,1);
  --shadow-sm:   0 1px 3px rgba(44,36,24,.06);
  --shadow:      0 4px 20px rgba(44,36,24,.08);
  --shadow-lg:   0 12px 40px rgba(44,36,24,.1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1,h2,h3,h4,h5 {
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--text);
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { color: var(--muted-mid); line-height: 1.75; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- Utility ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.section    { padding: 100px 0; }
.section-sm { padding: 72px 0; }

.accent-text { color: var(--accent); }

.tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--sage-light);
  color: var(--sage);
  margin-bottom: 20px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(196,101,58,.25);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(196,101,58,.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-hi);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-dark {
  background: var(--bg-dark);
  color: #fff;
}
.btn-dark:hover {
  background: #3d3428;
  transform: translateY(-1px);
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* ---- Section Header ---- */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-header p { font-size: 1.05rem; margin-top: 16px; }

/* ====================================================
   NAV
   ==================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 28px;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(250,247,242,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 8px rgba(44,36,24,.06);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text);
}
.logo span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  padding: 8px 16px;
  color: var(--muted-mid);
  font-size: .88rem;
  font-weight: 500;
  transition: var(--transition);
  border-radius: var(--radius);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: var(--bg-warm); }

.nav-cta { margin-left: 16px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px 28px;
  z-index: 999;
  box-shadow: var(--shadow);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  color: var(--muted-mid);
  font-size: .9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 20px; }

/* ====================================================
   HERO
   ==================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  background: var(--bg);
}
.hero-bg, .blob { display: none; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(196,101,58,.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(122,139,111,.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 720px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--sage-light);
  border: none;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--sage);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

.hero h1 { margin-bottom: 24px; }
.hero p.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted-mid);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 72px;
  flex-wrap: wrap;
}
.hero-stat {
  padding: 24px 36px 24px 0;
  margin-right: 36px;
  border-right: 1px solid var(--border-mid);
}
.hero-stat:last-child { border-right: none; }
.hero-stat h3 {
  font-size: 2.2rem;
  color: var(--text);
  letter-spacing: -.02em;
}
.hero-stat p {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ====================================================
   SERVICES
   ==================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--border-mid);
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--sage-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 24px;
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--accent); }
.service-card:hover .service-icon svg { color: #fff; }
.service-card h3 { margin-bottom: 12px; }
.service-card p  { font-size: .92rem; }
.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
  transition: var(--transition);
}
.service-card .service-link:hover { gap: 10px; }

/* ====================================================
   STATS STRIP
   ==================================================== */
.stats-strip {
  background: var(--bg-dark);
  padding: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 56px 32px;
  text-align: center;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 25%; height: 50%;
  width: 1px;
  background: rgba(255,255,255,.1);
}
.stat-item h3 {
  font-size: 2.8rem;
  color: #fff;
  letter-spacing: -.02em;
}
.stat-item p {
  font-size: .78rem;
  margin-top: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,255,255,.5);
}

/* ====================================================
   PROJECT CARDS
   ==================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.project-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.project-thumb-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
  transition: var(--transition);
}
.project-card:hover .project-thumb-bg { transform: scale(1.05); }

.gradient-bg-1 { background: linear-gradient(135deg, #F3EDE4 0%, #E8D5C4 100%) !important; }
.gradient-bg-2 { background: linear-gradient(135deg, #E8EDE5 0%, #D1DCCB 100%) !important; }
.gradient-bg-3 { background: linear-gradient(135deg, #F0E6DB 0%, #DBC8B0 100%) !important; }
.gradient-bg-4 { background: linear-gradient(135deg, #EDE4E0 0%, #D4C4BC 100%) !important; }
.gradient-bg-5 { background: linear-gradient(135deg, #E5EAE2 0%, #C8D4C2 100%) !important; }
.gradient-bg-6 { background: linear-gradient(135deg, #F2EBE3 0%, #DDD0C2 100%) !important; }

.project-body { padding: 28px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.project-tag {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: var(--bg-warm);
  color: var(--muted);
}
.project-body h3 { margin-bottom: 10px; }
.project-body p  { font-size: .9rem; }
.project-links { display: flex; gap: 20px; margin-top: 20px; }
.project-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}
.project-link:hover { color: var(--accent-hover); gap: 8px; }

/* ====================================================
   PORTFOLIO FILTERS
   ==================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 10px 24px;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border-mid);
  background: transparent;
  color: var(--muted);
  transition: var(--transition);
  font-family: inherit;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ====================================================
   ABOUT PAGE
   ==================================================== */
.about-hero { padding: 160px 0 80px; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-visual {
  position: relative;
  height: 440px;
  background: var(--bg-warm);
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
}
.about-card-float {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}
.about-card-float:nth-child(2) { animation-delay: -3s; }
.card-main  { width: 260px; top: 40px;  left: 40px; }
.card-stats { width: 180px; bottom: 60px; right: 40px; animation: float 9s ease-in-out infinite; }
.card-badge { width: 200px; top: 50%; right: -10px; animation: float 11s ease-in-out infinite reverse; }

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

/* Process / How We Work */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: process;
}
.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.process-step:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.process-number {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  margin: 0 auto 20px;
}
.process-step h4 { margin-bottom: 10px; }
.process-step p  { font-size: .88rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  margin-top: 48px;
}
.value-item {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: left;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.value-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.value-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--sage-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.value-item h4 { margin-bottom: 8px; }
.value-item p  { font-size: .88rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 24px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: block;
  object-fit: cover;
  background: var(--bg-warm);
  border: 2px solid var(--border);
}
.team-card h4 { margin-bottom: 4px; }
.team-card .role {
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.team-card p { font-size: .88rem; }
.social-links { display: flex; gap: 8px; margin-top: 18px; justify-content: center; }
.social-link {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  transition: var(--transition);
  color: var(--muted);
}
.social-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ====================================================
   TECH STACK (kept minimal for about page)
   ==================================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px,1fr));
  gap: 16px;
}
.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition);
  cursor: default;
  box-shadow: var(--shadow-sm);
}
.tech-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tech-item .tech-icon { font-size: 1.6rem; margin-bottom: 10px; }
.tech-item span {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .03em;
}

/* ====================================================
   CONTACT
   ==================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.contact-item:last-child { border-bottom: none; }
.contact-item:hover { background: var(--bg-warm); }
.contact-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--sage-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--muted);
}
.contact-item p { font-size: .9rem; }
.contact-item a { color: var(--accent); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--text);
  font-size: .9rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,101,58,.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group select option { background: var(--bg); }

.form-success { display: none; text-align: center; padding: 48px 32px; }
.form-success.visible { display: block; }
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h3 { margin-bottom: 8px; }

/* ====================================================
   FAQ
   ==================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.faq-item.open {
  border-color: var(--border-mid);
  box-shadow: var(--shadow);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  gap: 16px;
  font-family: 'DM Sans', sans-serif;
}
.faq-icon {
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .25s ease; }
.faq-answer p { padding: 0 28px 22px; font-size: .92rem; }
.faq-item.open .faq-answer { max-height: 200px; }

/* ====================================================
   CTA BAND
   ==================================================== */
.cta-band { padding: 100px 0; position: relative; }
.cta-box {
  position: relative;
  z-index: 1;
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
  padding: 72px 64px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(196,101,58,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(122,139,111,.1) 0%, transparent 50%);
  pointer-events: none;
}
.cta-box .tag {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  position: relative;
}
.cta-box h2 { color: #fff; position: relative; margin-bottom: 16px; }
.cta-box p  { color: rgba(255,255,255,.6); font-size: 1.05rem; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; position: relative; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-actions .btn-outline { border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.8); }
.cta-actions .btn-outline:hover { border-color: #fff; color: #fff; }

/* ====================================================
   FOOTER
   ==================================================== */
footer {
  background: var(--bg-dark);
  padding: 72px 0 32px;
  color: rgba(255,255,255,.6);
}
footer h4 { color: rgba(255,255,255,.9); }
footer p  { color: rgba(255,255,255,.4); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand .logo { color: #fff; }
.footer-brand .logo span { color: var(--accent); }
.footer-brand p { font-size: .88rem; margin-top: 16px; max-width: 280px; }
.footer-socials { display: flex; gap: 10px; margin-top: 24px; }
.footer-social {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem;
  transition: var(--transition);
  color: rgba(255,255,255,.5);
}
.footer-social:hover { background: var(--accent); color: #fff; }
.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: rgba(255,255,255,.5);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a  { font-size: .88rem; color: rgba(255,255,255,.5); transition: var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,.4); transition: var(--transition); }
.footer-bottom a:hover { color: #fff; }

/* ====================================================
   PAGE HERO (inner pages)
   ==================================================== */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-warm);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(196,101,58,.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(122,139,111,.05) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero h1 { position: relative; z-index: 1; }
.page-hero p  { position: relative; z-index: 1; font-size: 1.1rem; margin: 20px auto 0; max-width: 560px; }

/* Map embed */
.map-placeholder {
  height: 280px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 60px;
  overflow: hidden;
}
.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  border: none;
}

/* ====================================================
   SCROLL REVEAL
   ==================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid  { grid-template-columns: repeat(2, 1fr); }
  .cta-box { padding: 56px 40px; }
}
@media (max-width: 900px) {
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .about-grid   { grid-template-columns: 1fr; }
  .about-visual { height: 280px; }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .stat-item:not(:last-child)::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .form-row   { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .values-grid { grid-template-columns: 1fr; }
  .stats-grid  { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid  { grid-template-columns: 1fr; }
  .hero-stats { gap: 0; }
  .hero-stat  { padding: 20px 24px 20px 0; margin-right: 24px; }
  .cta-box    { padding: 48px 28px; }
  .contact-form { padding: 28px 20px; }
  .filter-bar { flex-wrap: wrap; }
  .section-header { margin-bottom: 48px; }
  h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
}

/* ====================================================
   PROJECT DETAIL PAGE
   ==================================================== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 20px;
  transition: gap .3s;
}
.back-link:hover { gap: 12px; }

.project-detail-hero {
  padding: 20px 0 48px;
  max-width: 720px;
}
.project-detail-hero h1 { margin-bottom: 16px; }
.project-detail-hero p { font-size: 1.1rem; color: var(--muted-mid); line-height: 1.8; }

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.highlight-value {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 6px;
}
.highlight-label {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 500;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  width: 100%;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(44,36,24,.15);
}

.tech-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-tag {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  background: var(--sage-light);
  color: var(--sage);
  letter-spacing: .03em;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.lightbox-overlay.active { opacity: 1; pointer-events: auto; }
.lightbox-overlay img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  opacity: .8;
  transition: opacity .3s;
  z-index: 2001;
}
.lightbox-close:hover { opacity: .7; }

.project-gallery h2,
.project-tech h2 { margin-bottom: 32px; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr; }
  .project-detail-hero { padding: 16px 0 32px; }
}

/* ====================================================
   TESTIMONIAL CARDS (Client Stories)
   ==================================================== */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  left: 40px;
  font-size: 7rem;
  line-height: 1;
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--accent);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}
.testimonial-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.rating {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 3px;
}

.testimonial-card blockquote {
  margin: 0;
  flex: 1;
}
.testimonial-card blockquote p {
  font-size: 1rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.8;
  margin: 0;
}

.testimonial-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--border-mid);
}

.author-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
}

.author-info {
  font-size: 0.82rem;
  color: var(--muted);
}
