/* ============================================================
   FM LABELS — style.css
   Luxury Leather Labels — Made in Italy
   Dark Mode by Default + Light Mode Toggle
   ============================================================ */

/* ============================================================
   CSS VARIABLES — DARK THEME (DEFAULT)
   ============================================================ */
:root {
  --bg-primary:      #0A0A0A;
  --bg-secondary:    #111111;
  --bg-card:         #1D1D1D;
  --bg-card-hover:   #242424;
  --accent:          #C8A56A;
  --accent-dark:     #a8843f;
  --accent-light:    #e0c08a;
  --text-primary:    #FFFFFF;
  --text-secondary:  #AAAAAA;
  --text-muted:      #666666;
  --border-color:    rgba(200,165,106,0.18);
  --border-subtle:   rgba(255,255,255,0.07);
  --shadow-gold:     0 8px 40px rgba(200,165,106,0.18);
  --shadow-dark:     0 20px 60px rgba(0,0,0,0.6);
  --nav-height:      80px;
  --transition:      0.38s cubic-bezier(0.4,0,0.2,1);
  --font-display:    'Playfair Display', serif;
  --font-heading:    'Montserrat', sans-serif;
  --font-body:       'Poppins', sans-serif;
}

/* LIGHT THEME OVERRIDES */
[data-theme="light"] {
  --bg-primary:      #F8F5F0;
  --bg-secondary:    #EFECE6;
  --bg-card:         #FFFFFF;
  --bg-card-hover:   #F0EDE8;
  --text-primary:    #111111;
  --text-secondary:  #555555;
  --text-muted:      #999999;
  --border-color:    rgba(200,165,106,0.3);
  --border-subtle:   rgba(0,0,0,0.08);
  --shadow-dark:     0 20px 60px rgba(0,0,0,0.12);
}

/* ============================================================
   BASE RESET & GLOBAL
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }
address { font-style: normal; }

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  background: #0A0A0A;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-inner { text-align: center; }

.preloader-logo {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.preloader-logo span { color: var(--accent); }

.preloader-bar {
  width: 200px;
  height: 2px;
  background: rgba(200,165,106,0.2);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
}
.preloader-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
  animation: preloadFill 1.8s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes preloadFill { to { width: 100%; } }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.22;
  margin-bottom: 1.25rem;
}

.section-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.section-padding { padding: 100px 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-fm-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.2rem;
  background: var(--accent);
  color: #0A0A0A !important;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn-fm-primary:hover {
  background: transparent;
  color: var(--accent) !important;
}

.btn-fm-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.2rem;
  background: transparent;
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
[data-theme="light"] .btn-fm-outline { color: #111111 !important; border-color: rgba(0,0,0,0.4); }
.btn-fm-outline:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  background: rgba(200,165,106,0.08);
}
/* Hero sits on a dark video in BOTH themes, so its outline button stays white */
.hero-buttons .btn-fm-outline,
[data-theme="light"] .hero-buttons .btn-fm-outline {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.5);
}
.hero-buttons .btn-fm-outline:hover,
[data-theme="light"] .hero-buttons .btn-fm-outline:hover {
  color: var(--accent) !important;
  border-color: var(--accent);
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.header-transparent .navbar {
  background: linear-gradient(to bottom, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0) 100%);
  height: var(--nav-height);
}

/* Ensure logo + links never get clipped at screen edge */
#main-header .container-fluid {
  padding-left: clamp(1rem, 3vw, 3rem);
  padding-right: clamp(1rem, 3vw, 3rem);
}

#main-header.scrolled .navbar {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

[data-theme="light"] #main-header.scrolled .navbar {
  background: rgba(248,245,240,0.95);
}
/* In light theme, once the header gets a light background on scroll,
   switch logo + links to dark so they stay readable */
[data-theme="light"] #main-header.scrolled .fm-logo,
[data-theme="light"] #main-header.scrolled .navbar-nav .nav-link {
  color: #111111 !important;
  text-shadow: none;
}
[data-theme="light"] #main-header.scrolled .theme-toggle,
[data-theme="light"] #main-header.scrolled .lang-btn {
  color: #111111;
  border-color: rgba(0,0,0,0.15);
}

