/* ============================================
   FitChef.fit – Luxury Wellness Design System
   ============================================ */

:root {
  --deep-green: #0e2f2b;
  --emerald: #1f7a59;
  --soft-cream: #f5f2e9;
  --gold: #c6a75e;
  --white: #ffffff;
  --text-dark: #0e2f2b;
  --text-muted: #2d5a52;
  --form-bg: #e8f0ec;
  --form-bg-card: #f0f6f3;
  --shadow: 0 4px 24px rgba(14, 47, 43, 0.08);
  --shadow-hover: 0 12px 40px rgba(14, 47, 43, 0.12);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--soft-cream);
  overflow-x: hidden;
  min-width: 280px;
  max-width: 100vw;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; }
  .loader-bar { animation: none; }
}

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

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

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

/* Touch-friendly tap highlight */
a, button {
  -webkit-tap-highlight-color: rgba(198, 167, 94, 0.2);
  touch-action: manipulation;
}

/* ----- Loader ----- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--deep-green);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.loader-logo {
  height: clamp(4.75rem, 15vw, 6.5rem);
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem;
  filter: brightness(1.05);
}

.loader-bar {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: loaderBar 1.2s ease-in-out infinite;
}

@keyframes loaderBar {
  0%, 100% { transform: translateX(-100%); opacity: 0.3; }
  50% { transform: translateX(100%); opacity: 1; }
}

/* ----- Header ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: max(0.75rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0.75rem max(1rem, env(safe-area-inset-left));
  background: transparent;
  transition: background var(--transition);
}

@media (min-width: 768px) {
  .header {
    padding: 1rem 1.5rem;
  }
}

.header.scrolled {
  background: rgba(14, 47, 43, 0.95);
  backdrop-filter: blur(10px);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (min-width: 641px) {
  .header-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: none;
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
    box-sizing: border-box;
    min-height: 52px;
  }
  .header-inner .logo {
    flex-shrink: 0;
    align-self: center;
  }
  .header-inner .tagline-header {
    margin: 0 auto;
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 65%;
    padding: 0 1rem;
  }
  .header-inner .header-auth {
    flex-shrink: 0;
    margin-left: 0;
    align-self: center;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.logo-img {
  height: 3.75rem;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .logo-img {
    height: 4.5rem;
    max-width: 280px;
  }
}

.tagline-header {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: none;
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 900px) {
  .tagline-header {
    font-size: 0.98rem;
    letter-spacing: 0.08em;
  }
}

/* Mobile header: Sign In button (gold) or hamburger when logged in */
.header-mobile-actions {
  display: none;
  align-items: center;
  flex-shrink: 0;
}
.header-signin-btn-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  min-height: 36px;
  padding: 0.45rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(198, 167, 94, 0.88);
  background: transparent;
  border: 1.5px solid rgba(198, 167, 94, 0.7);
  border-radius: 2px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
}
.header-signin-btn-mobile:hover {
  background: rgba(198, 167, 94, 0.12);
  border-color: rgba(198, 167, 94, 0.9);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(198, 167, 94, 0.15);
}
/* Hamburger: hidden on desktop and hidden on mobile when logged out */
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 102;
  position: relative;
}
/* When logged in on mobile: show hamburger, hide Sign In */
.header.user-logged-in .header-signin-btn-mobile {
  display: none !important;
}
.header.user-logged-in .header-mobile-actions .hamburger-btn {
  display: flex !important;
}
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu (slide from right) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 101;
  pointer-events: none;
  visibility: hidden;
  transition: visibility var(--transition);
}
.mobile-menu.is-open {
  pointer-events: auto;
  visibility: visible;
}
.mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 47, 43, 0.5);
  opacity: 0;
  transition: opacity var(--transition);
}
.mobile-menu.is-open .mobile-menu-overlay {
  opacity: 1;
}
.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(280px, 85vw);
  background: var(--deep-green);
  padding: 4rem 1.25rem 1.5rem;
  box-shadow: -4px 0 24px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.mobile-menu.is-open .mobile-menu-panel {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.mobile-menu-tagline {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--gold);
  line-height: 1.4;
}
.mobile-menu-auth {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.mobile-user {
  font-size: 0.95rem;
  color: var(--soft-cream);
}
.mobile-signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep-green);
  background: var(--gold);
  border: none;
  border-radius: 2px;
  text-decoration: none;
  width: 100%;
}
.mobile-signin-btn:hover {
  background: #b8964a;
  color: var(--deep-green);
}
.mobile-auth-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(198, 167, 94, 0.4);
}
.mobile-auth-link:hover {
  color: var(--soft-cream);
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }
  .logo {
    flex-shrink: 0;
    min-height: 44px;
  }
  .logo-img {
    height: 3.15rem;
    max-width: 185px;
  }
  .tagline-header {
    display: block !important;
    width: 100%;
    order: 3;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: normal;
    line-height: 1.35;
    color: var(--gold);
    text-align: center;
    margin: 0.15rem 0 0;
    padding-top: 0.25rem;
    padding-left: 0;
    padding-right: 0;
  }
  .header.scrolled .tagline-header {
    color: var(--gold);
  }
  .header-auth {
    display: none !important;
  }
  .header-mobile-actions {
    display: flex;
  }
  .header-mobile-actions .hamburger-btn {
    display: none;
  }
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}
/* Sign In button: lighter outline so it doesn’t dominate the logo */
.header-signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 40px;
  padding: 0.55rem 1.15rem;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(198, 167, 94, 0.88);
  background: transparent;
  border: 1.5px solid rgba(198, 167, 94, 0.7);
  border-radius: 2px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.header-signin-btn:hover {
  background: rgba(198, 167, 94, 0.12);
  border-color: rgba(198, 167, 94, 0.9);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(198, 167, 94, 0.15);
}
.header-auth-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  padding: 0.4em 0.75em;
  border: 1px solid var(--gold);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.header-auth-link:hover {
  background: var(--gold);
  color: var(--deep-green);
}
.header-user {
  font-size: 0.9rem;
  color: var(--soft-cream);
  margin-right: 0.25rem;
}

