/* ============================================================
   NISHITH MISTRY — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ============================================================
   Variables
   ============================================================ */
:root {
  --bg:       #ffffff;   /* default white */
  --bg-alt:   #f8f6f3;   /* alternating sections — barely-there warm tint */
  --bg-tag:   #ede9e2;   /* visible beige: tags, blockquotes, small accents only */

  --text:       #1b2b1b;
  --text-muted: #5e5a53;

  --green:        #213d17;
  --green-mid:    #2d5220;
  --green-accent: #3d6e2a;
  --gold:         #9a7b35;

  /* Red — emergency only */
  --red:        #b91c1c;
  --red-dark:   #991b1b;
  --red-soft:   #fff5f5;
  --red-border: rgba(185,28,28,0.15);

  --border:        rgba(27,43,27,0.09);
  --border-strong: rgba(27,43,27,0.16);

  --shadow:    0 2px 4px rgba(27,43,27,0.06), 0 6px 20px rgba(27,43,27,0.07);
  --shadow-lg: 0 4px 8px rgba(27,43,27,0.05), 0 16px 48px rgba(27,43,27,0.09);

  --r:         6px;
  --r-lg:      14px;
  --font-h:    'DM Serif Display', Georgia, serif;
  --font-b:    'DM Sans', system-ui, -apple-system, sans-serif;
  --container: 1140px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body   {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background-image: radial-gradient(circle, rgba(27,43,27,0.055) 1px, transparent 1px);
  background-size: 22px 22px;
}
img    { max-width: 100%; display: block; }
a      { color: inherit; text-decoration: none; }
ul     { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   Section alternating backgrounds
   ============================================================ */
section            { padding: 96px 0; }
section.alt        { background: var(--bg-alt); }
section.emergency-hero {
  background: var(--bg);
  border-bottom: 3px solid var(--red);
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-h);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); }
h4 { font-size: 1.05rem; }

h1 em, h2 em, h3 em { color: var(--green-accent); font-style: italic; }
p { line-height: 1.7; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-b);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 36px;
}
.section-intro { max-width: 560px; margin-bottom: 56px; }
.section-intro p { font-size: 1.05rem; color: var(--text-muted); margin-top: 14px; }

.two-col-wide {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: start;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r);
  font-family: var(--font-b);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.18s ease;
  white-space: nowrap;
  border: none;
  line-height: 1;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-mid); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border-strong); }
.btn-outline:hover { border-color: var(--green); color: var(--green); transform: translateY(-1px); }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(185,28,28,0.25); }