.navbar { padding: 0; }

/* LOGO */
.fm-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--text-primary) !important;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
  padding-left: 2px;
}
.fm-logo span { color: var(--accent); }

/* NAV LINKS */
.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff !important;
  padding: 0.4rem 1.1rem !important;
  position: relative;
  transition: color var(--transition);
  text-shadow: 0 1px 10px rgba(0,0,0,0.6);
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}
.navbar-nav .nav-link:hover { color: var(--accent) !important; }
.navbar-nav .nav-link:hover::after { width: 80%; }

/* HAMBURGER */
.navbar-toggler {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.hamburger-line {
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  display: block;
  transition: all var(--transition);
}

/* THEME TOGGLE */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* LANGUAGE SWITCHER */
.lang-switcher { position: relative; }

.lang-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.42rem 0.9rem;
  border-radius: 2px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-btn::after { display: none; } /* Remove bootstrap caret */

.lang-flag { font-size: 1rem; }

/* Flag-icon sizing inside the language switcher */
.lang-flag .fi,
.lang-option .fi {
  width: 1.4em;
  height: 1em;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
  vertical-align: middle;
}
.lang-option .fi { margin-right: 2px; }
.lang-arrow { font-size: 0.6rem; transition: transform var(--transition); }
.lang-btn[aria-expanded="true"] .lang-arrow { transform: rotate(180deg); }

.lang-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 0.5rem 0;
  min-width: 160px;
  box-shadow: var(--shadow-dark);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  text-align: left;
}
.lang-option:hover { color: var(--accent); background: rgba(200,165,106,0.07); }
.lang-option.active { color: var(--accent); font-weight: 600; }
.lang-option .flag { font-size: 1.1rem; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;            /* video sits ON TOP of the fallback when it plays */
}
.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;            /* fallback is the base layer, shown only if video is absent */
  background:
    radial-gradient(ellipse at 72% 28%, rgba(200,165,106,0.10) 0%, rgba(200,165,106,0) 55%),
    linear-gradient(160deg, #1c1815 0%, #0c0b0a 55%, #060606 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.82) 0%, rgba(10,10,10,0.45) 60%, rgba(10,10,10,0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: var(--nav-height);
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0;
  animation: heroFadeUp 0.9s 0.3s ease forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: heroFadeUp 1s 0.5s ease forwards;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: heroFadeUp 1s 0.7s ease forwards;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: heroFadeUp 1s 0.9s ease forwards;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* VIDEO CONTROLS */
.video-controls {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  z-index: 3;
  display: flex;
  gap: 0.6rem;
}
.vid-btn {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.vid-btn:hover { background: var(--accent); border-color: var(--accent); color: #000; }

/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: heroFadeUp 1s 1.2s ease forwards;
}
.scroll-indicator span {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(200,165,106,0.8), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; transform: scaleY(0.8); } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================
   MARQUEE STRIP
   ============================================================ */
.marquee-strip {
  background: var(--accent);
  overflow: hidden;
  padding: 0.75rem 0;
  position: relative;
  z-index: 5;
}
.marquee-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}
.marquee-strip span {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0A0A0A;
  flex-shrink: 0;
}
.marquee-dot { color: #0A0A0A; font-size: 0.6rem !important; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-image-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}
.about-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  background: var(--bg-card);
  clip-path: polygon(0 0, 96% 0, 100% 4%, 100% 100%, 4% 100%, 0 96%);
}
.about-badge {
  position: absolute;
  bottom: 2rem;
  right: -1.5rem;
  background: var(--accent);
  color: #0A0A0A;
  padding: 1.2rem 1.5rem;
  text-align: center;
  clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%);
}
.badge-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}
.badge-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   STATISTICS SECTION
   ============================================================ */
