/* ============================================
   DecidedlyEasy Landing Page Styles
   ============================================ */

/* Local Font Declarations */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-Italic.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Italic.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

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

:root {
  --sage-green: #87a96b;
  --sage-green-dark: #758a5a;
  --warm-cream: #f7f3e9;
  --dusty-rose: #d4a5a5;
  --charcoal: #3a3a3a;
  --soft-blue: #a8c4d6;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background-color: var(--warm-cream);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.2;
  color: var(--charcoal);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

p {
  font-size: 1.125rem;
  line-height: 1.7;
}

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  border: 2px solid var(--charcoal);
  border-radius: 50px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 52px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.1s ease;
  user-select: none;
  touch-action: manipulation;
}

.btn-primary {
  background-color: var(--sage-green);
  color: var(--charcoal);
  box-shadow: var(--charcoal) 0 4px 0 0;
}

.btn-primary:hover {
  background-color: var(--sage-green-dark);
}

.btn-primary:active {
  box-shadow: var(--charcoal) 0 2px 0 0;
  transform: translateY(2px);
}

.btn-secondary {
  background-color: var(--warm-cream);
  color: var(--sage-green-dark);
  border-color: var(--sage-green);
  box-shadow: var(--sage-green) 0 4px 0 0;
}

.btn-secondary:hover {
  background-color: #f0eade;
}

.btn-secondary:active {
  box-shadow: var(--sage-green) 0 2px 0 0;
  transform: translateY(2px);
}

.btn-small {
  padding: 0 24px;
  font-size: 0.875rem;
  line-height: 44px;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--warm-cream);
  z-index: 100;
  border-bottom: 1px solid rgba(58, 58, 58, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--sage-green);
}

.nav-cta {
  margin-left: 8px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--charcoal);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* Mobile navigation menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background-color: var(--warm-cream);
  border-bottom: 1px solid rgba(58, 58, 58, 0.1);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
  animation: slideDown 0.3s ease;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav .nav-link {
  font-size: 1.125rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(58, 58, 58, 0.1);
}

.mobile-nav .nav-link:last-of-type {
  border-bottom: none;
}

.mobile-nav .btn {
  margin-top: 8px;
}

/* Hamburger animation when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding-top: 152px;
  padding-bottom: 80px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-tagline {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--sage-green-dark);
  margin-bottom: 40px;
  font-weight: 500;
}

.hero-cta {
  margin-bottom: 48px;
}

.hero-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  display: block;
}

/* ============================================
   Problem Section
   ============================================ */
.problem {
  background-color: var(--white);
}

.problem-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}

.problem-text h2 {
  margin-bottom: 24px;
}

.problem-text p {
  margin-bottom: 16px;
  color: var(--charcoal);
}

.problem-examples {
  list-style: none;
  margin-top: 24px;
}

.problem-examples li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 1.0625rem;
}

.problem-examples li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 12px;
  background-color: var(--dusty-rose);
  border-radius: 50%;
}

.problem-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

/* ============================================
   Features Section
   ============================================ */
.features {
  text-align: center;
}

.features h2 {
  margin-bottom: 16px;
}

.features-intro {
  max-width: 600px;
  margin: 0 auto 56px;
  color: var(--charcoal);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background-color: var(--white);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(58, 58, 58, 0.08);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background-color: var(--warm-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-green);
}

.feature-card h3 {
  margin-bottom: 12px;
  color: var(--charcoal);
}

.feature-card p {
  font-size: 1rem;
  color: var(--charcoal);
  opacity: 0.85;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
  background-color: var(--white);
  text-align: center;
}

.how-it-works h2 {
  margin-bottom: 56px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 900px;
  margin: 0 auto 56px;
}

.step {
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background-color: var(--sage-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  font-size: 1rem;
  color: var(--charcoal);
  opacity: 0.85;
}

/* Arrow connectors */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -48px;
  width: 48px;
  height: 2px;
  background-color: var(--sage-green);
  opacity: 0.4;
}

.app-preview {
  max-width: 700px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  display: block;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  text-align: center;
  background: linear-gradient(180deg, var(--warm-cream) 0%, #f0ebe0 100%);
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  margin-bottom: 32px;
  color: var(--charcoal);
}

.cta-reassurance {
  margin-top: 24px;
  font-size: 0.9375rem;
  color: var(--charcoal);
  opacity: 0.7;
  font-style: italic;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(58, 58, 58, 0.1);
}

.footer-tagline {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
  color: var(--sage-green-dark);
  margin-bottom: 8px;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--charcoal);
  opacity: 0.6;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

/* ============================================
   Responsive Styles
   ============================================ */

/* Hide mobile nav on desktop */
@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card:last-child {
    grid-column: span 2;
    max-width: 400px;
    margin: 0 auto;
  }

  .steps {
    gap: 32px;
  }

  .step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-cta.desktop {
    display: none;
  }

  .problem-content {
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
  }

  .problem-image {
    order: -1;
    max-width: 100%;
    margin: 0 auto;
  }

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

  .feature-card:last-child {
    grid-column: span 1;
    max-width: none;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .app-preview {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .btn {
    width: 100%;
    padding: 0 24px;
  }

  .hero {
    padding-top: 120px;
  }

  .header-inner {
    height: 64px;
  }

  .mobile-nav {
    top: 64px;
  }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

*:focus {
  outline: 3px solid var(--soft-blue);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 3px solid var(--soft-blue);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background-color: var(--charcoal);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  top: 16px;
}
