/* ============================================
   Vytautas Tamulevicius — Consulting Site
   Shared Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Variables ── */
:root {
  --bg:         #F9F8F6;
  --text:       #1C1C1E;
  --accent:     #4A6FA5;
  --accent-dark:#3a5a8a;
  --muted:      #9A9A9A;
  --border:     #E8E6E1;
  --max-w:      780px;
  --font-head:  'Cormorant Garamond', Georgia, serif;
  --font-body:  'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

section { padding: 5rem 0; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.7rem 1.5rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Navigation ── */
nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 2rem;
}
.nav-logo:hover { color: var(--accent); transition: color 0.2s; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  flex: 1;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 0.5rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-menu a:last-child { border-bottom: none; margin-top: 0.75rem; }
.mobile-menu .btn { width: 100%; text-align: center; }

/* ── Hero ── */
.hero {
  padding: 6rem 0 5rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-text { flex: 1; }

.hero h1 {
  margin-bottom: 1.25rem;
  color: var(--text);
}

.hero-sub {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 2rem;
  max-width: 520px;
}

/* Photo placeholder */
.photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  border: 2px solid #ddd;
  overflow: hidden;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ── Divider ── */
hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* ── Services Grid (home) ── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.service-card {
  padding: 1.75rem 0;
  border-top: 2px solid var(--accent);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.service-card p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

/* ── "When to bring me in" ── */
.bring-in-list {
  list-style: none;
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bring-in-list li {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: #fff;
  font-size: 0.95rem;
  color: #333;
  border-radius: 0 2px 2px 0;
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.5rem;
}

.testimonial blockquote {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #333;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial cite {
  font-size: 0.8rem;
  font-style: normal;
  color: var(--muted);
  font-weight: 500;
}

/* ── About teaser ── */
.about-teaser p {
  font-size: 1rem;
  color: #333;
  max-width: 640px;
}

.text-link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  transition: gap 0.2s;
}
.text-link:hover { gap: 0.5rem; }
.text-link::after { content: '→'; }

/* ── Services page ── */
.service-block {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.service-block:last-child { border-bottom: 1px solid var(--border); }

.service-block h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.service-list li {
  padding-left: 1.1rem;
  position: relative;
  font-size: 0.95rem;
  color: #333;
}

.service-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.ai-note {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 3px 3px 0;
  padding: 1.5rem;
  margin-top: 3rem;
}

.ai-note h3 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.ai-note p {
  font-size: 0.93rem;
  color: #444;
}

.how-i-work {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

/* ── About page ── */
.about-content p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.25rem;
}

.about-content p:last-child { margin-bottom: 0; }

/* ── Contact page ── */
.contact-form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-submit { margin-top: 0.5rem; }

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.contact-alternatives {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.contact-alternatives h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-links a {
  font-size: 0.95rem;
  color: var(--accent);
  transition: color 0.2s;
}
.contact-links a:hover { color: var(--accent-dark); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 700px) {
  section { padding: 3.5rem 0; }

  .hero { padding: 4rem 0 3rem; }

  .hero-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 2rem;
  }

  .photo-placeholder { width: 120px; height: 120px; }

  .services-grid { grid-template-columns: 1fr; gap: 0; }
  .service-card { border-top: 1px solid var(--border); border-left: 3px solid var(--accent); padding: 1.25rem 1rem; }
  .service-card:first-child { border-top: 2px solid var(--accent); }

  .testimonials-grid { grid-template-columns: 1fr; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  h1 { font-size: 2.2rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Language switcher ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.5rem;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 3px 5px;
  border-radius: 2px;
  transition: color 0.2s;
  line-height: 1.4;
}
.lang-btn:hover  { color: var(--accent); }
.lang-btn.active {
  color: var(--accent);
  font-weight: 600;
}

/* Hide mobile lang switcher on desktop */
.nav-mobile-controls { display: none; }
@media (max-width: 700px) {
  .nav-mobile-controls { display: flex; align-items: center; gap: 0.5rem; }
}

/* ── Form feedback ── */
.form-success {
  display: none;
  padding: 1rem;
  background: #eef4ee;
  border: 1px solid #b5d4b5;
  border-radius: 2px;
  color: #2d5a2d;
  font-size: 0.9rem;
  margin-top: 1rem;
}