.stats-section {
  background: var(--bg-secondary);
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stat-card {
  position: relative;
  padding: 2rem 1rem;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: all var(--transition);
  clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%);
}
.stat-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: inline;
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  display: inline;
}
.stat-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.6rem;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.service-card {
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: all var(--transition);
  clip-path: polygon(0 0, 96% 0, 100% 4%, 100% 100%, 4% 100%, 0 96%);
  height: 100%;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height var(--transition);
}
.service-card:hover {
  border-color: var(--border-color);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}
.service-card:hover::before { height: 100%; }

.service-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  transition: transform var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.1); }

.service-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.service-link {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color var(--transition);
}
.service-link:hover { color: var(--accent-light); }

/* ============================================================
   PROCESS / TIMELINE SECTION
   ============================================================ */
.process-section { background: var(--bg-secondary); }

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-color);
}

.timeline-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
  align-items: flex-start;
}
.timeline-step:nth-child(odd) { flex-direction: row; padding-right: calc(50% + 2rem); }
.timeline-step:nth-child(even) { flex-direction: row-reverse; padding-left: calc(50% + 2rem); }

.timeline-number {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-secondary);
  border: 1px solid var(--accent);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  letter-spacing: 0.05em;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem 2rem;
  clip-path: polygon(0 0, 97% 0, 100% 3%, 100% 100%, 3% 100%, 0 97%);
  transition: all var(--transition);
  width: 100%;
}
.timeline-content:hover {
  border-color: var(--border-color);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}
.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
  margin: 0;
}

@media (max-width: 767px) {
  .timeline::before { left: 22px; transform: none; }
  .timeline-step { flex-direction: column !important; padding: 0 0 0 60px !important; }
  .timeline-number { left: 0; transform: none; }
}

/* ============================================================
   INDUSTRIES SECTION
   ============================================================ */
.industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  text-align: center;
  transition: all var(--transition);
  clip-path: polygon(0 0, 92% 0, 100% 8%, 100% 100%, 8% 100%, 0 92%);
}
.industry-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}

.industry-icon {
  font-size: 2rem;
  color: var(--accent);
  transition: transform var(--transition);
}
.industry-card:hover .industry-icon { transform: scale(1.15) rotate(-5deg); }

.industry-name {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.industry-card:hover .industry-name { color: var(--accent); }

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 1.4rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  clip-path: polygon(0 0, 94% 0, 100% 6%, 100% 100%, 6% 100%, 0 94%);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0A0A0A;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  grid-auto-rows: 260px;
}
.gallery-item-wide { grid-column: span 2; }
.gallery-item-tall { grid-row: span 2; }

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-card);
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-caption {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  padding: 0 1rem;
}
.gallery-icon {
  font-size: 1.5rem;
  color: var(--accent);
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.lightbox-close:hover { background: var(--accent); border-color: var(--accent); color: #000; }
#lightboxCaption {
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 1.5rem;
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery-item-wide { grid-column: span 2; }
  .gallery-item-tall { grid-row: span 1; }
}

/* ============================================================
   VIDEO SHOWCASE SECTION
   ============================================================ */
.video-showcase-section { position: relative; height: 60vh; min-height: 400px; overflow: hidden; }
.video-showcase-inner { position: relative; width: 100%; height: 100%; }
.showcase-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.showcase-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   SUSTAINABILITY SECTION
   ============================================================ */
.sustainability-section { background: var(--bg-secondary); }

.sustain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
  clip-path: polygon(0 0, 92% 0, 100% 8%, 100% 100%, 8% 100%, 0 92%);
}
.sustain-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}
.sustain-icon { font-size: 1.8rem; color: var(--accent); margin-bottom: 0.75rem; }
.sustain-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.sustain-text { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem 2.5rem;
  margin: 0.5rem;
  clip-path: polygon(0 0, 97% 0, 100% 3%, 100% 100%, 3% 100%, 0 97%);
  transition: all var(--transition);
}
.testimonial-card:hover { border-color: var(--border-color); box-shadow: var(--shadow-gold); }

