/* Honors Thesis — Cottagecore / Rustic Farm Home Page */

/* ===== CSS Variables ===== */
:root {
  --sage: #88a751;
  --rust: #a4502f;
  --moss: #b2d07d;
  --cream: #f6e8cd;
  --linen: #f0eee4;
  --wood: #6c4d2e;
  --wood-dark: #4a3420;
  --text: #3d2b1a;
  --text-light: #6b5a48;
  --white: #ffffff;
  --shadow-soft: 0 4px 20px rgba(60, 40, 20, 0.12);
  --shadow-hover: 0 12px 40px rgba(60, 40, 20, 0.18);
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--linen);
  overflow-x: hidden;
}

body.loading {
  overflow: hidden;
}

/* ===== Loading Screen ===== */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--linen);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.loading-leaf {
  animation: leafBounce 1.4s ease-in-out infinite;
}

@keyframes leafBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(8deg); }
}

.loading-text {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--wood);
  letter-spacing: -0.3px;
}

.loading-bar {
  width: 140px;
  height: 4px;
  background: rgba(108, 77, 46, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.loading-progress {
  width: 0%;
  height: 100%;
  background: var(--sage);
  border-radius: 2px;
  animation: loadProgress 2.2s ease-out forwards;
}

@keyframes loadProgress {
  0% { width: 0%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Header ===== */
.site-header {
  background: var(--linen);
  border-bottom: 1px solid rgba(108, 77, 46, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(60, 40, 20, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wood);
  letter-spacing: -0.5px;
  font-family: Georgia, serif;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo span {
  color: var(--rust);
  font-weight: 400;
  font-style: italic;
}

/* Hamburger */
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.hamburger:hover {
  background: rgba(108, 77, 46, 0.06);
}

.hamburger span {
  width: 22px;
  height: 2.5px;
  background: var(--wood);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop Nav */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.main-nav li a {
  color: var(--wood);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.main-nav li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rust);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.main-nav li a:hover {
  color: var(--rust);
}

.main-nav li a:hover::after {
  width: 100%;
}

/* ===== Hero ===== */
.hero {
  background: var(--wood);
  color: var(--cream);
  padding: 4rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(178, 208, 125, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--cream);
  font-family: Georgia, serif;
}

.hero-content h1 .dot {
  color: var(--moss);
  display: inline-block;
  animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  opacity: 0.92;
  color: var(--linen);
}

.hero-subtitle strong {
  color: var(--moss);
  font-weight: 600;
}

.hero-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--linen);
}

.bullet-icon {
  color: var(--moss);
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  text-decoration: none;
}

.cta-primary {
  background: var(--sage);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(136, 167, 81, 0.35);
}

.cta-primary:hover {
  background: var(--moss);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(136, 167, 81, 0.45);
}

.cta-secondary {
  background: transparent;
  color: var(--cream);
  border-color: rgba(246, 232, 205, 0.5);
}

.cta-secondary:hover {
  background: rgba(246, 232, 205, 0.1);
  border-color: var(--cream);
  transform: translateY(-3px);
}

/* Hero Image */
.hero-image-wrapper {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.hero-image-bg {
  position: absolute;
  top: -8%;
  left: -8%;
  width: 116%;
  height: 116%;
  background: url("Group 15.svg") center/contain no-repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.hero-image-wrapper > img {
  position: relative;
  z-index: 1;
  width: 82%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 9%;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover > img {
  transform: scale(1.03);
}

.hero-float-icon {
  position: absolute;
  animation: float 3s ease-in-out infinite;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.hero-image-wrapper:hover .hero-float-icon {
  opacity: 1;
}

.icon-leaf {
  top: 8%;
  right: -24px;
  animation-delay: 0s;
}

.icon-flower {
  bottom: 12%;
  right: 8%;
  animation-delay: 1.2s;
}

.icon-apple {
  top: 45%;
  right: -16px;
  animation-delay: 0.6s;
  animation-duration: 3.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(5deg); }
}

/* ===== Section Containers ===== */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== How It Works ===== */
.how-it-works {
  background: var(--cream);
  padding: 5rem 0;
  position: relative;
}

.how-it-works::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(108, 77, 46, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.how-it-works h2 {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--wood);
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.step-connector {
  display: none;
}

.steps-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  list-style: none;
  position: relative;
  z-index: 1;
}

.step-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.step-image-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.step-image-wrapper:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: var(--shadow-hover);
}

.step-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-text h4 {
  font-size: 1.15rem;
  color: var(--wood);
  margin-bottom: 0.5rem;
}

.step-text p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

.how-it-works .cta-button {
  display: block;
  width: fit-content;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== Featured Section ===== */
.featured-section {
  background: var(--linen);
  padding: 5rem 0;
}

.featured-section h2 {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--wood);
  margin-bottom: 0.75rem;
}

.section-intro {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 3rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.featured-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.featured-card > img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card:hover > img {
  transform: scale(1.04);
}

.card-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-details h3 {
  font-size: 1.3rem;
  color: var(--wood);
  margin-bottom: 0.75rem;
}

.card-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tag {
  background: rgba(136, 167, 81, 0.12);
  color: var(--sage);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
  flex: 1;
}

.card-list li {
  margin-bottom: 0.4rem;
}

.card-link {
  color: var(--rust);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.card-link:hover {
  color: var(--wood);
}

/* ===== Highlight Section ===== */
.highlight-section {
  background: var(--white);
  padding: 5rem 1.5rem;
  background-image: radial-gradient(circle, rgba(108, 77, 46, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

.highlight-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 4rem;
}

.highlight-text {
  flex: 1;
}

.highlight-text h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--wood);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.highlight-text h2 .accent {
  color: var(--sage);
}

.highlight-text > p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 420px;
}

.topic-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.topic-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
}

.topic-list img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Highlight Card */
.highlight-card {
  flex: 1;
  max-width: 480px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.highlight-card-header {
  background: var(--wood);
  color: var(--cream);
  padding: 1.5rem;
  position: relative;
}

.highlight-card-header img {
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  border-radius: 0;
}

.highlight-card-header .label {
  color: var(--moss);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.highlight-card-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 1;
}

.highlight-card-header .sub {
  font-size: 0.9rem;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

.highlight-card-body {
  padding: 0 1.5rem;
}

.toggle-row {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(108, 77, 46, 0.1);
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle-row h4 {
  font-size: 1rem;
  color: var(--wood);
  margin-bottom: 0.35rem;
}

.toggle-row p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: var(--wood);
  color: var(--cream);
  padding: 4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(178, 208, 125, 0.1) 0%, transparent 50%);
}

.cta-banner-content {
  max-width: 480px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-banner-content h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 1rem;
  color: var(--cream);
}

.cta-banner-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  color: var(--linen);
}

.cta-banner > img {
  max-width: 320px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(30, 20, 10, 0.3);
  position: relative;
  z-index: 1;
  transition: transform 0.5s ease;
}

.cta-banner:hover > img {
  transform: scale(1.03) rotate(-1deg);
}

/* ===== FAQ ===== */
.faq-section {
  background: var(--linen);
  padding: 5rem 0;
}

.faq-section h2 {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--wood);
  margin-bottom: 2.5rem;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-hover);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  color: var(--wood);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.3s ease;
}

.faq-item summary:hover {
  color: var(--rust);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--rust);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--wood-dark);
  color: var(--linen);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.3s ease, color 0.3s ease;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--moss);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--moss);
}

.footer-links a:hover::after {
  width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-list {
    align-items: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-image-wrapper {
    max-width: 420px;
  }

  .hero-float-icon {
    display: none;
  }

  .highlight-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  .highlight-text {
    text-align: center;
  }

  .topic-list {
    justify-content: center;
  }

  .highlight-card {
    max-width: 100%;
    width: 100%;
  }

  .cta-banner {
    flex-direction: column;
    gap: 2rem;
    border-radius: 0;
  }

  .cta-banner > img {
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: var(--linen);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-105%);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    visibility: hidden;
    box-shadow: 4px 0 40px rgba(0,0,0,0.1);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }

  .main-nav li a {
    font-size: 1.4rem;
    font-weight: 600;
  }

  #mobile-menu-toggle:checked ~ .main-nav {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  #mobile-menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  #mobile-menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  #mobile-menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

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

  .topic-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 1rem 4rem;
  }

  .how-it-works,
  .featured-section,
  .highlight-section,
  .faq-section {
    padding: 3rem 0;
  }

  .cta-banner {
    padding: 3rem 1rem;
    margin: 0;
    border-radius: 0;
  }

  .cta-button {
    padding: 0.8rem 1.6rem;
    font-size: 0.95rem;
  }
}

