:root {
  --sand: #f4efe8;
  --cream: #faf7f2;
  --ink: #2b2a28;
  --muted: #6b675f;
  --accent: #6d8470;
  --accent-dark: #4f6354;
  --line: #e3ddd2;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

a { color: var(--accent-dark); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; border-radius: 2px; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 2rem;
  padding: 1.25rem 2rem; max-width: 1100px; margin: 0 auto;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 600;
  letter-spacing: 0.02em;
  margin-right: auto;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.9rem; color: var(--muted); letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--ink); }

/* Language switch */
.lang-switch {
  position: relative;
  display: flex;
  flex-shrink: 0;
  gap: 2px;
  padding: 3px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 100px;
}
.lang-switch::before {
  content: '';
  position: absolute; left: -1rem; top: 50%;
  width: 1px; height: 20px;
  background: var(--line);
  transform: translateY(-50%);
}
.lang-switch a {
  padding: 0.28rem 0.72rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] {
  background: var(--cream);
  color: var(--accent-dark);
  box-shadow: 0 1px 2px rgba(43, 42, 40, 0.1);
  cursor: default;
}

/* Hero */
.hero {
  background: var(--sand);
  padding: 7rem 0 8rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-dark);
}
.hero p.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
}
.btn {
  display: inline-block;
  background: var(--accent-dark);
  color: var(--cream);
  padding: 0.95rem 2rem;
  border-radius: 2px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--ink); color: var(--cream); transform: translateY(-1px); }

.hero-portrait { position: relative; }
.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  display: block;
  box-shadow: 0 30px 60px -20px rgba(43, 42, 40, 0.3);
  filter: saturate(0.95);
}
.hero-portrait::after {
  content: '';
  position: absolute;
  inset: -12px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  z-index: -1;
  transform: translate(14px, 14px);
}

/* Sections */
section { padding: 6rem 0; scroll-margin-top: 5rem; }
.section-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1rem;
  text-align: center;
}
.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  text-align: center;
  margin-bottom: 4rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}
.about-meta {
  border-left: 1px solid var(--line);
  padding-left: 2rem;
}
.about-meta h3 {
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.about-meta p { margin-bottom: 2rem; font-size: 0.95rem; }
.about-meta p:last-child { margin-bottom: 0; }
.about-text p {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.about-text .pullquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--accent-dark);
  line-height: 1.4;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 2rem 0;
}

/* Services */
#pakalpojumi { background: var(--sand); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-card {
  background: var(--cream);
  padding: 2.5rem 2rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(43, 42, 40, 0.15);
}
.service-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sand);
  border-radius: 50%;
  margin-bottom: 1.5rem;
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--accent-dark); }
.service-card h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex-grow: 1;
}
.service-card .price {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--accent-dark);
}
.service-card .price small {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 0.5rem;
}

/* Formats */
.formats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.format-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--cream);
}
.format-card .format-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sand);
  border-radius: 50%;
  margin: 0 auto 1.25rem;
}
.format-card .format-icon svg { width: 26px; height: 26px; stroke: var(--accent-dark); }
.format-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.format-card p { color: var(--muted); font-size: 0.95rem; }

/* Contact */
#kontakti {
  background: var(--ink);
  color: var(--cream);
}
#kontakti .section-eyebrow { color: var(--accent); }
.phone-cta {
  display: block;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  line-height: 1.1;
  color: var(--cream);
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
}
.phone-cta:hover { color: var(--accent); }
.contact-note {
  text-align: center;
  color: rgba(250, 247, 242, 0.7);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 4rem;
}
.contact-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 880px;
  margin: 0 auto;
  padding-top: 3rem;
  border-top: 1px solid rgba(250, 247, 242, 0.12);
}
.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-detail svg {
  width: 20px; height: 20px;
  stroke: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}
.contact-detail strong {
  display: block;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.contact-detail span { color: rgba(250, 247, 242, 0.7); font-size: 0.95rem; }
.contact-detail a { color: rgba(250, 247, 242, 0.85); }
.contact-detail a:hover { color: var(--accent); }

/* Footer */
footer {
  background: var(--ink);
  color: rgba(250, 247, 242, 0.5);
  padding: 2rem 0;
  border-top: 1px solid rgba(250, 247, 242, 0.08);
  font-size: 0.85rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 860px) {
  .hero { padding: 4rem 0 5rem; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-portrait { max-width: 360px; margin: 0 auto; width: 100%; }
  .services-grid, .formats-grid, .contact-rail { grid-template-columns: 1fr; }
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.78rem; }
  section { padding: 4rem 0; }
  .about-meta { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 2rem; }
  .contact-rail { gap: 2rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .nav-inner { flex-wrap: wrap; row-gap: 0; padding: 0.9rem 1.25rem; gap: 1rem; }
  section { scroll-margin-top: 7.5rem; }
  .logo { font-size: 1.2rem; }
  .lang-switch::before { display: none; }
  .nav-links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 1.15rem;
    row-gap: 0.3rem;
    margin-top: 0.75rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--line);
  }
  .nav-links a { font-size: 0.72rem; letter-spacing: 0.02em; white-space: nowrap; }
}
