/* TheHabitShiftUK - Main Stylesheet */

:root {
  --primary-charcoal: #4A4A4A;
  --accent-moss: #8BA87D;
  --accent-oatmeal: #EDE4D9;
  --accent-indigo: #5C6B8A;
  --white: #FFFFFF;
  --light-grey: #F5F5F5;
  --border-light: #EEEEEE;
}

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

body {
  font-family: 'Georgia', 'Libre Baskerville', serif;
  color: var(--primary-charcoal);
  background-color: var(--white);
  line-height: 1.9;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Futura', sans-serif;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 4.6rem;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 2rem;
  text-align: center;
}

h2 {
  font-size: 2.1rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.9;
}

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

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  padding: 1rem 0;
}

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

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-charcoal);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent-moss);
}

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

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: var(--primary-charcoal);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Main content spacing for fixed header */
main {
  margin-top: 80px;
  padding-top: 2rem;
}

/* Hero Section */
.hero {
  height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--light-grey);
  background-image: linear-gradient(135deg, rgba(237, 228, 217, 0.5) 0%, rgba(139, 168, 125, 0.1) 100%);
}

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

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--primary-charcoal);
}

.hero-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Section Dividers */
.section-divider {
  border-top: 1px solid var(--border-light);
  margin: 3rem 0;
}

/* Content Sections */
section {
  padding: 4rem 0;
}

section.content-section {
  background-color: var(--white);
}

section.light-section {
  background-color: var(--light-grey);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-top: 0;
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.two-column.reverse {
  direction: rtl;
}

.two-column.reverse > * {
  direction: ltr;
}

.two-column-text h3 {
  margin-top: 0;
}

.section-image {
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

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

.card {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  padding: 2rem;
  text-align: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  background-color: rgba(237, 228, 217, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card h3 {
  margin-top: 0;
}

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

.card-image {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
}

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.blog-card {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.blog-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-light);
}

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

.blog-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.blog-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--accent-moss);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: var(--accent-indigo);
  transform: translateX(4px);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border: 2px solid var(--primary-charcoal);
  background-color: transparent;
  color: var(--primary-charcoal);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.35s ease;
  text-align: center;
}

.btn:hover {
  background-color: var(--primary-charcoal);
  color: var(--white);
  transform: scale(1.03);
}

.btn-outline {
  border-color: var(--accent-moss);
  color: var(--accent-moss);
}

.btn-outline:hover {
  background-color: var(--accent-moss);
  color: var(--white);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-charcoal);
}

input[type="email"],
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-light);
  font-family: 'Georgia', serif;
  font-size: 1rem;
  line-height: 1.6;
  transition: border-color 0.3s ease;
}

input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-moss);
  box-shadow: 0 0 0 3px rgba(139, 168, 125, 0.1);
}

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

.contact-form {
  max-width: 600px;
  margin: 2rem auto;
}

.contact-info {
  background-color: var(--light-grey);
  padding: 2rem;
  border-left: 4px solid var(--accent-moss);
  margin: 2rem 0;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info strong {
  font-family: 'Montserrat', sans-serif;
}

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

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

.faq-question {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--primary-charcoal);
  margin-bottom: 1rem;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  line-height: 1.9;
  color: #666;
}

.faq-answer.active {
  display: block;
}

/* Footer */
footer {
  background-color: var(--primary-charcoal);
  color: var(--white);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

footer .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

footer h3 {
  color: var(--accent-oatmeal);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  margin-top: 0;
}

footer p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

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

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

.footer-links {
  list-style: none;
}

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

.footer-links a {
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-disclaimer {
  background-color: rgba(139, 168, 125, 0.2);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent-moss);
  font-size: 0.9rem;
  text-align: center;
}

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-charcoal);
  color: var(--white);
  padding: 1.5rem 2rem;
  z-index: 999;
  display: none;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

#cookie-banner.show {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-content {
  flex: 1;
}

.cookie-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

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

.cookie-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background-color: var(--accent-moss);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background-color: #7A9567;
}

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

.cookie-btn-reject:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.cookie-btn-learn {
  background-color: transparent;
  color: var(--accent-oatmeal);
  border: 1px solid var(--accent-oatmeal);
  text-decoration: none;
}

.cookie-btn-learn:hover {
  background-color: rgba(237, 228, 217, 0.2);
}

/* Disclaimer Boxes */
.disclaimer-box {
  background-color: rgba(139, 168, 125, 0.1);
  border-left: 4px solid var(--accent-moss);
  padding: 1.5rem;
  margin: 2rem 0;
}

.disclaimer-box h3 {
  color: var(--accent-indigo);
  margin-top: 0;
}

.disclaimer-box p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

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

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

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

  #cookie-banner.show {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cookie-btn {
    width: 100%;
  }

  .hero {
    height: auto;
    min-height: 60vh;
    padding: 2rem 1rem;
  }

  h1 {
    margin-bottom: 1rem;
  }

  section {
    padding: 2rem 1rem;
  }

  .container {
    padding: 0 1rem;
  }
}

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

  h2 {
    font-size: 1.4rem;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  body {
    font-size: 15px;
  }

  section {
    padding: 1.5rem 0.5rem;
  }

  .container {
    padding: 0 0.5rem;
  }
}
