:root {
  --bg:#0f0f10;
  --fg:#f5f7fb;
  --muted:#a8b0bd;
  --brand:#3aa0ff;
  --card:#17181a;
  --line:#232427;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);color:var(--fg);line-height:1.6;
}
a{color:var(--fg);text-decoration:none;}
a:hover{opacity:.9;}

/* ====== Header / Navigation base ====== */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px;
  background: rgba(15,15,16,.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .brand { font-weight: 700; color: var(--fg); }
.nav-menu { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-menu a { color: var(--muted); }
.nav .btn { margin-left: 8px; color: #000; background: var(--fg); padding: 8px 12px; border-radius: 10px; font-weight: 600; }

/* ====== Mobile Nav ====== */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 10px;
  padding: 8px 10px;
  margin-left: auto;
}

@media (max-width: 900px) {
  .nav { padding: 12px 16px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .nav-menu {
    position: fixed; left: 0; right: 0; top: 56px;
    background: rgba(15,15,16,0.97);
    backdrop-filter: saturate(180%) blur(8px);
    border-top: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: block;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .25s ease, opacity .2s ease;
    z-index: 100;
  }
  .nav-menu.open { max-height: 70vh; opacity: 1; }
  .nav-menu a { display: block; padding: 14px 20px; border-bottom: 1px solid var(--line); }
  .nav-menu .btn { display: block; margin: 12px 16px; text-align: center; }
  body.no-scroll { overflow: hidden; }
}

/* ====== HERO & COMMON SECTIONS ====== */
.hero {
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:40px;
  max-width:1100px;margin:80px auto;padding:60px 40px;border-radius:24px;
  background:linear-gradient(135deg,#101010,#1b1c1e);
}
.hero-text{flex:1 1 50%;min-width:300px;}
.hero-text h1{font-size:46px;line-height:1.1;margin:0 0 18px;}
.hero-text p{color:var(--muted);max-width:600px;margin:0 0 18px;}
.hero-photo{flex:1 1 45%;display:flex;justify-content:center;}
.hero-photo img{width:100%;max-width:420px;height:auto;border-radius:24px;filter:drop-shadow(0 4px 16px rgba(0,0,0,.4));transition:transform .3s ease,filter .3s ease;}
.hero-photo img:hover{transform:scale(1.02);filter:drop-shadow(0 6px 20px rgba(0,0,0,.55));}

/* Section boxes */
.cards,.why,.testimonials,.final-cta{
  max-width:1100px;margin:56px auto;padding:24px;background:var(--card);
  border:1px solid var(--line);border-radius:16px;
}

/* Grid cards */
.cards .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden;transition:transform .3s ease,box-shadow .3s ease;}
.card:hover{transform:translateY(-6px);box-shadow:0 4px 16px rgba(0,0,0,.4);}
.card img{width:100%;height:220px;object-fit:cover;}
.card h3{margin:14px 14px 6px;}
.card p{margin:0 14px 10px;color:var(--muted);}
.card .link{display:block;margin:0 14px 18px;color:var(--brand);font-weight:600;}

/* Footer */
.footer{max-width:1100px;margin:64px auto;padding:20px 24px;color:var(--muted);text-align:center;}
.footer nav a{margin:0 8px;}

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .cards .grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 520px) {
  .cards .grid { grid-template-columns: 1fr; }
  .hero { gap:28px;margin:40px auto;padding:28px 16px;border-radius:18px; }
  .hero-photo img{max-width:240px;border-radius:18px;}
  .footer { margin:40px auto; padding:16px; }
}
/* ==== PATCH: About preview two-column layout ==== */
.about-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.about-text p + p { margin-top: 12px; }
.about-photo { margin: 0; text-align: center; }
.about-photo img {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

/* Mobile stacking for About */
@media (max-width: 900px) {
  .about-wrap { grid-template-columns: 1fr; gap: 22px; }
  .about-photo img { max-width: 80vw; }
}

/* ==== PATCH: Why Work With Me grid (3-up) ==== */
.why .grid,
.grid.thirds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Mobile: stack Why section */
@media (max-width: 820px) {
  .why .grid,
  .grid.thirds { grid-template-columns: 1fr; }
}

/* ==== PATCH: Base button style (site-wide, not only header) ==== */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: 600;
}

/* Optional larger CTA button */
.btn.xl { padding: 14px 22px; border-radius: 14px; }

/* ==== PATCH: Testimonial styling (optional polish) ==== */
.testimonials blockquote {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.testimonials cite {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
/* --- Fix: responsive images everywhere --- */
img { max-width: 100%; height: auto; display: block; }

/* --- Fix: About preview image breaking on mobile --- */
.about-wrap { align-items: center; }
.about-text, .about-photo { min-width: 0; }          /* allows shrinking in grid */
.about-photo { text-align: center; overflow: hidden; }

.about-photo img {
  width: 100%;
  max-width: 340px;                                  /* desktop cap */
  height: auto;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

@media (max-width: 900px) {
  .about-wrap { grid-template-columns: 1fr; gap: 22px; }
  .about-photo img {
    max-width: min(86vw, 360px);                     /* clamp for small phones */
  }
}

/* (Optional) put image above text on mobile */
/*
@media (max-width: 900px) {
  .about-photo { order: -1; }
}
*/