.btn-light { background: #fff; color: var(--green); border: none; }
.btn-light:hover { background: #f5f5f5; transform: translateY(-1px); }

.btn-light-red { background: #fff; color: var(--red); border: none; }
.btn-light-red:hover { background: #f5f5f5; transform: translateY(-1px); }

.btn-ghost-light { background: transparent; border: 1.5px solid rgba(255,255,255,0.35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }

.btn-outline-red { background: transparent; border: 1.5px solid rgba(255,255,255,0.4); color: #fff; }
.btn-outline-red:hover { border-color: #fff; }

.btn-arrow::after { content: ' →'; }

.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.wa-link:hover { color: var(--green); }

/* ============================================================
   Navigation — white background
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 36px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo    { font-family: var(--font-h); font-size: 1.15rem; color: var(--text); white-space: nowrap; flex-shrink: 0; }
.nav-logo em { font-style: italic; color: var(--green-accent); }
.nav-links   { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 11px;
  border-radius: 4px;
  color: var(--text-muted);
  transition: color 0.18s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--green) !important;
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 4px;
  margin-left: 8px;
}
.nav-cta:hover { opacity: 0.88 !important; }

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

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 36px 24px;
  background: #fff;
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  padding: 12px 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.18s;
}
.nav-mobile a:hover { color: var(--text); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile-cta {
  display: block;
  margin-top: 14px;
  padding: 13px 20px;
  background: var(--green);
  color: #fff !important;
  border-radius: var(--r);
  text-align: center;
  font-size: 0.875rem !important;
  border-bottom: none !important;
}

/* ============================================================
   Stats Row
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-strong);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat-item { background: #fff; padding: 28px 26px; }
section.alt .stat-item { background: var(--bg-alt); }
.stat-num {
  display: block;
  font-family: var(--font-h);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--text);
  margin-bottom: 5px;
}
.stat-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }

/* ============================================================
   Cards
   ============================================================ */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; }
.card-elevated { box-shadow: var(--shadow-lg); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 50px;
  font-family: var(--font-b);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge-gold    { background: var(--gold); color: #fff; }
.badge-green   { background: var(--green); color: #fff; }
.badge-red     { background: var(--red); color: #fff; }
.badge-outline { border: 1px solid var(--border-strong); color: var(--text-muted); }

/* ============================================================
   Checklist
   ============================================================ */
.checklist { display: flex; flex-direction: column; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.checklist li:last-child { border-bottom: none; }
.check-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 1px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8.5L6 11.5L13 4.5' stroke='%232d5220' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* ============================================================
   Tile grids
   ============================================================ */
.tile-grid {
  display: grid;
  gap: 1px;
  background: var(--border-strong);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tile-grid--4 { grid-template-columns: repeat(4, 1fr); }
.tile-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tile-grid--2 { grid-template-columns: repeat(2, 1fr); }

.tile { background: #fff; padding: 32px 28px; }
section.alt .tile { background: var(--bg-alt); }
.step-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-family: var(--font-b);
}
.tile h4 { font-family: var(--font-h); font-size: 1.15rem; margin-bottom: 10px; }
.tile p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
section.alt .testimonial { background: var(--bg-alt); }
.testimonial-quote { font-style: italic; font-size: 0.9rem; line-height: 1.75; opacity: 0.88; margin-bottom: 24px; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 600; flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 0.875rem; }
.author-meta { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================================
   Trust attrs
   ============================================================ */
.attrs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-strong);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 48px;
}
.attr { background: #fff; padding: 28px 24px; }
section.alt .attr { background: var(--bg-alt); }
.attr-label { font-family: var(--font-h); font-size: 1.3rem; margin-bottom: 6px; }
.attr-desc  { font-size: 0.825rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   CTA Banner (green)
   ============================================================ */
.cta-banner {
  background: var(--green);
  border-radius: var(--r-lg);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  color: #fff;
}
.cta-banner h2    { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-banner h2 em { color: rgba(255,255,255,0.65); }
.cta-banner p     { color: rgba(255,255,255,0.72); margin-top: 10px; font-size: 0.95rem; }
.cta-body         { flex: 1; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; flex-shrink: 0; }
.cta-banner .wa-link { color: rgba(255,255,255,0.55); }
.cta-banner .wa-link:hover { color: #fff; }

/* CTA Banner emergency variant — same green as everywhere, red border-top accent */
.cta-banner-red { border-top: 3px solid var(--red); }

/* ============================================================
   Emergency Strip — white bg, red left-border accent (matches card style)
   ============================================================ */
.emergency-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
}
.emergency-strip .eyebrow { color: var(--red); }
.emergency-strip h2       { color: var(--text); }
.emergency-strip h2 em    { color: var(--green-accent); }
.emergency-strip p        { color: var(--text-muted); }
.emergency-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  border-left: 4px solid var(--red);
  padding-left: 32px;
}
.emergency-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 32px;
  margin-top: 28px;
}
.emergency-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.emergency-list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.5;
  flex-shrink: 0;
}
.emergency-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

/* Emergency callout card — white with red left-border, dark text */
.emergency-callout {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  border-left: 4px solid var(--red);
  padding: 32px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
section.alt .emergency-callout { background: var(--bg-alt); }
.emergency-callout-badge { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.emergency-callout h3 { color: var(--text); font-size: 1.3rem; }
.emergency-callout p  { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; max-width: 520px; }

/* Issue timing labels — red */
.issue-timing { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }

/* ============================================================
   Footer
   ============================================================ */
footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo    { font-family: var(--font-h); font-size: 1rem; color: var(--text); }
.footer-logo em { font-style: italic; color: var(--green-accent); }
.footer-copy    { font-size: 0.8rem; color: var(--text-muted); }
.footer-links   { display: flex; gap: 20px; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); transition: color 0.18s; }
.footer-links a:hover { color: var(--text); }

/* ============================================================
   Home Hero
   ============================================================ */
.hero { padding: 80px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1fr 420px; gap: 64px; align-items: start; }
.hero h1    { margin-bottom: 24px; }
.hero-sub   { font-size: 1.05rem; color: var(--text-muted); max-width: 520px; line-height: 1.75; margin-bottom: 16px; }
.hero-blockquote {
  background: var(--bg-tag);
  border-left: 3px solid var(--green-accent);
  padding: 13px 16px;
  margin-bottom: 32px;
  border-radius: 0 4px 4px 0;
  max-width: 500px;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.hero-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  margin-top: 16px;
}
.hero-card-badge { position: absolute; top: -13px; right: 20px; }
.hero-card-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-family: var(--font-b);
}
.hero-card h3 { font-size: 1.1rem; margin-bottom: 20px; max-width: 260px; }
.trusted-bar  { padding-top: 20px; margin-top: 24px; border-top: 1px solid var(--border); }
.trusted-bar .eyebrow { margin-bottom: 10px; }
.trusted-logos { display: flex; flex-wrap: wrap; gap: 7px; }
.trusted-logos span {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-tag);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 4px;
}

/* ============================================================
   Page Hero (inner pages)
   ============================================================ */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--border); }
.page-hero-inner { display: grid; grid-template-columns: 1fr 400px; gap: 64px; align-items: start; }
.page-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.page-hero .hero-actions { margin-top: 28px; }

/* ============================================================
   About page — photo placeholder
   ============================================================ */
.about-photo-wrap { display: flex; justify-content: center; padding-top: 4px; }
.photo-placeholder {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3/4;
  border-radius: var(--r-lg);
  border: 2px dashed var(--border-strong);
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-muted);
  text-align: center;
  padding: 28px 20px;
}
.photo-placeholder svg    { opacity: 0.3; }
.photo-placeholder strong { font-weight: 500; font-size: 0.9rem; color: var(--text-muted); display: block; }
.photo-placeholder span   { font-size: 0.78rem; opacity: 0.7; }

/* ============================================================
   Timeline
   ============================================================ */
.timeline { border: 1px solid var(--border-strong); border-radius: var(--r-lg); overflow: hidden; }
.timeline-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
section.alt .timeline-item { background: var(--bg-alt); }
.timeline-item:last-child { border-bottom: none; }
.timeline-date {
  padding: 24px 24px 24px 28px;
  border-right: 1px solid var(--border);
  background: var(--bg-alt);
}
.timeline-date .date-range { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 6px; }
.timeline-date .company    { font-size: 0.82rem; font-weight: 500; color: var(--green-accent); }
.timeline-content          { padding: 24px 28px; }
.timeline-content h4       { font-family: var(--font-h); font-size: 1.05rem; margin-bottom: 8px; }
.timeline-content p        { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   Skills tags
   ============================================================ */
.skills-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 50px;
  background: var(--bg-tag);
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: all 0.18s;
}
.skill-tag:hover    { background: var(--green); color: #fff; border-color: var(--green); }
.skill-tag.featured { background: var(--green); color: #fff; border-color: var(--green); }

/* ============================================================
   Project grid
   ============================================================ */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;         /* clips the media image to rounded corners */
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
section.alt .project-card { background: var(--bg-alt); }
.project-card:hover        { box-shadow: var(--shadow); transform: translateY(-2px); }

/* Media slot — top of card */
.project-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-tag);
  border-bottom: 1px solid var(--border);
  position: relative;
  flex-shrink: 0;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}
.project-card:hover .project-media img { transform: scale(1.03); }

/* Placeholder shown when no image is provided */
.project-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed var(--border-strong);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.project-media-placeholder svg { opacity: 0.25; }

/* Card body padding */
.project-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.project-type { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.project-card h4 { font-family: var(--font-h); font-size: 1.1rem; }
.project-tags    { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tag     { font-size: 0.72rem; font-weight: 500; padding: 3px 9px; border-radius: 4px; background: var(--bg-tag); border: 1px solid var(--border); color: var(--text-muted); }
.project-card p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.project-link    { font-size: 0.82rem; font-weight: 500; color: var(--green-accent); }
.project-link:hover { text-decoration: underline; }

.filter-tabs { display: flex; gap: 6px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-tab  {
  font-family: var(--font-b);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  transition: all 0.18s;
}
.filter-tab:hover  { color: var(--text); border-color: var(--text); }
.filter-tab.active { background: var(--green); color: #fff; border-color: var(--green); }

/* ============================================================
   Case study
   ============================================================ */
.case-study {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
section.alt .case-study { background: var(--bg-alt); }
.case-study-meta { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-bottom: -16px; }
.case-section-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); font-family: var(--font-b); margin-bottom: 8px; }
.case-study h4 { font-family: var(--font-h); font-size: 1.05rem; margin-bottom: 10px; }
.case-study p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }
.case-result   { background: var(--bg-tag); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 18px; margin-top: 12px; font-size: 0.875rem; color: var(--green-mid); font-weight: 500; }

/* ============================================================
   Pricing
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pricing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
section.alt .pricing-card { background: var(--bg-alt); }
.pricing-card.featured {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
}
.pricing-card.featured .pricing-tier { color: var(--red); }
.pricing-card.featured h3            { color: var(--red); }
.pricing-card.featured .pricing-desc,
.pricing-card.featured .pricing-feature { color: var(--text-muted); }
.pricing-card.featured .pricing-divider { background: var(--border); }
.pricing-card.featured .pricing-feature::before { color: var(--green-accent); }
.pricing-tier    { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.pricing-card h3 { font-size: 1.35rem; margin-bottom: 4px; }
.pricing-desc    { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 24px; }
.pricing-divider { height: 1px; background: var(--border); margin-bottom: 20px; }
.pricing-features { display: flex; flex-direction: column; gap: 9px; flex: 1; margin-bottom: 28px; }
.pricing-feature { display: flex; align-items: flex-start; gap: 9px; font-size: 0.875rem; color: var(--text-muted); }
.pricing-feature::before { content: '✓'; font-size: 0.72rem; font-weight: 700; color: var(--green-accent); margin-top: 1px; flex-shrink: 0; }
.pricing-label-featured { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--red); color: #fff; padding: 3px 10px; border-radius: 50px; margin-bottom: 16px; display: inline-block; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { border: 1px solid var(--border-strong); border-radius: var(--r-lg); overflow: hidden; }
.faq-item { background: #fff; border-bottom: 1px solid var(--border); }
section.alt .faq-item { background: var(--bg-alt); }
.faq-item:last-child { border-bottom: none; }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; cursor: pointer; gap: 20px; font-weight: 500; font-size: 0.95rem; background: none; border: none; width: 100%; text-align: left; color: var(--text); transition: background 0.18s; }
.faq-question:hover { background: rgba(27,43,27,0.025); }
.faq-icon { width: 20px; height: 20px; flex-shrink: 0; border: 1.5px solid var(--border-strong); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--text-muted); transition: all 0.2s; }
.faq-item.open .faq-icon { background: var(--green); border-color: var(--green); color: #fff; transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 28px 22px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; max-width: 640px; }
.faq-item.open .faq-answer { display: block; }

/* ============================================================
   Process & Issues grids
   ============================================================ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-strong); border: 1px solid var(--border-strong); border-radius: var(--r-lg); overflow: hidden; }
.process-step { background: #fff; padding: 32px 26px; }
section.alt .process-step { background: var(--bg-alt); }
.process-num  { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; display: block; }
.process-step h4 { font-family: var(--font-h); font-size: 1.1rem; margin-bottom: 10px; }
.process-step p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }

.issues-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-strong); border: 1px solid var(--border-strong); border-radius: var(--r-lg); overflow: hidden; }
.issue-tile { background: #fff; padding: 28px; }
section.alt .issue-tile { background: var(--bg-alt); }
.issue-tile h4 { font-family: var(--font-h); font-size: 1.05rem; margin-bottom: 8px; }
.issue-tile p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 12px; }

/* ============================================================
   Animations
   ============================================================ */

/* Hero loads immediately — staggered fade-up via CSS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero .eyebrow       { animation: fadeUp 0.5s ease 0.05s both; }
.hero h1             { animation: fadeUp 0.55s ease 0.1s both; }
.hero-sub            { animation: fadeUp 0.5s ease 0.2s both; }
.hero-blockquote     { animation: fadeUp 0.5s ease 0.27s both; }
.hero-actions        { animation: fadeUp 0.5s ease 0.32s both; }
.hero > .container > .hero-inner > div:first-child > .wa-link { animation: fadeUp 0.5s ease 0.38s both; }
.hero-card           { animation: fadeUp 0.6s ease 0.2s both; }
.hero .stats-row     { animation: fadeUp 0.5s ease 0.44s both; }

.page-hero .eyebrow      { animation: fadeUp 0.5s ease 0.05s both; }
.page-hero h1            { animation: fadeUp 0.55s ease 0.12s both; }
.page-hero > .container > .page-hero-inner > div:first-child > p { animation: fadeUp 0.5s ease 0.22s both; }
.page-hero .hero-actions { animation: fadeUp 0.5s ease 0.3s both; }
.about-photo-wrap        { animation: fadeUp 0.6s ease 0.22s both; }

/* Scroll-triggered fade-up (JS adds data-anim, reveals on scroll with .in-view) */
[data-anim] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.44s ease, transform 0.44s ease;
}
[data-anim].in-view {
  opacity: 1;
  transform: none;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero-sub, .hero-blockquote,
  .hero-actions, .hero-card, .hero .stats-row,
  .page-hero .eyebrow, .page-hero h1, .page-hero .hero-actions,
  .about-photo-wrap {
    animation: none;
    opacity: 1;
    transform: none;
  }
  [data-anim] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  section { padding: 72px 0; }
  .hero-inner, .page-hero-inner { grid-template-columns: 1fr; }
  .hero-card { margin-top: 0; max-width: 460px; }
  .about-photo-wrap { justify-content: flex-start; }
  .photo-placeholder { max-width: 240px; }
  .tile-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .tile-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .attrs-grid        { grid-template-columns: repeat(2, 1fr); }
  .stats-row         { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid      { grid-template-columns: 1fr; max-width: 420px; }
  .projects-grid     { grid-template-columns: repeat(2, 1fr); }
  .issues-grid       { grid-template-columns: repeat(2, 1fr); }
  .two-col-wide      { grid-template-columns: 1fr; gap: 40px; }
  .cta-banner        { flex-direction: column; align-items: flex-start; padding: 48px 36px; }
  .cta-actions       { align-items: flex-start; }
  .emergency-inner   { flex-direction: column; align-items: flex-start; }
  .emergency-callout { flex-direction: column; align-items: flex-start; }
  .case-study        { grid-template-columns: 1fr; padding: 28px; }
  .case-study-meta   { grid-column: 1; }
  .timeline-item     { grid-template-columns: 1fr; }
  .timeline-date     { border-right: none; border-bottom: 1px solid var(--border); }
  .process-grid      { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container     { padding: 0 20px; }
  .nav-inner     { padding: 0 20px; height: 58px; }
  .nav-links     { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile    { padding: 16px 20px 24px; }
  .footer-inner  { padding: 0 20px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links  { flex-wrap: wrap; gap: 14px; }
}

@media (max-width: 580px) {
  section { padding: 56px 0; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.65rem; }
  .tile-grid--4, .tile-grid--3, .tile-grid--2 { grid-template-columns: 1fr; }
  .process-grid     { grid-template-columns: 1fr; }
  .issues-grid      { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .projects-grid    { grid-template-columns: 1fr; }
  .attrs-grid       { grid-template-columns: repeat(2, 1fr); }
  .cta-banner       { padding: 36px 24px; }
  .emergency-list   { grid-template-columns: 1fr; }
}


/* ============================================================
   HOMEPAGE ADDITIONS — append these rules to the end of styles.css
   ============================================================ */


/* ─── Hero identity (headshot + name block) ─── */
.hero-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.hero-photo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2.5px solid var(--border-strong);
  flex-shrink: 0;
}
.hero-identity-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.hero-identity-role {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}


/* ─── Equal-width hero buttons ─── */
/* Apply class btn-equal to both hero CTA buttons */
.btn-equal {
  min-width: 210px;
  justify-content: center;
  text-align: center;
}


/* ─── Wide section-intro — prevents heading wrapping on large screens ─── */
/* Applies to "Four steps, zero hand-holding" and "Built on long-term partnerships" */
.section-intro.wide {
  max-width: 820px;
}


/* ─── Upwork badge on hero card — make it a proper link ─── */
.hero-upwork-badge {
  text-decoration: none;
  transition: opacity 0.18s;
}
.hero-upwork-badge:hover {
  opacity: 0.85;
}

/* ─── Upwork profile text link (inside trusted-bar) ─── */
.upwork-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green-accent);
  text-decoration: none;
  transition: color 0.18s;
}
.upwork-profile-link:hover {
  color: var(--green);
  text-decoration: underline;
}


/* ─── Why choose me — 4-card grid ─── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
}
section.alt .why-card { background: var(--bg-alt); }
.why-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-tag);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--green-accent);
  flex-shrink: 0;
}
.why-card h4 {
  font-family: var(--font-h);
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.why-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}


/* ─── Testimonials 2×2 grid modifier ─── */
.testimonials-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}


/* ─── Footer contact icons (WhatsApp + Phone) ─── */
.footer-contact {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-tag);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  transition: all 0.18s;
  text-decoration: none;
}
.footer-contact-icon:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-1px);
}


/* ─── Responsive additions ─── */
@media (max-width: 960px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid--2col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .footer-contact { order: -1; }   /* move icons before copy on mobile */
  .btn-equal { min-width: 0; flex: 1; }
}

@media (max-width: 580px) {
  .why-grid { grid-template-columns: 1fr; }
  .testimonials-grid--2col { grid-template-columns: 1fr; }
  .hero-identity { margin-bottom: 20px; }
  .hero-photo { width: 56px; height: 56px; }
}

/* ============================================================
   HOMEPAGE ADDITIONS — paste entire block at the bottom of styles.css
   ============================================================ */


/* ─── Equal-width hero CTA buttons ─── */
.btn-equal {
  min-width: 210px;
  justify-content: center;
  text-align: center;
}


/* ─── Hero social links row (WhatsApp + LinkedIn) ─── */
.hero-social-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.hero-social-sep {
  color: var(--border-strong);
  font-size: 1rem;
}
.hero-social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.hero-social-link:hover { color: var(--green); }


/* ─── Upwork badge — link treatment ─── */
.hero-card-badge[href] { transition: opacity 0.18s; }
.hero-card-badge[href]:hover { opacity: 0.82; }

/* ─── Upwork profile text link (inside trusted-bar) ─── */
.upwork-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green-accent);
  text-decoration: none;
  transition: color 0.18s;
}
.upwork-profile-link:hover { color: var(--green); text-decoration: underline; }


/* ─── Wide section-intro: prevents heading wrap on key sections ─── */
.section-intro.wide { max-width: 820px; }


/* ─── Portfolio grid (6 cards, 3 columns) ─── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.portfolio-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
section.alt .portfolio-card { background: var(--bg-alt); }
.portfolio-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.portfolio-thumb {
  height: 190px;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  transition: background-position 6s ease;
}
.portfolio-card:hover .portfolio-thumb { background-position: bottom center; }

.portfolio-info { padding: 16px 18px 20px; }
.portfolio-type {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.portfolio-name {
  font-family: var(--font-h);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
}
.portfolio-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 10px;
}
.portfolio-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--green-accent);
  text-decoration: none;
}
.portfolio-link:hover { text-decoration: underline; }
.portfolio-footer {
  text-align: center;
  margin-top: 36px;
}


/* ─── Why choose me grid (4 cards) ─── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
}
section.alt .why-card { background: var(--bg-alt); }
.why-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-tag);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--green-accent);
}
.why-card h4 { font-family: var(--font-h); font-size: 1.05rem; margin-bottom: 10px; }
.why-card p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }


/* ─── Quote form — 2-column layout ─── */
.qf-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Left: intro copy */
.qf-intro {}
.qf-intro h2 { margin-bottom: 0; }

.qf-promises {
  list-style: none;
  margin: 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qf-promises li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.qf-promises li svg { color: var(--green-accent); flex-shrink: 0; }

.qf-alt-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.18s;
}
.qf-alt-link:hover { color: var(--green); border-color: var(--green); }

/* Right: form card */
.qf-form-wrap {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 36px 32px;
}
section.alt .qf-form-wrap { background: var(--bg-alt); }

.qf-toggle-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.qf-toggle {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.qf-toggle-btn {
  padding: 7px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-b);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
}
.qf-toggle-btn:hover { color: var(--text); border-color: var(--text); }
.qf-toggle-btn.active { background: var(--green); color: #fff; border-color: var(--green); }

.qf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.qf-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.qf-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.qf-input,
.qf-textarea {
  padding: 10px 13px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r);
  font-family: var(--font-b);
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg);
  width: 100%;
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: none;
  -webkit-appearance: none;
}
.qf-input::placeholder,
.qf-textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.qf-input:focus,
.qf-textarea:focus {
  outline: none;
  border-color: var(--green-accent);
  box-shadow: 0 0 0 3px rgba(61,110,42,0.08);
}
.qf-textarea { resize: vertical; min-height: 100px; }
.qf-submit { width: 100%; justify-content: center; margin-top: 4px; }


/* ─── Testimonials 2×2 grid modifier ─── */
.testimonials-grid--2col { grid-template-columns: repeat(2, 1fr); }


/* ─── Footer contact icons ─── */
.footer-contact {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-tag);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.18s;
}
.footer-contact-icon:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-1px);
}


