/* ========================================
   COSTANUEVA - Unique Fresh Bio-Neon Design
   Completely new from previous sites
   Light warm-sand + ice-mint + violet accents
   Sticky side nav layout, clean modern typography
   ======================================== */

:root {
  --bg: #F8F5F0;
  --surface: #FFFFFF;
  --surface-2: #F0EBE3;
  --surface-3: #E8E1D5;
  --accent: #0EA5E9;
  --accent-2: #14B8A6;
  --accent-3: #8B5CF6;
  --accent-4: #F59E0B;
  --text: #1E293B;
  --text-muted: #64748B;
  --text-light: #475569;
  --border: #D1C9B8;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.08), 0 2px 8px -2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 10px 30px -8px rgba(0, 0, 0, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'system-ui', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

/* Typography - Unique emphasis on readable long text */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: clamp(2.75rem, 5.5vw, 3.75rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.85rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.65rem); }

p {
  margin-bottom: 1.35rem;
  color: var(--text-light);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-2);
}

/* Layout */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.section {
  padding: 4.5rem 0;
}

/* Header - Minimal clean */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.logo {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-light);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--accent);
  color: white;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
  border: 1px solid var(--accent);
}

.nav-cta:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: white;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
}

/* Main Layout: Sticky Side Navigation (Unique choice) */
.main-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  align-items: start;
}

@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-nav {
    position: static !important;
    margin-bottom: 2rem;
  }
}

/* Sticky Sidebar Navigation */
.sidebar-nav {
  position: sticky;
  top: 80px;
  height: fit-content;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  margin-top: 2rem;
}

.sidebar-nav h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.35rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.55rem 0.9rem;
  color: var(--text-light);
  font-size: 0.95rem;
  border-radius: 8px;
  transition: var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--surface-2);
  color: var(--accent);
  font-weight: 500;
}

/* Hero - Unique full-bleed warm with accent */
.hero {
  background: linear-gradient(145deg, #F8F5F0 0%, #F0EBE3 100%);
  padding: 5.5rem 0 4.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero .lead {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 580px;
}

/* Buttons - Unique style: rounded with thin border + fill on hover */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-weight: 600;
  font-size: 0.97rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

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

.btn-secondary {
  background: var(--surface);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Article Cards - Clean with left accent bar, soft shadow */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

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

.card-accent {
  height: 5px;
  width: 100%;
}

.card-body {
  padding: 1.65rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 11px;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.28rem;
  line-height: 1.3;
  margin-bottom: 0.9rem;
}

.card p {
  flex: 1;
  font-size: 0.97rem;
  color: var(--text-light);
  margin-bottom: 1.4rem;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.read-more {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.93rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more:hover {
  gap: 10px;
}

/* Full article blocks */
.full-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.full-article h3 {
  color: var(--accent-2);
  margin-bottom: 1.4rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.35rem;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text);
}

input, textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

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

/* Footer */
footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

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

.footer-links a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
  font-size: 0.93rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* Policy pages */
.policy-content {
  max-width: 820px;
  margin: 0 auto;
}

.policy-content h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.9rem;
  color: var(--accent);
}

.policy-content h3 {
  margin-top: 1.85rem;
  margin-bottom: 0.7rem;
}

.disclaimer {
  background: var(--surface-2);
  border-left: 5px solid var(--accent-3);
  padding: 1.4rem 1.75rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
}

/* Thank you */
.thankyou {
  text-align: center;
  padding: 5rem 0;
}

.thankyou h1 {
  color: var(--accent-2);
}

/* Utility */
.text-center { text-align: center; }
.mt-6 { margin-top: 1.5rem; }