.testimonial-stars { color: var(--accent); margin-bottom: 1.25rem; letter-spacing: 0.1em; }
.testimonial-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  border: none;
  padding: 0;
}

.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #0A0A0A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}
.author-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  display: block;
}
.author-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.15rem;
}

/* Swiper overrides */
.testimonial-swiper { padding-bottom: 3rem !important; }
.swiper-pagination-bullet { background: var(--accent) !important; opacity: 0.4; }
.swiper-pagination-bullet-active { opacity: 1 !important; }
.swiper-button-prev, .swiper-button-next {
  color: var(--accent) !important;
  width: 42px !important;
  height: 42px !important;
}
.swiper-button-prev::after, .swiper-button-next::after { font-size: 1rem !important; }

/* ============================================================
   PARTNERS SECTION
   ============================================================ */
.partners-section { background: var(--bg-secondary); }
.partners-track {
  display: flex;
  gap: 3rem;
  overflow: hidden;
  position: relative;
}
.partner-logo-wrap {
  flex-shrink: 0;
  opacity: 0.45;
  transition: opacity var(--transition);
  filter: grayscale(100%) brightness(200%);
  height: 60px;
  display: flex;
  align-items: center;
}
.partner-logo-wrap:hover { opacity: 1; filter: none; }
.partner-logo-wrap img { height: 40px; width: auto; object-fit: contain; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.contact-icon {
  width: 46px;
  height: 46px;
  background: rgba(200,165,106,0.1);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.contact-item p, .contact-item a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* MAP */
.map-wrapper iframe {
  width: 100%;
  height: 280px;
  border: 1px solid var(--border-color);
  display: block;
}

/* CONTACT FORM */
.fm-contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem;
  clip-path: polygon(0 0, 98% 0, 100% 2%, 100% 100%, 2% 100%, 0 98%);
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-input {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.85rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  clip-path: polygon(0 0, 98% 0, 100% 4%, 100% 100%, 4% 100%, 0 96%);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,165,106,0.1);
}

textarea.form-input { resize: vertical; min-height: 130px; }

.field-error {
  font-size: 0.78rem;
  color: #e85555;
  min-height: 1.1em;
}

.submit-btn { border: none; width: 100%; padding: 1rem 2rem; font-size: 0.82rem; }

.form-message {
  padding: 1rem 1.25rem;
  border-radius: 2px;
  margin-top: 1rem;
  font-size: 0.9rem;
}
.form-message-success { background: rgba(72,199,142,0.12); border: 1px solid rgba(72,199,142,0.3); color: #48c78e; }
.form-message-error { background: rgba(232,85,85,0.12); border: 1px solid rgba(232,85,85,0.3); color: #e85555; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 80px;
}

.footer-top { padding-bottom: 50px; border-bottom: 1px solid var(--border-subtle); }

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.footer-brand span { color: var(--accent); }

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #0A0A0A; }

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-address {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.8;
}
.footer-address a { color: var(--text-secondary); }
.footer-address a:hover { color: var(--accent); }

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { color: var(--text-muted); font-size: 0.82rem; margin: 0; }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { color: var(--text-muted); font-size: 0.78rem; transition: color var(--transition); }
.footer-legal a:hover { color: var(--accent); }

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background: #25D366;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
  color: #fff !important;
}

/* Pulse animation */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: whatsappPulse 2.5s ease-out infinite;
  z-index: -1;
}
@keyframes whatsappPulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.9); opacity: 0; }
}

.whatsapp-tooltip {
  position: absolute;
  right: 110%;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border-color);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 95%, 95% 100%, 0 100%);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

