/* ============================================================
   KARIN SHOP — styles.css
   ============================================================ */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
address { font-style: normal; }

/* === TOKENS === */
:root {
  --terra:        #C1632F;
  --terra-light:  #E8956D;
  --terra-dark:   #8B3A1A;
  --terra-pale:   #F5DDD0;
  --cream:        #FBF6F0;
  --cream-dark:   #EDE0D3;
  --dark:         #2C1810;
  --dark-soft:    #5C3D2E;
  --gold:         #D4A853;
  --gold-light:   #EEC97A;
  --muted:        #8B7355;
  --white:        #FFFFFF;

  --glass-bg:     rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.55);

  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  18px;
  --r-lg:  28px;
  --r-xl:  48px;

  --sh-sm: 0 2px 12px rgba(44, 24, 16, 0.08);
  --sh-md: 0 8px 40px rgba(44, 24, 16, 0.14);
  --sh-lg: 0 20px 64px rgba(44, 24, 16, 0.22);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t:    0.3s var(--ease);
}

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 100px 0; }

/* === TYPOGRAPHY HELPERS === */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
  background: rgba(193, 99, 47, 0.1);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .section-label { display: block; margin-bottom: 12px; }
.section-header .section-desc { max-width: 540px; margin: 0 auto; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-xl);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--terra);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(193, 99, 47, 0.42);
}
.btn-primary:hover {
  background: var(--terra-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(193, 99, 47, 0.52);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.85);
}
.btn-nav {
  background: var(--terra);
  color: var(--white);
  padding: 10px 22px;
  font-size: 0.875rem;
  box-shadow: none;
}
.btn-nav:hover { background: var(--terra-dark); }
.btn-card {
  background: transparent;
  color: var(--terra);
  border: 1.5px solid var(--terra);
  padding: 9px 20px;
  font-size: 0.875rem;
}
.btn-card:hover {
  background: var(--terra);
  color: var(--white);
}

/* ===================================================================
   NAVBAR
=================================================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 22px 0;
  transition: padding var(--t), background var(--t), box-shadow var(--t);
}
.navbar.scrolled {
  padding: 12px 0;
  background: rgba(251, 246, 240, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 24px rgba(44, 24, 16, 0.1);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--terra);
  color: var(--white);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: background var(--t);
}
.logo-text {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
  transition: color var(--t);
}
.logo-text strong { font-weight: 700; }
.navbar.scrolled .logo-text { color: var(--dark); }
.footer-logo-text { color: var(--white) !important; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.87);
  position: relative;
  transition: color var(--t);
}
.navbar.scrolled .nav-link { color: var(--dark-soft); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--terra);
  border-radius: 2px;
  transition: width var(--t);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link:hover { color: var(--white); }
.navbar.scrolled .nav-link:hover { color: var(--terra); }

.hidden-mobile { display: inline-flex; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--t);
}
.navbar.scrolled .hamburger span { background: var(--dark); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================================
   HERO
=================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1518638150340-f706e86654de?w=1920&auto=format&fit=crop&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(44, 24, 16, 0.88) 0%,
    rgba(139, 58, 26, 0.72) 45%,
    rgba(193, 99, 47, 0.45) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 0 24px;
  animation: fadeUp 0.9s var(--ease) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 22px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.8rem, 7.5vw, 5.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-title-accent {
  color: var(--gold-light);
  font-style: italic;
}
.hero-subtitle {
  font-size: clamp(0.97rem, 2.4vw, 1.18rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
  margin-bottom: 42px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-mouse {
  width: 24px; height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-dot {
  width: 4px; height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: scrollBounce 2.2s var(--ease) infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  65%       { transform: translateY(12px); opacity: 0; }
}

/* ===================================================================
   ABOUT
=================================================================== */
.about { background: var(--white); overflow: hidden; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text .section-label { display: inline-block; }
.about-text .section-title { text-align: left; }

.about-desc {
  font-size: 1rem;
  color: var(--dark-soft);
  line-height: 1.78;
  margin-bottom: 20px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--cream-dark);
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--terra);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.about-image { position: relative; }
.image-wrapper {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 4 / 5;
}
.image-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.image-wrapper:hover img { transform: scale(1.04); }
.image-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--sh-md);
}
.image-badge span {
  font-size: 0.67rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.image-badge strong {
  font-size: 1.1rem;
  color: var(--terra);
  font-weight: 700;
}
.about-deco {
  position: absolute;
  top: -24px; right: -24px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--terra-pale) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* ===================================================================
   PRODUCTS
=================================================================== */
.products { background: var(--cream); position: relative; }
.products::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--terra-pale) 50%, transparent 100%);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  border: 1px solid rgba(193, 99, 47, 0.07);
  transition: transform var(--t), box-shadow var(--t);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--sh-md);
}
.card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.product-card:hover .card-image img { transform: scale(1.07); }
.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--terra);
  color: var(--white);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
}
.card-badge--green { background: #2D7D46; }
.card-badge--gold  { background: var(--gold); color: var(--dark); }

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-category {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  display: block;
  margin-bottom: 7px;
}
.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.card-desc {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--cream-dark);
}
.card-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--terra-dark);
}

