:root {
  --bg: #faf6f1;
  --secondary: #f3e5d8;
  --text: #2b2420;
  --text-muted: #6b6058;
  --accent: #d9482b;
  --accent-hover: #b93a20;
  --trust: #2e6e5e;
  --border: #eae0d6;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --radius: 12px;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  padding-bottom: 5.5rem; /* spatiu pentru bannerul de cookie-uri fixat jos */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent-hover);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-lg) var(--space-md);
}

/* was nth-of-type(even); flipped to (odd) because the hero section moved
   out of <main> into <header> for semantic markup, which shifts every
   remaining <section>'s sibling index by one - this keeps the exact same
   visual alternating pattern that existed before that structural change. */
.section:nth-of-type(odd) {
  background: var(--secondary);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
}

h1 {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
}

h2 {
  font-size: clamp(1.375rem, 4.5vw, 1.875rem);
}

p {
  margin: 0 0 var(--space-sm);
}

.subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
}

/* --- Hero --- */

.hero {
  text-align: center;
  padding-top: var(--space-xl);
}

.hero img {
  margin: var(--space-md) auto;
  border-radius: var(--radius);
}

.trust-line {
  font-size: 0.9375rem;
  color: var(--trust);
  margin-top: var(--space-sm);
}

/* --- CTA buttons --- */
/* --accent is used ONLY on .cta-btn — nowhere else on the page */

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  /* 20px bold clears the WCAG "large text" threshold (>=18.66px bold),
     so the 4.28:1 white-on-accent ratio passes the 3:1 large-text rule
     without changing the accent color itself. */
  font-size: 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  margin-top: var(--space-sm);
  border: none;
  cursor: pointer;
}

.cta-btn:hover,
.cta-btn:active {
  background: var(--accent-hover);
}

/* --- Steps --- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
}

.step-card {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
}

.step-card .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--trust);
  color: #fff;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.step-card h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-xs);
}

.note {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* --- Benefits --- */

.benefit-list {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
}

.benefit-list li {
  padding: var(--space-xs) 0;
  padding-left: 1.75rem;
  position: relative;
}

.benefit-list li::before {
  content: "✓";
  color: var(--trust);
  font-weight: 700;
  position: absolute;
  left: 0;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.image-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.caption {
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-align: center;
}

/* --- Social proof --- */

#recenzii img {
  border-radius: var(--radius);
  margin-top: var(--space-sm);
}

/* --- Offer --- */

.offer-details {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* --- FAQ --- */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-sm) 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.25rem;
  color: var(--trust);
}

.faq-item[open] summary::after {
  content: "\2013";
}

.faq-item p {
  margin-top: var(--space-sm);
  color: var(--text-muted);
}

/* --- Final CTA --- */

.cta-final {
  text-align: center;
}

/* --- Footer --- */

.footer {
  padding: var(--space-lg) var(--space-md);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- Cookie banner --- */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
  padding: var(--space-md);
}

/* Bug fix: the [hidden] attribute was being overridden by the flex layout
   rule below because both selectors share the same specificity and this
   rule comes later in the cascade — pin display:none explicitly. */
.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.cookie-banner .cta-btn {
  margin-top: 0;
}

.consent-link {
  align-self: center;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
}

/* --- Generic small buttons (e.g. privacy page) --- */

.btn {
  min-height: 44px;
  border-radius: var(--radius);
  border: none;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
}

/* --- Privacy page --- */

.privacy-main h2 {
  margin-top: var(--space-lg);
}

.privacy-main .btn {
  display: block;
  width: 100%;
  max-width: 320px;
  padding: 0 var(--space-md);
  background: var(--secondary);
  color: var(--text);
  border: 1px solid var(--border);
  margin: var(--space-sm) 0;
}

.privacy-main .btn:hover {
  background: var(--border);
}

#consent-status-msg {
  color: var(--trust);
  font-weight: 700;
}

/* --- Breakpoint --- */

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .section {
    padding: var(--space-xl) var(--space-md);
  }
}
