/* TheHabitCircle - Main Stylesheet */

:root {
  --color-indigo: #4B5EAA;
  --color-almond: #EDE4D9;
  --color-peach: #F4C7AB;
  --color-graphite: #333333;
  --color-white: #FFFFFF;
  --color-light-gray: #F8F7F5;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Karla', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-graphite);
  background-color: var(--color-white);
  line-height: 1.72;
  font-size: 18px;
  overflow-x: hidden;
}

/* Typography */

h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.5rem;
  color: var(--color-graphite);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.75rem;
  color: var(--color-graphite);
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--color-graphite);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--color-graphite);
}

.section-intro {
  font-style: italic;
  font-weight: 300;
  color: var(--color-indigo);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

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

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

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

/* Header & Navigation */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: 0 2px 8px rgba(75, 94, 170, 0.08);
}

.header-container {
  max-width: 1680px;
  margin: 0 auto;
  padding: 1rem 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-indigo);
  cursor: pointer;
  transition: color 0.3s ease;
}

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

.logo img {
  height: 40px;
  width: auto;
  margin-right: 10px;
  vertical-align: middle;
}

nav a {
  margin: 0 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-graphite);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-peach);
  transition: width 0.3s ease;
}

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

/* Buttons */

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--color-indigo);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(75, 94, 170, 0.2);
}

.btn:hover {
  background-color: var(--color-peach);
  color: var(--color-graphite);
  box-shadow: 0 8px 25px rgba(244, 199, 171, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-indigo);
  border: 2px solid var(--color-indigo);
}

.btn-secondary:hover {
  background-color: var(--color-indigo);
  color: var(--color-white);
}

/* Containers & Sections */

.container-wide {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 100px;
}

section {
  padding: 140px 100px;
}

.section-gradient-indigo {
  background: linear-gradient(135deg, rgba(75, 94, 170, 0.05) 0%, rgba(237, 228, 217, 0.1) 100%);
}

.section-gradient-peach {
  background: linear-gradient(135deg, rgba(244, 199, 171, 0.05) 0%, rgba(237, 228, 217, 0.08) 100%);
}

.section-full-width {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Hero Section */

.hero {
  position: relative;
  padding: 180px 100px;
  background: linear-gradient(135deg, var(--color-light-gray) 0%, rgba(75, 94, 170, 0.03) 100%);
  overflow: hidden;
}

.hero-content {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 2rem;
}

.hero-text .section-intro {
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(75, 94, 170, 0.15);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Content Grid Sections */

.content-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 4rem;
  align-items: center;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 100px;
}

.content-grid.reverse {
  grid-template-columns: 45% 55%;
}

.content-grid.reverse > div:first-child {
  order: 2;
}

.content-grid img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(75, 94, 170, 0.1);
}

/* Info Cards */

.info-card {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--color-peach);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(75, 94, 170, 0.06);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(75, 94, 170, 0.12);
}

.info-card h4 {
  margin-bottom: 0.75rem;
  color: var(--color-indigo);
}

/* Footer */

footer {
  background-color: var(--color-graphite);
  color: var(--color-white);
  padding: 3rem 100px;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1680px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  color: var(--color-peach);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-section a {
  display: block;
  margin-bottom: 0.75rem;
  color: #CCCCCC;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #999999;
}

/* Blog Section */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 100px;
}

.blog-card {
  background-color: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(75, 94, 170, 0.08);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(75, 94, 170, 0.15);
}

.blog-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

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

.blog-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

.blog-card .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
}

/* Accordion FAQ */

.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(75, 94, 170, 0.2);
}

.faq-question {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-indigo);
  cursor: pointer;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  user-select: none;
}

.faq-question:hover {
  color: var(--color-peach);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
}

.faq-answer {
  display: none;
  padding-bottom: 1rem;
  color: var(--color-graphite);
  line-height: 1.72;
}

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

.faq-item.active .faq-question::after {
  content: '−';
}

/* Disclaimer Sections */

.disclaimer {
  background-color: rgba(244, 199, 171, 0.15);
  border-left: 4px solid var(--color-peach);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.disclaimer p {
  margin: 0;
  color: var(--color-graphite);
  font-size: 0.95rem;
}

/* Cookie Consent Banner */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-graphite);
  color: var(--color-white);
  padding: 2rem 2.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 999;
  display: none;
}

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

.cookie-text {
  flex: 1;
}

.cookie-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-text a {
  color: var(--color-peach);
}

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

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.cookie-btn-accept {
  background-color: var(--color-peach);
  color: var(--color-graphite);
}

.cookie-btn-accept:hover {
  background-color: var(--color-almond);
  transform: translateY(-2px);
}

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

.cookie-btn-reject:hover {
  background-color: var(--color-peach);
  color: var(--color-graphite);
}

.cookie-btn-policy {
  background-color: transparent;
  color: var(--color-peach);
  border: 2px solid var(--color-peach);
}

.cookie-btn-policy:hover {
  background-color: var(--color-peach);
  color: var(--color-graphite);
}

/* Form Styling */

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-graphite);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #DDD;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-indigo);
  box-shadow: 0 0 0 3px rgba(75, 94, 170, 0.1);
}

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

/* Mobile Responsiveness */

@media (max-width: 1200px) {
  .header-container {
    padding: 1rem 60px;
  }

  section,
  .container-wide {
    padding-left: 60px;
    padding-right: 60px;
  }

  footer {
    padding: 3rem 60px;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.25rem;
  }

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

  .content-grid {
    grid-template-columns: 1fr;
    padding-left: 60px;
    padding-right: 60px;
  }

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

  .content-grid.reverse > div:first-child {
    order: 0;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 60px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 1rem 30px;
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    margin: 0.25rem 0.5rem;
    font-size: 0.85rem;
  }

  section {
    padding: 80px 30px;
  }

  .container-wide {
    padding: 0 30px;
  }

  footer {
    padding: 2rem 30px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  body {
    font-size: 16px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    padding: 0 30px;
  }

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

  .cookie-banner.show {
    flex-direction: column;
    gap: 1rem;
  }

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

  .cookie-btn {
    flex: 1;
    min-width: 120px;
  }

  .hero {
    padding: 100px 30px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0.75rem 15px;
  }

  section {
    padding: 60px 15px;
  }

  .container-wide {
    padding: 0 15px;
  }

  footer {
    padding: 1.5rem 15px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  body {
    font-size: 15px;
  }

  .blog-grid {
    padding: 0 15px;
  }
}
