/* ==========================================================================
   Harini Catering — Design system
   Brand colours sampled from the official business card.
   ========================================================================== */

:root {
  --brand-primary: #79120e;
  --brand-primary-hover: #5c0e0b;
  --brand-primary-deep: #6c0904;
  --brand-secondary: #9c3b32;
  --brand-accent: #c9a36a;
  --brand-gold: #e4c49a;
  --brand-gold-soft: #f2ca94;
  --brand-gold-deep: #b8894a;
  --brand-dark: #1f0e0c;
  --brand-light: #fbf6f2;
  --brand-background: #ffffff;
  --brand-muted: #f3eae5;
  --brand-blush: #f8f1ed;

  --text-primary: #24110f;
  --text-secondary: #6e4e49;
  --text-muted: #8a6f6a;
  --text-on-brand: #fff8f2;
  --text-gold: #ead3ae;

  --border-light: #e8d8d2;
  --border-medium: #d4b8b2;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --shadow-soft: 0 8px 24px rgba(121, 18, 14, 0.07);
  --shadow-medium: 0 18px 40px rgba(121, 18, 14, 0.1);
  --shadow-header: 0 10px 28px rgba(36, 17, 15, 0.08);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s ease;
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);

  --container-max: 1140px;
  --container-wide: 1280px;
  --header-height: 76px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;

  --font-display: "Cormorant Garamond", "Noto Serif Tamil", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-tamil-display: "Noto Serif Tamil", "Cormorant Garamond", serif;
  --font-tamil: "Noto Sans Tamil", "Outfit", sans-serif;

  --fs-display: clamp(2.4rem, 5.2vw, 4.4rem);
  --fs-h1: clamp(2.125rem, 3.6vw, 3.25rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.35rem, 2vw, 1.7rem);
  --fs-h4: clamp(1.12rem, 1.4vw, 1.25rem);
  --fs-body: clamp(1.03125rem, 1.2vw, 1.075rem);
  --fs-small: 0.9375rem;
  --fs-button: 0.875rem;
  --fs-nav: 0.84rem;
  --fs-caption: 0.8125rem;

  --lh-display: 1.14;
  --lh-heading: 1.24;
  --lh-body: 1.72;

  --bs-primary: #79120e;
  --bs-primary-rgb: 121, 18, 14;
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--text-primary);
  --bs-body-bg: var(--brand-background);
  --bs-border-color: var(--border-light);
  --bs-link-color: var(--brand-primary);
  --bs-link-hover-color: var(--brand-primary-hover);
}

/* -------------------------------------------------------------------------- */
/* Base
/* -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background: var(--brand-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--brand-primary);
  text-decoration: none;
}

a:hover {
  color: var(--brand-primary-hover);
}

[hidden] {
  display: none !important;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  background: var(--brand-primary);
  color: var(--text-on-brand);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
  color: var(--text-on-brand);
}

.tamil,
:lang(ta) {
  font-family: var(--font-tamil);
}

h1.tamil,
h2.tamil,
.display-heading.tamil,
:lang(ta).display-heading {
  font-family: var(--font-tamil-display);
}

/* -------------------------------------------------------------------------- */
/* Typography
/* -------------------------------------------------------------------------- */

.display-heading,
.h-display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  overflow-wrap: break-word;
}

h1,
.h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h2,
.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  font-weight: 600;
}

h3,
.h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: 1.3;
  font-weight: 600;
}

h4,
.h4 {
  font-family: var(--font-body);
  font-size: var(--fs-h4);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 42rem;
  overflow-wrap: break-word;
}

.text-small,
.small-text {
  font-size: var(--fs-small);
  line-height: 1.55;
}

