@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;1,400;1,700&family=Nunito+Sans:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

:root {
  --charcoal: #4A5568;
  --lavender: #B7A9CC;
  --ivory: #FEFCF3;
  --rosewood: #A0522D;
  --text-dark: #2d3748;
  --text-light: #f7fafc;
  --bg-light: #f9fafb;
}

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

html, body {
  font-family: 'Merriweather', serif;
  color: var(--text-dark);
  background-color: var(--ivory);
  line-height: 1.95;
  font-size: 16px;
}

/* Typography */
h1 {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -1.3px;
  color: var(--charcoal);
  margin: 2.5rem 0 1.5rem 0;
  line-height: 1.1;
}

h2 {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 2.875rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 2rem 0 1.25rem 0;
  line-height: 1.3;
}

h3 {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--charcoal);
  margin: 1.5rem 0 1rem 0;
  line-height: 1.4;
}

p {
  font-size: 1.2rem;
  line-height: 1.95;
  margin: 1rem 0;
  color: var(--text-dark);
}

a {
  color: var(--rosewood);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--lavender);
}

.italic-accent {
  font-style: italic;
  color: var(--lavender);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--ivory);
  box-shadow: 0 2px 8px rgba(74, 85, 104, 0.1);
  transition: all 0.3s ease;
  padding: 1rem 8vw;
}

header.scrolled {
  background-color: rgba(74, 85, 104, 0.15);
}

.header-container {
  max-width: 1620px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-home {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.logo-home:hover {
  color: var(--lavender);
}

.logo-home img {
  width: 35px;
  height: 35px;
  margin-right: 0.75rem;
}

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

nav a {
  font-family: 'Nunito Sans', sans-serif;
  color: var(--charcoal);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: all 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rosewood), var(--lavender));
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Layout */
.container {
  max-width: 1620px;
  margin: 0 auto;
  padding: 0 8vw;
}

section {
  padding: 180px 8vw;
}

section:nth-child(even) {
  background: linear-gradient(135deg, var(--ivory) 0%, rgba(183, 169, 204, 0.05) 100%);
}

/* Hero Block */
.hero {
  padding: 100px 8vw;
  background: linear-gradient(135deg, var(--charcoal) 0%, rgba(160, 82, 45, 0.3) 100%);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 700px;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--ivory);
  font-size: 4.5rem;
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(254, 252, 243, 0.95);
  font-size: 1.5rem;
  line-height: 1.8;
}

/* Section Grid Layout */
.section-content {
  max-width: 1620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3rem;
  align-items: center;
}

.section-text {
  grid-column: span 6;
}

.section-visual {
  grid-column: span 4;
}

.section-visual img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(74, 85, 104, 0.15);
}

/* Cards */
.card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(74, 85, 104, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid var(--lavender);
}

.card:hover {
  box-shadow: 0 12px 32px rgba(183, 169, 204, 0.2);
  transform: translateY(-4px);
}

.card-glow {
  background: linear-gradient(135deg, rgba(183, 169, 204, 0.1) 0%, rgba(160, 82, 45, 0.05) 100%);
}

.card h3 {
  margin-top: 0;
}

/* Grid for Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.blog-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(74, 85, 104, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(183, 169, 204, 0.2);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-content h3 {
  margin-top: 0;
  font-size: 1.5rem;
}

.blog-card-content a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--rosewood);
  transition: all 0.3s ease;
}

.blog-card-content a:hover {
  color: var(--lavender);
}

/* FAQ */
.faq-item {
  margin: 2rem 0;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(74, 85, 104, 0.05);
}