/* ─── Responsive ─── */
@media (max-width: 960px) {
  .portfolio-grid  { grid-template-columns: repeat(2, 1fr); }
  .why-grid        { grid-template-columns: repeat(2, 1fr); }
  .qf-layout       { grid-template-columns: 1fr; gap: 40px; }
  .testimonials-grid--2col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .footer-contact  { order: -1; }
  .btn-equal       { min-width: 0; flex: 1; }
  .qf-row          { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .portfolio-grid  { grid-template-columns: 1fr; }
  .why-grid        { grid-template-columns: 1fr; }
  .testimonials-grid--2col { grid-template-columns: 1fr; }
  .qf-form-wrap    { padding: 24px 20px; }
}

.cta-actions .btn {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   STYLES ADDITIONS — paste this entire block at the END of assets/styles.css
   ============================================================ */


/* ─── Equal-width hero CTA buttons ─── */
.btn-equal {
  min-width: 210px;
  justify-content: center;
  text-align: center;
}


/* ─── Hero social links row (WhatsApp + LinkedIn) ─── */
.hero-social-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.hero-social-sep { color: var(--border-strong); }
.hero-social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.hero-social-link:hover { color: var(--green); }


/* ─── Upwork badge link treatment ─── */
.hero-card-badge[href] { transition: opacity 0.18s; }
.hero-card-badge[href]:hover { opacity: 0.82; }

/* ─── Upwork profile link (inside trusted-bar) ─── */
.upwork-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green-accent);
  text-decoration: none;
  transition: color 0.18s;
}
.upwork-profile-link:hover { color: var(--green); text-decoration: underline; }