/* ----- Auth modals ----- */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.auth-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.auth-modal.is-open .auth-modal-content {
  transform: scale(1);
}
.auth-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 47, 43, 0.6);
  backdrop-filter: blur(4px);
}
.auth-modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 600px);
  margin: auto;
  background: var(--form-bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  max-width: 400px;
  width: 100%;
  padding: 0;
  transform: scale(0.95);
  transition: transform var(--transition);
  border: 1px solid rgba(198, 167, 94, 0.3);
}
.auth-modal-content--wide {
  max-width: 440px;
  max-height: min(90vh, 680px);
}
.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: var(--deep-green);
  color: var(--gold);
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
}
.auth-modal-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 0.5rem;
}
.auth-modal-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 8px;
  font-size: 1.5rem;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.auth-modal-close:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.auth-form {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 480px) {
  .auth-modal {
    padding: 0.75rem;
    align-items: flex-start;
    padding-top: max(1rem, env(safe-area-inset-top));
  }
  .auth-modal-content {
    max-height: 85vh;
    max-width: calc(100vw - 24px);
    width: 100%;
  }
  .auth-modal-content--wide {
    max-height: 90vh;
    max-width: calc(100vw - 24px);
  }
  .auth-modal-header {
    padding: 0.875rem 1rem;
  }
  .auth-modal-title {
    font-size: 1.1rem;
  }
  .auth-row {
    grid-template-columns: 1fr;
  }
  .auth-form {
    padding: 1rem;
  }
}
.auth-form .required {
  color: var(--gold);
}
.auth-field {
  margin-bottom: 1.125rem;
}
.auth-field:last-of-type {
  margin-bottom: 0;
}
.auth-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.3;
}
.auth-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(14, 47, 43, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.4;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(198, 167, 94, 0.2);
}
.auth-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-password-wrap input {
  padding-right: 44px;
}
.auth-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted, #2d5a52);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-password-toggle:hover {
  color: var(--gold);
}
.auth-password-toggle .icon-eye-off {
  display: none;
}
.auth-password-toggle.is-visible .icon-eye {
  display: none;
}
.auth-password-toggle.is-visible .icon-eye-off {
  display: block;
}
.auth-form .field-error {
  display: block;
  font-size: 0.8rem;
  color: var(--error, #dc2626);
  margin-top: 0.25rem;
}
.auth-message {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  min-height: 1.25em;
}
.auth-message.error { color: var(--error, #dc2626); }
.auth-message.success { color: var(--emerald); }
.auth-form .btn-auth {
  margin-top: 1.25rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--deep-green);
  background: var(--gold);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
}
.auth-form .btn-auth:hover {
  background: #b8964a;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(198, 167, 94, 0.35);
}
.auth-form .btn-auth:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.auth-switch {
  margin: 1.25rem 0 0;
  padding-bottom: 0.25rem;
  font-size: 0.9rem;
  color: var(--text-muted, #2d5a52);
  text-align: center;
}
.auth-switch a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}
.auth-switch a:hover {
  text-decoration: underline;
}
.auth-whatsapp {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted, #2d5a52);
  text-align: center;
}
.auth-whatsapp a {
  color: #25d366;
  font-weight: 500;
  text-decoration: none;
}
.auth-whatsapp a:hover {
  text-decoration: underline;
}

/* ----- Themed popup (success / info) – dark + gold to match site ----- */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s ease, opacity 0.25s ease;
}
.popup-overlay.is-open {
  visibility: visible;
  opacity: 1;
}
.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 47, 43, 0.85);
  backdrop-filter: blur(4px);
}
.popup-box {
  position: relative;
  width: 100%;
  max-width: min(400px, calc(100vw - 32px));
  margin: 0 16px;
  background: linear-gradient(180deg, #0e2f2b 0%, #0a1f1c 100%);
  border: 1px solid rgba(198, 167, 94, 0.35);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .popup-box {
    padding: 2rem 1.75rem;
    margin: 0;
  }
}
.popup-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
}
.popup-icon.success::after {
  content: '✓';
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-body);
}
.popup-icon.error::after {
  content: '!';
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-body);
}
.popup-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 1rem;
  line-height: 1.3;
}
.popup-message {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 1.5rem;
  white-space: pre-line;
}
.popup-btn {
  display: inline-block;
  min-width: 120px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--gold);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 4px 14px rgba(198, 167, 94, 0.35);
}
.popup-btn:hover {
  background: #b8964a;
}
.popup-btn:active {
  transform: scale(0.98);
}

