:root {
  --apple-red: #B7410E;
  --moss-green: #8A9A5B;
  --orchard-green: #6B8E4E;
  --harvest-gold: #D98E04;
  --cider-brown: #6F4E37;
  --parchment: #C9B458;
  --cream: #F7F0E1;
  --cream-card: #FFFBF2;
  --text-dark: #4A2F1F;
  --text-muted: #7A6350;

  --font-heading: 'Caveat', cursive;
  --font-body: 'Quicksand', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
}

/* Fixed full-page backdrop - a pseudo-element positioned via `fixed` rather than
   background-attachment: fixed, since Safari on iOS doesn't support that property
   and would otherwise stretch the background across the whole scroll height. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('../assets/img/background.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: inherit;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--apple-red);
  color: #fff;
  box-shadow: 0 4px 0 #8f330b;
}

.btn-secondary {
  background: var(--cream-card);
  color: var(--text-dark);
  border-color: var(--moss-green);
}

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 240, 225, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 3px dashed var(--moss-green);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-right: auto;
}

.brand-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--apple-red);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-dark);
}

.site-nav a:hover {
  color: var(--apple-red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 5rem 0 6rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 5.5rem;
  font-weight: 700;
  color: var(--apple-red);
  margin: 0;
  line-height: 1;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-dark);
  max-width: 34rem;
  margin: 1rem 0 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Section titles */
.section-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  color: var(--apple-red);
  text-align: center;
  margin-bottom: 0.25rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto 2.5rem;
}

/* Features */
.features {
  padding: 5rem 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--cream-card);
  border: 2px solid rgba(138, 154, 91, 0.35);
  border-radius: 18px;
  padding: 1.75rem;
  text-align: left;
  box-shadow: 0 6px 16px rgba(74, 47, 31, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(74, 47, 31, 0.14);
}

.feature-icon {
  font-size: 2rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  color: var(--cider-brown);
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Showcase */
.showcase {
  padding: 5rem 0;
  border-top: 3px dashed var(--parchment);
  border-bottom: 3px dashed var(--parchment);
}

.showcase-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.showcase-text {
  flex: 1 1 0;
  min-width: 0;
  background: rgba(255, 251, 242, 0.88);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 6px 16px rgba(74, 47, 31, 0.08);
}

.showcase-text .section-title,
.showcase-text .section-subtitle {
  text-align: left;
  margin-left: 0;
}

.showcase-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.showcase-image {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(74, 47, 31, 0.18);
}

/* CTA */
.cta {
  padding: 5rem 0;
  text-align: center;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 3px dashed var(--moss-green);
}

/* Responsive */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-inner {
    flex-direction: column;
  }

  .showcase-text .section-title,
  .showcase-text .section-subtitle {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 3px dashed var(--moss-green);
    display: none;
  }

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

  .header-inner .btn-small {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}
