/* Raniusa – warm earthy editorial, Portugal 2026 – unique from previous */
:root {
  --bg: #F4F0E8;
  --bg-alt: #EBE6DC;
  --ink: #1C1B19;
  --ink-soft: #4A4742;
  --accent: #A65D3F;
  --accent-dark: #8A4A32;
  --olive: #5E6B4E;
  --line: #D4CFC4;
  --panel: #FFFCFL;
  --panel: #FFFCF7;
  --radius: 2px;
  --radius-lg: 18px;
  --shadow: 0 12px 40px rgba(28, 27, 25, 0.07);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; font-size: 17.5px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.72;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* HEADER – left logo + right nav, thick bottom border */
.site-header {
  background: var(--panel);
  border-bottom: 3px solid var(--ink);
  padding: 1.1rem 1.6rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo span { color: var(--accent); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.3rem;
  justify-content: flex-end;
}

.nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* MAIN */
main { flex: 1; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HERO – full bleed dark with overlapping practical card */
.hero {
  background: var(--ink);
  color: #F4F0E8;
  padding: 4.5rem 1.5rem 5.5rem;
  position: relative;
  margin-bottom: 3.5rem;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: end;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 1.3rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.12rem;
  opacity: 0.88;
  max-width: 36ch;
  line-height: 1.65;
  margin-bottom: 1.8rem;
}

.hero-card {
  background: var(--accent);
  color: #fff;
  padding: 2rem 1.9rem;
  border-radius: var(--radius-lg);
  position: relative;
  top: 2.5rem;
}

.hero-card h2 {
  font-family: var(--font-head);
  font-size: 1.45rem;
  margin-bottom: 0.7rem;
  line-height: 1.25;
}

.hero-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.95;
}

/* Section */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.2;
}

/* Article list – thick left border, no heavy cards */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 4rem;
  border-top: 1px solid var(--line);
}

.article-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.8rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}

.article-item:hover {
  background: var(--bg-alt);
}

.article-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  min-width: 2.2rem;
}

.article-item h3 {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  line-height: 1.25;
}

.article-item h3 a { color: var(--ink); }
.article-item h3 a:hover { color: var(--accent-dark); }

.article-item p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin-bottom: 0.9rem;
  max-width: 52ch;
}

.read-more {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
  text-transform: uppercase;
}

.read-more:hover { color: var(--ink); }

.article-meta {
  font-size: 0.78rem;
  color: var(--olive);
  white-space: nowrap;
  padding-top: 0.3rem;
}

/* Article page */
.article-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 3.2rem 1.5rem 5rem;
}

.article-page .eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.article-page h1 {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 4.2vw, 2.9rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
}

.article-lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin-bottom: 2.4rem;
  line-height: 1.65;
  padding-left: 1.2rem;
  border-left: 3px solid var(--accent);
}

.article-body h2 {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 600;
  margin: 2.6rem 0 0.95rem;
  line-height: 1.28;
}

.article-body h3 {
  font-size: 1.12rem;
  font-weight: 650;
  margin: 1.9rem 0 0.6rem;
}

.article-body p { margin-bottom: 1.2rem; }

.article-body ul, .article-body ol {
  margin: 1.1rem 0 1.5rem 1.3rem;
}

.article-body li { margin-bottom: 0.5rem; }

.tip-box {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.4rem;
  margin: 1.9rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.tip-box strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.35rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 1.7rem 0;
  padding: 0;
}

.steps li {
  position: relative;
  padding-left: 3.1rem;
  margin-bottom: 1.4rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2.1rem;
  height: 2.1rem;
  background: var(--ink);
  color: #F4F0E8;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* About */
.about-hero {
  background: var(--olive);
  color: #F4F0E8;
  padding: 4.2rem 1.5rem 3.8rem;
  margin-bottom: 2.8rem;
}

.about-hero .wrap { max-width: 700px; }

.about-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 3.4rem);
  margin-bottom: 0.9rem;
}

.about-hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 38ch;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.2rem;
  padding: 3.5rem 0 5rem;
  align-items: start;
}

.contact-info h1 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  margin-bottom: 1.1rem;
}

.contact-info p {
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

.address-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  margin-top: 1.6rem;
}

.address-block strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.1rem 1.9rem;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  background: var(--bg);
  color: var(--ink);
}

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

.contact-form textarea { min-height: 130px; resize: vertical; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: #F4F0E8;
  font-weight: 650;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* Thanks */
.thanks-page {
  text-align: center;
  padding: 6.5rem 1.5rem 7rem;
  max-width: 520px;
  margin: 0 auto;
}

.thanks-page h1 {
  font-family: var(--font-head);
  font-size: 2.7rem;
  margin-bottom: 1.1rem;
}

.thanks-page p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin-bottom: 2rem;
}

/* Legal */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.3rem 1.5rem 5rem;
}

.legal-page h1 {
  font-family: var(--font-head);
  font-size: 2.4rem;
  margin-bottom: 1.4rem;
}

.legal-page h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin: 2.3rem 0 0.85rem;
}

.legal-page p, .legal-page li {
  margin-bottom: 0.95rem;
  color: var(--ink-soft);
}

.legal-page ul { margin-left: 1.25rem; margin-bottom: 1.2rem; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #C8C3B8;
  padding: 3.3rem 1.5rem 2.3rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.4rem;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1.55rem;
  color: #F4F0E8;
  margin-bottom: 0.7rem;
}

.footer-brand span { color: var(--accent); }

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.footer-col a {
  display: block;
  color: #C8C3B8;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.footer-col a:hover { color: #F4F0E8; }

.footer-address {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #A8A398;
}

.footer-bottom {
  max-width: var(--max);
  margin: 2.6rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: #8A857A;
}

.footer-bottom a { color: #A8A398; margin-left: 1.1rem; }
.footer-bottom a:hover { color: #F4F0E8; }

.disclaimer {
  font-size: 0.76rem;
  color: #7A756B;
  max-width: 480px;
  line-height: 1.5;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-card { top: 0; }
  .article-item { grid-template-columns: auto 1fr; }
  .article-meta { grid-column: 2; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.3rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .nav { justify-content: flex-start; }
}

@media (max-width: 600px) {
  html { font-size: 16px; }
  .nav a { font-size: 0.72rem; }
  .article-page { padding: 2.3rem 1.2rem 4rem; }
  .contact-form { padding: 1.5rem 1.2rem; }
}