/* ============================================================
   Odetos Saldumynai – style.css
   Modern, calm, accessible, mobile-first
   Colors from cakes: pastel pink, mint, butter yellow, lavender
   ============================================================ */

/* ----- CSS Custom Properties (Colors & Spacing) ----- */
/* PAKEISTI SPALVAS ČIA: */
:root {
  /* Brand / Accent colors (from cake photos) */
  --color-pink: #f8c8d8;        /* Pastel pink */
  --color-pink-dark: #e8a8c0;
  --color-mint: #a8e8d0;        /* Mint green */
  --color-mint-dark: #88d8c0;
  --color-butter: #ffe8a0;      /* Butter yellow */
  --color-butter-dark: #f0d880;
  --color-lavender: #d8c8f0;    /* Lavender */
  --color-lavender-dark: #c0a8e0;

  /* Strong accent for primary buttons */
  --color-accent: #e86c8c;      /* Stronger pink for CTAs */
  --color-accent-hover: #d85078;
  --color-accent-focus: #c03860;

  /* Neutral */
  --color-white: #ffffff;
  --color-bg: #fdfaf6;          /* Warm off-white base */
  --color-bg-alt: #f5f0eb;      /* Slightly warmer for sections */
  --color-text: #2d2a26;        /* Dark brown-gray (WCAG AA on white) */
  --color-text-light: #5a5550;
  --color-border: #e8e0d8;

  /* Shadows */
  --shadow-soft: 0 4px 24px rgba(45, 42, 38, 0.06);
  --shadow-card: 0 8px 32px rgba(45, 42, 38, 0.08);
  --shadow-hover: 0 16px 48px rgba(45, 42, 38, 0.12);
  --shadow-focus: 0 0 0 3px rgba(232, 108, 140, 0.4);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;
  --space-6xl: 192px;

  /* Typography */
  --font-display: 'Quicksand', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --fs-xs: 0.75rem;    /* 12px */
  --fs-sm: 0.875rem;   /* 14px */
  --fs-base: 1.125rem; /* 18px – body minimum */
  --fs-lg: 1.25rem;    /* 20px */
  --fs-xl: 1.5rem;     /* 24px */
  --fs-2xl: 2rem;      /* 32px */
  --fs-3xl: 2.5rem;    /* 40px */
  --fs-4xl: 3.5rem;    /* 56px */
  --fs-5xl: 4.5rem;    /* 72px */
  --lh-tight: 1.15;
  --lh-normal: 1.6;
  --lh-relaxed: 1.75;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;

  /* Z-index */
  --z-header: 100;
  --z-lightbox: 1000;
  --z-floating: 90;
}

/* Dark mode support (optional, respects system) */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1a1816;
    --color-bg-alt: #22201d;
    --color-white: #2a2724;
    --color-text: #f5f0eb;
    --color-text-light: #c8c0b8;
    --color-border: #3a3530;
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.5);
  }
}

/* Reduced motion */
@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;
  }
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  border-radius: var(--radius-md);
  z-index: 10000;
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-md);
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Selection */
::selection {
  background: var(--color-pink);
  color: var(--color-text);
}

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

/* Links */
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--color-text);
}

.section-title {
  font-size: var(--fs-3xl);
  text-align: center;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--color-text-light);
  text-align: center;
  max-width: 60ch;
  margin: 0 auto;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.5;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--fs-lg);
  min-height: 56px; /* Accessible tap target */
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.btn-primary:hover:not(:disabled) {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-outline:hover:not(:disabled) {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-contact {
  flex-direction: column;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  min-width: 140px;
  background: var(--color-white);
  border-color: var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-lg);
}
.btn-contact:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}
.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  line-height: 1;
}

.btn-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.btn-detail {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Floating CTA (Mobile) */
.floating-cta {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  left: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  z-index: var(--z-floating);
  pointer-events: none;
}
.floating-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
  box-shadow: var(--shadow-card);
  pointer-events: auto;
  transition: all var(--transition-fast);
  min-height: 56px;
}
.floating-btn:hover,
.floating-btn:active {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}
.floating-phone { border-color: var(--color-pink-dark); }
.floating-sms { border-color: var(--color-butter-dark); }
.floating-text { display: none; }

