/* =============================================
   TinyCrafts — Custom Design & Print Studio
   Mobile-first · Vanilla CSS
   ============================================= */

:root {
  --pink-light: #f9e4e8;
  --pink-rose: #c4788e;
  --pink-rose-dark: #a85f74;
  --neon-rosa: #ff6b9d;
  --neon-rosa-light: #ffb3cc;
  --neon-rosa-glow: rgba(255, 107, 157, 0.55);
  --neon-rosa-glow-soft: rgba(255, 182, 205, 0.75);
  --white: #ffffff;
  --dark: #1a1a1a;
  --gray: #666666;
  --gray-light: #f5f0f1;

  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", system-ui, sans-serif;
  --font-logo: "Dancing Script", cursive;

  --shadow-sm: 0 2px 8px rgba(196, 120, 142, 0.12);
  --shadow-md: 0 8px 32px rgba(196, 120, 142, 0.18);
  --shadow-lg: 0 16px 48px rgba(196, 120, 142, 0.22);

  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --header-height: 72px;
}

@media (max-width: 420px) {
  :root {
    --header-height: 68px;
  }

  .logo__text {
    font-size: 1.35rem;
  }

  .lang-btn {
    min-width: 2.35rem;
    padding: 0.22rem 0.25rem 0.18rem;
  }

  .lang-btn__flag {
    width: 26px;
    height: 17px;
  }

  .lang-btn__code {
    font-size: 0.44rem;
  }
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--pink-rose);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--pink-rose-dark);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   Header / Navbar
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 120, 142, 0.12);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: var(--header-height);
}

.nav__right {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nav__inline {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.lang-switcher {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
  gap: 0.35rem;
}

.lang-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 2.65rem;
  padding: 0.3rem 0.35rem 0.25rem;
  border: 1.5px solid rgba(255, 140, 175, 0.45);
  border-radius: 10px;
  background: linear-gradient(160deg, #fff8fa 0%, #f9e4e8 55%, #ffe0eb 100%);
  cursor: pointer;
  font-family: var(--font-body);
  box-shadow:
    0 0 0 1px rgba(255, 200, 215, 0.35),
    0 2px 10px rgba(255, 120, 160, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.lang-btn:hover {
  border-color: rgba(255, 107, 157, 0.75);
  background: linear-gradient(160deg, #fff0f5 0%, #ffd9e8 100%);
  box-shadow:
    0 0 14px var(--neon-rosa-glow),
    0 0 22px var(--neon-rosa-glow-soft),
    inset 0 0 10px rgba(255, 210, 225, 0.45);
  transform: translateY(-1px);
}

.lang-btn--active {
  border-color: var(--neon-rosa);
  background: linear-gradient(160deg, #ffe8f0 0%, #ffc8dc 50%, #ffb3cc 100%);
  box-shadow:
    0 0 16px rgba(255, 90, 150, 0.65),
    0 0 28px rgba(255, 160, 190, 0.55),
    0 0 40px rgba(249, 228, 232, 0.9),
    inset 0 0 14px rgba(255, 180, 205, 0.5);
  transform: translateY(-1px);
}

.lang-btn__flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 20px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.18),
    0 0 8px rgba(255, 140, 170, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.flag-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lang-btn--active .lang-btn__flag {
  box-shadow:
    0 1px 5px rgba(0, 0, 0, 0.2),
    0 0 12px rgba(255, 100, 150, 0.55);
}

.lang-btn__code {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--pink-rose);
  line-height: 1.1;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(255, 140, 170, 0.45);
  transition: color var(--transition), text-shadow var(--transition);
}

.lang-btn:hover .lang-btn__code,
.lang-btn--active .lang-btn__code {
  color: #e04d82;
  text-shadow:
    0 0 10px rgba(255, 107, 157, 0.85),
    0 0 18px rgba(255, 180, 200, 0.6);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--pink-rose);
  text-decoration: none;
}

.logo:hover {
  color: var(--pink-rose-dark);
}

.logo__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.logo__text {
  font-family: var(--font-logo);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background var(--transition);
}

.nav__toggle:hover {
  background: var(--pink-light);
}

.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--pink-rose);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--white);
  flex-direction: column;
  padding: 1.5rem 1.25rem 2rem;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(196, 120, 142, 0.12);
  box-shadow: var(--shadow-md);
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
}

.nav__menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav__link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.nav__link:hover {
  background: var(--pink-light);
  color: var(--pink-rose);
}

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--pink-rose);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(196, 120, 142, 0.35);
}

