/* ============================================
   Mascarpone Cake By Benassi - Shared Styles
   Font Pairing: Cormorant Infant + Jost
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-cream: #fdf6ee;
  --color-espresso: #3b2314;
  --color-cocoa: #6b4226;
  --color-gold: #c9a96e;
  --color-gold-light: #e8d5a8;
  --color-warm-white: #fefcf8;
  --color-dark: #1a0e06;
  --color-text: #3b2314;
  --color-text-light: #7a5c46;
  --color-border: #e8ddd2;
  --color-bg-section: #f7f0e6;
  --font-heading: 'Cormorant Infant', serif;
  --font-body: 'Jost', sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
  --transition: 0.3s ease;
}

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

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

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

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

a {
  color: var(--color-cocoa);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-gold);
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-section);
}

.section-tag {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-espresso);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin-bottom: 40px;
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-gold);
  color: #fff;
  border-color: var(--color-gold);
}

.btn-primary:hover {
  background: var(--color-cocoa);
  border-color: var(--color-cocoa);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-espresso);
  border-color: var(--color-espresso);
}

.btn-outline:hover {
  background: var(--color-espresso);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--color-espresso);
}

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

.navbar.scrolled {
  background: rgba(253, 246, 238, 0.97);
  box-shadow: 0 2px 20px rgba(59, 35, 20, 0.08);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.navbar.scrolled .nav-logo {
  color: var(--color-espresso);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.nav-menu a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 14px;
  border-radius: 4px;
  transition: all var(--transition);
}

.navbar.scrolled .nav-menu a {
  color: var(--color-text-light);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .nav-menu a:hover,
.navbar.scrolled .nav-menu a.active {
  color: var(--color-espresso);
  background: rgba(59, 35, 20, 0.06);
}

.nav-cta {
  background: var(--color-gold) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
}

.nav-cta:hover {
  background: var(--color-cocoa) !important;
}

/* Inner pages - dark navbar by default */
.page-inner .navbar {
  background: rgba(253, 246, 238, 0.97);
  box-shadow: 0 2px 20px rgba(59, 35, 20, 0.08);
}

.page-inner .nav-logo {
  color: var(--color-espresso);
}

.page-inner .nav-menu a {
  color: var(--color-text-light);
}

.page-inner .nav-menu a:hover,
.page-inner .nav-menu a.active {
  color: var(--color-espresso);
  background: rgba(59, 35, 20, 0.06);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all var(--transition);
  border-radius: 2px;
}

.navbar.scrolled .nav-toggle span,
.page-inner .nav-toggle span {
  background: var(--color-espresso);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 100px 0 0;
  font-size: 0.85rem;
}

.breadcrumbs-list {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumbs-list li::after {
  content: '/';
  margin-left: 8px;
  color: var(--color-text-light);
  opacity: 0.5;
}

.breadcrumbs-list li:last-child::after {
  display: none;
}

.breadcrumbs-list a {
  color: var(--color-gold);
}

.breadcrumbs-list a:hover {
  color: var(--color-cocoa);
}

.breadcrumbs-list li:last-child {
  color: var(--color-text-light);
}

/* --- Page Header --- */
.page-header {
  padding: 20px 0 60px;
  text-align: center;
}

.page-header .section-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 12px;
}

.page-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero (index) --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 14, 6, 0.55) 0%, rgba(59, 35, 20, 0.7) 100%);
  z-index: 1;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 0 24px;
}

.hero-tag {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--color-gold-light);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  line-height: 1.7;
}

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

/* --- About Grid --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(59, 35, 20, 0.12);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--color-text-light);
}

.about-text p:first-of-type {
  font-size: 1.1rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.highlight {
  text-align: center;
  padding: 16px;
  background: var(--color-bg-section);
  border-radius: 8px;
}

.highlight-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--color-gold);
  margin-bottom: 4px;
}

.highlight-label {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Product Cards --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(59, 35, 20, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(59, 35, 20, 0.14);
}

.product-card-image {
  height: 280px;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 28px;
}

.product-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-espresso);
  margin-bottom: 8px;
}

.product-card-desc {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.product-card-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-gold);
}

.product-card-meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(59, 35, 20, 0);
  transition: background var(--transition);
}

.gallery-item:hover::after {
  background: rgba(59, 35, 20, 0.15);
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 2, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 16px;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(59, 35, 20, 0.06);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--color-gold-light);
  position: absolute;
  top: 16px;
  left: 24px;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 16px;
  padding-top: 24px;
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-espresso);
}

.testimonial-source {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

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

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--color-bg-section);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-gold);
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 1.05rem;
  color: var(--color-espresso);
  font-weight: 500;
}

.contact-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(59, 35, 20, 0.08);
  height: 100%;
  min-height: 350px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  min-height: 350px;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--color-espresso);
  padding: 60px 0;
  text-align: center;
}

.cta-banner .section-title {
  color: #fff;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--color-gold);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-gold-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 3px solid var(--color-warm-white);
}

.timeline-year {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-gold);
  margin-bottom: 4px;
}

.timeline-text {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- Fade In Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive --- */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-highlights {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 4px;
    transition: right var(--transition);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu a {
    color: var(--color-text) !important;
    font-size: 1rem;
    padding: 12px 16px;
    width: 100%;
    border-radius: 4px;
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background: rgba(59, 35, 20, 0.06) !important;
    color: var(--color-espresso) !important;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .section {
    padding: 60px 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}
