/* WessexWellness - Main Stylesheet */

:root {
  --color-primary: #7A9A6B;
  --color-accent-hay: #E8C39E;
  --color-accent-rose: #C68A9E;
  --color-accent-clay: #6B4C3E;
  --color-bg: #FEFDF8;
  --color-text: #3A3A3A;
  --color-text-light: #6B6B6B;
  --color-border: #E8DCC8;
  --radius-sm: 4px;
  --transition-smooth: all 0.3s ease;
}

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

html, body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.85;
  font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'EB Garamond', serif;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 4.8rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

p {
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

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

a:hover {
  color: var(--color-accent-clay);
  text-decoration: underline;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-family: 'Georgia', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

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

nav a {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
  transition: var(--transition-smooth);
}

nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* Main Content */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  margin: 4rem 0;
  padding: 2rem 0;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 600px;
  background: linear-gradient(135deg, rgba(122, 154, 107, 0.85), rgba(232, 195, 158, 0.75));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 900px;
  padding: 2rem;
}

.hero h1 {
  color: white;
  font-size: 4.2rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.3rem;
  line-height: 1.6;
}

/* Image Sections */
.image-text-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 3rem 0;
}

.image-text-section.reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.image-text-section.reverse > * {
  direction: ltr;
}

.image-text-section img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block;
}

.image-text-content h2 {
  color: var(--color-primary);
}

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

.card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2rem;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card:hover {
  box-shadow: 0 8px 16px rgba(122, 154, 107, 0.15);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.card h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.card p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.card a {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.card a::after {
  content: '→';
  transition: var(--transition-smooth);
}

.card a:hover::after {
  transform: translateX(4px);
}

/* Footer */
footer {
  background: var(--color-text);
  color: white;
  margin-top: 4rem;
  padding: 3rem 2rem;
  font-size: 0.9rem;
}

footer a {
  color: var(--color-accent-hay);
}

footer a:hover {
  color: var(--color-accent-rose);
  text-decoration: underline;
}

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

.footer-section h4 {
  color: var(--color-accent-hay);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-family: 'Georgia', serif;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.footer-disclaimer {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Form */
form {
  max-width: 600px;
  margin: 2rem 0;
}

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

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

input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: white;
  transition: var(--transition-smooth);
}

input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(122, 154, 107, 0.1);
}

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

button {
  background: var(--color-primary);
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

button:hover {
  background: var(--color-accent-clay);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 76, 62, 0.2);
}

/* Disclaimer Boxes */
.disclaimer-box {
  background: rgba(122, 154, 107, 0.08);
  border-left: 4px solid var(--color-primary);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* FAQ */
.faq-item {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.5rem;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.faq-answer {
  color: var(--color-text-light);
  line-height: 1.8;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-balance {
  text-wrap: balance;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.py-4 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.bg-accent {
  background: linear-gradient(135deg, rgba(122, 154, 107, 0.08), rgba(232, 195, 158, 0.08));
  padding: 2rem;
  border-radius: var(--radius-sm);
  margin: 2rem 0;
}

/* Cookie Consent Banner */
#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-text);
  color: white;
  padding: 1.5rem 2rem;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  max-height: 200px;
  overflow-y: auto;
}

#cookie-consent.hidden {
  display: none;
}

.cookie-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-message {
  flex: 1;
  min-width: 200px;
  font-size: 0.9rem;
}

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

.cookie-buttons button {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.cookie-buttons .btn-accept {
  background: var(--color-primary);
  color: white;
}

.cookie-buttons .btn-accept:hover {
  background: var(--color-accent-clay);
}

.cookie-buttons .btn-reject {
  background: transparent;
  color: var(--color-accent-hay);
  border: 1px solid var(--color-accent-hay);
}

.cookie-buttons .btn-reject:hover {
  background: rgba(232, 195, 158, 0.1);
}

.cookie-buttons a {
  color: var(--color-accent-hay);
  display: flex;
  align-items: center;
}

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

  h2 {
    font-size: 1.8rem;
  }

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

  .image-text-section {
    grid-template-columns: 1fr;
  }

  .image-text-section.reverse {
    direction: ltr;
  }

  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .navbar {
    padding: 0 1rem;
  }

  main {
    padding: 0 1rem;
  }

  .hero {
    height: 400px;
  }

  footer {
    padding: 2rem 1rem;
  }

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

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  h2 {
    font-size: 1.3rem;
  }

  p {
    font-size: 0.95rem;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .hero {
    height: 300px;
  }

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

  .card {
    padding: 1.5rem;
  }
}