@media (min-width: 480px) {
  .floating-text { display: block; }
}

@media (min-width: 768px) {
  .floating-cta { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: var(--space-5xl) 0 var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.hero-inner {
  display: grid;
  gap: var(--space-3xl);
  align-items: center;
}
.hero-content {
  text-align: center;
}
.hero-title {
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-lg);
}
.hero-highlight {
  color: var(--color-accent);
  position: relative;
}
.hero-highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--color-pink), var(--color-butter));
  opacity: 0.5;
  border-radius: 4px;
  z-index: -1;
}
.hero-subtitle {
  font-size: var(--fs-lg);
  color: var(--color-text-light);
  max-width: 50ch;
  margin: 0 auto var(--space-2xl);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}
.hero-actions .btn {
  position: relative;
}
.hero-actions .btn::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 70%;
  height: 14px;
  background: radial-gradient(ellipse at center, rgba(232, 108, 140, 0.35) 0%, rgba(232, 108, 140, 0) 70%);
  transform: translateX(-50%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}
.hero-image {
  position: relative;
}
.hero-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}
.hero-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .hero-content { text-align: left; }
  .hero-subtitle { margin-left: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-title { font-size: var(--fs-5xl); }
}

/* ============================================================
   GALLERY CAROUSEL (seamless infinite marquee, full width)
   ============================================================ */
.carousel {
  position: relative;
  max-width: 1200px;
  margin: var(--space-3xl) auto var(--space-5xl);
  padding: 0 var(--space-xl);
  box-sizing: border-box;
}

.carousel-viewport {
  overflow: hidden;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-xl);
  will-change: transform;
}

.carousel-track,
.carousel-track.no-animation {
  animation: marquee var(--marquee-duration, 13s) linear infinite;
}

.carousel:hover .carousel-track:not(.no-animation) {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.carousel-item {
  flex: 0 0 auto;
  width: min(130px, 95vw);
  height: min(130px, 95vw);
  border-radius: var(--radius-xl);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.carousel-link img {
  max-width: 88%;
  max-height: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.carousel-link img.non-square {
  max-width: 98%;
  max-height: 98%;
}

@media (min-width: 768px) {
  .carousel-item {
    width: min(300px, 45%);
    height: min(300px, 45%);
  }
}

@media (min-width: 1024px) {
  .carousel-item {
    width: min(340px, 30%);
    height: min(340px, 30%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    animation: none;
    transform: translateX(0);
  }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: var(--space-6xl) 0;
  margin-bottom: 0;
}
.about-inner {
  display: grid;
  gap: var(--space-3xl);
  align-items: start;
}
.about-image {
  position: relative;
}
.placeholder-photo {
  aspect-ratio: 3/4;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-pink), var(--color-lavender), var(--color-mint));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  color: var(--color-text);
  opacity: 0.8;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
}
.placeholder-icon { font-size: var(--fs-4xl); }
.about-text p {
  margin-bottom: var(--space-xl);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
}
.about-text p:last-child { margin-bottom: 0; }
.about-location {
  font-size: var(--fs-lg) !important;
  color: var(--color-accent) !important;
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .about-inner { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   ORDER STEPS
   ============================================================ */
.order {
  padding: var(--space-5xl) 0 var(--space-5xl);
  background: var(--color-bg-alt);
  margin-bottom: var(--space-3xl);
}
.order .section-header {
  margin-bottom: var(--space-xl);
}
.steps {
  display: grid;
  gap: var(--space-lg);
  counter-reset: step;
  max-width: 800px;
  margin: 0 auto;
}
.step {
  position: relative;
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-slow) ease-in-out, box-shadow var(--transition-slow) ease-in-out;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.step-number {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-white);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-pink), var(--color-accent));
  box-shadow: var(--shadow-soft);
}
.step:nth-child(2) .step-number {
  background: linear-gradient(135deg, var(--color-mint), var(--color-mint-dark));
}
.step:nth-child(3) .step-number {
  background: linear-gradient(135deg, var(--color-lavender), var(--color-lavender-dark));
}
.step-content {
  flex: 1;
}
.step-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
}
.step-desc {
  color: var(--color-text-light);
  font-size: var(--fs-base);
}
.step-desc strong { color: var(--color-text); }

