:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --text: #1c1f26;
  --text-muted: #5b6270;
  --accent: #3454d1;
  --accent-dark: #263c9e;
  --border: #e4e7ec;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--text); }
.brand:hover { text-decoration: none; }
.nav nav a {
  margin-left: 24px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav nav a:hover { color: var(--accent); text-decoration: none; }
.nav nav a.active { color: var(--accent); }

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle { display: none; }

.hero {
  padding: 88px 24px 64px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}
.hero-inner { max-width: 560px; margin: 0 auto; }
.avatar {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg);
  box-shadow: 0 8px 30px rgba(20,25,40,0.12);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 24px;
}
.hero-cta {
  display: inline-flex;
  gap: 12px;
  margin-top: 8px;
}
.btn {
  font: inherit;
  font-weight: 600;
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-alt); }

.container { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 960px; margin: 0 auto; padding: 0 24px; }

.page-header {
  padding: 56px 24px 8px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}
.page-header h1 {
  font-size: 2rem;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.bio { padding: 56px 0; }
.bio h2, .contact h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.bio p { color: var(--text-muted); font-size: 1.05rem; }
.bio p + p { margin-top: 14px; }

.section { padding: 56px 0; }
.section-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  text-align: center;
}
.section-sub {
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 40px;
}

/* Gallery / Services grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.gallery-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 4px 16px rgba(20,25,40,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(20,25,40,0.08);
}
.gallery-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}
.gallery-card h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.gallery-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Blog listing */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 4px 16px rgba(20,25,40,0.04);
  display: flex;
  flex-direction: column;
}
.blog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.blog-card h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.blog-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 18px;
  flex-grow: 1;
}
.blog-card .read-more {
  font-weight: 600;
  font-size: 0.9rem;
}

.contact {
  background: var(--bg-alt);
  padding: 64px 0 72px;
  border-top: 1px solid var(--border);
}
.contact-note { color: var(--text-muted); margin-bottom: 28px; }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 4px 16px rgba(20,25,40,0.04);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.field input, .field textarea {
  font: inherit;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
}
.contact-form button {
  font: inherit;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 20px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.contact-form button:hover { background: var(--accent-dark); }
.form-status { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.contact-fallback {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.placeholder-flag {
  display: block;
  font-size: 0.78rem;
  color: #b45309;
  margin-top: 4px;
}

footer {
  text-align: center;
  padding: 28px 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}
footer nav {
  margin-bottom: 10px;
}
footer nav a {
  margin: 0 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
footer nav a:hover { color: var(--accent); }

@media (max-width: 480px) {
  .hero { padding: 64px 20px 48px; }
  .hero h1 { font-size: 1.9rem; }
  .nav nav a { margin-left: 14px; font-size: 0.88rem; }
}