/* ─── Wide section-intro — keeps long headings on one line ─── */
/* Applies to: "Transparent pricing, no surprises",
               "Four steps, zero hand-holding",
               "Built on long-term partnerships",
               "What sets me apart from the rest",
               "Questions agencies ask before partnering",
               "Every urgent Shopify... problem handled",
               "How emergency fixes work — simple, fast, no drama",
               "Transparent emergency fix pricing",
               "Agencies and clients who've been here"            */
.section-intro.wide {
  max-width: 820px;
}


/* ─── Portfolio grid (6 cards, 3-col) ─── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.portfolio-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
section.alt .portfolio-card { background: var(--bg-alt); }
.portfolio-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* Scroll-on-hover thumbnail */
.portfolio-thumb {
  height: 210px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background-color: #f0f0f0;
  background-size: 100% auto;      /* full width, natural height — enables scroll */
  background-position: top center;
  background-repeat: no-repeat;
  transition: background-position 6s linear;
  cursor: pointer;
}
.portfolio-thumb:hover { background-position: bottom center; }

.portfolio-info { padding: 16px 18px 20px; }
.portfolio-type {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.portfolio-name {
  font-family: var(--font-h);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
}
.portfolio-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 10px;
}
.portfolio-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--green-accent);
  text-decoration: none;
}
.portfolio-link:hover { text-decoration: underline; }
.portfolio-footer { text-align: center; margin-top: 36px; }