@media (min-width: 768px) {
  .step { padding: var(--space-2xl); }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: var(--space-3xl) 0 var(--space-3xl);
  margin-bottom: 0;
}
.contact-inner {
  display: grid;
  gap: var(--space-xl);
}
.contact-info { text-align: center; }
.contact-buttons {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0 var(--space-xl);
}
.contact-details {
  display: grid;
  gap: var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.detail-card {
  padding: var(--space-lg);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.detail-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
}
.detail-text { color: var(--color-text-light); }
.detail-text strong { color: var(--color-text); }
.detail-text em { font-size: var(--fs-sm); }

@media (min-width: 768px) {
  .contact-inner { grid-template-columns: 1fr; justify-items: center; }
  .contact-info { text-align: center; max-width: 600px; }
  .contact-buttons { justify-content: center; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}
.footer-main { display: flex; flex-direction: column; gap: var(--space-xs); }
.footer-name {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
}
.footer-tagline {
  color: var(--color-text-light);
  font-size: var(--fs-base);
}
.footer-phone a {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--color-accent);
  transition: color var(--transition-fast);
}
.footer-phone a:hover { color: var(--color-accent-hover); }
.footer-location { color: var(--color-text-light); font-size: var(--fs-sm); }
.footer-social {
  display: flex;
  gap: var(--space-lg);
}
.social-link {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  border-radius: var(--radius-full);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-fast);
}
.social-link img {
  width: 24px;
  height: 24px;
  filter: grayscale(1) brightness(0.5);
  transition: filter var(--transition-fast);
}
.social-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.social-link:hover img {
  filter: grayscale(1) brightness(0) sepia(1) hue-rotate(320deg) saturate(5);
}
.footer-copyright {
  font-size: var(--fs-xs);
  color: var(--color-text-light);
  margin-top: var(--space-md);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 12, 10, 0.95);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  padding: var(--space-lg);
}
.lightbox:not([hidden]) {
  opacity: 1;
  visibility: visible;
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}
.lightbox:not([hidden]) .lightbox-content {
  transform: scale(1);
}
.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
}
.lightbox-caption {
  margin-top: var(--space-md);
  text-align: center;
  color: var(--color-white);
  font-size: var(--fs-base);
  font-family: var(--font-display);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--fs-3xl);
  color: var(--color-text);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
  z-index: 1;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.1);
}
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  box-shadow: var(--shadow-focus);
}
.lightbox-close {
  top: var(--space-lg);
  right: var(--space-lg);
  font-size: var(--fs-4xl);
  line-height: 1;
}
.lightbox-prev {
  left: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 599px) {
  .lightbox-close { top: var(--space-md); right: var(--space-md); width: 48px; height: 48px; }
  .lightbox-prev { left: var(--space-md); width: 48px; height: 48px; font-size: var(--fs-2xl); }
  .lightbox-next { right: var(--space-md); width: 48px; height: 48px; font-size: var(--fs-2xl); }
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for gallery items */
.gallery-item { opacity: 0; transform: translateY(20px); }
.gallery-item.visible { opacity: 1; transform: translateY(0); }
.gallery-item:nth-child(1) { transition-delay: 0ms; }
.gallery-item:nth-child(2) { transition-delay: 100ms; }
.gallery-item:nth-child(3) { transition-delay: 200ms; }
.gallery-item:nth-child(4) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .gallery-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   FORM SUBMIT STATE
   ============================================================ */
.btn-loading { display: none; }
.btn.submitting .btn-text { display: none; }
.btn.submitting .btn-loading { display: inline; }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .floating-cta, .hero-actions, .contact-buttons, .footer-social, .lightbox { display: none !important; }
  .hero { padding: var(--space-xl) 0; }
  .section-title { page-break-after: avoid; }
  body { font-size: 12pt; line-height: 1.5; }
}