.btn--primary:hover {
  background: var(--pink-rose-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196, 120, 142, 0.45);
}

.btn--large {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* =============================================
   Hero
   ============================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(249, 228, 232, 0.9) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(196, 120, 142, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--pink-light) 0%, var(--white) 100%);
  z-index: -1;
}

.hero__bg::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--white));
}

.hero__content {
  max-width: 720px;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-rose);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.hero__subtext {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--gray);
  margin-bottom: 2rem;
  font-weight: 300;
}

/* =============================================
   Sections (shared)
   ============================================= */
.section {
  padding: 5rem 0;
}

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.section__subtitle {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 300;
}

/* =============================================
   Services
   ============================================= */
.services {
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(196, 120, 142, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(196, 120, 142, 0.3);
}

.service-card__icon {
  margin-bottom: 1rem;
  line-height: 0;
}

.service-card__img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.service-card__desc {
  font-size: 0.925rem;
  color: var(--gray);
  font-weight: 300;
  line-height: 1.65;
}

/* =============================================
   How It Works
   ============================================= */
.how-it-works {
  background: var(--pink-light);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  position: relative;
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  color: var(--pink-rose);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.step__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.step__desc {
  font-size: 0.925rem;
  color: var(--gray);
  font-weight: 300;
  max-width: 320px;
}

.step__desc a {
  font-weight: 500;
}

/* =============================================
   Gallery
   ============================================= */
.gallery {
  background: var(--white);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.gallery__item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  text-decoration: none;
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(26, 26, 26, 0.55);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery__overlay svg {
  width: 28px;
  height: 28px;
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

.gallery__item:hover .gallery__img {
  transform: scale(1.06);
}

/* =============================================
   Contact / CTA
   ============================================= */
.contact {
  background: var(--pink-light);
  padding-bottom: 6rem;
}

.contact__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  margin: 0 auto;
}

.contact__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.contact__text {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact__hours {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--gray);
}

.contact__hours svg {
  width: 18px;
  height: 18px;
  color: var(--pink-rose);
  flex-shrink: 0;
}

.contact__hours strong {
  color: var(--dark);
  font-weight: 600;
}

/* =============================================
   Footer
   ============================================= */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.logo--footer {
  color: var(--pink-light);
}

.logo--footer:hover {
  color: var(--white);
}

.footer__instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}

.footer__instagram svg {
  width: 20px;
  height: 20px;
}

.footer__instagram:hover {
  color: var(--pink-light);
}

.footer__tagline {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
}

/* =============================================
   Tablet (768px+)
   ============================================= */
@media (min-width: 768px) {
  .nav__toggle {
    display: none;
  }

  .nav__right {
    gap: 0;
  }

  .nav__inline {
    gap: 1rem;
  }

  .nav__menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .lang-btn {
    min-width: 2.75rem;
    padding: 0.32rem 0.38rem 0.28rem;
  }

  .lang-btn__flag {
    width: 32px;
    height: 21px;
  }

  .lang-btn__code {
    font-size: 0.54rem;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .step {
    position: relative;
  }

  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 28px;
    left: calc(50% + 36px);
    width: calc(100% - 72px);
    height: 2px;
    background: linear-gradient(90deg, rgba(196, 120, 142, 0.4), rgba(196, 120, 142, 0.15));
    z-index: 0;
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .contact__card {
    padding: 3.5rem 3rem;
  }
}

/* =============================================
   Desktop (1024px+)
   ============================================= */
@media (min-width: 1024px) {
  .section {
    padding: 6rem 0;
  }

  .hero {
    padding-bottom: 5rem;
  }

  .service-card {
    padding: 2.5rem 2rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .lang-btn:hover,
  .lang-btn--active,
  .service-card:hover,
  .btn--primary:hover,
  .gallery__item:hover .gallery__img {
    transform: none;
  }

  .lang-btn:hover,
  .lang-btn--active {
    box-shadow:
      0 0 0 1px rgba(255, 200, 215, 0.35),
      0 2px 10px rgba(255, 120, 160, 0.18);
  }
}