/* ─── Why choose me grid (4 cards) ─── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
}
section.alt .why-card { background: var(--bg-alt); }
.why-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-tag);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--green-accent);
}
.why-card h4 { font-family: var(--font-h); font-size: 1.05rem; margin-bottom: 10px; }
.why-card p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }


/* ─── Quote form — 2-column layout ─── */
.qf-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.qf-intro h2 { margin-bottom: 0; }
.qf-promises {
  list-style: none;
  margin: 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qf-promises li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.qf-promises li svg { color: var(--green-accent); flex-shrink: 0; }
.qf-alt-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.18s;
}
.qf-alt-link:hover { color: var(--green); border-color: var(--green); }

/* Form card */
.qf-form-wrap {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 36px 32px;
}
section.alt .qf-form-wrap { background: var(--bg-alt); }
.qf-toggle-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.qf-toggle {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.qf-toggle-btn {
  padding: 7px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-b);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
}
.qf-toggle-btn:hover { color: var(--text); border-color: var(--text); }
.qf-toggle-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
.qf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.qf-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.qf-label { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.qf-input, .qf-textarea {
  padding: 10px 13px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r);
  font-family: var(--font-b);
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg);
  width: 100%;
  transition: border-color 0.18s, box-shadow 0.18s;
  -webkit-appearance: none;
  appearance: none;
}
/* Lighter placeholders */
.qf-input::placeholder, .qf-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.35;
}
.qf-input:focus, .qf-textarea:focus {
  outline: none;
  border-color: var(--green-accent);
  box-shadow: 0 0 0 3px rgba(61,110,42,0.08);
}
.qf-textarea { resize: vertical; min-height: 100px; }
.qf-submit { width: 100%; justify-content: center; margin-top: 4px; }


