/* ============================================
   Kendal's Keeping LLC — Styles
   Organic warmth, botanical elegance
   ============================================ */

:root {
  /* Color palette — soft earth tones with sage green accents */
  --color-bg: #faf8f4;
  --color-bg-deep: #f5f0e8;
  --color-text: #3d3631;
  --color-text-soft: #7a6f65;
  --color-text-muted: #a89e94;
  --color-accent: #8fa88b;
  --color-accent-deep: #6b8568;
  --color-accent-light: #c5d4c2;
  --color-warm: #d4a373;
  --color-cream: #fefcf7;
  --color-border: rgba(143, 168, 139, 0.2);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Transitions */
  --ease-gentle: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-float: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Ambient Background
   ============================================ */

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.blob--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-accent-light) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  animation-delay: 0s;
}

.blob--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 163, 115, 0.3) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation-delay: -7s;
}

.blob--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(143, 168, 139, 0.25) 0%, transparent 70%);
  top: 50%;
  left: 60%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(20px, 20px) scale(1.02); }
}

/* Grain overlay for texture */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ============================================
   Page Layout
   ============================================ */

.page {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
}

/* ============================================
   Botanical Accents
   ============================================ */

.botanical {
  width: 200px;
  color: var(--color-accent);
  opacity: 0.5;
}

.botanical svg {
  width: 100%;
  height: auto;
}

.botanical--bottom {
  transform: rotate(180deg);
}

/* ============================================
   Header & Logo
   ============================================ */

.header {
  text-align: center;
}

.logo-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.logo-ampersand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-accent);
  opacity: 0.6;
  line-height: 1;
}

.logo {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.75rem, 7vw, 4rem);
  letter-spacing: 0.02em;
  color: var(--color-text);
  line-height: 1.1;
}

.logo-tagline {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  text-align: center;
  max-width: 520px;
}

.tagline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  margin-bottom: var(--space-md);
}

.coming-soon {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.coming-soon br {
  display: block;
  content: "";
}

.description {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  line-height: 1.8;
}

/* ============================================
   Services Preview
   ============================================ */

.services {
  display: flex;
  align-items: stretch;
  gap: var(--space-md);
  width: 100%;
  max-width: 640px;
}

.service-card {
  flex: 1;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform 0.4s var(--ease-gentle), box-shadow 0.4s var(--ease-gentle);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(143, 168, 139, 0.12);
}

.service-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent-deep);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--color-text);
}

.service-card p {
  font-size: 0.8rem;
  color: var(--color-text-soft);
  line-height: 1.6;
}

.service-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  color: var(--color-accent-light);
  flex-shrink: 0;
}

/* ============================================
   CTA / Email Form
   ============================================ */

.cta {
  text-align: center;
  width: 100%;
  max-width: 420px;
}

.cta-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text-soft);
  margin-bottom: var(--space-md);
}

.email-form {
  position: relative;
}

.notify-form {
  display: flex;
  gap: 8px;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 6px 6px 6px 20px;
  transition: border-color 0.3s var(--ease-gentle), box-shadow 0.3s var(--ease-gentle);
}

.notify-form:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(143, 168, 139, 0.1);
}

.notify-form input[type="email"] {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text);
  outline: none;
}

.notify-form input[type="email"]::placeholder {
  color: var(--color-text-muted);
}

.notify-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: 100px;
  background: var(--color-accent-deep);
  color: white;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-gentle), transform 0.2s var(--ease-float);
  white-space: nowrap;
}

.notify-btn:hover {
  background: var(--color-accent);
  transform: scale(1.03);
}

.notify-btn:active {
  transform: scale(0.98);
}

.notify-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease-gentle);
}

.notify-btn:hover svg {
  transform: translateX(2px);
}

.thank-you {
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  color: var(--color-accent-deep);
  animation: fadeIn 0.5s var(--ease-gentle);
}

.hidden {
  display: none !important;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  text-align: center;
  margin-top: auto;
  padding-top: var(--space-md);
}

.footer-text {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.footer-location {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 4px;
  font-style: italic;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate--fade-up {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-gentle) forwards;
}

.animate--delay-1 { animation-delay: 0.15s; }
.animate--delay-2 { animation-delay: 0.3s; }
.animate--delay-3 { animation-delay: 0.45s; }
.animate--delay-4 { animation-delay: 0.6s; }

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

@media (max-width: 640px) {
  .page {
    padding: var(--space-md) var(--space-sm);
    gap: var(--space-md);
  }

  .services {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .service-divider {
    transform: rotate(90deg);
  }

  .notify-form {
    flex-direction: column;
    border-radius: 16px;
    padding: 12px;
    gap: 10px;
  }

  .notify-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  .botanical {
    width: 140px;
    opacity: 0.35;
  }
}

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

  .animate--fade-up {
    opacity: 1;
  }
}
