/* ===== COMMON STYLES - Shared across all pages ===== */

/* Luxia - for titles & headings */
@font-face {
  font-family: 'Luxia';
  src: url('/uploads/fonts/Luxia-Display.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Luxia';
  src: url('/uploads/fonts/Luxia-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Bernhard Gothic - for body & paragraphs */
@font-face {
  font-family: 'Bernhard Gothic';
  src: url('/uploads/fonts/Bernhard%20Gothic%20Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bernhard Gothic';
  src: url('/uploads/fonts/Bernhard%20Gothic%20Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0a1628;
  --cream: #f5f0eb;
  --gold: #c8a96e;
  --gold-light: #dfc9a0;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-muted: #6b6b6b;
  --font-display: 'Luxia', Georgia, serif;
  --font-body: 'Bernhard Gothic', Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--navy);
  transition: background 0.4s, box-shadow 0.4s;
}

.header.scrolled {
  background: rgba(10, 22, 40, 0.97);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.header-left {
  display: flex;
  align-items: center;
}

.header-center {
  display: flex;
  justify-content: center;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.05;
}

.logo-text span {
  display: block;
}

.nav-contact {
  font-size: 20px;
  color: var(--white);
  opacity: 0.85;
  letter-spacing: 0.5px;
  transition: opacity 0.3s;
  text-align: right;
}

.nav-contact:hover {
  opacity: 1;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: var(--navy);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  transition: left 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s;
}

.mobile-menu.active a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active a:nth-child(1) { transition-delay: .15s }
.mobile-menu.active a:nth-child(2) { transition-delay: .25s }
.mobile-menu.active a:nth-child(3) { transition-delay: .35s }
.mobile-menu.active a:nth-child(4) { transition-delay: .45s }
.mobile-menu.active a:nth-child(5) { transition-delay: .55s }

/* ===== DELIVERY SECTION ===== */
.delivery-section {
  background: var(--cream);
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.delivery-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 6px;
}

.delivery-text p {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 400;
}

.delivery-logos-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 40px;
}

.delivery-logos-track {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.delivery-logos-track a,
.delivery-logos-track>span {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.delivery-logos-track img {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s;
}

.delivery-logos-track img:hover {
  opacity: 0.75;
}

.delivery-product-img {
  flex-shrink: 0;
  margin-top: -40px;
  margin-bottom: -40px;
}

.delivery-product-img img {
  height: 120px;
  width: auto;
  object-fit: contain;
  border-radius: 0;
  padding: 0;
}

/* ===== SITE FOOTER ===== */
.site-footer {
  background: #0c1829;
}

.sf-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 60px 40px;
  display: grid;
  grid-template-areas:
    ".         .        social"
    "logo      links    social";
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr auto;
  gap: 0 40px;
  min-height: 300px;
}

/* Social: right side */
.sf-social {
  grid-area: social;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.sf-label {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--cream);
  margin-bottom: 10px;
}

.sf-social .sf-label {
  margin-bottom: 10px;
}

.sf-social-icons {
  display: flex;
  gap: 18px;
  align-items: center;
}

.sf-social-icons a {
  display: flex;
  align-items: center;
  opacity: 0.85;
  transition: all 0.3s;
}

.sf-social-icons a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.sf-social-icons svg {
  width: 22px;
  height: 22px;
  fill: var(--cream);
}

.sf-social-icons img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Logo: bottom-left */
.sf-logo {
  grid-area: logo;
  display: flex;
  align-items: flex-end;
  padding-right: 40px;
}

.sf-logo-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 86px;
  color: var(--cream);
  line-height: 0.95;
  letter-spacing: -1.5px;
}

.sf-logo-text span {
  display: block;
}

.sf-logo img {
  display: block;
  height: 90px;
  width: auto;
}

/* Nav links: bottom-center */
.sf-links {
  grid-area: links;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-bottom: 6px;
  flex-wrap: wrap;
}

.sf-links a {
  font-family: var(--font-body);
  font-size: 20px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
  font-style: italic;
  text-decoration: none;
}

.sf-links a:hover {
  color: var(--cream);
}

.sf-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 13px;
}

/* Hide any old footer */
.footer,
.footer-inner,
.footer-content,
.footer-bottom-row {
  display: none;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s, transform 0.7s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s }
.reveal-delay-2 { transition-delay: .2s }
.reveal-delay-3 { transition-delay: .3s }

/* ===== COMMON RESPONSIVE ===== */
@media(max-width:768px) {
  .header {
    padding: 14px 20px;
  }

  .logo-text {
    font-size: 22px;
  }

  /* Delivery: stack vertically */
  .delivery-section {
    padding: 32px 24px;
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .delivery-logos-wrapper {
    justify-content: center;
    padding-left: 0;
    width: 100%;
  }

  .delivery-logos-track {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
  }

  .delivery-logos-track a,
  .delivery-logos-track > span {
    justify-content: center;
  }

  .delivery-logos-track img {
    height: 36px;
  }

  .delivery-product-img {
    margin-top: 20px;
    margin-bottom: 0;
  }

  .delivery-product-img img {
    height: 90px;
  }

  /* Footer */
  .sf-grid {
    grid-template-areas: "logo" "links" "social";
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 32px 24px;
    min-height: auto;
    gap: 28px;
  }

  .sf-logo {
    padding-right: 0;
  }

  .sf-logo-text {
    font-size: 56px;
  }

  .sf-logo img {
    height: 60px;
  }

  .sf-links {
    padding-bottom: 0;
  }

  .sf-social {
    align-items: flex-start;
  }
}

@media(max-width:480px) {
  .delivery-logos-track {
    gap: 12px;
  }

  .delivery-logos-track img {
    height: 32px;
  }

  .delivery-product-img img {
    height: 80px;
  }

  .sf-links a {
    font-size: 12px;
  }

  .sf-logo-text {
    font-size: 48px;
  }

  .sf-logo img {
    height: 50px;
  }
}

/* ===== LOGO SPARKLE EFFECT ===== */
.logo {
  position: relative;
  display: inline-block;
}

.sparkle-container {
  position: absolute;
  inset: -12px;
  pointer-events: none;
  overflow: visible;
  z-index: 10;
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0) rotate(0deg);
  transition: none;
}

.sparkle::before,
.sparkle::after {
  content: '';
  position: absolute;
  background: var(--gold);
  border-radius: 1px;
}

.sparkle::before {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.sparkle::after {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.sparkle.pop {
  animation: sparklePop 0.65s ease-out forwards;
}

.sparkle.pop-alt {
  animation: sparklePopAlt 0.65s ease-out forwards;
}

@keyframes sparklePop {
  0%   { opacity: 0;   transform: scale(0) rotate(0deg);   }
  20%  { opacity: 1;   transform: scale(1.2) rotate(45deg); }
  60%  { opacity: 0.8; transform: scale(0.9) rotate(45deg) translate(var(--tx), var(--ty)); }
  100% { opacity: 0;   transform: scale(0.3) rotate(45deg) translate(calc(var(--tx) * 1.6), calc(var(--ty) * 1.6)); }
}

@keyframes sparklePopAlt {
  0%   { opacity: 0;   transform: scale(0) rotate(0deg);   }
  20%  { opacity: 1;   transform: scale(1.4) rotate(20deg); }
  60%  { opacity: 0.7; transform: scale(1) rotate(20deg) translate(var(--tx), var(--ty)); }
  100% { opacity: 0;   transform: scale(0.2) rotate(20deg) translate(calc(var(--tx) * 1.8), calc(var(--ty) * 1.8)); }
}