/* ─── Testimonials 2×2 grid modifier ─── */
.testimonials-grid--2col { grid-template-columns: repeat(2, 1fr); }


/* ─── Footer contact icons (WA · Phone · LinkedIn · Upwork) ─── */
.footer-contact { display: flex; align-items: center; gap: 6px; }
.footer-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-tag);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.18s;
}
.footer-contact-icon:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-1px);
}


/* ─── CTA banner equal-width buttons ─── */
.cta-actions .btn { width: 100%; justify-content: center; }


/* ─── Emergency single pricing card ─── */
.emerg-pricing-wrap {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.emerg-pricing-card {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-top: 4px solid var(--red);
  border-radius: var(--r-lg);
  padding: 40px 48px;
  max-width: 860px;
  width: 100%;
}
section.alt .emerg-pricing-card { background: var(--bg-alt); }
.emerg-pricing-top { text-align: center; margin-bottom: 32px; }
.emerg-pricing-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.emerg-pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.emerg-price-from {
  font-size: 1rem;
  color: var(--text-muted);
}
.emerg-price-num {
  font-family: var(--font-h);
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
}
.emerg-pricing-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.emerg-pricing-divider {
  height: 1px;
  background: var(--border);
  margin: 0 0 28px;
}
.emerg-pricing-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}
.emerg-feature-col {}
.emerg-col-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.emerg-feature-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.emerg-feature-col ul li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.emerg-feature-col ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 0.75rem;
  top: 1px;
}
.emerg-pricing-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ─── No fix = no charge guarantee strip ─── */
.guarantee-strip {
  background: linear-gradient(135deg, #f0f7eb 0%, #e8f5e0 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.guarantee-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}
.guarantee-icon {
  width: 48px;
  height: 48px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.guarantee-title {
  font-family: var(--font-h);
  font-size: 1.3rem;
  margin-bottom: 4px;
  color: var(--text);
}
.guarantee-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}


/* ─── Responsive ─── */
@media (max-width: 960px) {
  .portfolio-grid            { grid-template-columns: repeat(2, 1fr); }
  .why-grid                  { grid-template-columns: repeat(2, 1fr); }
  .qf-layout                 { grid-template-columns: 1fr; gap: 40px; }
  .testimonials-grid--2col   { grid-template-columns: repeat(2, 1fr); }
  .emerg-pricing-features    { grid-template-columns: 1fr; gap: 20px; }
  .emerg-pricing-card        { padding: 32px 28px; }
}

@media (max-width: 768px) {
  .footer-contact            { order: -1; }
  .btn-equal                 { min-width: 0; flex: 1; }
  .qf-row                    { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .portfolio-grid            { grid-template-columns: 1fr; }
  .why-grid                  { grid-template-columns: 1fr; }
  .testimonials-grid--2col   { grid-template-columns: 1fr; }
  .qf-form-wrap              { padding: 24px 18px; }
  .guarantee-inner           { flex-direction: column; text-align: center; }
}


.pricing-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .pricing-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .pricing-grid--4 { grid-template-columns: 1fr; }
}

@media only screen and (min-width: 768px) {
  .section-intro h2 {
    white-space: nowrap;
  }
}

@media only screen and (max-width: 768px) {
  .section-intro h2 {
    white-space: unset !important;
  }
}


/* ── Dark green form section (homepage) ── */
.qf-section-dark {
  background: var(--green);           /* dark green background */
  padding: 80px 0;
}

.qf-form-wrap-dark {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-lg);
  padding: 36px 32px;
}

.qf-toggle-dark .qf-toggle-btn {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.65);
}
.qf-toggle-dark .qf-toggle-btn:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.qf-toggle-dark .qf-toggle-btn.active {
  background: #fff;
  border-color: #fff;
  color: var(--green);
}