.caption {
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.eyebrow {
  display: inline-block;
  font-size: clamp(0.7rem, 1.4vw, 0.8125rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-primary);
  font-weight: 600;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.eyebrow--gold,
.section--brand .eyebrow {
  color: var(--text-gold);
}

.section-copy {
  max-width: 38rem;
  color: var(--text-secondary);
}

/* -------------------------------------------------------------------------- */
/* Layout
/* -------------------------------------------------------------------------- */

.container,
.container-wide {
  width: 100%;
  max-width: var(--container-max);
  padding-left: 1.15rem;
  padding-right: 1.15rem;
  margin-inline: auto;
}

.container-wide {
  max-width: var(--container-wide);
}

.section {
  padding: clamp(3.75rem, 8vw, 8.1rem) 0;
}

.section--tight {
  padding: var(--space-7) 0;
}

.section--light {
  background: var(--brand-light);
}

.section--muted {
  background: var(--brand-muted);
}

.section--brand {
  background: var(--brand-primary);
  color: var(--text-on-brand);
}

.section-header {
  margin-bottom: var(--space-6);
}

.section-header h2,
.section-header .h2 {
  margin-bottom: 0.75rem;
}

.editorial {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.divider {
  height: 1px;
  border: 0;
  background: var(--border-light);
  margin: var(--space-7) 0;
}

.band-gold {
  background: var(--brand-primary);
  color: var(--text-gold);
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(0.62rem, 2.4vw, 0.78rem);
  font-weight: 600;
  padding: 0.9rem 1rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

/* -------------------------------------------------------------------------- */
/* Header
/* -------------------------------------------------------------------------- */

#site-header {
  position: relative;
  z-index: 1050;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  height: var(--header-height);
  min-height: var(--header-height);
  width: 100%;
  max-width: 100%;
  overflow: visible;
  background-color: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    backdrop-filter 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 20px rgba(36, 17, 15, 0.08);
  border-bottom-color: var(--border-light);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.has-overlay-header .site-header {
  background-color: transparent;
  color: var(--text-on-brand);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.has-overlay-header .site-header.is-scrolled,
body.has-overlay-header .site-header.is-open {
  background-color: rgba(255, 255, 255, 0.97);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(36, 17, 15, 0.08);
  border-bottom-color: var(--border-light);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body:not(.has-overlay-header) {
  padding-top: var(--header-height);
}

.site-header .navbar {
  height: 100%;
  min-height: var(--header-height);
  padding: 0;
  flex-wrap: nowrap;
  overflow: visible;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.75rem;
  min-height: var(--header-height);
  min-width: 0;
  position: relative;
}

.header-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 0;
  pointer-events: none;
}

.header-emblem img {
  display: block;
  height: 26px;
  width: auto;
  max-width: min(28vw, 96px);
  object-fit: contain;
}

.header-emblem .header-emblem__light {
  display: none;
}

body.has-overlay-header .site-header:not(.is-scrolled):not(.is-open) .header-emblem__dark {
  display: none;
}

body.has-overlay-header .site-header:not(.is-scrolled):not(.is-open) .header-emblem__light {
  display: block;
  filter: drop-shadow(0 1px 6px rgba(31, 14, 12, 0.45));
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  min-width: 0;
}

.site-header .brand {
  flex: 1;
}

.brand:hover {
  color: inherit;
}

.brand__mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand__mark--light {
  display: none;
}

.brand--on-dark .brand__mark--dark {
  display: none;
}

.brand--on-dark .brand__mark--light {
  display: block;
}

.brand__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand__tag {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.brand--on-dark .brand__name {
  color: var(--text-gold);
}

body.has-overlay-header .site-header:not(.is-scrolled):not(.is-open) .brand__name {
  color: var(--text-on-brand);
}

body.has-overlay-header .site-header:not(.is-scrolled):not(.is-open) .brand__tag {
  color: rgba(255, 248, 242, 0.78);
}

body.has-overlay-header .site-header:not(.is-scrolled):not(.is-open) .brand__mark--dark {
  display: none;
}

body.has-overlay-header .site-header:not(.is-scrolled):not(.is-open) .brand__mark--light {
  display: block;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--border-light);
  background: var(--brand-light);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  padding: 0;
  flex: 0 0 44px;
  position: relative;
  z-index: 1080;
  font-size: 1.7rem;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(31, 14, 12, 0.16);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 3px;
}

body.has-overlay-header .site-header:not(.is-scrolled):not(.is-open) .nav-toggle {
  background: #fffaf4;
  border-color: rgba(255, 248, 242, 0.55);
  color: var(--brand-primary);
  box-shadow: 0 10px 24px rgba(31, 14, 12, 0.22);
}

.site-header.is-open .nav-toggle {
  visibility: hidden;
  pointer-events: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
}

.primary-nav .nav-link {
  font-size: var(--fs-nav);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  position: relative;
}

.primary-nav .nav-link:hover,
.primary-nav .nav-link:focus-visible {
  color: var(--brand-primary);
}

.primary-nav .nav-link.active {
  color: var(--brand-primary);
}

.primary-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.2rem;
  height: 1px;
  background: var(--brand-primary);
}

body.has-overlay-header .site-header:not(.is-scrolled):not(.is-open) .primary-nav .nav-link {
  color: var(--text-on-brand);
}

body.has-overlay-header .site-header:not(.is-scrolled):not(.is-open) .primary-nav .nav-link:hover,
body.has-overlay-header .site-header:not(.is-scrolled):not(.is-open) .primary-nav .nav-link.active {
  color: var(--brand-gold);
}

body.has-overlay-header .site-header:not(.is-scrolled):not(.is-open) .primary-nav .nav-link.active::after {
  background: var(--brand-gold);
}

.dropdown-menu {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
  padding: 0.5rem;
  min-width: 13.5rem;
}

.dropdown-item {
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  color: var(--text-primary);
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  background: var(--brand-blush);
  color: var(--brand-primary);
}

.header-cta {
  margin-left: 0.75rem;
}

.offcanvas-header {
  padding: 0.9rem 0.1rem 0.4rem;
}

.offcanvas-header .h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin: 0;
}

/* -------------------------------------------------------------------------- */
/* Buttons / CTAs
/* -------------------------------------------------------------------------- */

.btn-cta,
.btn-cta-secondary,
.btn-cta-ghost,
.btn-cta-gold,
.btn-cta-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: var(--fs-button);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn-cta {
  background: var(--brand-primary);
  color: var(--text-on-brand);
  box-shadow: 0 8px 18px rgba(121, 18, 14, 0.18);
}

.btn-cta:hover,
.btn-cta:focus-visible {
  background: var(--brand-primary-hover);
  color: var(--text-on-brand);
  transform: translateY(-1px);
}

.btn-cta-secondary {
  background: transparent;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-cta-secondary:hover,
.btn-cta-secondary:focus-visible {
  background: var(--brand-primary);
  color: var(--text-on-brand);
}

.btn-cta-secondary--on-dark {
  border-color: var(--text-gold);
  color: var(--text-gold);
}

.btn-cta-secondary--on-dark:hover,
.btn-cta-secondary--on-dark:focus-visible {
  background: var(--text-gold);
  color: var(--brand-dark);
  border-color: var(--text-gold);
}

.btn-cta-ghost {
  background: transparent;
  color: var(--brand-primary);
  padding-inline: 0.4rem;
}

.btn-cta-ghost:hover {
  color: var(--brand-primary-hover);
}

.btn-cta-gold {
  background: var(--brand-accent);
  color: var(--brand-dark);
}

.btn-cta-gold:hover,
.btn-cta-gold:focus-visible {
  background: var(--brand-gold-deep);
  color: var(--text-on-brand);
}

.btn-cta-whatsapp {
  background: #128c4b;
  color: #fff;
}

.btn-cta-whatsapp:hover,
.btn-cta-whatsapp:focus-visible {
  background: #0e743e;
  color: #fff;
}

.btn-cta:active,
.btn-cta-secondary:active,
.btn-cta-gold:active,
.btn-cta-whatsapp:active {
  transform: translateY(0);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* -------------------------------------------------------------------------- */
/* Floating actions + scroll top
/* -------------------------------------------------------------------------- */

.floating-actions {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-medium);
  border: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.floating-btn:hover,
.floating-btn:focus-visible {
  color: #fff;
  transform: translateY(-2px);
}

.floating-btn--whatsapp {
  background: #128c4b;
}

.floating-btn--phone {
  background: var(--brand-primary);
}

.floating-btn.is-placeholder {
  opacity: 0.45;
  pointer-events: none;
}

.scroll-top {
  position: fixed;
  right: 1rem;
  left: auto;
  bottom: 8.35rem;
  z-index: 1030;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* -------------------------------------------------------------------------- */
/* Media placeholders
/* -------------------------------------------------------------------------- */

.media-placeholder {
  --media-ratio: 75%;
  position: relative;
  overflow: hidden;
  background-color: #efe4db;
  background-image:
    linear-gradient(165deg, rgba(251, 246, 242, 0.28), rgba(121, 18, 14, 0.05)),
    url("../images/branding/placeholder-linen.svg");
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
}

.media-placeholder--tone-meal {
  background-image:
    radial-gradient(ellipse 88% 52% at 50% 72%, rgba(255, 248, 242, 0.5), transparent 58%),
    linear-gradient(165deg, #f6eee6 0%, #e0c6b3 100%);
}

.media-placeholder--tone-leaf {
  background-image:
    linear-gradient(150deg, #edf1e6 0%, #d7c4a6 46%, #c4ab8c 100%);
}

.media-placeholder--tone-sweet {
  background-image:
    radial-gradient(circle at 28% 32%, rgba(255, 248, 242, 0.62) 0 11%, transparent 12%),
    radial-gradient(circle at 72% 64%, rgba(228, 196, 154, 0.4) 0 9%, transparent 10%),
    linear-gradient(180deg, #f7efe6, #e6d0c0);
}

.media-placeholder--tone-event {
  background-image:
    linear-gradient(100deg, #d3bfb0 0%, #f0e7de 42%, #cbb59f 100%);
}

.media-placeholder--tone-portrait {
  background-image:
    linear-gradient(180deg, #f4e9e0 0%, #e2cbb8 58%, #c9ae98 100%);
}

.media-placeholder--tone-snack {
  background-image:
    linear-gradient(135deg, #f3e6d8 0%, #e4cbb6 50%, #d2b39a 100%);
}

.media-placeholder::before {
  content: "";
  display: block;
  padding-bottom: var(--media-ratio);
}

.media-placeholder img,
.media-placeholder video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.media-placeholder.has-media img,
.media-placeholder.has-media video {
  opacity: 1;
}

.media-placeholder__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--brand-primary);
  padding: 1rem;
  text-align: center;
}

.media-placeholder__fallback img {
  position: static;
  width: min(42%, 180px);
  height: auto;
  opacity: 0.28;
  object-fit: contain;
}

.media-placeholder.has-media .media-placeholder__fallback {
  display: none;
}

.media-placeholder--hero {
  --media-ratio: 56.25%;
  border-radius: 0;
}

.media-placeholder--photo {
  --media-ratio: 75%;
}

.media-placeholder--wide {
  --media-ratio: 56.25%;
}

.media-placeholder--food {
  --media-ratio: 75%;
}

.media-placeholder--product,
.media-placeholder--square {
  --media-ratio: 100%;
}

.media-placeholder--editorial {
  --media-ratio: 125%;
}

.media-placeholder--landscape {
  --media-ratio: 66.66%;
}

.media-placeholder--rounded {
  border-radius: var(--radius-lg);
}

.img-reveal {
  overflow: hidden;
}

.img-reveal img {
  transform: scale(1.04);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.img-reveal.is-inview img,
.img-reveal:hover img {
  transform: scale(1);
}

/* -------------------------------------------------------------------------- */
/* Video
/* -------------------------------------------------------------------------- */

.video-showcase {
  position: relative;
  overflow: hidden;
  background: var(--brand-dark);
  border-radius: var(--radius-lg);
}

.video-showcase video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.video-showcase.has-video video {
  display: block;
}

.video-showcase--hero {
  border-radius: 0;
  min-height: 68vh;
}

.video-showcase__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(31, 14, 12, 0.12), rgba(31, 14, 12, 0.46)),
    linear-gradient(120deg, #ead9cc, #c9b09c 55%, #b08972);
  color: var(--text-on-brand);
}

.video-showcase.has-video .video-showcase__fallback {
  display: none;
}

.video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------------------------------------------------------------- */
/* Heritage emblem
/* -------------------------------------------------------------------------- */

.heritage-emblem {
  position: relative;
}

.heritage-emblem::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/branding/heritage-emblem.png") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

.heritage-emblem--watermark::before {
  inset: auto 6% 8% auto;
  width: min(38%, 280px);
  height: 58%;
  opacity: 0.055;
}

.heritage-emblem--footer::before {
  inset: auto 8% 10%;
  height: 90px;
  opacity: 0.12;
}

.heritage-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: var(--space-6) 0;
  color: var(--brand-primary);
}

.heritage-divider::before,
.heritage-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border-light);
}

.heritage-divider img {
  width: min(220px, 42vw);
  opacity: 0.7;
}

/* -------------------------------------------------------------------------- */
/* Surfaces
/* -------------------------------------------------------------------------- */

.surface-card {
  background: var(--brand-background);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.surface-card .card-body,
.surface-card__body {
  padding: 1.4rem;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.feature-list li {
  display: flex;
  gap: 0.8rem;
  color: var(--text-secondary);
}

.feature-list i {
  color: var(--brand-primary);
  margin-top: 0.2rem;
}

.image-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

/* -------------------------------------------------------------------------- */
/* Forms
/* -------------------------------------------------------------------------- */

.form-label {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.form-control,
.form-select {
  min-height: 48px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.9rem;
  background: var(--brand-background);
  color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(121, 18, 14, 0.12);
}

textarea.form-control {
  min-height: 140px;
}

/* -------------------------------------------------------------------------- */
/* Footer
/* -------------------------------------------------------------------------- */

.site-footer {
  background: var(--brand-dark);
  color: rgba(255, 248, 242, 0.82);
  padding-top: var(--space-8);
  padding-bottom: 5.5rem;
  position: relative;
  overflow: hidden;
}

.site-footer a {
  color: rgba(255, 248, 242, 0.86);
}

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

.site-footer h3,
.site-footer .h4 {
  color: var(--text-gold);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-brand p {
  color: rgba(255, 248, 242, 0.72);
  max-width: 22rem;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.footer-contact {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.footer-contact a,
.footer-contact li {
  overflow-wrap: anywhere;
}

.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.social-links a,
.social-links span {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 248, 242, 0.16);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-links .is-placeholder {
  opacity: 0.4;
  cursor: default;
}

.footer-bottom {
  margin-top: var(--space-7);
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255, 248, 242, 0.1);
  font-size: var(--fs-small);
  color: rgba(255, 248, 242, 0.55);
}

/* -------------------------------------------------------------------------- */
/* Page shell (later pages)
/* -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(31, 14, 12, 0.55), rgba(31, 14, 12, 0.88)),
    url("../images/branding/placeholder-pattern.svg") center / cover,
    var(--brand-dark);
  color: var(--text-on-brand);
  overflow: hidden;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  padding: 7rem 0 3.5rem;
  min-width: 0;
}

.page-hero h1 {
  max-width: min(16ch, 100%);
  overflow-wrap: break-word;
}

.page-hero .lead {
  color: rgba(255, 248, 242, 0.78);
  max-width: min(36rem, 100%);
}

.foundation-note {
  font-size: var(--fs-small);
  color: var(--text-muted);
  border-left: 2px solid var(--brand-accent);
  padding-left: 0.85rem;
}

/* -------------------------------------------------------------------------- */
/* Design system preview
/* -------------------------------------------------------------------------- */

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.swatch {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--brand-background);
}

.swatch__chip {
  height: 84px;
}

.swatch__chip--primary { background: var(--brand-primary); }
.swatch__chip--deep { background: var(--brand-primary-deep); }
.swatch__chip--accent { background: var(--brand-accent); }
.swatch__chip--gold { background: var(--brand-gold); }
.swatch__chip--light { background: var(--brand-light); }
.swatch__chip--muted { background: var(--brand-muted); }
.swatch__chip--text { background: var(--text-primary); }
.swatch__chip--dark { background: var(--brand-dark); }

.swatch__meta {
  padding: 0.75rem 0.9rem;
  font-size: var(--fs-small);
}

.token-sample {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.ds-hero {
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  color: var(--text-on-brand);
  background: var(--brand-dark);
}

.ds-hero__media {
  position: absolute;
  inset: 0;
}

.ds-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 14, 12, 0.18) 0%, rgba(31, 14, 12, 0.5) 48%, rgba(31, 14, 12, 0.9) 100%);
}

.ds-hero__content {
  position: relative;
  z-index: 1;
  padding: 8rem 0 4rem;
}

.ds-hero__content .lead {
  color: rgba(255, 248, 242, 0.8);
}

/* -------------------------------------------------------------------------- */
/* Parallax
/* -------------------------------------------------------------------------- */

.parallax-section {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: grid;
  align-items: center;
}

.parallax-section__media {
  position: absolute;
  inset: -8%;
  z-index: 0;
}

.parallax-section__content {
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------------------------- */
/* Animations
/* -------------------------------------------------------------------------- */

.fade-up {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fade-in {
  animation: fadeIn 0.6s ease both;
}

.stagger-cards > * {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stagger-cards > *:nth-child(2) { animation-delay: 0.08s; }
.stagger-cards > *:nth-child(3) { animation-delay: 0.16s; }
.stagger-cards > *:nth-child(4) { animation-delay: 0.24s; }
.stagger-cards > *:nth-child(5) { animation-delay: 0.32s; }
.stagger-cards > *:nth-child(6) { animation-delay: 0.4s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scale-in {
  animation: scaleIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .img-reveal img,
  .parallax-section__media {
    transform: none !important;
  }
}