.faq-item h4 {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1.25rem;
  color: var(--charcoal);
  margin: 0 0 1rem 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-item h4:hover {
  color: var(--lavender);
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  box-shadow: 0 2px 8px rgba(74, 85, 104, 0.1);
}

th {
  background: linear-gradient(90deg, var(--charcoal), var(--rosewood));
  color: white;
  padding: 1rem;
  text-align: left;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
}

td {
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

tr:hover {
  background: rgba(183, 169, 204, 0.05);
}

/* Form */
form {
  background: white;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(74, 85, 104, 0.1);
  max-width: 600px;
  margin: 2rem auto;
}

label {
  display: block;
  margin: 1.5rem 0 0.5rem 0;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  color: var(--charcoal);
  font-size: 1rem;
}

input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  color: var(--text-dark);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--lavender);
  box-shadow: 0 0 0 3px rgba(183, 169, 204, 0.1);
}

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

button {
  background: linear-gradient(90deg, var(--ivory), var(--lavender));
  color: var(--charcoal);
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

button:hover {
  background: linear-gradient(90deg, var(--lavender), var(--ivory));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(183, 169, 204, 0.3);
}

button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

button:active::before {
  width: 300px;
  height: 300px;
}

/* Disclaimer */
.disclaimer {
  background: linear-gradient(135deg, rgba(183, 169, 204, 0.1) 0%, rgba(160, 82, 45, 0.05) 100%);
  padding: 1.5rem;
  border-left: 4px solid var(--lavender);
  border-radius: 4px;
  margin: 2rem 0;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.disclaimer strong {
  color: var(--charcoal);
  font-family: 'Nunito Sans', sans-serif;
}

/* Footer */
footer {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 3rem 8vw 1.5rem 8vw;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--lavender);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: rgba(254, 252, 243, 0.85);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-section a {
  display: block;
  margin: 0.5rem 0;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--lavender);
}

.footer-bottom {
  border-top: 1px solid rgba(183, 169, 204, 0.2);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(254, 252, 243, 0.7);
}

.footer-bottom p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-content {
  flex: 1;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  margin-left: 1rem;
}

.cookie-btn {
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: 4px;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-size: 0.9rem;
}

.cookie-btn-accept {
  background: var(--lavender);
  color: var(--charcoal);
}

.cookie-btn-accept:hover {
  background: var(--rosewood);
  color: white;
}

.cookie-btn-reject {
  background: rgba(183, 169, 204, 0.2);
  color: var(--ivory);
  border: 1px solid var(--lavender);
}

.cookie-btn-reject:hover {
  background: rgba(183, 169, 204, 0.3);
}

.cookie-btn-learn {
  background: transparent;
  color: var(--lavender);
  border: 1px solid var(--lavender);
}

.cookie-btn-learn:hover {
  background: rgba(183, 169, 204, 0.2);
}

/* CTA */
.cta-section {
  text-align: center;
  padding: 3rem 0;
}

.cta-link {
  display: inline-block;
  background: linear-gradient(90deg, var(--ivory), var(--lavender));
  color: var(--charcoal);
  padding: 1rem 2rem;
  border-radius: 4px;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-link:hover {
  background: linear-gradient(90deg, var(--lavender), var(--rosewood));
  color: white;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
    letter-spacing: -0.8px;
  }

  h2 {
    font-size: 1.875rem;
  }

  h3 {
    font-size: 1.375rem;
  }

  p {
    font-size: 1rem;
  }

  section {
    padding: 100px 5vw;
  }

  .hero {
    padding: 60px 5vw;
    min-height: 400px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .section-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-text,
  .section-visual {
    grid-column: span 1;
  }

  nav ul {
    gap: 1rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  #cookie-banner {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .cookie-content {
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .cookie-buttons {
    margin-left: 0;
  }

  form {
    padding: 1.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.125rem;
  }

  p {
    font-size: 0.95rem;
  }

  section {
    padding: 60px 4vw;
  }

  .logo-home {
    font-size: 1.25rem;
  }

  .logo-home img {
    width: 28px;
    height: 28px;
  }

  header {
    padding: 0.75rem 4vw;
  }

  nav ul {
    gap: 0.75rem;
  }

  nav a {
    font-size: 0.8rem;
  }
}