.whatsapp-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff4b4b;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  z-index: 998;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--accent);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  clip-path: polygon(0 0, 85% 0, 100% 15%, 100% 100%, 15% 100%, 0 85%);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); color: #000; border-color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- TABLET & MOBILE NAVIGATION (below lg / 992px) ---- */
@media (max-width: 991px) {

  /* Solid header bar on mobile so logo + hamburger stay readable */
  .header-transparent .navbar,
  #main-header .navbar {
    background: rgba(10,10,10,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  [data-theme="light"] .header-transparent .navbar,
  [data-theme="light"] #main-header .navbar {
    background: rgba(248,245,240,0.97);
  }
  [data-theme="light"] .fm-logo,
  [data-theme="light"] .hamburger-line { color: #111; }
  [data-theme="light"] .hamburger-line { background: #111; }

  /* Slide-down menu panel with solid background */
  .navbar-collapse {
    background: var(--bg-secondary);
    margin: 0.85rem -1rem -0.5rem;
    padding: 1.25rem 1.5rem 1.75rem;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 24px 40px rgba(0,0,0,0.45);
  }

  /* Stacked, spaced nav links */
  .navbar-nav { gap: 0.25rem; margin-bottom: 1.25rem !important; }
  .navbar-nav .nav-link {
    font-size: 0.92rem !important;
    padding: 0.7rem 0.25rem !important;
    border-bottom: 1px solid var(--border-subtle);
    text-shadow: none;
  }
  .navbar-nav .nav-link::after { display: none; }

  /* Header actions: arrange in a tidy row, CTA full width */
  .header-actions {
    flex-wrap: wrap;
    gap: 0.85rem !important;
    align-items: center;
  }
  .header-actions .btn-fm-primary {
    flex: 1 1 100%;
    text-align: center;
    margin-top: 0.25rem;
  }

  /* Animated hamburger → X when menu is open */
  .navbar-toggler { border: none; box-shadow: none; }
  .navbar-toggler:not(.collapsed) .hamburger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .navbar-toggler:not(.collapsed) .hamburger-line:nth-child(2) { opacity: 0; }
  .navbar-toggler:not(.collapsed) .hamburger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* General mobile layout */
  .section-padding { padding: 70px 0; }
  .about-badge { right: 0; }
  .hero-title { font-size: clamp(2.2rem, 7vw, 4.5rem); }
  .timeline::before { display: none; }
  .timeline-step { padding: 0 !important; flex-direction: column !important; gap: 1rem; }
  .timeline-number { position: relative; left: auto; transform: none; margin-bottom: 0; align-self: flex-start; }
}

/* ---- PHONES (below 768px) ---- */
@media (max-width: 767px) {
  .section-padding { padding: 55px 0; }
  .about-img { height: 360px; }
  .hero-section { min-height: 100svh; }
  .hero-content { padding-top: calc(var(--nav-height) + 1rem); }
  .hero-eyebrow { font-size: 0.62rem; letter-spacing: 0.25em; }
  .hero-title { font-size: clamp(2.2rem, 11vw, 3.4rem); line-height: 1.08; }
  .hero-subtitle { font-size: 0.95rem; margin-bottom: 2rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .hero-buttons .btn-fm-primary,
  .hero-buttons .btn-fm-outline { width: 100%; }
  .fm-contact-form { padding: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  /* Move video controls up a touch so they clear the scroll cue */
  .video-controls { bottom: 1.25rem; left: 1.25rem; }
  .vid-btn { width: 38px; height: 38px; }

  /* Smaller floating WhatsApp on phones */
  .whatsapp-float { width: 52px; height: 52px; font-size: 1.5rem; bottom: 1.25rem; right: 1.25rem; }
  .back-to-top { bottom: 5rem; right: 1.25rem; }

  /* Stats: 2 per row reads better than cramped 4 */
  .stat-number { font-size: 2.4rem; }
}

/* ---- SMALL PHONES (below 480px) ---- */
@media (max-width: 480px) {
  .hero-title { font-size: 2.05rem; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item-wide { grid-column: span 1; }
  .gallery-item-tall { grid-row: span 1; }
  .fm-logo { font-size: 1.2rem; letter-spacing: 0.12em; }
  .marquee-strip span { font-size: 0.65rem; }
  .footer-legal { flex-direction: column; gap: 0.5rem; }
}