/* ----- WhatsApp floating button (mobile + web) ----- */
.whatsapp-fab {
  position: fixed;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  right: calc(1.5rem + env(safe-area-inset-right, 0px));
  z-index: 9998;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.whatsapp-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5), 0 0 0 8px rgba(37, 211, 102, 0.15);
}
.whatsapp-fab:active {
  transform: scale(0.98);
}
.whatsapp-fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.whatsapp-fab-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}
@media (max-width: 767px) {
  .whatsapp-fab {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: calc(1rem + env(safe-area-inset-right, 0px));
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
  }
  .whatsapp-fab-icon svg {
    width: 26px;
    height: 26px;
  }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(5rem, calc(env(safe-area-inset-top) + 3rem)) max(1rem, env(safe-area-inset-right)) 3rem max(1rem, env(safe-area-inset-left));
  text-align: center;
}

@media (min-width: 480px) {
  .hero {
    padding: 6rem 1.25rem 4rem;
  }
}

@media (min-width: 768px) {
  .hero {
    justify-content: flex-start;
    align-items: center;
    padding: 6rem 2rem 4rem max(2rem, env(safe-area-inset-left));
    text-align: left;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--deep-green);
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 47, 43, 0.92) 0%, rgba(14, 47, 43, 0.75) 40%, rgba(14, 47, 43, 0.5) 70%, rgba(14, 47, 43, 0.35) 100%);
}