/* ===================================================================
   CONTACT
=================================================================== */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-card {
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  border: 1px solid var(--cream-dark);
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 48px; height: 48px;
  min-width: 48px;
  background: rgba(193, 99, 47, 0.1);
  color: var(--terra);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-detail { display: flex; flex-direction: column; gap: 4px; }
.contact-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
}
.contact-value {
  font-size: 0.925rem;
  color: var(--dark-soft);
  line-height: 1.65;
}
.contact-link { color: var(--terra); font-weight: 500; transition: color var(--t); }
.contact-link:hover { color: var(--terra-dark); text-decoration: underline; }

.social-links { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1.5px solid rgba(193, 99, 47, 0.25);
  border-radius: 100px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--dark-soft);
  transition: var(--t);
}
.social-btn:hover {
  border-color: var(--terra);
  color: var(--terra);
  background: rgba(193, 99, 47, 0.06);
  transform: translateY(-1px);
}
.social-btn--wa:hover {
  border-color: #25D366;
  color: #25D366;
  background: rgba(37, 211, 102, 0.06);
}

.map-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
  box-shadow: var(--sh-md);
}
.map-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.map-card:hover img { transform: scale(1.04); }
.map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,24,16,0.65) 0%, rgba(44,24,16,0.1) 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.map-pin {
  position: relative;
  width: 20px; height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pin-dot {
  width: 14px; height: 14px;
  background: var(--terra);
  border: 3px solid white;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}
.pin-ring {
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(193, 99, 47, 0.5);
  border-radius: 50%;
  animation: ping 2.4s ease-in-out infinite;
}
@keyframes ping {
  0%, 100% { transform: scale(1);   opacity: 0.7; }
  50%       { transform: scale(1.6); opacity: 0;   }
}
.map-label {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* ===================================================================
   FOOTER
=================================================================== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 0; }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.72;
  margin-top: 16px;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.45);
}
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a,
.footer-col address p,
.footer-col address a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  transition: color var(--t);
}
.footer-col address p { margin-bottom: 8px; }
.footer-col a:hover { color: var(--terra-light); }
.footer-col ul a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ===================================================================
   REVEAL ANIMATIONS
=================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================================
   RESPONSIVE
=================================================================== */
@media (max-width: 1024px) {
  .about-grid { gap: 48px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 420px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-title { font-size: clamp(1.7rem, 5vw, 2.2rem); }

  /* Navbar */
  .hidden-mobile { display: none; }
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 20px;
    box-shadow: var(--sh-md);
    border-top: 1px solid var(--cream-dark);
    justify-content: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-link {
    color: var(--dark-soft) !important;
    padding: 14px 24px;
    font-size: 1rem;
    width: 100%;
    border-bottom: 1px solid var(--cream-dark);
  }
  .nav-links .nav-link:last-child { border-bottom: none; }
  .nav-links .nav-link::after { display: none; }

  /* Hero */
  .hero-bg { background-attachment: scroll; transform: scale(1); }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-text .section-title { text-align: center; }
  .about-text .section-label { display: block; text-align: center; }
  .about-text .about-desc { text-align: center; }
  .about-deco { display: none; }

  /* Products */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
  .hero-title { font-size: 2.4rem; }
  .hero-subtitle { font-size: 0.97rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }

  .about-stats { gap: 12px; }
  .stat-number { font-size: 1.7rem; }

  .products-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }

  .contact-card { padding: 24px; }
  .social-links { gap: 8px; }
  .social-btn { font-size: 0.8rem; padding: 8px 13px; }
}
