/* Merrain.shop - Unique 2026 Design for Portugal
   Color scheme: Warm Cream + Sage Green + Terracotta accents
   Different structure: Split hero, 2-col article grid, full-width about band, asymmetric cards
   Radius 8px, softer shadows, editorial feel
   Fully unique from previous projects
*/

:root {
  --bg: #F9F6F0;
  --bg-alt: #F4EDE3;
  --surface: #FFFFFF;
  --accent: #5C7A5A; /* Sage green */
  --accent-hover: #4A6348;
  --deep: #3D4F3D;
  --coral: #C65D07; /* Terracotta accent */
  --text: #2C2C2C;
  --text-soft: #5A5A5A;
  --border: #E8DFD3;
  --highlight: #F4EDE3;
  --radius: 8px;
  --shadow: 0 3px 15px rgba(61, 79, 61, 0.08);
  --shadow-hover: 0 6px 25px rgba(61, 79, 61, 0.12);
  --max-width: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

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

/* HEADER - Centered logo variant, clean nav */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}

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

.logo {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--deep);
  text-decoration: none;
  letter-spacing: -0.025em;
}

.logo span {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.8rem;
  margin-left: 0.35rem;
}

.nav {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav a:hover {
  background: var(--bg-alt);
  color: var(--deep);
}

.nav a.active {
  background: var(--accent);
  color: #fff;
}

.nav a.cta {
  background: var(--coral);
  color: #fff;
  font-weight: 700;
}

.nav a.cta:hover {
  background: #A44A05;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--deep);
}

/* HERO - Split layout (unique this time) */
.hero {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
  padding: 4.5rem 1.5rem;
}

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

.hero-content h1 {
  font-size: clamp(2.3rem, 5vw, 3.3rem);
  font-weight: 800;
  color: var(--deep);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 42ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.9rem;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

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

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

.btn-secondary {
  background: transparent;
  border-color: var(--deep);
  color: var(--deep);
}

.btn-secondary:hover {
  background: var(--deep);
  color: #fff;
}

.hero-visual {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.8rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}

.hero-visual::before {
  content: "🌿";
  font-size: 5rem;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  opacity: 0.15;
}

.hero-visual p {
  font-size: 1.1rem;
  color: var(--deep);
  font-style: italic;
  line-height: 1.5;
}

/* MAIN */
main {
  flex: 1;
  padding: 3.5rem 1.5rem 4rem;
}

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

/* Section header */
.section-header {
  margin-bottom: 2.2rem;
}

.section-header h2 {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--deep);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-soft);
}

/* ARTICLES - 2 column grid (different from previous 3-col) */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.6rem;
}

.article-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.7rem 1.8rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.article-card h3 {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.article-card h3 a {
  color: inherit;
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--accent);
}

.article-card p {
  color: var(--text-soft);
  flex: 1;
  margin-bottom: 1.3rem;
  font-size: 1rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.article-meta a {
  color: var(--deep);
  text-decoration: none;
  font-weight: 700;
}

/* ABOUT BAND - Full width colored (unique asymmetric) */
.about-band {
  margin-top: 4rem;
  background: var(--deep);
  color: #EDE8E0;
  border-radius: var(--radius);
  padding: 3rem 3.2rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.about-band h2 {
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 1rem;
}

.about-band p {
  opacity: 0.9;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.about-quote {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.8rem;
  font-style: italic;
  border-left: 5px solid var(--coral);
}

/* ARTICLE PAGE */
.article-page {
  max-width: 780px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 2.3rem;
  padding-bottom: 1.6rem;
  border-bottom: 2px solid var(--border);
}

.article-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--deep);
  line-height: 1.2;
  margin-bottom: 0.7rem;
}

.article-header .meta {
  color: var(--accent);
  font-weight: 600;
}

.article-content {
  font-size: 1.06rem;
  line-height: 1.75;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content h2 {
  font-size: 1.5rem;
  color: var(--deep);
  margin: 2rem 0 1rem;
  font-weight: 700;
}

.article-content ul, .article-content ol {
  margin: 1.1rem 0 1.4rem 1.4rem;
}

.article-content li {
  margin-bottom: 0.55rem;
}

.article-content blockquote {
  background: var(--highlight);
  border-left: 5px solid var(--accent);
  padding: 1.2rem 1.5rem;
  margin: 1.6rem 0;
  font-style: italic;
  color: var(--text-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 1.4rem;
}

.sidebar-box h3 {
  font-size: 1.05rem;
  color: var(--deep);
  margin-bottom: 0.9rem;
  font-weight: 700;
}

.sidebar-box a {
  display: block;
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.sidebar-box a:last-child {
  border-bottom: none;
}

.sidebar-box a:hover {
  color: var(--accent);
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.8rem;
  max-width: 980px;
  margin: 0 auto;
}

.contact-info h1 {
  font-size: 2.1rem;
  color: var(--deep);
  margin-bottom: 0.9rem;
}

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

.info-card {
  background: var(--highlight);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--border);
  margin-top: 1.1rem;
}

.info-card strong {
  display: block;
  color: var(--deep);
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.form-container {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

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

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

.form-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.02rem;
  font-weight: 700;
}

/* THANK YOU */
.thank-you {
  max-width: 540px;
  margin: 4.5rem auto;
  text-align: center;
  background: var(--surface);
  padding: 3.2rem 2.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.thank-you h1 {
  font-size: 2.2rem;
  color: var(--deep);
  margin-bottom: 1.1rem;
}

.thank-you p {
  color: var(--text-soft);
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
}

/* LEGAL PAGES */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  padding: 2.8rem 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.legal-page h1 {
  font-size: 2rem;
  color: var(--deep);
  margin-bottom: 0.35rem;
}

.legal-page .update-date {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.8rem;
}

.legal-page h2 {
  font-size: 1.35rem;
  color: var(--deep);
  margin: 1.8rem 0 0.8rem;
}

.legal-page p, .legal-page li {
  color: var(--text-soft);
  margin-bottom: 0.9rem;
  font-size: 1rem;
}

.legal-page ul {
  margin-left: 1.3rem;
}

/* FOOTER - Different layout: Brand prominent left, links grouped */
.site-footer {
  background: var(--deep);
  color: #EDE8E0;
  padding: 3rem 1.5rem 2rem;
  margin-top: auto;
}

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

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.7rem;
}

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

.footer-desc {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.55;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.footer-col a {
  display: block;
  color: #EDE8E0;
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--coral);
}

.footer-address {
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0.9;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2.3rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(237, 232, 224, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  opacity: 0.75;
}

.footer-bottom a {
  color: #EDE8E0;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.disclaimer {
  font-size: 0.75rem;
  opacity: 0.55;
  width: 100%;
  margin-top: 0.9rem;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .about-band {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 1rem;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--border);
  }
  
  .nav.open {
    display: flex;
  }
  
  .menu-btn {
    display: block;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Focus styles for accessibility */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