@media (max-width: 767px) {
  .hero-overlay {
    background: linear-gradient(135deg, rgba(14, 47, 43, 0.88) 0%, rgba(14, 47, 43, 0.6) 50%, rgba(14, 47, 43, 0.75) 100%);
  }
}

/* Mobile hero: consistent alignment and spacing */
@media (max-width: 767px) {
  .hero {
    padding: max(4rem, calc(env(safe-area-inset-top) + 2.5rem)) max(1rem, env(safe-area-inset-right)) max(2.5rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    text-align: left;
    align-items: flex-end;
    justify-content: center;
  }
  .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  .hero-tagline {
    text-align: left;
    margin-bottom: 0.75rem;
    letter-spacing: 0.12em;
  }
  .hero-title {
    text-align: left;
    margin-bottom: 1rem;
    font-size: clamp(1.4rem, 6vw, 1.85rem);
    line-height: 1.25;
  }
  .hero-support {
    text-align: left;
    margin-bottom: 1.25rem;
    gap: 0.25rem;
  }
  .hero-support-line {
    text-align: left;
    font-size: clamp(0.85rem, 2.2vw, 1rem);
  }
  .hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    margin-top: 0.25rem;
  }
  .hero-ctas .btn-cta {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  .hero-title {
    font-size: 1.4rem;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

@media (min-width: 768px) {
  .hero-content {
    max-width: 560px;
    padding: 2rem 2rem 2.5rem 0;
    border-left: 3px solid var(--gold);
    padding-left: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    max-width: 600px;
    padding: 2.5rem 2.5rem 3rem 0;
    padding-left: 2.25rem;
  }
}

.hero-tagline-nowrap {
  white-space: nowrap;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.1s forwards;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4.2vw, 2.85rem);
  font-weight: 600;
  line-height: 1.22;
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}

.hero-title-line {
  display: block;
  color: var(--white);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title-line:nth-child(1) { animation-delay: 0.2s; }
.hero-title-line:nth-child(2) { animation-delay: 0.35s; }
.hero-title-line:nth-child(3) { animation-delay: 0.5s; }

.hero-title-accent {
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
  position: relative;
}

.hero-support {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
}

.hero-support-line {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  font-weight: 500;
  color: rgba(245, 242, 233, 0.92);
  line-height: 1.45;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.6s forwards;
}

.hero-support-line:nth-child(2) { animation-delay: 0.72s; }
.hero-support-line:nth-child(3) { animation-delay: 0.96s; }

.hero-launch-badge {
  display: inline;
  color: rgba(198, 167, 94, 0.88);
  font-weight: 500;
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-style: italic;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.1s forwards;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  min-height: 48px;
  min-width: 44px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
  line-height: 1.3;
  text-decoration: none;
}

@media (min-width: 768px) {
  .btn-cta {
    padding: 1rem 1.75rem;
    font-size: 0.85rem;
  }
}

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

#hero-cta.btn-cta-primary {
  background: var(--gold);
  color: var(--deep-green);
}

#hero-cta.btn-cta-primary:hover {
  background: #b8964a;
  color: var(--deep-green);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(198, 167, 94, 0.35);
}

.btn-cta-primary:hover {
  background: #256b4d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 122, 89, 0.35);
}

.btn-cta-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-cta-secondary:hover {
  background: rgba(198, 167, 94, 0.15);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(198, 167, 94, 0.2);
}

@media (hover: none) {
  .btn-cta-primary:active {
    transform: scale(0.98);
  }
  .btn-cta-secondary:hover {
    transform: none;
  }
  .btn-cta-secondary:active {
    transform: scale(0.98);
  }
}

@media (hover: none) {
  .btn-cta:active {
    transform: scale(0.98);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Sections common ----- */
.section {
  padding: 3rem max(1rem, env(safe-area-inset-left)) 3rem max(1rem, env(safe-area-inset-right));
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .section {
    padding: 3.5rem 1.25rem;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 4.5rem 1.5rem;
  }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 max(0.75rem, env(safe-area-inset-left)) 0 max(0.75rem, env(safe-area-inset-right));
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--deep-green);
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.3;
  padding: 0 0.25rem;
}

@media (min-width: 768px) {
  .section-title {
    margin-bottom: 2rem;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
  }
}

.section-title--light {
  color: var(--white);
}

/* ----- About ----- */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 1.5rem;
}

.about-para {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-image-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.about-image-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--soft-cream);
}

