/* ==========================================================================
   FRUPICAL - Premium Fruit Delivery Landing Page
   Modern CSS with complete reset and brand-based design
   ========================================================================== */

/* ==========================================================================
   ROOT VARIABLES - Brand Colors from Flyer
   ========================================================================== */
:root {
  /* Brand Colors from Flyer */
  --brand-green-primary: #2d5016; /* Deep forest green from flyer */
  --brand-green-secondary: #3a6b1f; /* Medium green */
  --brand-green-light: #4a7c2a; /* Light green accent */
  --brand-gold: #f7d631; /* Golden accent from flyer */
  --brand-gold-dark: #e6c520; /* Darker gold for hover states */
  --brand-cream: #faf8f1; /* Cream background from flyer */
  --brand-cream-dark: #f5f2e8; /* Darker cream */

  /* Text Colors */
  --text-primary: #1a1a1a; /* Dark text */
  --text-secondary: #4a4a4a; /* Medium text */
  --text-light: #ffffff; /* White text */
  --text-on-green: #ffffff; /* Text on green background */

  /* Spacing System */
  --space-xs: 0.25rem; /* 4px */
  --space-sm: 0.5rem; /* 8px */
  --space-md: 1rem; /* 16px */
  --space-lg: 1.5rem; /* 24px */
  --space-xl: 2rem; /* 32px */
  --space-2xl: 3rem; /* 48px */
  --space-3xl: 4rem; /* 64px */
  --space-4xl: 6rem; /* 96px */

  /* Luxury Typography */
  --font-display: "Lilita One", cursive; /* Fun comic-style display font */
  --font-heading: "Lilita One", cursive; /* Fun comic-style for headings */
  --font-body: "Lilita One", cursive; /* Fun comic-style for body */

  /* Font Sizes - Optimized for Space Efficiency */
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.3vw, 0.95rem);
  --text-base: clamp(1rem, 0.9rem + 0.4vw, 1.1rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.6rem + 1.2vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.9rem + 1.8vw, 3.5rem);
  --text-5xl: clamp(2.75rem, 2.3rem + 2.2vw, 4.5rem);
  --text-6xl: clamp(3.5rem, 2.8rem + 3.5vw, 6rem);

  /* Container Sizes */
  --container-xs: 20rem; /* 320px */
  --container-sm: 24rem; /* 384px */
  --container-md: 28rem; /* 448px */
  --container-lg: 32rem; /* 512px */
  --container-xl: 36rem; /* 576px */
  --container-2xl: 42rem; /* 672px */
  --container-3xl: 48rem; /* 768px */
  --container-4xl: 56rem; /* 896px */
  --container-5xl: 64rem; /* 1024px */
  --container-6xl: 72rem; /* 1152px */
  --container-7xl: 80rem; /* 1280px */

  /* Breakpoints */
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-2xl: 1536px;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* Layout Heights - Responsive Variables */
  --header-height: 4rem; /* Mobile header height - increased */
  --footer-height: 4.5rem; /* Mobile footer height - optimized */
}

/* ==========================================================================
   CSS RESET - Complete Modern Reset
   ========================================================================== */

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

/* Remove default margin and padding */
* {
  margin: 0;
  padding: 0;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background-color: var(--brand-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
h5,
h6,
button,
input,
label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  font-family: var(--font-heading);
  font-weight: 600;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   BASE TYPOGRAPHY
   ========================================================================== */

h1 {
  font-size: var(--text-4xl);
}
h2 {
  font-size: var(--text-3xl);
}
h3 {
  font-size: var(--text-2xl);
}
h4 {
  font-size: var(--text-xl);
}
h5 {
  font-size: var(--text-lg);
}
h6 {
  font-size: var(--text-base);
}

p {
  text-wrap: pretty;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  height: 100%;
  max-width: var(--container-7xl);
  margin-inline: auto;
  /* Mobile: minimal padding for more space */
  padding-inline: var(--space-sm);
}

/* Tablet */
@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-md);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .container {
    padding-inline: var(--space-lg);
    max-width: 100%;
  }
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--brand-cream-dark);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform var(--transition-fast);
}

.nav__brand:hover {
  transform: translateY(-1px);
}

.nav__logo {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: transparent;
}

.nav__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--brand-green-primary);
  letter-spacing: 0.05em;
}

/* Mobile (320px - 767px) - Already defined above */

/* Navigation sizing is now handled by the header variable heights */

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */

