/* ================================================
   MEC DOGADAN — Style Sheet
   ================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-primary: #5C3D2E;
  --color-secondary: #F5E6D3;
  --color-accent: #C8956C;
  --color-text: #2C1810;
  --color-white: #FFFAF5;
  --color-card: #FFF8F0;
  --color-whatsapp: #25D366;
  --color-instagram: #E1306C;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
  --max-width: 1140px;
  --header-height: 72px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(44, 24, 16, .08);
  --shadow-hover: 0 8px 32px rgba(44, 24, 16, .14);
  --transition: .3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------- Utility ---------- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  box-shadow: 0 6px 20px rgba(92, 61, 46, .35);
}

.btn--secondary {
  background: var(--color-accent);
  color: #fff;
  padding: 10px 24px;
  font-size: .85rem;
}

.btn--secondary:hover {
  box-shadow: 0 4px 16px rgba(200, 149, 108, .4);
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}

.btn--whatsapp:hover {
  box-shadow: 0 6px 20px rgba(37, 211, 102, .35);
}

.btn--instagram {
  background: var(--color-instagram);
  color: #fff;
}

.btn--instagram:hover {
  box-shadow: 0 6px 20px rgba(225, 48, 108, .35);
}

/* ================================================
   HEADER
   ================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  background: rgba(255, 250, 245, .95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(44, 24, 16, .06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-mec {
  color: var(--color-primary);
}

.logo-dogadan {
  color: var(--color-accent);
  margin-left: 2px;
}

.header--scrolled .logo-mec {
  color: var(--color-primary);
}

/* Nav */
.nav__list {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-primary);
  position: relative;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 20px;
  border-radius: 50px;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--color-accent);
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.header__hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.header__hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.header__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(200, 149, 108, .15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(92, 61, 46, .08) 0%, transparent 60%),
    linear-gradient(170deg, var(--color-secondary) 0%, var(--color-white) 50%, var(--color-card) 100%);
  z-index: -1;
}

.hero__content {
  padding: 120px 0 80px;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--color-text);
  font-weight: 400;
  margin-bottom: 40px;
  opacity: .8;
}

.hero__cta {
  font-size: 1.05rem;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-hint span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-accent);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { opacity: 1; top: 6px; }
  50% { opacity: .3; top: 18px; }
}

/* ================================================
   SECTIONS (common)
   ================================================ */
.section {
  padding: 80px 0;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 8px;
}

.section__subtitle {
  text-align: center;
  color: var(--color-accent);
  font-size: 1rem;
  margin-bottom: 48px;
}

/* ================================================
   ABOUT
   ================================================ */
.about {
  background: var(--color-card);
}

.about__content {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 1.05rem;
}

.about__content p {
  margin-bottom: 16px;
}

.about__note {
  display: inline-block;
  background: var(--color-secondary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 8px;
}

.about__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.about__feature {
  text-align: center;
}

.about__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  color: var(--color-accent);
}

.about__feature h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.about__feature p {
  font-size: .85rem;
  opacity: .7;
}

/* ================================================
   PRODUCTS
   ================================================ */
.products {
  background: var(--color-white);
}

.products__category {
  margin-bottom: 56px;
}

.products__category:last-child {
  margin-bottom: 0;
}

.products__category-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 28px;
  position: relative;
}

.products__category-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 10px auto 0;
  border-radius: 2px;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

/* Product Card */
.product-card {
  background: var(--color-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-card__image {
  aspect-ratio: 4/3;
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  padding: 20px;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.product-card__desc {
  font-size: .9rem;
  opacity: .75;
  margin-bottom: 8px;
  line-height: 1.5;
}

.product-card__choco {
  font-size: .8rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card__price {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  font-size: .95rem;
}

/* ================================================
   FEATURES
   ================================================ */
.features {
  background: var(--color-card);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--color-accent);
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: .9rem;
  opacity: .75;
  line-height: 1.6;
}

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

.contact__content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact__info {
  margin-bottom: 32px;
}

.contact__info p {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.contact__list {
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
}

.contact__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: .95rem;
  opacity: .8;
}

.contact__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.contact__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact__buttons svg {
  flex-shrink: 0;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 32px 0;
}

.footer__inner {
  text-align: center;
}

.footer__copy {
  font-size: .9rem;
  margin-bottom: 4px;
}

.footer__note {
  font-size: .8rem;
  opacity: .7;
  margin-bottom: 16px;
}

.footer__social {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.footer__social a {
  color: var(--color-secondary);
  opacity: .8;
  transition: opacity var(--transition), transform var(--transition);
}

.footer__social a:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* ================================================
   WHATSAPP FLOATING BUTTON
   ================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, .4);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, .5);
}

/* ================================================
   FADE-IN ANIMATION
   ================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   RESPONSIVE
   ================================================ */

/* Tablet & below */
@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  /* Mobile nav */
  .header__hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: -4px 0 24px rgba(44, 24, 16, .1);
    transition: right var(--transition);
    padding: 100px 32px 32px;
    z-index: 999;
  }

  .header__nav.open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .nav__link {
    font-size: 1.1rem;
  }

  .nav__link--cta {
    margin-top: 8px;
  }

  /* About */
  .about__features {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Features */
  .features__grid {
    grid-template-columns: 1fr;
  }

  /* Section spacing */
  .section {
    padding: 56px 0;
  }

  .section__subtitle {
    margin-bottom: 36px;
  }

  /* Hero */
  .hero__content {
    padding: 100px 0 60px;
  }
}

@media (max-width: 480px) {
  .products__grid {
    grid-template-columns: 1fr;
  }

  .about__features {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .contact__buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
    max-width: 300px;
  }

  .hero__title {
    font-size: 2.4rem;
  }
}

/* Mobile overlay for nav */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 24, 16, .3);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
