/* ══════════════════════════════════════════════════
   Idaho Grocery — Styles
   Palette: Plum (#6B2F5B) + Amber (#F5A623)
   Fonts: Lora (headings) + Nunito (body)
   ══════════════════════════════════════════════════ */

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

:root {
  --plum: #6B2F5B;
  --plum-dark: #4E2044;
  --plum-light: #8B4072;
  --amber: #F5A623;
  --amber-dark: #D4891A;
  --amber-light: #FDD97B;
  --cream: #FDF6EC;
  --cream-dark: #F5E8D0;
  --white: #FFFFFF;
  --text: #2D1F2E;
  --text-light: #6B5A6A;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(107, 47, 91, 0.08);
  --shadow-md: 0 4px 20px rgba(107, 47, 91, 0.12);
  --shadow-lg: 0 8px 40px rgba(107, 47, 91, 0.16);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  line-height: 1.2;
  color: var(--plum);
}

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

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

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

/* ═══════════════════ BUTTONS ═══════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-amber {
  background: var(--amber);
  color: var(--plum-dark);
  border-color: var(--amber);
}

.btn-amber:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--plum);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ═══════════════════ SECTION TAGS ═══════════════════ */
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-dark);
  background: rgba(245, 166, 35, 0.15);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  color: var(--plum);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* ═══════════════════ HEADER ═══════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 246, 236, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107, 47, 91, 0.08);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--plum);
}

.logo-text {
  letter-spacing: -0.02em;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav a {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
}

.nav a:hover {
  background: rgba(107, 47, 91, 0.08);
  color: var(--plum);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
}

.hamburger {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 2px;
  background: var(--plum);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--plum);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* ═══════════════════ HERO ═══════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--plum) 0%, var(--plum-dark) 50%, #3A1A32 100%);
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(circle at 25% 25%, var(--amber) 1px, transparent 1px),
                    radial-gradient(circle at 75% 75%, var(--amber) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 166, 35, 0.2);
  border: 1px solid rgba(245, 166, 35, 0.4);
  color: var(--amber-light);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero-headline .accent {
  color: var(--amber);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Hero images */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-img-main img {
  width: 520px;
  height: 620px;
  object-fit: cover;
}

.hero-img-float {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-img-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-img-1 {
  width: 260px;
  height: 200px;
  bottom: 40px;
  left: -60px;
  animation: float 4s ease-in-out infinite;
}

.hero-img-2 {
  width: 260px;
  height: 200px;
  top: 40px;
  right: -40px;
  animation: float 4s ease-in-out infinite 2s;
}

.hero-stat {
  position: absolute;
  bottom: -20px;
  right: 40px;
  background: var(--amber);
  color: var(--plum-dark);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  animation: float 4s ease-in-out infinite 1s;
}

.hero-stat-num {
  display: block;
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

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

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ═══════════════════ SERVICES ═══════════════════ */
.services {
  padding: 100px 0;
  background: var(--cream);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  border: 1px solid rgba(107, 47, 91, 0.06);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-icon {
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--plum);
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ═══════════════════ ABOUT ═══════════════════ */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.about-img-accent {
  position: absolute;
  bottom: -40px;
  right: -30px;
  width: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}

.about-img-accent img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.about-accent-box {
  position: absolute;
  top: -20px;
  right: 40px;
  background: var(--plum);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  text-align: center;
  font-family: 'Lora', serif;
  font-weight: 700;
  line-height: 1.3;
}

.about-content .section-title {
  margin-bottom: 24px;
}

.about-text {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  padding: 14px 18px;
  border-radius: var(--radius-md);
}

.highlight-num {
  font-size: 1.3rem;
}

.highlight-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--plum);
}

/* ═══════════════════ PRODUCTS ═══════════════════ */
.products {
  padding: 100px 0;
  background: var(--cream);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
}

.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

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

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

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45, 31, 46, 0.85) 0%, rgba(45, 31, 46, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: var(--white);
}

.product-card-tag {
  display: inline-block;
  background: var(--amber);
  color: var(--plum-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  margin-bottom: 10px;
}

.product-card-overlay h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.product-card-overlay p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

.product-card--large {
  grid-column: span 7;
  min-height: 340px;
}

.product-card:not(.product-card--large) {
  grid-column: span 5;
  min-height: 340px;
}

/* ═══════════════════ COMMUNITY ═══════════════════ */
.community {
  padding: 100px 0;
  background: var(--white);
}

.community-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.community-text {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.community-visual {
  position: relative;
}

.community-img-stack {
  position: relative;
}

.community-img-stack img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.community-quote {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: var(--amber);
  color: var(--plum-dark);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  max-width: 300px;
  box-shadow: var(--shadow-md);
}

.community-quote p {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.5;
}

.community-quote span {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  font-style: normal;
}

/* ═══════════════════ CONTACT ═══════════════════ */
.contact {
  padding: 100px 0;
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info .section-title {
  margin-bottom: 16px;
}

.contact-desc {
  color: var(--text-light);
  margin-bottom: 36px;
  font-size: 1.05rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item strong {
  display: block;
  font-family: 'Lora', serif;
  color: var(--plum);
  margin-bottom: 4px;
}

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

.contact-item a {
  color: var(--plum);
  text-decoration: underline;
  text-decoration-color: rgba(107, 47, 91, 0.3);
  text-underline-offset: 3px;
  transition: var(--transition);
}

.contact-item a:hover {
  text-decoration-color: var(--plum);
}

.hours-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(107, 47, 91, 0.08);
}

.hours-box h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--plum);
}

.hours-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hours-box li {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--cream);
}

.hours-box li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hours-box li span:first-child {
  color: var(--text);
  font-weight: 600;
}

.hours-box li span:last-child {
  color: var(--plum);
  font-weight: 700;
}

/* Form */
.contact-form-wrap {
  display: flex;
  align-items: flex-start;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(107, 47, 91, 0.06);
}

.contact-form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-note {
  color: var(--text-light);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--plum);
}

.form-group .optional {
  font-weight: 500;
  color: var(--text-light);
  font-size: 0.8rem;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--text);
  transition: var(--transition);
  background: var(--cream);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--plum);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(107, 47, 91, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #B8A0B0;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success h4 {
  font-size: 1.4rem;
  margin: 16px 0 8px;
  color: var(--plum);
}

.form-success p {
  color: var(--text-light);
}

/* ═══════════════════ FOOTER ═══════════════════ */
.footer {
  background: var(--plum-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--amber);
}

.footer-contact p {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.footer-contact a {
  color: var(--amber);
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--amber-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image {
    display: none;
  }

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

  .about-grid,
  .community-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-images {
    max-width: 500px;
    margin: 0 auto;
  }

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

  .product-card--large,
  .product-card:not(.product-card--large) {
    grid-column: span 1;
    min-height: 280px;
  }

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

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(253, 246, 236, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    border-bottom: 1px solid rgba(107, 47, 91, 0.08);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav ul {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .nav a {
    display: block;
    padding: 12px 16px;
    text-align: center;
  }

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

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-headline {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

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

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

  .product-card--large,
  .product-card:not(.product-card--large) {
    grid-column: span 1;
    min-height: 260px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 28px;
  }

  .community-quote {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 16px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

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

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

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .about-img-accent {
    right: -10px;
    bottom: -20px;
    width: 180px;
  }

  .about-img-accent img {
    height: 180px;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════ ANIMATIONS ═══════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