.main {
  height: calc(100vh - var(--header-height) - var(--footer-height));
  margin-top: var(--header-height);
  background: linear-gradient(
    135deg,
    var(--brand-green-primary) 0%,
    var(--brand-green-secondary) 50%,
    var(--brand-green-primary) 100%
  );
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Decorative background elements inspired by flyer */
.main::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 40%;
  height: 60%;
  background: var(--brand-gold);
  border-radius: 50% 30% 70% 40%;
  opacity: 0.1;
  transform: rotate(15deg);
}

.main::after {
  content: "";
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 50%;
  height: 70%;
  background: var(--brand-cream);
  border-radius: 60% 40% 30% 70%;
  opacity: 0.15;
  transform: rotate(-20deg);
}

.hero {
  position: relative;
  z-index: 10;
  width: 100%;
  color: var(--text-on-green);
  text-align: center;
  padding: 0;
}

/* Hero padding removed for precise centering */

/* ==========================================================================
   HERO SECTION - Based on Brand Flyer Design
   ========================================================================== */

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  text-align: center;
  max-width: var(--container-4xl);
  height: 100%;
  width: 100%;
  gap: var(--space-lg);
  padding: 0;
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) {
  :root {
    --header-height: 6rem; /* Larger header on tablet */
    --footer-height: 4rem; /* Optimized footer on tablet */
  }

  .hero__content {
    gap: var(--space-xl);
    max-width: var(--container-5xl);
  }

  .hero__title {
    gap: var(--space-md);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  :root {
    --header-height: 7rem; /* Even larger header on desktop */
    --footer-height: 3.5rem; /* Compact footer on desktop */
  }

  html,
  body {
    overflow-y: hidden;
  }

  .hero__content {
    gap: var(--space-2xl);
    max-width: var(--container-6xl);
  }

  .hero__title {
    gap: var(--space-lg);
  }
}

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
  .hero__content {
    max-width: var(--container-7xl);
    gap: var(--space-3xl);
    min-height: 100vh;
    padding-bottom: 4rem;
  }

  .container {
    max-width: 1600px;
    padding-inline: var(--space-2xl);
  }
}

.hero__greeting {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--brand-gold);
  text-transform: uppercase;
  opacity: 0.95;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__title {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
}

.hero__brand-name {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--brand-cream);
  letter-spacing: 0.02em;
  line-height: 1.4;
  font-style: italic;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero__coming-soon {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--brand-gold);
  background: rgba(247, 214, 49, 0.1);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 50px;
  border: 2px solid var(--brand-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-md);
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  animation:
    fadeInUp 0.8s ease-out 0.8s both,
    pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  from {
    box-shadow: 0 0 10px rgba(247, 214, 49, 0.3);
  }
  to {
    box-shadow:
      0 0 20px rgba(247, 214, 49, 0.6),
      0 0 30px rgba(247, 214, 49, 0.3);
  }
}

.hero__image {
  position: relative;
  width: 100%;
  margin-inline: auto;
  /* Mobile: smaller size */
  max-width: clamp(250px, 70vw, 350px);
}

/* Tablet */
@media (min-width: 768px) {
  .hero__image {
    max-width: clamp(350px, 50vw, 450px);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero__image {
    max-width: clamp(400px, 35vw, 500px);
  }
}

.hero__fruits {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
  transition: transform var(--transition-slow);
}

.hero__fruits:hover {
  transform: scale(1.05);
}

.hero__messages {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: center;
  max-width: var(--container-4xl);
}

/* Tablet */
@media (min-width: 768px) {
  .hero__messages {
    gap: var(--space-md);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero__messages {
    gap: var(--space-lg);
    max-width: var(--container-5xl);
  }
}

.hero__message {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--brand-cream);
  opacity: 0.95;
}

/* ==========================================================================
   FOOTER - Simplified and Responsive
   ========================================================================== */

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--footer-height);
  background: var(--brand-green-primary);
  color: var(--text-light);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-md);
  overflow-x: auto;
}

.footer__contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  width: 100%;
  max-width: var(--container-6xl);
  padding: 0 var(--space-sm);
}

.contact__item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.contact__item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.contact__icon {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  flex-shrink: 0;
}

.contact__link {
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.contact__link:hover {
  color: var(--brand-gold);
}

/* ==========================================================================
   RESPONSIVE DESIGN PATTERNS
   ========================================================================== */

/* Hide scrollbar but keep functionality */
.scrollbar-hidden {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hidden::-webkit-scrollbar {
  display: none;
}

/* Focus visible for accessibility */
.focus-visible:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   ANIMATIONS & INTERACTIONS
   ========================================================================== */

/* Smooth entrance animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__greeting,
  .hero__brand-name,
  .hero__subtitle,
  .hero__coming-soon {
    animation: none;
  }
}