@media (max-width: 767px) {
  .about-image-wrap {
    order: -1;
  }
}

/* ----- Brand Statement ----- */
.brand-statement {
  background: var(--deep-green);
  color: var(--soft-cream);
  text-align: center;
}

.brand-statement .container {
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .brand-statement .container {
    padding: 0;
  }
}

.brand-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.8vw, 1.85rem);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.brand-subheading {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.brand-para {
  color: rgba(245, 242, 233, 0.9);
  max-width: 700px;
  margin: 0 auto;
  font-size: clamp(0.9rem, 1.5vw, 0.98rem);
  line-height: 1.6;
}

/* ----- Features ----- */
.features {
  background: var(--soft-cream);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 600px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
  }
}

@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--white);
  padding: 0;
  border-radius: 4px;
  border: 1px solid rgba(14, 47, 43, 0.08);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(198, 167, 94, 0.15);
}

.feature-card-image {
  height: 120px;
  background: var(--soft-cream) center/cover no-repeat;
}

@media (min-width: 480px) {
  .feature-card-image {
    height: 140px;
  }
}

.feature-card-image--menus {
  background-image: url('../images/vegetarian-barbecue-grill-various-gourmet-dishes-rustic-timber-table-vegan-meal-high-qual.jpg');
}

.feature-card-image--delivery {
  background-image: url('../images/realistic-image-delivery-boy-standing-his-scooter-holds-smartphone-gps-device.jpg');
}

.feature-card-image--sourcing {
  background-image: url('../images/healthy-salad-with-salmon-tomatoes-mushrooms-lettuce-lentil-dark.jpg');
}

.feature-card-image--vitality {
  background-image: url('../images/glossy-background-featuring-diabetic-meal-plate-with-nutritional-icons-concept-as-glossy-backgro.jpg');
}

.feature-card-content {
  padding: 1.25rem 1.25rem 1.5rem;
}

@media (min-width: 768px) {
  .feature-card-content {
    padding: 1.5rem 1.5rem 2rem;
  }
}

.feature-icon {
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--deep-green);
  margin-bottom: 0.5rem;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (hover: none) {
  .feature-card:hover {
    transform: none;
  }
  .feature-card:active {
    transform: scale(0.99);
  }
}

/* ----- Gallery ----- */
.gallery {
  background: var(--white);
}

.gallery-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: -0.5rem auto 2rem;
  font-size: 0.95rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  width: 100%;
}

@media (max-width: 380px) {
  .gallery-grid {
    gap: 0.5rem;
  }
}

