/* ========== TOKEN OVERRIDES ========== */
:root {
  --primary-hsl: 30 8% 40%;            /* taupe închis, discret */
  --primary-foreground-hsl: 0 0% 100%;
  --background-hsl: 40 30% 98%;        /* alb-cald */
  --foreground-hsl: 30 10% 15%;        /* cerneală închisă */
  --accent-hsl: 45 30% 96%;            /* ușor nisipiu */
  --radius: 0.25rem;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: ui-sans-serif, system-ui, sans-serif;
  --border: hsl(30 10% 85%);
  --muted: hsl(30 15% 92%);
  --muted-foreground-hsl: 30 5% 40%;
  --destructive-hsl: 0 72% 51%;
  --destructive-foreground-hsl: 0 0% 100%;
  --ring: hsl(30 8% 40% / 30%);
}

/* ========== GLOBAL ========== */
body {
  font-family: var(--font-body);
  color: hsl(var(--foreground-hsl));
  background: hsl(var(--background-hsl));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsla(var(--background-hsl) / 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid hsl(30 10% 85%);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--foreground-hsl));
  text-decoration: none;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.75rem;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  display: block;
  height: 2px;
  width: 1.5rem;
  background: hsl(var(--foreground-hsl));
  transition: all 0.3s;
}

.nav-toggle-label span {
  position: relative;
}

.nav-toggle-label span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle-label span::after {
  position: absolute;
  top: 6px;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: hsl(var(--foreground-hsl));
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: hsl(var(--foreground-hsl));
  transition: width 0.25s;
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

/* ========== MOBILE NAV ========== */
@media (max-width: 47.99rem) {
  .nav-toggle-label {
    display: block;
  }

  .nav {
    position: absolute;
    top: 4rem;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: hsl(var(--background-hsl));
    padding: 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid hsl(30 10% 85%);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-toggle:checked ~ .nav {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-toggle:checked + .nav-toggle-label span {
    background: transparent;
  }

  .nav-toggle:checked + .nav-toggle-label span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle:checked + .nav-toggle-label span::after {
    top: 0;
    transform: rotate(-45deg);
  }
}

/* ========== HERO ========== */
.hero {
  padding: 4rem 0 2rem;
  text-align: center;
  background: hsl(var(--background-hsl));
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: hsl(var(--foreground-hsl));
  margin: 0;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 32rem;
  letter-spacing: 0.05em;
  color: hsl(30 10% 30%);
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: hsl(var(--primary-hsl));
  color: var(--primary-foreground);
  border-color: hsl(var(--primary-hsl));
}

.btn-primary:hover,
.btn-primary:focus {
  background: hsl(var(--primary-hsl) / 0.9);
}

.btn-secondary {
  background: transparent;
  color: hsl(var(--foreground-hsl));
  border-color: hsl(var(--foreground-hsl) / 0.3);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: hsl(var(--foreground-hsl) / 0.05);
}

/* ========== SECTION GENERAL ========== */
.section {
  padding: 4rem 0;
  border-top: 1px solid hsl(30 10% 85%);
}

.section-muted {
  background: hsl(45 30% 98%); /* foarte pal, spre alb-cald */
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: left;
  margin: 0 0 2.5rem;
  color: hsl(var(--foreground-hsl));
}

/* ========== STORY ========== */
.story-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.story-text h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.story-text p {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: hsl(30 10% 30%);
  line-height: 1.7;
  margin: 0 0 0.75rem;
}

.story-highlight {
  background: hsl(var(--accent-hsl));
  padding: 1.5rem;
  border-left: 3px solid hsl(var(--primary-hsl));
}

.large-quote {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  letter-spacing: 0.02em;
  margin: 0;
}

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.service-card {
  padding: 1.75rem;
  background: hsl(var(--background-hsl));
  border: 1px solid hsl(30 10% 85%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--accent-hsl));
  border-radius: 50%;
  margin-bottom: 0.25rem;
}

.service-icon .icon {
  width: 1.2rem;
  height: 1.2rem;
  color: hsl(var(--primary-hsl));
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
}

.service-card p {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: hsl(30 10% 30%);
  line-height: 1.5;
  margin: 0;
}

.value-props {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: hsl(30 10% 30%);
}

.value-prop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.value-prop .icon {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--primary-hsl));
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.contact-list .icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  color: hsl(var(--primary-hsl));
}

.directions-link {
  margin-top: 1.5rem;
}

.contact-cta {
  background: hsl(var(--primary-hsl) / 0.08);
  padding: 2rem;
  text-align: center;
  border: 1px solid hsl(var(--primary-hsl) / 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.cta-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.3;
}

/* ========== FOOTER ========== */
.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid hsl(30 10% 85%);
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: hsl(30 10% 40%);
}

/* ========== MOBILE CTA BAR ========== */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: hsl(var(--primary-hsl));
  color: var(--primary-foreground);
  padding: 0.75rem;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  z-index: 1000;
  font-size: 0.9rem;
  gap: 0.5rem;
}

.mobile-cta-bar .icon {
  width: 1.1em;
  height: 1.1em;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 47.99rem) {
  .hero {
    padding: 2.5rem 0 1.5rem;
  }
  .section-title {
    text-align: left;
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-cta {
    /* already full width, fine */
  }

  /* keep value props centered? No, align left */
  .value-props {
    justify-content: flex-start;
  }

  /* Mobile CTA bar appears on phones */
  .mobile-cta-bar {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 48rem) {
  .hero {
    padding: 5rem 0 3rem;
  }

  .story-grid {
    grid-template-columns: 2fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }

  .contact-details {
    padding-right: 1.5rem;
  }

  .contact-cta {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (min-width: 64rem) {
  .section {
    padding: 5rem 0;
  }
}

/* ========== SCROLL REVEAL ========== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== UTILITY ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid hsl(var(--primary-hsl));
  outline-offset: 2px;
}