.qf-label-light { color: rgba(255,255,255,0.75); }

.qf-input-dark {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.qf-input-dark::placeholder { color: rgba(255,255,255,0.35); }
.qf-input-dark:focus {
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

.qf-promises-light li { color: rgba(255,255,255,0.7); }
.qf-promises-light li svg { color: rgba(255,255,255,0.55); }

.qf-alt-link-light {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
}
.qf-alt-link-light:hover {
  border-color: #fff;
  color: #fff;
}

/* ── Guarantee strip (shared between home + emergency) ── */
.guarantee-strip {
  background: var(--bg-tag);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.guarantee-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}
.guarantee-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.guarantee-title {
  font-family: var(--font-h);
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 4px;
}
.guarantee-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 580px) {
  .qf-form-wrap-dark { padding: 24px 20px; }
  .guarantee-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .footer-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 0;
  }

  .footer-logo    { order: 1; flex: 0 0 auto; }
  .footer-contact { order: 2; flex: 0 0 auto; gap: 8px; }
  .footer-contact svg { width: 14px; height: 14px; }
  .footer-links   { display: none; }
  .footer-copy    { order: 4; flex: 0 0 100%; font-size: 0.8rem; color: var(--text-muted); text-align: left; }

  .cta-actions {
    width: 100%;
  }

  .emerg-pricing-cta a.btn.btn-outline {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
.qf-layout {
        grid-template-columns: 100% !important;}
}