@media (min-width: 600px) {
  .gallery-grid {
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.gallery-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--soft-cream);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.gallery-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

@media (hover: none) {
  .gallery-item:hover {
    transform: none;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ----- Early Access ----- */
.early-access {
  background: var(--white);
}

.early-access-subtext {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

@media (min-width: 768px) {
  .early-access-subtext {
    margin-bottom: 2rem;
  }
}

.early-access-form {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  padding: 0 0.25rem;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .early-access-form {
    padding: 0;
  }
  .early-access-form input[type="email"],
  .early-access-form .btn-submit {
    width: 100%;
    max-width: 100%;
  }
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .form-row {
    flex-direction: row;
    gap: 0.5rem;
  }
}

.early-access-form input[type="email"] {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 16px;
  border: 1px solid rgba(14, 47, 43, 0.2);
  border-radius: 2px;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color var(--transition);
}

@media (min-width: 480px) {
  .early-access-form input[type="email"] {
    min-width: 200px;
    width: auto;
  }
}

.early-access-form input[type="email"]:focus {
  outline: none;
  border-color: var(--emerald);
}

.early-access-form input[type="email"]::placeholder {
  color: #8a9a97;
}

.btn-submit {
  padding: 1rem 1.75rem;
  min-height: 48px;
  min-width: 44px;
  background: var(--emerald);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  width: 100%;
}

@media (min-width: 480px) {
  .btn-submit {
    width: auto;
  }
}

.btn-submit:hover {
  background: #256b4d;
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

@media (hover: none) {
  .btn-submit:active:not(:disabled) {
    transform: scale(0.98);
  }
}

.form-message {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-message.success {
  color: var(--emerald);
}

.form-message.error {
  color: #b04545;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Consultation modal (Personalized Nutrition Concierge) ----- */
.consultation-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s ease, opacity 0.2s ease;
}

.consultation-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.consultation-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 47, 43, 0.9);
  cursor: pointer;
}

.consultation-modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(600px, calc(100vw - 32px));
  max-height: 90vh;
  overflow-y: auto;
  background: var(--form-bg);
  color: var(--text-dark);
  border-radius: 12px;
  box-shadow: 0 24px 56px rgba(14, 47, 43, 0.35), 0 0 0 1px rgba(14, 47, 43, 0.08);
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
}

.consultation-modal-header {
  position: relative;
  padding: 20px 16px 16px;
  border-bottom: 3px solid var(--gold);
  background: var(--deep-green);
  border-radius: 12px 12px 0 0;
}

@media (min-width: 480px) {
  .consultation-modal-header {
    padding: 24px 24px 20px;
  }
}

.consultation-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--soft-cream);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}

.consultation-modal-close:hover {
  color: var(--gold);
}

.consultation-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--soft-cream);
  margin: 0 40px 4px 0;
  line-height: 1.3;
}

.consultation-subtitle {
  font-size: 0.9375rem;
  color: rgba(245, 242, 233, 0.85);
  margin: 0;
  line-height: 1.4;
}

.consultation-form {
  padding: 20px 16px;
  margin: 0;
  background: var(--form-bg-card);
  border-radius: 0 0 12px 12px;
}

@media (min-width: 480px) {
  .consultation-form {
    padding: 24px;
  }
}

.consultation-section {
  border: none;
  padding: 0 0 24px;
  margin: 0 0 24px;
  border-bottom: 1px solid rgba(14, 47, 43, 0.12);
}

.consultation-section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.consultation-legend {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--deep-green);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 16px;
  padding: 0 0 0 12px;
  border-left: 3px solid var(--gold);
  display: block;
}

.consultation-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.4;
}

.consultation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 24px;
}

@media (min-width: 540px) {
  .consultation-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.consultation-field--full {
  grid-column: 1 / -1;
}

.consultation-field {
  min-width: 0;
}

.consultation-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.consultation-field .required {
  color: #b04545;
}

.consultation-field input,
.consultation-field select,
.consultation-field textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid rgba(14, 47, 43, 0.25);
  border-radius: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.consultation-field select {
  cursor: pointer;
  appearance: auto;
}

.consultation-field input:focus,
.consultation-field select:focus,
.consultation-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(198, 167, 94, 0.25);
}

