@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #ffffff;
  --text: #1c2b3a;
  --accent: #4a6fa5;
  --accent-hover: #3a5a8f;
  --accent-light: #7ba7d4;
  --light: #f5f7fa;
  --border: #e2e8f0;
  --muted: #64748b;
  --muted-dark: #94a3b8;
  --placeholder-dark: #253447;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1080px;
  --radius: 8px;
}

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

html { font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 200;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav-logo:hover { color: var(--accent); }

.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-mobile { display: none; background: #fff; border-top: 1px solid var(--border); }
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; padding: 0.5rem 1.5rem 1rem; }
.nav-mobile li { border-bottom: 1px solid var(--border); }
.nav-mobile li:last-child { border-bottom: none; }
.nav-mobile a {
  display: block;
  padding: 0.8rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--accent); }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ─── LAYOUT ─── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ─── FOOTER ─── */
footer {
  background: var(--text);
  color: #94a3b8;
  text-align: center;
  padding: 1.25rem 1.5rem;
  font-size: 0.85rem;
}
footer a { color: #94a3b8; text-decoration: underline; }
footer a:hover { color: #fff; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s, border-color 0.15s;
  border: 2px solid transparent;
  line-height: 1;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(74, 111, 165, 0.35);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
  transform: translateY(-1px);
}

/* ─── SECTION LABEL ─── */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-label.on-dark { color: var(--accent-light); }

/* ─── SECTION BACKGROUNDS ─── */
.section-hero {
  background: #fff;
  padding: 5.5rem 0 5rem;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
}
.section-dark {
  background: var(--text);
  color: #fff;
  padding: 6rem 0;
}
.section-dark h2 { color: #fff; }
.section-dark .section-sub { color: var(--muted-dark); }
.section-light {
  background: var(--light);
  color: var(--text);
  padding: 6rem 0;
}
.section-white {
  background: #fff;
  color: var(--text);
  padding: 6rem 0;
}

/* ─── SECTION HEADINGS ─── */
.section-head { margin-bottom: 3rem; }
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 500px;
}

/* ─── HERO ─── */
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
.hero-text h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}
.hero-subheadline {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-text p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2.25rem;
  max-width: 500px;
  line-height: 1.7;
}
.hero-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 4px solid var(--border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  image-rendering: auto;
}

@media (max-width: 720px) {
  .section-hero { align-items: flex-start; padding-top: 4rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-photo { width: 150px; height: 150px; margin: 0 auto; order: -1; }
  .hero-text p { margin-left: auto; margin-right: auto; }
}

/* ─── PORTFOLIO ─── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.portfolio-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.portfolio-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}
.portfolio-card-preview {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.portfolio-card-preview-label {
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}
.portfolio-card-info {
  padding: 1rem 1.1rem 1.1rem;
  background: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.portfolio-card-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.portfolio-card-info p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}
.portfolio-card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.4rem;
}
.portfolio-card:hover .portfolio-card-link {
  text-decoration: underline;
}
.portfolio-card-placeholder {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px dashed #2d4060;
  background: var(--placeholder-dark);
  height: 100%;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  color: #4a6080;
  font-size: 0.85rem;
  text-align: center;
  padding: 1.5rem;
  gap: 0.5rem;
}
.portfolio-disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: var(--light);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent-light);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}
.section-dark .portfolio-disclaimer {
  background: rgba(255,255,255,0.06);
  border-left-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.55);
}
.section-dark .portfolio-disclaimer strong {
  color: rgba(255,255,255,0.75);
}
.portfolio-cta { margin-top: 2.5rem; text-align: center; }

@media (max-width: 720px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card-preview { height: 140px; }
}

/* ─── SERVICES ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.services-group {
  margin-bottom: 2.5rem;
}
.services-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.referral-callout {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  margin-top: 1rem;
  margin-bottom: 2rem;
}
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  background: #fff;
  transition: box-shadow 0.2s;
}
.service-card:hover { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07); }
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.service-price {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.service-price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.service-scope {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.service-card p { font-size: 0.93rem; color: var(--muted); line-height: 1.65; }
.services-note {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
}
.services-cta { margin-top: 3rem; text-align: center; }
.services-cta p { color: var(--muted); margin-bottom: 1.25rem; font-size: 1rem; }

@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; max-width: 420px; }
  .services-group { margin-bottom: 1.5rem; }
}

/* ─── ABOUT ─── */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.about-photo img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
}
.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.about-text p { font-size: 1rem; color: var(--muted-dark); margin-bottom: 1.25rem; line-height: 1.8; }
.about-text p:last-child { margin-bottom: 0; }
.about-highlight { color: #e2e8f0 !important; font-weight: 500; }

@media (max-width: 800px) {
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo img { height: 280px; }
}

/* ─── CONTACT ─── */
.contact-wrap { max-width: 540px; }
.contact-wrap h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}
.contact-wrap .lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 2.5rem; line-height: 1.65; }
.contact-email-block {
  display: inline-block;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 2rem;
}
.contact-email-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.contact-email-block a { font-size: 1.1rem; font-weight: 600; color: var(--accent); transition: color 0.15s; }
.contact-email-block a:hover { color: var(--accent-hover); text-decoration: underline; }
