/* Marenca — Mediterranean light theme */
:root {
  --bg: #f2ece1;
  --bg-alt: #e8e0d2;
  --text: #28281f;
  --muted: #7a7565;
  --accent: #c15a37;
  --sea-olive: #5f7a4f;
  --aegean: #3f6f86;
  --white: #faf8f4;
  --border: #d4cdc0;
  --font-display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, "Segoe UI", Roboto, sans-serif;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(40, 40, 31, 0.08);
  --max: 72rem;
  --header-h: 4.5rem;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: linear-gradient(165deg, #f7f2e8 0%, var(--bg) 35%, #ebe4d6 100%);
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--text);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.logo:hover, .logo:focus { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  color: var(--text);
  font-size: 0.875rem;
  font-family: var(--font-body);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav.is-open { max-height: 20rem; }
  .site-nav ul {
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
  }
}

/* Main layout */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 1rem 2.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}
.hero-location {
  font-size: 0.875rem;
  color: var(--sea-olive);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
h1 { font-size: clamp(1.875rem, 3.5vw, 2.375rem); margin: 0 0 1rem; }
h2 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}
h3 { font-size: 1.25rem; margin: 1.75rem 0 0.75rem; color: var(--accent); }
p { margin: 0 0 1rem; }
.lead { font-size: 1.1875rem; color: var(--muted); }

a { color: var(--aegean); }
a:hover, a:focus { color: var(--accent); }

/* Cards & grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.card-price {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--accent);
  margin-top: 1rem;
}

/* Feature band */
.band {
  background: linear-gradient(135deg, rgba(95, 122, 79, 0.12), rgba(63, 111, 134, 0.1));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}
.band h2 { border: none; margin-top: 0; padding: 0; }

/* Lists */
ul.content-list, ol.content-list {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}
ul.content-list li, ol.content-list li { margin-bottom: 0.5rem; }

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}
.data-table th, .data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  background: var(--bg-alt);
  font-family: var(--font-display);
  font-weight: 600;
}
.data-table tr:hover td { background: rgba(242, 236, 225, 0.5); }

/* CTA links */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid var(--accent);
}
.btn:hover, .btn:focus {
  background: #a84d2f;
  border-color: #a84d2f;
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
}
.btn-outline:hover, .btn-outline:focus {
  background: var(--accent);
  color: var(--white);
}

/* Contact form */
.contact-form {
  max-width: 36rem;
  margin: 2rem 0;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--aegean);
  outline-offset: 1px;
}
.form-group textarea { min-height: 8rem; resize: vertical; }
.form-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--sea-olive);
}

/* FAQ accordion */
.faq-list { margin: 2rem 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--white);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question:hover, .faq-question:focus {
  background: var(--bg-alt);
  outline: none;
}
.faq-question[aria-expanded="true"] { color: var(--accent); }
.faq-icon {
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}
.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer.is-open {
  padding: 0 1.25rem 1.25rem;
  max-height: 40rem;
}
.faq-answer p:last-child { margin-bottom: 0; }

/* Legal pages */
.legal main { max-width: 52rem; }
.legal h2 { margin-top: 2rem; }
.legal h3 { font-size: 1.125rem; color: var(--text); }

/* Notice box */
.notice {
  padding: 1.25rem;
  background: rgba(193, 90, 55, 0.08);
  border: 1px solid rgba(193, 90, 55, 0.25);
  border-radius: var(--radius);
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}
.notice-strong {
  background: rgba(63, 111, 134, 0.1);
  border-color: rgba(63, 111, 134, 0.3);
}

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem;
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.footer-rg {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}
.footer-operator,
.footer-copy {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0.25rem 0;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 4rem 1rem;
}
.error-code {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--accent);
  margin: 0;
  line-height: 1;
}
.error-page h1 { margin-top: 1rem; }