.consultation-field input::placeholder,
.consultation-field textarea::placeholder {
  color: #8a9a97;
}

.consultation-field input.error,
.consultation-field select.error,
.consultation-field textarea.error {
  border-color: #c75c5c;
}

.consultation-field textarea {
  min-height: 80px;
  resize: vertical;
  padding: 10px 12px;
}

.field-error {
  display: block;
  font-size: 0.75rem;
  color: #b04545;
  margin-top: 4px;
  min-height: 1.2em;
}

.consultation-checkboxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 540px) {
  .consultation-checkboxes {
    grid-template-columns: 1fr 1fr;
  }
}

.consultation-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-dark);
  cursor: pointer;
  margin: 0;
  padding: 8px 0;
}

.consultation-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.consultation-actions {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid rgba(14, 47, 43, 0.12);
}

.consultation-message {
  margin-bottom: 12px;
  font-size: 0.9375rem;
  min-height: 1.4em;
  line-height: 1.4;
}

.consultation-message.success {
  color: var(--emerald);
  font-weight: 500;
}

.consultation-message.error {
  color: #b04545;
}

.btn-consultation {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 14px 24px;
  min-height: 48px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--deep-green);
  background: var(--gold);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
  box-sizing: border-box;
}

.btn-consultation:hover {
  background: #b8964a;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(198, 167, 94, 0.35);
}

.btn-consultation:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ----- Footer ----- */
.footer {
  background: var(--deep-green);
  color: var(--soft-cream);
  padding: 2rem 1rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  text-align: center;
}

@media (min-width: 768px) {
  .footer {
    padding: 2.5rem 1.5rem;
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  }
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo {
  height: 3.4rem;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .footer-logo {
    height: 4rem;
    max-width: 260px;
  }
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-style: italic;
  color: var(--gold);
  line-height: 1.4;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

@media (max-width: 480px) {
  .footer-links {
    gap: 0.5rem 1rem;
  }
}

.footer-icon {
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-icon svg {
  width: 24px;
  height: 24px;
}

.footer-icon {
  color: var(--gold);
  opacity: 0.95;
  transition: color var(--transition), opacity var(--transition);
}

.footer-icon:hover {
  color: #d4bc7f;
  opacity: 1;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--gold);
  opacity: 0.95;
  margin-bottom: 0.5rem;
}

.footer-privacy {
  font-size: 0.85rem;
  color: var(--gold);
  transition: color var(--transition);
}

.footer-privacy:hover {
  color: #d4bc7f;
}

.footer-powered {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(198, 167, 94, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.footer-powered-logo-link {
  display: inline-block;
  line-height: 0;
  transition: opacity var(--transition);
}
.footer-powered-logo-link:hover {
  opacity: 0.9;
}
.footer-powered-logo {
  height: 2.75rem;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  vertical-align: middle;
}
@media (min-width: 768px) {
  .footer-powered-logo {
    height: 3.15rem;
    max-width: 200px;
  }
}
.footer-powered-text {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0.9;
  margin: 0;
  letter-spacing: 0.02em;
}
.footer-powered-name {
  font-weight: 600;
  letter-spacing: 0.06em;
}
.footer-powered-link {
  font-size: 0.8rem;
  color: var(--gold);
  text-decoration: none;
  opacity: 0.9;
  transition: color var(--transition), opacity var(--transition);
  letter-spacing: 0.03em;
}
.footer-powered-link:hover {
  color: #d4bc7f;
  opacity: 1;
}

/* ----- Scroll-triggered fade-in ----- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ----- Mobile: prevent overflow and align content ----- */
@media (max-width: 767px) {
  .about-text .section-title,
  .about-para {
    padding: 0 0.25rem;
  }
  .brand-statement .container {
    padding: 0 max(0.75rem, env(safe-area-inset-left)) 0 max(0.75rem, env(safe-area-inset-right));
  }
  .gallery-intro {
    padding: 0 0.5rem;
  }
}
