:root {
  --navy: #0B1C2C;
  --navy-light: #1A365D;
  --text: #1A202C;
  --text-muted: #4A5568;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --accent: #0B1C2C;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}
nav { display: flex; gap: 2rem; align-items: center; }
nav a {
  font-weight: 500;
  color: var(--text);
  position: relative;
}
nav a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--navy);
}
.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--navy-light); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(rgba(255,255,255,0.75), rgba(255,255,255,0.85)), url('https://images.unsplash.com/photo-1494522855154-9297ac14b55f?auto=format&fit=crop&w=1600&q=80') center/cover;
  padding: 6rem 1.5rem 5rem;
  text-align: left;
}
.hero-content { max-width: 1200px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.hero p {
  font-size: 1.15rem;
  max-width: 560px;
  color: var(--text);
  margin-bottom: 2rem;
}

/* Cards */
.section { padding: 4rem 1.5rem; }
.container { max-width: 1200px; margin: 0 auto; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid #edf2f7;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.card-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 0.5rem; }

/* Practice page */
.practice-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
}
.practice-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.practice-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
}
.practice-card h3 { color: var(--navy); margin: 1rem 0 0.5rem; }
.practice-card p { flex: 1; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.25rem; }
.sidebar {
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
}
.sidebar h2 { margin: 1rem 0; }
.sidebar .phone { font-size: 1.25rem; font-weight: 600; margin: 1.5rem 0 0.25rem; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.headshot {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: #e2e8f0;
}

/* Individual vertical alignment — lower % = more of the top of the head visible */
.headshot-michal   { object-position: center 30%; }
.headshot-dmitri   { object-position: center 20%; }
.headshot-anna     { object-position: center 0%; }
.headshot-mario    { object-position: center 32%; }
.headshot-richard  { object-position: center 44%; }
.team-card h3 { font-size: 1.75rem; color: var(--navy); }
.team-card .role { color: var(--navy); font-weight: 600; margin: 0.25rem 0 1rem; }
.read-more { color: var(--navy); font-weight: 500; font-size: 0.9rem; }

/* Footer */
footer {
  background: var(--navy);
  color: #e2e8f0;
  padding: 2.5rem 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  font-size: 0.95rem;
}
.footer-grid a { text-decoration: underline; }
.footer-right { text-align: right; }

/* Forms */
form { max-width: 640px; margin: 2rem auto; }
label { display: block; margin: 1rem 0 0.35rem; font-weight: 500; }
input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font: inherit;
}
textarea { min-height: 140px; }

/* Checkbox list — override global form styles */
.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0;
  font-weight: 400;
  cursor: pointer;
}
.checkbox-list input[type="checkbox"] {
  width: auto;
  margin: 0;
  padding: 0;
}

/* Back link hover */
.back-link {
  color: var(--navy);
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: background 0.15s;
}
.back-link:hover {
  background: #e2e8f0;
}
@media (max-width: 900px) {
  .practice-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .footer-right { text-align: left; }
  nav { display: none; } /* simple mobile - can improve later */
}

/* Reviews grid */
.reviews-grid .review-card {
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.reviews-grid .stars { color: #f59e0b; margin-bottom: 0.5rem; letter-spacing: 1px; }
.reviews-grid .reviewer { font-weight: 600; color: var(--navy); margin-top: 0.75rem; }
.reviews-grid .date { font-size: 0.8rem; color: var(--text-muted); }
@media (max-width: 800px) {
  #reviews-grid { grid-template-columns: 1fr !important; }
}
