/* ==========================================================================
   ISOLATED SPECIALTIES STYLESHEET (`specialties.css`)
   Color Palette: "Vintage Horizon" Luxury System
   ========================================================================== */



#specialties {
  --primary-base: #fcfaf7; /* Creamy Alabaster Background */
  --contrast-dark: #3d4246; /* Charcoal Slate Typography */
  --accent-gold: #e9c46a; /* Logo Sun Gold *//* ==========================================================================
   ISOLATED SPECIALTIES STYLESHEET (`specialties.css`)
   Color Palette: "Vintage Horizon" Luxury System
   ========================================================================== */

:root {
  --primary-base: #fcfaf7; /* Creamy Alabaster Background */
  --contrast-dark: #3d4246; /* Charcoal Slate Typography */
  --accent-gold: #e9c46a; /* Logo Sun Gold */
  --accent-teal: #8ab1b1; /* Logo 'A' Muted Teal */
  --accent-terracotta: #d77e5e; /* Logo Palm Circle Terracotta */
  --white: #ffffff;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base Normalizations */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--primary-base);
  color: var(--contrast-dark);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
.hero-title-editorial,
.section-tagline-text {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--contrast-dark);
}

p {
  font-weight: 300;
  color: #555c61;
  margin-bottom: 1.5rem;
}

strong {
  font-weight: 500;
  color: var(--contrast-dark);
}

/* Global Utilities */
.text-center {
  text-align: center;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
}
.alignment-center {
  align-items: center;
}

/* Refined Media Container Shapes (Rounded Rectangles/Squares) */
.media-container-rounded {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}

.media-container-rounded img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--contrast-dark);
  border-color: var(--accent-gold);
}

.btn-primary:hover {
  background-color: transparent;
  border-color: var(--contrast-dark);
}

.btn-accent {
  background-color: transparent;
  color: var(--contrast-dark);
  border-color: var(--contrast-dark);
  margin-top: 1rem;
}

.btn-accent:hover {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* ==========================================================================
   HEADER NAVIGATION (Eco-Harmonized)
   ========================================================================== */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background-color: rgba(252, 250, 247, 0.96);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
}

.brand-logo-link {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  height: 60px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--contrast-dark);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition-smooth);
}

.nav-menu a:not(.nav-cta):hover,
.active-nav-link {
  color: var(--accent-teal) !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--contrast-dark);
  cursor: pointer;
}

/* ==========================================================================
   HERO & SHORTCUTS NAVIGATION
   ========================================================================== */
.specialties-hero {
  padding: 6rem 0 3rem 0;
  background-color: var(--primary-base);
}

.sub-heading-caps {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-terracotta);
  margin-bottom: 1rem;
}

.hero-title-editorial {
  font-size: 4rem;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.hero-lead-text {
  font-size: 1.15rem;
  font-weight: 300;
  color: #4a5054;
}

.specialties-shortcuts {
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(61, 66, 70, 0.08);
}

.shortcuts-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.shortcut-pill {
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--contrast-dark);
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  border: 1px solid rgba(61, 66, 70, 0.15);
  border-radius: 50px;
  transition: var(--transition-smooth);
}

.shortcut-pill:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  background-color: var(--white);
}

/* ==========================================================================
   DYNAMIC EDITORIAL ROW BLOCKS
   ========================================================================== */
.specialty-detail-block {
  padding: 8rem 0;
}

.background-alternate {
  background-color: rgba(138, 177, 177, 0.04);
}

.editorial-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
}

.row-reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.row-reverse .editorial-text-col {
  grid-column: 2;
}

.row-reverse .editorial-media-col {
  grid-column: 1;
}

.category-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-teal);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.editorial-text-col h2 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.section-tagline-text {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--accent-terracotta);
  margin-bottom: 2rem;
}

.advisor-creds-box {
  background-color: var(--white);
  padding: 1.5rem;
  border-left: 3px solid var(--accent-teal);
  margin: 2rem 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.01);
}

.advisor-creds-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Image Column Components */
.single-block-img {
  height: 650px;
  width: 100%;
}

#higher {
  margin-top: -120%;
}

/* Asymmetric Layered Image Stack Layout for Disney Section */
.image-stack-layout {
  position: relative;
  height: 520px;
  width: 100%;
}

.main-stacked-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  height: 420px;
  z-index: 2;
}

.sub-stacked-img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 70%;
  height: 300px;
  z-index: 1;
  border: 6px solid var(--primary-base); /* Elegant visual overlap separation */
}

.image-stack-layout:hover .media-container-rounded img {
  transform: scale(1.03);
}

/* ==========================================================================
   SUB-DESTINATIONS EDITORIAL PORTFOLIO GRID
   ========================================================================== */
.sub-destinations-title {
  margin-top: 8rem;
  margin-bottom: 4rem;
}

.sub-destinations-title h3 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

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

.sub-dest-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
  transition: var(--transition-smooth);
  border-top: 2px solid transparent;
}

.sub-dest-card h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--contrast-dark);
}

.sub-dest-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.sub-dest-card:hover {
  transform: translateY(-5px);
  border-top-color: var(--accent-gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}

/* Mini Card Mosaic for Niche Category Row */
.triple-mosaic-specialties {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.mosaic-mini-card {
  height: 240px;
}

.triple-mosaic-specialties .mosaic-mini-card:first-child {
  grid-row: span 2;
  height: 495px;
}

/* ==========================================================================
   FOOTER PACK (Ecosystem-Locked)
   ========================================================================== */
.main-footer {
  background-color: var(--contrast-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 5rem 0 2rem 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}

.footer-logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.footer-logo-link:hover {
  transform: scale(1.02);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

.footer-socials {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}

.footer-socials a {
  color: var(--white);
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.footer-socials a:hover {
  color: var(--accent-teal);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  margin-top: 3rem;
}

.footer-copyright {
  margin-bottom: 0.8rem;
}

.footer-compliance {
  font-family: "Montserrat", sans-serif;
  font-size: 0.68rem;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: #8a9094;
  max-width: 850px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==========================================================================
   MEDIA QUERY RESPONSIVE ENGINE (Specialties Isolated Framework)
   ========================================================================== */
@media screen and (max-width: 1024px) {
  .sub-destinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .editorial-row,
  .row-reverse {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .row-reverse .editorial-text-col,
  .row-reverse .editorial-media-col {
    grid-column: auto;
  }

  .hero-title-editorial {
    font-size: 2.8rem;
  }

  .editorial-text-col h2 {
    font-size: 2.2rem;
  }

  .sub-destinations-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .image-stack-layout,
  .single-block-img,
  .triple-mosaic-specialties .mosaic-mini-card:first-child {
    height: 350px;
  }

  .main-stacked-img {
    height: 280px;
    width: 85%;
  }
  .sub-stacked-img {
    height: 180px;
    width: 75%;
  }

  .triple-mosaic-specialties {
    grid-template-columns: 1fr;
  }
  .mosaic-mini-card {
    height: 200px;
  }

  /* Mobile Nav Morph Integration */
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-base);
    flex-direction: column;
    padding: 3rem 0;
    gap: 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: var(--transition-smooth);
  }

  .nav-menu.mobile-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .footer-brand,
  .footer-socials {
    align-items: center;
    justify-content: center;
  }
}

/* Ensures inline images, icons, and text maintain a clean horizontal alignment */
.editorial-text-col p,
.editorial-text-col a {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px; /* Adjusts space between text and inline images/icons */
}

.editorial-text-col img {
  display: inline-block;
  vertical-align: middle;
  max-height: 0.2.em; /* Keeps inline icons proportional to text font size */
  width: auto;
}

/* ==========================================================================
   PORTFOLIO OF WONDER ADDITIONAL STYLES
   ========================================================================== */

/* Layout Grid Extension */
.sub-destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

/* Card Geometry & Flex Alignment */
.sub-dest-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px; /* Matches our quiet luxury rounded edge standard */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

/* Image Wrapper Configuration within Cards */
.sub-dest-card .media-container-rounded {
  width: 100%;
  height: 240px;
  margin-bottom: 1.5rem;
  border-radius: 8px; /* Tighter internal corner radius for crisp framing */
  overflow: hidden;
}

.sub-dest-card .media-container-rounded img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

/* Subtle Hover Micro-interactions */
.sub-dest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(61, 66, 70, 0.05);
}

.sub-dest-card:hover .media-container-rounded img {
  transform: scale(1.04); /* Gentle breathing zoom effect on image focus */
}

/* Typography Enhancements inside Grid */
.sub-dest-card h4 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  color: var(--contrast-dark);
}

.sub-dest-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #555c61;
  flex-grow: 1; /* Pushes up against the content area to anchor the button below */
  margin-bottom: 2rem;
}

/* Bespoke Bottom Button Alignment */
.sub-dest-card .btn {
  width: 100%;
  text-align: center;
  margin-top: auto; /* Forces button lock directly at the bottom base of the card */
  padding: 0.8rem 1.5rem;
  font-size: 0.8rem;
}

/* Responsive Structural Collapsing */
@media screen and (max-width: 480px) {
  .sub-destinations-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sub-dest-card {
    padding: 1.5rem;
  }

  .sub-dest-card .media-container-rounded {
    height: 200px;
  }
}

/* ==========================================================================
   PORTFOLIO OF WONDER: GALLERY OF INSPIRATION
   ========================================================================== */

.portfolio-gallery-section {
  padding: 5rem 0;
  background-color: #f4f3ef; /* Light warm-gray background tone mirroring the mockup */
}

/* Header Text Blocks */
.gallery-intro-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 4rem auto;
}

.gallery-intro-header h1 {
  font-family: inherit;
  font-weight: 400;
  font-size: 2.2rem;
  letter-spacing: 1px;
  color: #1a1a1a;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.gallery-subtitle {
  font-size: 1.2rem;
  color: #4a4a4a;
  line-height: 1.5;
}

/* Base Gallery Display Grid */
.inspiration-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 4rem 3rem; /* Expanded vertical gap to give elements breathing space */
}

/* Individual Content Columns */
.gallery-item-block {
  display: flex;
  flex-direction: column;
  background: transparent; /* Removes old box containers */
  padding: 0;
}

.gallery-item-block h3 {
  font-size: 1.4rem;
  font-weight: 400;
  text-align: center;
  color: #2b2b2b;
  margin-bottom: 1.2rem;
}

/* Single Framed Image Layout */
.gallery-image-frame {
  width: 100%;
  height: 220px;
  border: 4px solid #9baab2; /* Custom elegant muted slate border framing the landscape */
  box-sizing: border-box;
  overflow: hidden;
  margin-bottom: 1.2rem;
}

.gallery-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dual Split Image Layout for Morocco Features */
.gallery-image-split-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  height: 220px;
  border: 4px solid #9baab2;
  box-sizing: border-box;
  background-color: #9baab2; /* Fills central dividing line perfectly */
  overflow: hidden;
  margin-bottom: 1.2rem;
}

.gallery-image-split-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Description Parameters */
.gallery-insight-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #222222;
  text-align: center;
  margin-bottom: 1.5rem;
  flex-grow: 1; /* Keeps spacing uniform */
}

.gallery-insight-text strong {
  font-weight: 700;
  color: #111111;
}

/* Perfectly Centered Editorial Buttons */
.gallery-btn-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto; /* Locks button framework directly below text stream */
}

.btn-gallery-outline {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: 1px solid #c5b69c; /* Subtle warm metallic-tinted frame border */
  background-color: transparent;
  color: #333333;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-gallery-outline:hover {
  background-color: #3d4246; /* Reverts cleanly back to your master brand focus palette */
  color: #ffffff;
  border-color: #3d4246;
}

/* Responsive Scaling Overrides */
@media screen and (max-width: 768px) {
  .inspiration-gallery-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

/* Base desktop setting to ensure the toggle button stays hidden on large screens */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--contrast-dark, #333);
  padding: 0.5rem;
  z-index: 1001; /* Keeps toggle above overlay elements */
}

/* ==========================================================================
   MOBILE RESPONSIVE BREAKPOINT
   ========================================================================== */
@media screen and (max-width: 768px) {
  /* Show the hamburger toggle button */
  .mobile-toggle {
    display: block;
  }

  /* Transform the main header into a relative boundary for the overlay positioning */
  .main-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Reconfigure the desktop menu into a hidden mobile dropdown overlay */
  .nav-menu {
    position: absolute;
    top: 100%; /* Sits cleanly right underneath the header height */
    left: 0;
    width: 100%;
    background-color: var(--white, #ffffff);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);

    /* Display properties for smooth structural stacking */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;

    /* Animation state: hidden out of view by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s;
    z-index: 1000;
  }

  /* The class injected by JavaScript to animate the panel seamlessly into view */
  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Adjust internal link parameters inside mobile layout stack */
  .nav-menu a {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0.6rem;
  }

  /* Force the action button CTA to behave beautifully inside mobile width constraints */
  .nav-menu .nav-cta {
    width: 80%;
    max-width: 280px;
    margin-top: 0.5rem;
  }
}
@media screen and (max-width: 768px) {
  .nav-menu {
    /* ... your existing positioning styles ... */

    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* ◄ ADD THIS: Tells mobile devices to ignore taps while hidden */

    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* ◄ ADD THIS: Restores full tap functionality when open */
    transform: translateY(0);
  }
}
@media screen and (max-width: 768px) {
  .main-header {
    position: relative;
    z-index: 1000; /* ◄ Ensures the header element sits high up */
  }

  .nav-menu {
    /* ... */
    z-index: 9999; /* ◄ Forces the dropdown to stay on the absolute top layer */
  }

  .mobile-toggle {
    /* ... */
    z-index: 10000; /* ◄ Keeps the hamburger button above the dropdown box */
  }
}

/* --- Global Refinements --- */
:root {
  --primary-gold: #c5a059; /* Matching your luxury branding */
  --deep-charcoal: #2c2c2c;
  --soft-white: #f9f9f9;
  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--deep-charcoal);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Navigation & Header Fixes --- */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.brand-logo-img {
  height: 60px;
  width: auto;
}

/* --- Hero & Shortcut Pills --- */
.specialties-hero {
  padding: 6rem 0 3rem;
  background-color: var(--soft-white);
}

.shortcuts-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
}

.shortcut-pill {
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.shortcut-pill:hover {
  background: var(--primary-gold);
  color: white;
}

/* --- Editorial Layout (The "Meat" of the Page) --- */
.specialty-detail-block {
  padding: 5rem 0;
}

.background-alternate {
  background-color: #f4f4f4;
}

.editorial-row {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.row-reverse {
  flex-direction: row-reverse;
}

.editorial-text-col,
.editorial-media-col {
  flex: 1;
}

.category-tag {
  display: block;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.section-tagline-text {
  font-style: italic;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.media-container-rounded img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* --- Theme Park Mosaic Grid --- */
.triple-mosaic-specialties {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.mosaic-mini-card:first-child {
  grid-column: span 2;
}

/* --- Sub-Destinations Grid --- */
.sub-destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.sub-dest-card {
  padding: 2rem;
  border: 1px solid #eee;
  background: white;
  transition: var(--transition-smooth);
}

.sub-dest-card:hover {
  border-color: var(--primary-gold);
  transform: translateY(-5px);
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Mobile & Tablet Portrait */
@media (max-width: 992px) {
  .editorial-row,
  .editorial-row.row-reverse {
    flex-direction: column; /* Stack vertically on small screens */
    text-align: center;
    gap: 3rem;
  }

  .editorial-text-col {
    order: 1; /* Always put text above image on mobile */
  }

  .editorial-media-col {
    order: 2;
    width: 100%;
  }

  .hero-title-editorial {
    font-size: 2.5rem;
  }
}

/* Mobile Small */
@media (max-width: 600px) {
  .shortcuts-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .shortcut-pill {
    width: 80%;
  }

  .main-header {
    padding: 1rem;
  }
}

/* 1. Control the structural layout of the grid itself */
.triple-mosaic-specialties {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

/* 2. Target the wrappers inside the grid to enforce clean bounds */
.triple-mosaic-specialties .mosaic-mini-card {
  border-radius: 8px; /* Keeps your styling uniform */
}

/* 3. Force the images to behave cleanly at a natural scale */
.triple-mosaic-specialties img {
  width: 100%;
  height: 220px; /* Sets a uniform frame height for the lower two rows */
  object-fit: cover; /* Stops stretching/distorting, scales naturally */
  object-position: center; /* Keeps the focal point centered */
  display: block;
}

/* 4. Make the top image taller since it spans the full width */
.triple-mosaic-specialties .mosaic-mini-card:first-child img {
  height: 480px; /* Gives the featured top item a commanding, cinematic frame */
}

/* --- Mobile Fix for the Mosaic --- */
@media (max-width: 600px) {
  .triple-mosaic-specialties img {
    height: 180px; /* Shrinks the height gracefully on small phones */
  }
  .triple-mosaic-specialties .mosaic-mini-card:first-child img {
    height: 200px; /* Adjusts top image so it looks perfect on a vertical screen */
  }
}

/* Terracotta Orange Button Variant */
.nav-payment-btn {
  background-color: #d77e5e !important; /* Terracotta Orange */
  border-color: #d77e5e !important;
  color: #ffffff !important;
}

.nav-payment-btn:hover {
  background-color: #c46b4b !important; /* Slightly deeper terracotta on hover */
  border-color: #c46b4b !important;
}

  --accent-teal: #8ab1b1; /* Logo 'A' Muted Teal */
  --accent-terracotta: #d77e5e; /* Logo Palm Circle Terracotta */
  --white: #ffffff;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}



/* Base Normalizations */


#specialties * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}



#specialties {
  scroll-behavior: smooth;
}



#specialties {
  background-color: var(--primary-base);
  color: var(--contrast-dark);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}



/* Typography Hierarchy */


#specialties h1, #specialties h2, #specialties h3, #specialties h4, #specialties .hero-title-editorial, #specialties .section-tagline-text {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--contrast-dark);
}



#specialties p {
  font-weight: 300;
  color: #555c61;
  margin-bottom: 1.5rem;
}



#specialties strong {
  font-weight: 500;
  color: var(--contrast-dark);
}



/* Global Utilities */


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


#specialties .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}


#specialties .container-narrow {
  max-width: 800px;
  margin: 0 auto;
}


#specialties .alignment-center {
  align-items: center;
}



/* Refined Media Container Shapes (Rounded Rectangles/Squares) */


#specialties .media-container-rounded {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}



#specialties .media-container-rounded img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}



/* Buttons */


#specialties .btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
}



#specialties .btn-primary {
  background-color: var(--accent-gold);
  color: var(--contrast-dark);
  border-color: var(--accent-gold);
}



#specialties .btn-primary:hover {
  background-color: transparent;
  border-color: var(--contrast-dark);
}



#specialties .btn-accent {
  background-color: transparent;
  color: var(--contrast-dark);
  border-color: var(--contrast-dark);
  margin-top: 1rem;
}



#specialties .btn-accent:hover {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
}



/* ==========================================================================
   HEADER NAVIGATION (Eco-Harmonized)
   ========================================================================== */


#specialties .main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background-color: rgba(252, 250, 247, 0.96);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
}



#specialties .brand-logo-link {
  display: flex;
  align-items: center;
}



#specialties .brand-logo-img {
  height: 60px;
  width: auto;
  display: block;
}



#specialties .nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}



#specialties .nav-menu a {
  text-decoration: none;
  color: var(--contrast-dark);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition-smooth);
}



#specialties .nav-menu a:not(.nav-cta):hover, #specialties .active-nav-link {
  color: var(--accent-teal) !important;
}



#specialties .mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--contrast-dark);
  cursor: pointer;
}



/* ==========================================================================
   HERO & SHORTCUTS NAVIGATION
   ========================================================================== */


#specialties .specialties-hero {
  padding: 6rem 0 3rem 0;
  background-color: var(--primary-base);
}



#specialties .sub-heading-caps {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-terracotta);
  margin-bottom: 1rem;
}



#specialties .hero-title-editorial {
  font-size: 4rem;
  line-height: 1.15;
  margin-bottom: 2rem;
}



#specialties .hero-lead-text {
  font-size: 1.15rem;
  font-weight: 300;
  color: #4a5054;
}



#specialties .specialties-shortcuts {
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(61, 66, 70, 0.08);
}



#specialties .shortcuts-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}



#specialties .shortcut-pill {
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--contrast-dark);
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  border: 1px solid rgba(61, 66, 70, 0.15);
  border-radius: 50px;
  transition: var(--transition-smooth);
}



#specialties .shortcut-pill:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  background-color: var(--white);
}



/* ==========================================================================
   DYNAMIC EDITORIAL ROW BLOCKS
   ========================================================================== */


#specialties .specialty-detail-block {
  padding: 8rem 0;
}



#specialties .background-alternate {
  background-color: rgba(138, 177, 177, 0.04);
}



#specialties .editorial-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
}



#specialties .row-reverse {
  grid-template-columns: 0.9fr 1.1fr;
}



#specialties .row-reverse .editorial-text-col {
  grid-column: 2;
}



#specialties .row-reverse .editorial-media-col {
  grid-column: 1;
}



#specialties .category-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-teal);
  font-weight: 500;
  margin-bottom: 0.5rem;
}



#specialties .editorial-text-col h2 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}



#specialties .section-tagline-text {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--accent-terracotta);
  margin-bottom: 2rem;
}



#specialties .advisor-creds-box {
  background-color: var(--white);
  padding: 1.5rem;
  border-left: 3px solid var(--accent-teal);
  margin: 2rem 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.01);
}



#specialties .advisor-creds-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
}



/* Image Column Components */


#specialties .single-block-img {
  height: 650px;
  width: 100%;
}



#specialties #higher {
  margin-top: -120%;
}



/* Asymmetric Layered Image Stack Layout for Disney Section */


#specialties .image-stack-layout {
  position: relative;
  height: 520px;
  width: 100%;
}



#specialties .main-stacked-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  height: 420px;
  z-index: 2;
}



#specialties .sub-stacked-img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 70%;
  height: 300px;
  z-index: 1;
  border: 6px solid var(--primary-base); /* Elegant visual overlap separation */
}



#specialties .image-stack-layout:hover .media-container-rounded img {
  transform: scale(1.03);
}



/* ==========================================================================
   SUB-DESTINATIONS EDITORIAL PORTFOLIO GRID
   ========================================================================== */


#specialties .sub-destinations-title {
  margin-top: 8rem;
  margin-bottom: 4rem;
}



#specialties .sub-destinations-title h3 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}



#specialties .sub-destinations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}



#specialties .sub-dest-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
  transition: var(--transition-smooth);
  border-top: 2px solid transparent;
}



#specialties .sub-dest-card h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--contrast-dark);
}



#specialties .sub-dest-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0;
}



#specialties .sub-dest-card:hover {
  transform: translateY(-5px);
  border-top-color: var(--accent-gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}



/* Mini Card Mosaic for Niche Category Row */


#specialties .triple-mosaic-specialties {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}



#specialties .mosaic-mini-card {
  height: 240px;
}



#specialties .triple-mosaic-specialties .mosaic-mini-card:first-child {
  grid-row: span 2;
  height: 495px;
}



/* ==========================================================================
   FOOTER PACK (Ecosystem-Locked)
   ========================================================================== */


#specialties .main-footer {
  background-color: var(--contrast-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 5rem 0 2rem 0;
  font-size: 0.9rem;
}



#specialties .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4rem;
  margin-bottom: 2rem;
}



#specialties .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}



#specialties .footer-logo-link {
  display: inline-block;
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}



#specialties .footer-logo-img {
  height: 50px;
  width: auto;
  display: block;
}



#specialties .footer-logo-link:hover {
  transform: scale(1.02);
}



#specialties .footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}



#specialties .footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition-smooth);
}



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



#specialties .footer-socials {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}



#specialties .footer-socials a {
  color: var(--white);
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}



#specialties .footer-socials a:hover {
  color: var(--accent-teal);
}



#specialties .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  margin-top: 3rem;
}



#specialties .footer-copyright {
  margin-bottom: 0.8rem;
}



#specialties .footer-compliance {
  font-family: "Montserrat", sans-serif;
  font-size: 0.68rem;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: #8a9094;
  max-width: 850px;
  margin: 0 auto;
  padding: 0 1rem;
}



/* ==========================================================================
   MEDIA QUERY RESPONSIVE ENGINE (Specialties Isolated Framework)
   ========================================================================== */


@media screen and (max-width: 1024px) {
  
#specialties .sub-destinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}



@media screen and (max-width: 768px) {
  
#specialties .editorial-row, #specialties .row-reverse {
    grid-template-columns: 1fr;
    gap: 3rem;
  }


  
#specialties .row-reverse .editorial-text-col, #specialties .row-reverse .editorial-media-col {
    grid-column: auto;
  }


  
#specialties .hero-title-editorial {
    font-size: 2.8rem;
  }


  
#specialties .editorial-text-col h2 {
    font-size: 2.2rem;
  }


  
#specialties .sub-destinations-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }


  
#specialties .image-stack-layout, #specialties .single-block-img, #specialties .triple-mosaic-specialties .mosaic-mini-card:first-child {
    height: 350px;
  }


  
#specialties .main-stacked-img {
    height: 280px;
    width: 85%;
  }

  
#specialties .sub-stacked-img {
    height: 180px;
    width: 75%;
  }


  
#specialties .triple-mosaic-specialties {
    grid-template-columns: 1fr;
  }

  
#specialties .mosaic-mini-card {
    height: 200px;
  }


  
/* Mobile Nav Morph Integration */

  
#specialties .mobile-toggle {
    display: block;
  }


  
#specialties .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-base);
    flex-direction: column;
    padding: 3rem 0;
    gap: 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: var(--transition-smooth);
  }


  
#specialties .nav-menu.mobile-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }


  
#specialties .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }


  
#specialties .footer-brand, #specialties .footer-socials {
    align-items: center;
    justify-content: center;
  }

}



/* Ensures inline images, icons, and text maintain a clean horizontal alignment */


#specialties .editorial-text-col p, #specialties .editorial-text-col a {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px; /* Adjusts space between text and inline images/icons */
}



#specialties .editorial-text-col img {
  display: inline-block;
  vertical-align: middle;
  max-height: 0.2.em; /* Keeps inline icons proportional to text font size */
  width: auto;
}



/* ==========================================================================
   PORTFOLIO OF WONDER ADDITIONAL STYLES
   ========================================================================== */



/* Layout Grid Extension */


#specialties .sub-destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}



/* Card Geometry & Flex Alignment */


#specialties .sub-dest-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px; /* Matches our quiet luxury rounded edge standard */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}



/* Image Wrapper Configuration within Cards */


#specialties .sub-dest-card .media-container-rounded {
  width: 100%;
  height: 240px;
  margin-bottom: 1.5rem;
  border-radius: 8px; /* Tighter internal corner radius for crisp framing */
  overflow: hidden;
}



#specialties .sub-dest-card .media-container-rounded img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}



/* Subtle Hover Micro-interactions */


#specialties .sub-dest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(61, 66, 70, 0.05);
}



#specialties .sub-dest-card:hover .media-container-rounded img {
  transform: scale(1.04); /* Gentle breathing zoom effect on image focus */
}



/* Typography Enhancements inside Grid */


#specialties .sub-dest-card h4 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  color: var(--contrast-dark);
}



#specialties .sub-dest-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #555c61;
  flex-grow: 1; /* Pushes up against the content area to anchor the button below */
  margin-bottom: 2rem;
}



/* Bespoke Bottom Button Alignment */


#specialties .sub-dest-card .btn {
  width: 100%;
  text-align: center;
  margin-top: auto; /* Forces button lock directly at the bottom base of the card */
  padding: 0.8rem 1.5rem;
  font-size: 0.8rem;
}



/* Responsive Structural Collapsing */


@media screen and (max-width: 480px) {
  
#specialties .sub-destinations-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }


  
#specialties .sub-dest-card {
    padding: 1.5rem;
  }


  
#specialties .sub-dest-card .media-container-rounded {
    height: 200px;
  }

}



/* ==========================================================================
   PORTFOLIO OF WONDER: GALLERY OF INSPIRATION
   ========================================================================== */



#specialties .portfolio-gallery-section {
  padding: 5rem 0;
  background-color: #f4f3ef; /* Light warm-gray background tone mirroring the mockup */
}



/* Header Text Blocks */


#specialties .gallery-intro-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 4rem auto;
}



#specialties .gallery-intro-header h1 {
  font-family: inherit;
  font-weight: 400;
  font-size: 2.2rem;
  letter-spacing: 1px;
  color: #1a1a1a;
  margin-bottom: 1rem;
  text-transform: uppercase;
}



#specialties .gallery-subtitle {
  font-size: 1.2rem;
  color: #4a4a4a;
  line-height: 1.5;
}



/* Base Gallery Display Grid */


#specialties .inspiration-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 4rem 3rem; /* Expanded vertical gap to give elements breathing space */
}



/* Individual Content Columns */


#specialties .gallery-item-block {
  display: flex;
  flex-direction: column;
  background: transparent; /* Removes old box containers */
  padding: 0;
}



#specialties .gallery-item-block h3 {
  font-size: 1.4rem;
  font-weight: 400;
  text-align: center;
  color: #2b2b2b;
  margin-bottom: 1.2rem;
}



/* Single Framed Image Layout */


#specialties .gallery-image-frame {
  width: 100%;
  height: 220px;
  border: 4px solid #9baab2; /* Custom elegant muted slate border framing the landscape */
  box-sizing: border-box;
  overflow: hidden;
  margin-bottom: 1.2rem;
}



#specialties .gallery-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* Dual Split Image Layout for Morocco Features */


#specialties .gallery-image-split-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  height: 220px;
  border: 4px solid #9baab2;
  box-sizing: border-box;
  background-color: #9baab2; /* Fills central dividing line perfectly */
  overflow: hidden;
  margin-bottom: 1.2rem;
}



#specialties .gallery-image-split-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* Description Parameters */


#specialties .gallery-insight-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #222222;
  text-align: center;
  margin-bottom: 1.5rem;
  flex-grow: 1; /* Keeps spacing uniform */
}



#specialties .gallery-insight-text strong {
  font-weight: 700;
  color: #111111;
}



/* Perfectly Centered Editorial Buttons */


#specialties .gallery-btn-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto; /* Locks button framework directly below text stream */
}



#specialties .btn-gallery-outline {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: 1px solid #c5b69c; /* Subtle warm metallic-tinted frame border */
  background-color: transparent;
  color: #333333;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
}



#specialties .btn-gallery-outline:hover {
  background-color: #3d4246; /* Reverts cleanly back to your master brand focus palette */
  color: #ffffff;
  border-color: #3d4246;
}



/* Responsive Scaling Overrides */


@media screen and (max-width: 768px) {
  
#specialties .inspiration-gallery-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

}



/* Base desktop setting to ensure the toggle button stays hidden on large screens */


#specialties .mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--contrast-dark, #333);
  padding: 0.5rem;
  z-index: 1001; /* Keeps toggle above overlay elements */
}



/* ==========================================================================
   MOBILE RESPONSIVE BREAKPOINT
   ========================================================================== */


@media screen and (max-width: 768px) {
  
/* Show the hamburger toggle button */

  
#specialties .mobile-toggle {
    display: block;
  }


  
/* Transform the main header into a relative boundary for the overlay positioning */

  
#specialties .main-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }


  
/* Reconfigure the desktop menu into a hidden mobile dropdown overlay */

  
#specialties .nav-menu {
    position: absolute;
    top: 100%; /* Sits cleanly right underneath the header height */
    left: 0;
    width: 100%;
    background-color: var(--white, #ffffff);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);

    /* Display properties for smooth structural stacking */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;

    /* Animation state: hidden out of view by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s;
    z-index: 1000;
  }


  
/* The class injected by JavaScript to animate the panel seamlessly into view */

  
#specialties .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }


  
/* Adjust internal link parameters inside mobile layout stack */

  
#specialties .nav-menu a {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0.6rem;
  }


  
/* Force the action button CTA to behave beautifully inside mobile width constraints */

  
#specialties .nav-menu .nav-cta {
    width: 80%;
    max-width: 280px;
    margin-top: 0.5rem;
  }

}


@media screen and (max-width: 768px) {
  
#specialties .nav-menu {
    /* ... your existing positioning styles ... */

    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* ◄ ADD THIS: Tells mobile devices to ignore taps while hidden */

    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s;
  }


  
#specialties .nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* ◄ ADD THIS: Restores full tap functionality when open */
    transform: translateY(0);
  }

}


@media screen and (max-width: 768px) {
  
#specialties .main-header {
    position: relative;
    z-index: 1000; /* ◄ Ensures the header element sits high up */
  }


  
#specialties .nav-menu {
    /* ... */
    z-index: 9999; /* ◄ Forces the dropdown to stay on the absolute top layer */
  }


  
#specialties .mobile-toggle {
    /* ... */
    z-index: 10000; /* ◄ Keeps the hamburger button above the dropdown box */
  }

}



/* --- Global Refinements --- */


#specialties {
  --primary-gold: #c5a059; /* Matching your luxury branding */
  --deep-charcoal: #2c2c2c;
  --soft-white: #f9f9f9;
  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}



#specialties {
  font-family: "Montserrat", sans-serif;
  color: var(--deep-charcoal);
  line-height: 1.7;
  overflow-x: hidden;
}



#specialties h1, #specialties h2, #specialties h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}



#specialties .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}



/* --- Navigation & Header Fixes --- */


#specialties .main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}



#specialties .brand-logo-img {
  height: 60px;
  width: auto;
}



/* --- Hero & Shortcut Pills --- */


#specialties .specialties-hero {
  padding: 6rem 0 3rem;
  background-color: var(--soft-white);
}



#specialties .shortcuts-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
}



#specialties .shortcut-pill {
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}



#specialties .shortcut-pill:hover {
  background: var(--primary-gold);
  color: white;
}



/* --- Editorial Layout (The "Meat" of the Page) --- */


#specialties .specialty-detail-block {
  padding: 5rem 0;
}



#specialties .background-alternate {
  background-color: #f4f4f4;
}



#specialties .editorial-row {
  display: flex;
  align-items: center;
  gap: 4rem;
}



#specialties .row-reverse {
  flex-direction: row-reverse;
}



#specialties .editorial-text-col, #specialties .editorial-media-col {
  flex: 1;
}



#specialties .category-tag {
  display: block;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}



#specialties .section-tagline-text {
  font-style: italic;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}



#specialties .media-container-rounded img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}



/* --- Theme Park Mosaic Grid --- */


#specialties .triple-mosaic-specialties {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}



#specialties .mosaic-mini-card:first-child {
  grid-column: span 2;
}



/* --- Sub-Destinations Grid --- */


#specialties .sub-destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}



#specialties .sub-dest-card {
  padding: 2rem;
  border: 1px solid #eee;
  background: white;
  transition: var(--transition-smooth);
}



#specialties .sub-dest-card:hover {
  border-color: var(--primary-gold);
  transform: translateY(-5px);
}



/* --- RESPONSIVE MEDIA QUERIES --- */



/* Mobile & Tablet Portrait */


@media (max-width: 992px) {
  
#specialties .editorial-row, #specialties .editorial-row.row-reverse {
    flex-direction: column; /* Stack vertically on small screens */
    text-align: center;
    gap: 3rem;
  }


  
#specialties .editorial-text-col {
    order: 1; /* Always put text above image on mobile */
  }


  
#specialties .editorial-media-col {
    order: 2;
    width: 100%;
  }


  
#specialties .hero-title-editorial {
    font-size: 2.5rem;
  }

}



/* Mobile Small */


@media (max-width: 600px) {
  
#specialties .shortcuts-wrapper {
    flex-direction: column;
    align-items: center;
  }


  
#specialties .shortcut-pill {
    width: 80%;
  }


  
#specialties .main-header {
    padding: 1rem;
  }

}



/* 1. Control the structural layout of the grid itself */


#specialties .triple-mosaic-specialties {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}



/* 2. Target the wrappers inside the grid to enforce clean bounds */


#specialties .triple-mosaic-specialties .mosaic-mini-card {
  border-radius: 8px; /* Keeps your styling uniform */
}



/* 3. Force the images to behave cleanly at a natural scale */


#specialties .triple-mosaic-specialties img {
  width: 100%;
  height: 220px; /* Sets a uniform frame height for the lower two rows */
  object-fit: cover; /* Stops stretching/distorting, scales naturally */
  object-position: center; /* Keeps the focal point centered */
  display: block;
}



/* 4. Make the top image taller since it spans the full width */


#specialties .triple-mosaic-specialties .mosaic-mini-card:first-child img {
  height: 480px; /* Gives the featured top item a commanding, cinematic frame */
}



/* --- Mobile Fix for the Mosaic --- */


@media (max-width: 600px) {
  
#specialties .triple-mosaic-specialties img {
    height: 180px; /* Shrinks the height gracefully on small phones */
  }

  
#specialties .triple-mosaic-specialties .mosaic-mini-card:first-child img {
    height: 200px; /* Adjusts top image so it looks perfect on a vertical screen */
  }

}



/* Terracotta Orange Button Variant */


#specialties .nav-payment-btn {
  background-color: #d77e5e !important; /* Terracotta Orange */
  border-color: #d77e5e !important;
  color: #ffffff !important;
}



#specialties .nav-payment-btn:hover {
  background-color: #c46b4b !important; /* Slightly deeper terracotta on hover */
  border-color: #c46b4b !important;
}



#partners {
  --primary-base: #fcfaf7; /* Creamy Alabaster Background */
  --contrast-dark: #3d4246; /* Charcoal Slate Typography */
  --accent-gold: #e9c46a; /* Logo Sun Gold */
  --accent-teal: #8ab1b1; /* Logo 'A' Muted Teal */
  --accent-terracotta: #d77e5e; /* Logo Palm Circle Terracotta */
  --white: #ffffff;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}


/* ==========================================================================
   1. VARIABLES & BASE PROPERTIES ("Vintage Horizon" Luxury Palette)
   ========================================================================== */


#partners {
  --primary-base: #fcfaf7; /* Creamy Alabaster Background */
  --contrast-dark: #3d4246; /* Charcoal Slate Typography */
  --accent-gold: #e9c46a; /* Logo Sun Gold */
  --accent-teal: #8ab1b1; /* Logo 'A' Muted Teal */
  --accent-terracotta: #d77e5e; /* Logo Palm Circle Terracotta */
  --white: #ffffff;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}



#partners * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}



#partners {
  scroll-behavior: smooth;
}



#partners {
  background-color: var(--primary-base);
  color: var(--contrast-dark);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}



/* Typography Hierarchy */


#partners h1, #partners h2, #partners h3, #partners h4, #partners h5, #partners h6, #partners .hero-title, #partners .about-headline, #partners .quote-text {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}



#partners p {
  font-weight: 300;
  color: #555c61;
  margin-bottom: 1.5rem;
}



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


#partners .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}



/* Grids & Layout Utility */


#partners .grid {
  display: grid;
  gap: 3rem;
}


#partners .grid-2 {
  grid-template-columns: repeat(2, 1fr);
}


#partners .grid-3 {
  grid-template-columns: repeat(3, 1fr);
}


#partners .alignment-center {
  align-items: center;
}



/* ==========================================================================
   UPDATED BRAND LOGO STYLES
   ========================================================================== */


#partners .brand-logo-link {
  display: inline-block;
  display: flex;
  align-items: center;
  text-decoration: none;
}



#partners .brand-logo-img {
  height: 60px; /* Adjust height to match your logo asset's proportions */
  width: auto; /* Maintains aspect ratio perfectly */
  display: block;
  transition: var(--transition-smooth);
}



/* Subtle interactive scale on hover */


#partners .brand-logo-link:hover .brand-logo-img {
  transform: scale(1.02);
}



/* Responsive adjustment for clean mobile scaling */


@media screen and (max-width: 768px) {
  
#partners .brand-logo-img {
    height: 45px; /* Slightly more compact on mobile viewports */
  }

}



/* Buttons & Interactive Elements */


#partners .btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  border-radius: 0; /* Flat editorial edges */
  transition: var(--transition-smooth);
  cursor: pointer;
}



#partners .btn-primary {
  background-color: var(--accent-gold);
  color: var(--contrast-dark);
  border: 1px solid var(--accent-gold);
}



#partners .btn-primary:hover {
  background-color: transparent;
  color: var(--contrast-dark);
  border-color: var(--contrast-dark);
}



#partners .btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}



#partners .btn-outline:hover {
  background-color: var(--white);
  color: var(--contrast-dark);
}



#partners .btn-accent {
  background-color: transparent;
  color: var(--contrast-dark);
  border: 1px solid var(--contrast-dark);
}



#partners .btn-accent:hover {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
}



#partners .btn-large {
  padding: 1.2rem 3rem;
  font-size: 0.95rem;
}



#partners .section-title {
  font-size: 2.8rem;
  margin-bottom: 4rem;
  position: relative;
  color: var(--contrast-dark);
}



/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */


#partners .main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background-color: rgba(252, 250, 247, 0.95);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
}



#partners .brand-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}



#partners .logo-sun {
  font-size: 1.8rem;
  color: var(--accent-gold);
}



#partners .logo-text h1 {
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  line-height: 1;
}



#partners .logo-text p {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin: 0;
}



#partners .nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}



#partners .nav-menu a {
  text-decoration: none;
  color: var(--contrast-dark);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition-smooth);
}



#partners .nav-menu a:not(.nav-cta):hover {
  color: var(--accent-teal);
}



#partners .mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--contrast-dark);
  cursor: pointer;
}



/* ==========================================================================
   3. HERO BANNER
   ========================================================================== */


#partners .hero-section {
  position: relative;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}



#partners .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}



#partners .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
  z-index: -1;
}



#partners .hero-content {
  max-width: 800px;
  padding: 0 2rem;
  color: var(--white);
}



#partners .hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 2rem;
}



#partners .hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
}



/* ==========================================================================
   4. PILLARS & SPECIALTIES
   ========================================================================== */


#partners .pillars-section {
  padding: 8rem 0;
}



#partners .pillar-card {
  padding: 2rem;
  transition: var(--transition-smooth);
}



#partners .pillar-icon {
  font-size: 2.2rem;
  color: var(--accent-teal);
  margin-bottom: 1.5rem;
}



#partners .pillar-card h4 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}



#partners .specialties-section {
  padding: 8rem 0;
  background-color: rgba(138, 177, 177, 0.06);
}



#partners .specialty-card {
  background-color: var(--white);
  padding: 3.5rem 2.5rem;
  border-top: 3px solid var(--accent-teal);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
}



#partners .specialty-card h5 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}



#partners .specialty-tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-terracotta);
  margin-bottom: 1.5rem;
}



/* ==========================================================================
   5. PORTFOLIO OF WONDER (ARCHED LAYOUT)
   ========================================================================== */


#partners .portfolio-section {
  padding: 4rem 0 8rem 0;
}



#partners .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}



/* Arch-top element mirroring mockups */


#partners .arch-frame {
  border-top-left-radius: 500px;
  border-top-right-radius: 500px;
  overflow: hidden;
}



#partners .portfolio-item {
  position: relative;
  height: 480px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
  transition: var(--transition-smooth);
}



#partners .portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}



#partners .portfolio-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: var(--white);
  text-align: center;
}



#partners .portfolio-caption h5 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}



#partners .portfolio-caption p {
  color: var(--accent-gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}



#partners .portfolio-item:hover {
  transform: translateY(-8px);
}



#partners .portfolio-item:hover img {
  transform: scale(1.05);
}



/* ==========================================================================
   6. ABOUT ADVISOR & CERTIFICATIONS
   ========================================================================== */


#partners .about-section {
  padding: 8rem 0;
}



#partners .about-image-wrapper {
  position: sticky;
  top: 2rem; /* Pins image near the top of the viewport during scroll */
  align-self: start;
  padding-right: 2rem;
}



#partners .about-portrait {
  width: 100%;
  max-height: 550px;
  object-fit: cover;
  border-bottom-left-radius: 200px; /* Sophisticated asymmetrical contour */
}



#partners .badge-card {
  position: absolute;
  bottom: -20px;
  right: 0;
  background-color: var(--white);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 280px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-left: 3px solid var(--accent-teal); /* Unified custom credential color */
}



#partners .badge-icon {
  font-size: 1.8rem;
  color: var(--accent-teal);
}



#partners .badge-card p {
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}



#partners .sub-heading-caps {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-terracotta);
  margin-bottom: 1rem;
}



#partners .about-headline {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 2rem;
}



/* ==========================================================================
   7. BRAND SPOTLIGHT & INSIGHTS
   ========================================================================== */


#partners .brand-spotlight {
  background-color: var(--contrast-dark);
  color: var(--white);
  padding: 7rem 2rem;
  position: relative;
}



#partners .spotlight-content {
  max-width: 700px;
  margin: 0 auto;
}



#partners .brand-spotlight h4 {
  font-size: 1.4rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  font-style: italic;
}



#partners .brand-spotlight h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}



#partners .brand-spotlight p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2.5rem;
}



#partners .news-section {
  padding: 8rem 0;
}



#partners .news-card {
  background-color: var(--white);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
  transition: var(--transition-smooth);
}



#partners .news-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}



#partners .news-body {
  padding: 2rem;
}



#partners .news-body h6 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}



#partners .news-card:hover {
  transform: translateY(-5px);
}



/* ==========================================================================
   8. TESTIMONIALS & REFINED CALL TO ACTION
   ========================================================================== */


#partners .testimonials-section {
  padding: 6rem 0;
  background-color: var(--white);
}



#partners .testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
}



#partners .quote-text {
  font-size: 2.2rem;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}



#partners .quote-author {
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--accent-teal);
}



#partners .cta-section {
  padding: 10rem 0;
  background-image:
    linear-gradient(rgba(252, 250, 247, 0.85), rgba(252, 250, 247, 0.85)),
    url("https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}



#partners .cta-container h2 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}



#partners .cta-container p {
  font-size: 1.1rem;
  margin-bottom: 3rem;
}



/* ==========================================================================
   9. FOOTER
   ========================================================================== */


#partners .main-footer {
  background-color: var(--contrast-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 5rem 0 2rem 0;
  font-size: 0.9rem;
}



#partners .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4rem;
  margin-bottom: 2rem;
}



#partners .footer-brand h5, #partners .footer-links h5 {
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}



#partners .footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}



#partners .footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition-smooth);
}



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



#partners .footer-socials {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}



#partners .footer-socials a {
  color: var(--white);
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}



#partners .footer-socials a:hover {
  color: var(--accent-teal);
}



#partners .footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}



/* ==========================================================================
   10. MEDIA QUERY (RESPONSIVE ENGINE)
   ========================================================================== */


@media screen and (max-width: 1024px) {
  
#partners .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  
#partners .portfolio-item {
    height: 400px;
  }

}



@media screen and (max-width: 768px) {
  
/* Layout Adjustments */

  
#partners .grid-2, #partners .grid-3 {
    grid-template-columns: 1fr;
    gap: 4rem;
  }


  
#partners .section-title {
    font-size: 2.2rem;
    margin-bottom: 3rem;
  }


  
/* Navigation Menu Morph */

  
#partners .mobile-toggle {
    display: block;
  }


  
#partners .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-base);
    flex-direction: column;
    padding: 3rem 0;
    gap: 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: var(--transition-smooth);
  }


  
#partners .nav-menu.mobile-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }


  
/* Hero Scaling */

  
#partners .hero-title {
    font-size: 2.8rem;
  }


  
#partners .hero-section {
    height: 70vh;
  }


  
/* About Spacing */

  
#partners .about-image-wrapper {
    padding-right: 0;
    margin-bottom: 3rem;
  }


  
#partners .about-headline {
    font-size: 2.2rem;
  }


  
/* Footer Grid Collapse */

  
#partners .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }


  
#partners .footer-socials {
    justify-content: center;
  }


  
#partners .cta-container h2 {
    font-size: 2.2rem;
  }

}



/* ==========================================================================
   UPDATED CERTIFICATION BADGE LOGO STYLES
   ========================================================================== */


#partners .badge-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px; /* Constraints the image width to fit elegantly next to the text */
  flex-shrink: 0; /* Prevents the image from squeezing on tight screens */
}



#partners .badge-logo-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}



/* Adjust the main card slightly to ensure vertical alignment stays centered */


#partners .badge-card {
  position: absolute;
  bottom: -20px;
  right: 0;
  background-color: var(--white);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  max-width: 320px; /* Slightly widened to gracefully accommodate image + text proportions */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-left: 3px solid var(--accent-teal);
}



/* ==========================================================================
   EDITORIAL JOURNAL ARTICLE PAGES
   ========================================================================== */


#partners .article-wrapper {
  padding: 6rem 0;
  background-color: var(--primary-base);
}



#partners .container-narrow {
  max-width: 800px; /* Constrains text width for a premium editorial bookfeel */
  margin: 0 auto;
}



#partners .article-hero {
  padding-bottom: 4rem;
}



#partners .article-main-title {
  font-size: 3.8rem;
  line-height: 1.15;
  margin-top: 1rem;
  margin-bottom: 2rem;
  color: var(--contrast-dark);
}



#partners .article-lead-text {
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 300;
  color: #4a5054;
  margin-bottom: 2rem;
}



#partners .article-meta {
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-teal);
}



#partners .meta-divider {
  margin: 0 0.8rem;
  color: var(--accent-gold);
}



/* Article Media Layout Blocks */


#partners .article-featured-image {
  width: 100%;
  margin-bottom: 5rem;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
  border-radius: 12px; /* Smooth rounded corners for the main header image */
  overflow: hidden; /* Clips image cleanly to the boundary shape */
}



#partners .article-featured-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}



#partners .image-credit {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-terracotta);
  margin-top: 0.8rem;
  text-align: right;
}



#partners .article-section {
  padding-bottom: 3rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid rgba(61, 66, 70, 0.08);
}



#partners .section-subtitle-editorial {
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-teal);
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--accent-teal);
  padding-bottom: 0.5rem;
  display: inline-block;
}



#partners .adventure-block {
  margin-bottom: 4rem;
}



#partners .adventure-block h3 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  color: var(--contrast-dark);
}



#partners .adventure-block p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 0;
}



/* 2-Image Split Layout */


#partners .image-split-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 4rem 0;
}



#partners .split-image-container {
  height: 380px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.02);
  border-radius: 8px; /* Clean rounded finish for standard split blocks */
  overflow: hidden;
}



#partners .split-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* 1-Image Landscape Layout */


#partners .single-wide-image-wrapper {
  width: 100%;
  height: 420px;
  margin: 4rem 0;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.02);
  border-radius: 12px; /* Matches main hero border rhythm */
  overflow: hidden;
}



#partners .single-wide-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* 3-Image Mosaic Layout Layout */


#partners .triple-image-mosaic {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  margin: 4rem 0;
}



#partners .mosaic-main {
  height: 480px;
  border-radius: 12px; /* Bold geometric feature anchors the layout */
  overflow: hidden;
}



#partners .mosaic-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



#partners .mosaic-sub-column {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 2rem;
}



#partners .mosaic-sub-item {
  height: 230px;
  border-radius: 8px; /* Sub-items feature a slightly tighter radius for scale */
  overflow: hidden;
}



#partners .mosaic-sub-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* Article Internal Footer */


#partners .article-internal-footer {
  padding-top: 2rem;
}



#partners .article-internal-footer p {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  color: var(--contrast-dark);
  margin-bottom: 1.5rem;
}



#partners .back-link-wrapper {
  margin-top: 3rem;
}



#partners .back-to-home-link {
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--contrast-dark);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}



#partners .back-to-home-link i {
  transition: transform 0.3s ease;
}



#partners .back-to-home-link:hover {
  color: var(--accent-terracotta);
}



#partners .back-to-home-link:hover i {
  transform: translateX(-5px);
}



/* ==========================================================================
   RESPONSIVE ADJUSTMENTS FOR ARTICLE PACK
   ========================================================================== */


@media screen and (max-width: 768px) {
  
#partners .article-main-title {
    font-size: 2.4rem;
  }


  
#partners .adventure-block h3 {
    font-size: 1.7rem;
  }


  
#partners .image-split-grid, #partners .triple-image-mosaic {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }


  
#partners .split-image-container, #partners .single-wide-image-wrapper, #partners .mosaic-main, #partners .mosaic-sub-item {
    height: 300px;
  }


  
#partners .mosaic-sub-column {
    gap: 1.5rem;
  }

}



/* ==========================================================================
   INTERACTIVE TESTIMONIAL SLIDESHOW STYLES
   ========================================================================== */


#partners .testimonials-section {
  padding: 8rem 0;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}



#partners .testimonial-container {
  position: relative;
  max-width: 950px !important;
}



#partners .testimonial-slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 2rem 0;
  min-height: 220px; /* Prevents layout shifting when shifting quotes lengths */
}



#partners .testimonial-slider {
  position: relative;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}



/* Base Hidden State for Slideshow Content */


#partners .testimonial-item {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    visibility 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}



/* Active Display State with Soft Editorial Fade In */


#partners .testimonial-item.active {
  position: relative;
  top: 0;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  z-index: 2;
}



#partners .quote-text {
  font-size: 2.1rem;
  font-style: italic;
  line-height: 1.45;
  margin-bottom: 2rem;
  color: var(--contrast-dark);
}



#partners .quote-author {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--accent-teal);
}



/* Minimalist Editorial Arrow Buttons */


#partners .slider-arrow {
  background: transparent;
  border: none;
  color: var(--contrast-dark);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 1rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition-smooth);
  z-index: 10;
  opacity: 0.4;
}



#partners .prev-arrow {
  left: -10px;
}


#partners .next-arrow {
  right: -10px;
}



#partners .slider-arrow:hover {
  opacity: 1;
  color: var(--accent-teal);
}



/* Sleek Tracking Navigation Dots */


#partners .slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 3rem;
}



#partners .dot {
  width: 6px;
  height: 6px;
  background-color: rgba(61, 66, 70, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-smooth);
}



#partners .dot.active {
  background-color: var(--accent-teal);
  transform: scale(1.3);
}



/* Responsive adjustment for clean mobile scaling */


@media screen and (max-width: 768px) {
  
#partners .testimonial-slider-wrapper {
    min-height: 320px; /* Accommodates wrapping lines safely */
    padding: 0 1rem;
  }

  
#partners .quote-text {
    font-size: 1.45rem;
  }

  
#partners .slider-arrow {
    position: relative;
    top: auto;
    transform: none;
    margin: 0 1.5rem;
  }

  
/* Move layout arrows below block text on mobile viewports for clean spacing */

  
#partners .testimonial-slider-wrapper {
    flex-direction: column;
  }

  
#partners .testimonial-slider {
    order: 1;
  }

  
#partners .prev-arrow {
    left: auto;
    order: 2;
  }

  
#partners .next-arrow {
    right: auto;
    order: 3;
  }

  
#partners .slider-dots {
    margin-top: 1.5rem;
    order: 4;
  }

}



/* ==========================================================================
   FOOTER LOGO STYLES
   ========================================================================== */


#partners .footer-logo-link {
  display: inline-block;
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}



#partners .footer-logo-img {
  height: 150px; /* Slightly more compact than the header for elegant grounding */
  width: auto; /* Preserves original aspect ratio */
  display: block;
}



/* Subtle hover interaction to match your header style */


#partners .footer-logo-link:hover {
  transform: scale(1.02);
}



/* Ensure proper vertical alignment in the footer grid */


#partners .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}



/* Center alignment for mobile viewports */


@media screen and (max-width: 768px) {
  
#partners .footer-brand {
    align-items: center;
    text-align: center;
  }

}



/* ==========================================================================
   FOOTER COMPLIANCE & LEGAL DISCLOSURES
   ========================================================================== */


#partners .footer-bottom {
  border-top: 1px solid rgba(61, 66, 70, 0.08);
  padding-top: 2rem;
  margin-top: 3rem;
}



#partners .footer-copyright {
  margin-bottom: 0.8rem;
}



#partners .footer-compliance {
  font-family: "Montserrat", sans-serif;
  font-size: 0.68rem; /* Keeps it minimal, precise, and discrete */
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: #8a9094; /* Softened contrast so it sits beautifully in the background */
  max-width: 850px;
  margin: 0 auto;
  padding: 0 1rem;
}



#partners #specialty-btn {
  display: flex;
  justify-content: center; /* Horizontally centers the button */
  align-items: center; /* Vertically centers the button */
  margin-top: 5%;
}



/* Base desktop setting to ensure the toggle button stays hidden on large screens */


#partners .mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--contrast-dark, #333);
  padding: 0.5rem;
  z-index: 1001; /* Keeps toggle above overlay elements */
}



/* ==========================================================================
   MOBILE RESPONSIVE BREAKPOINT
   ========================================================================== */


@media screen and (max-width: 768px) {
  
/* Show the hamburger toggle button */

  
#partners .mobile-toggle {
    display: block;
  }


  
/* Transform the main header into a relative boundary for the overlay positioning */

  
#partners .main-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }


  
/* Reconfigure the desktop menu into a hidden mobile dropdown overlay */

  
#partners .nav-menu {
    position: absolute;
    top: 100%; /* Sits cleanly right underneath the header height */
    left: 0;
    width: 100%;
    background-color: var(--white, #ffffff);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);

    /* Display properties for smooth structural stacking */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;

    /* Animation state: hidden out of view by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s;
    z-index: 1000;
  }


  
/* The class injected by JavaScript to animate the panel seamlessly into view */

  
#partners .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }


  
/* Adjust internal link parameters inside mobile layout stack */

  
#partners .nav-menu a {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 1.1rem;
  }


  
/* Force the action button CTA to behave beautifully inside mobile width constraints */

  
#partners .nav-menu .nav-cta {
    width: 80%;
    max-width: 280px;
    margin-top: 0.5rem;
  }

}



@media screen and (max-width: 768px) {
  
#partners .nav-menu {
    /* ... your existing positioning styles ... */

    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* ◄ ADD THIS: Tells mobile devices to ignore taps while hidden */

    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s;
  }


  
#partners .nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* ◄ ADD THIS: Restores full tap functionality when open */
    transform: translateY(0);
  }

}


@media screen and (max-width: 768px) {
  
#partners .main-header {
    position: relative;
    z-index: 1000; /* ◄ Ensures the header element sits high up */
  }


  
#partners .nav-menu {
    /* ... */
    z-index: 9999; /* ◄ Forces the dropdown to stay on the absolute top layer */
  }


  
#partners .mobile-toggle {
    /* ... */
    z-index: 10000; /* ◄ Keeps the hamburger button above the dropdown box */
  }

}



@media (max-width: 768px) {
  
#partners .portfolio-grid {
    grid-template-columns: 1fr; /* Drops down to a single column layout */
    gap: 2.5rem; /* Slightly larger gap to breathe on small screens */
  }


  
#partners .portfolio-item.arch-frame img {
    /* Scales down the height slightly so it remains perfectly balanced on mobile viewports */
    width: 100%; /* Maintains the full edge-to-edge container width */
  }

}



/***************************************/



/* About Section Base Layout Adjustment */


#partners .about-section {
  display: flex;
  flex-direction: column;
  gap: 4rem; /* Adds balanced breathing room between your content grid and the banner */
}



/* Logo Banner Container */


#partners .about-logo-banner {
  width: 100%;
  max-width: 1200px; /* Aligns with standard maximum layout container widths */
  margin: 0 auto;
  padding: 2.5rem 1rem 1rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08); /* Clean, elegant separator line */
  text-align: center;
}



/* Optional Small Title above the logos */


#partners .about-logo-banner .banner-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #777; /* Subtle text tone */
  margin-bottom: 2rem;
}



/* Flexbox Layout for Logos */


#partners .about-logo-banner .logo-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3.5rem; /* Horizontal and vertical distribution space */
}



/* Individual Logo Handling */


#partners .about-logo-banner .partner-logo {
  max-height: 45px; /* Keeps various brand logo shapes visually uniform */
  width: auto;
  object-fit: contain;
  opacity: 0.65; /* Elegant low-contrast look */
  filter: grayscale(
    0%
  ); /* Keeps brand identities matching your site template styling */
  transition:
    opacity 0.3s ease,
    filter 0.3s ease;
}



/* Subtle Hover Effect */


#partners .about-logo-banner .partner-logo:hover {
  opacity: 1;
  filter: grayscale(100%);
}



/* Mobile Responsiveness Fine-Tuning */


@media (max-width: 768px) {
  
#partners .about-section {
    gap: 3rem;
  }


  
#partners .about-logo-banner .logo-grid {
    gap: 2rem; /* Tightens logo spacing on mobile phones */
  }


  
#partners .about-logo-banner .partner-logo {
    max-height: 35px; /* Slightly reduces height constraint on small viewports */
  }

}



/* --- Excursion Spotlight Styles --- */


#partners .excursion-spotlight {
  padding: 6rem 0;
  background-color: #fdfbf7; /* Fresh, soft luxury cream background */
  color: #2c2c2c;
}



#partners .excursion-row {
  display: flex;
  align-items: center;
  gap: 5rem;
}



#partners .excursion-content-col {
  flex: 1.1;
}



#partners .excursion-visual-col {
  flex: 0.9;
}



/* Typography Refinements */


#partners .excursion-tag-caps {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #c5a059; /* Your brand gold */
  margin-bottom: 1rem;
}



#partners .excursion-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  font-weight: 600;
}



#partners .excursion-lead {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.2rem;
}



#partners .excursion-body {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 2rem;
}



/* Button Upgrades */


#partners .excursion-btn {
  background-color: var(--accent-terracotta);
  color: #ffffff;
  padding: 1rem 2rem;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: inline-block;
  border: 1px solid #c5a059;
}



#partners .excursion-btn:hover {
  background-color: transparent;
  color: #c5a059;
  transform: translateY(-2px);
}



/* Visual Structural Frame Matrix */


#partners .excursion-frame-matrix {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  height: 480px;
}



#partners .excursion-frame {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  background-color: #f1ebd9; /* Sophisticated placeholder tint */
  position: relative;
}



#partners .hero-frame {
  width: 75%;
  height: 400px;
  z-index: 1;
}



#partners .accent-frame {
  width: 50%;
  height: 260px;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  border: 6px solid #fdfbf7; /* Isolating border matching background */
}



#partners .excursion-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



/* Smart Placeholder Fallbacks if images are missing */


#partners .placeholder-fallback {
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
}



#partners .fallback-label {
  position: absolute;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  color: var(--accent-terracotta);
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
  text-align: center;
  padding: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}



/* --- RESPONSIVE BREAKPOINTS --- */


@media (max-width: 992px) {
  
#partners .excursion-row {
    flex-direction: column;
    text-align: center;
    gap: 4rem;
  }


  
#partners .excursion-frame-matrix {
    height: 420px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }


  
#partners .hero-frame {
    height: 350px;
  }


  
#partners .accent-frame {
    height: 220px;
    border-width: 4px;
  }

}



@media (max-width: 500px) {
  
#partners .excursion-title {
    font-size: 2.2rem;
  }


  
#partners .excursion-frame-matrix {
    height: 320px;
  }


  
#partners .hero-frame {
    height: 260px;
  }


  
#partners .accent-frame {
    height: 160px;
  }

}



/*******************************/



/* Makes the entire card clickable while preserving original styles */


#partners .pillar-card-link {
  display: block;
  text-decoration: none;
  color: inherit; /* Keeps your existing text color */
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}



#partners .pillar-card-link:hover {
  transform: translateY(
    -4px
  ); /* Gives a subtle visual cue that it's clickable */
}



/* Makes the whole banner clickable */


#partners .military-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}



#partners .military-card {
  background-color: #f8f9fa;
  border-left: 4px solid #1b365d;
  border-radius: 8px;
  padding: 30px;
  gap: 20px;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}



#partners .military-card-link:hover .military-card {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}



/* Image sizing and styling */


#partners .military-image-wrapper {
  overflow: hidden;
  border-radius: 6px;
}



#partners .military-img {
  width: 100%;
  height: 100%;
  max-height: 350px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}



#partners .military-content h3 {
  margin-top: 5px;
  margin-bottom: 12px;
}



#partners .military-content p {
  margin-bottom: 18px;
  line-height: 1.6;
}



#partners .pillar-link-text {
  font-weight: bold;
  color: #1b365d;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}



/* ==========================================================================
   Opulence Section - Vintage Horizon Palette
   Base: #FCFAF7 | Text/Charcoal: #3D4246 | Gold Accent: #E9C46A
   Muted Teal: #8AB1B1 | Terracotta Accent: #D77E5E
   ========================================================================== */



#partners .opulence-section {
  padding: 4rem 0;
  background-color: #fcfaf7; /* Creamy Alabaster background */
}



#partners .opulence-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}



#partners .opulence-card {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(138, 177, 177, 0.2); /* Soft Muted Teal border */
  padding: 2.5rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(61, 66, 70, 0.05);
}



#partners .opulence-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(61, 66, 70, 0.1);
  border-color: #8ab1b1;
}



#partners .opulence-image-wrapper {
  overflow: hidden;
  border-radius: 8px;
}



#partners .opulence-img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s ease;
}



#partners .opulence-card:hover .opulence-img {
  transform: scale(1.03);
}



#partners .sub-heading {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #d77e5e; /* Terracotta accent for section label */
  margin-bottom: 0.5rem;
}



#partners .opulence-content h3, #partners .military-section h3 {
  font-size: 2rem;
  color: #3d4246; /* Charcoal Slate */
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.25;
}



#partners .opulence-content p {
  color: #3d4246;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}



#partners .pillar-link-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: #3d4246;
  border-bottom: 2px solid #e9c46a; /* Sunset Gold underline */
  padding-bottom: 4px;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}



#partners .opulence-card:hover .pillar-link-text {
  color: #d77e5e;
  border-color: #d77e5e;
}



#partners .military-card:hover .pillar-link-text {
  color: #d77e5e;
  border-color: #d77e5e;
}



#partners .pillar-link-text i {
  color: #8ab1b1; /* Muted Teal arrow icon */
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}



#partners .opulence-card:hover .pillar-link-text i {
  transform: translateX(5px);
  color: #d77e5e;
}



#partners .military-card:hover .pillar-link-text i {
  transform: translateX(5px);
  color: #d77e5e;
}



/* ==========================================================================
   Experiences / Pillars Section - Vintage Horizon Palette
   Background: Soft Muted Teal Tint | Cards: White | Icons: Terracotta/Gold
   ========================================================================== */



#partners .pillars-section {
  margin-bottom: 5%;
  padding: 5rem 0;
  /* Option A: Pure Muted Teal (#8AB1B1) with dark text */
  /* Option B: Soft Muted Teal Tint (recommended for smooth section contrast) */
  background-color: rgba(138, 177, 177, 0.06);
}



#partners .pillars-section .section-title {
  color: #3d4246; /* Charcoal Slate */
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 3rem;
}



#partners .pillar-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}



#partners .pillar-card {
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
}



#partners .pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(61, 66, 70, 0.1);
  border-color: #d77e5e; /* Accent border on hover (Terracotta) */
}



/* Icons */


#partners .pillar-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background-color: #fcfaf7; /* Creamy Alabaster circle */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(233, 196, 106, 0.5); /* Soft Sunset Gold ring */
}



#partners .pillar-icon i {
  font-size: 1.75rem;
  color: #d77e5e; /* Terracotta icon color */
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}



#partners .pillar-card:hover .pillar-icon i {
  transform: scale(1.1);
  color: #8ab1b1; /* Shifts to Muted Teal on hover */
}



/* Typography */


#partners .pillar-card h4 {
  color: #3d4246; /* Charcoal Slate */
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.75rem;
}



#partners .pillar-card p {
  color: #3d4246;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.85;
}



/* Terracotta Orange Button Variant */


#partners .nav-payment-btn {
  background-color: #d77e5e !important; /* Terracotta Orange */
  border-color: #d77e5e !important;
  color: #ffffff !important;
}



#partners .nav-payment-btn:hover {
  background-color: #c46b4b !important; /* Slightly deeper terracotta on hover */
  border-color: #c46b4b !important;
}



/* Base Body Alignment */


#partners {
  background-color: var(--primary-base);
  color: var(--contrast-dark);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    sans-serif;
  margin: 0;
  padding: 0;
}



/* Supplier Section Container */


#partners .supplier-section {
  padding: 5rem 1.5rem;
  background-color: var(--primary-base);
}



#partners .supplier-container {
  max-width: 1200px;
  margin: 0 auto;
}



/* Header Typography */


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



#partners .sub-heading-caps {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-terracotta);
  margin-bottom: 0.75rem;
  font-weight: 600;
}



#partners .supplier-header {
  margin-bottom: 3rem;
}



#partners .supplier-header h2 {
  font-size: 2.5rem;
  color: var(--contrast-dark);
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 700;
}



#partners .supplier-header p {
  color: var(--contrast-dark);
  opacity: 0.85;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1.05rem;
}



/* Spotlight Hero Banner */


#partners .supplier-spotlight {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 3.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}



#partners .spotlight-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



#partners .spotlight-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  color: var(--white);
}



#partners .spotlight-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}



#partners .spotlight-overlay h3 {
  font-size: 1.85rem;
  margin: 0;
  font-weight: 700;
}



/* Responsive Supplier Grid */


#partners .supplier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}



/* Individual Card Styling */


#partners .supplier-card {
  background: var(--white);
  border: 1px solid rgba(61, 66, 70, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}



#partners .supplier-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(61, 66, 70, 0.08);
  border-color: var(--accent-teal);
}



/* Thumbnail Image Wrapper */


#partners .card-image-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
}



#partners .card-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}



#partners .supplier-card:hover .card-thumbnail {
  transform: scale(1.05);
}



/* Card Content Padding */


#partners .supplier-card-header, #partners .supplier-card-body, #partners .supplier-card-footer {
  padding: 0 1.5rem;
}



/* Card Header & Badge */


#partners .supplier-card-header {
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}



#partners .supplier-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: var(--contrast-dark);
}



#partners .supplier-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.65rem;
  border-radius: 50px;
  background-color: rgba(138, 177, 177, 0.15);
  color: var(--contrast-dark);
  font-weight: 600;
}



/* Card Body & Action Button */


#partners .supplier-card-body p {
  font-size: 0.9rem;
  color: var(--contrast-dark);
  opacity: 0.8;
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 1.5rem;
}



#partners .supplier-card-footer {
  padding-bottom: 1.5rem;
  margin-top: auto;
}



#partners .btn-supplier {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-terracotta);
  text-decoration: none;
  transition: var(--transition-smooth);
}



#partners .btn-supplier i {
  font-size: 0.78rem;
  transition: var(--transition-smooth);
}



#partners .btn-supplier:hover {
  color: var(--contrast-dark);
}



#partners .btn-supplier:hover i {
  transform: translate(2px, -2px);
}



@media screen and (max-width: 768px) {
  
/* Show the hamburger toggle button */

  
#partners .mobile-toggle {
    display: block;
  }


  
/* Transform the main header into a relative boundary for the overlay positioning */

  
#partners .main-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }


  
/* Reconfigure the desktop menu into a hidden mobile dropdown overlay */

  
#partners .nav-menu {
    position: absolute;
    top: 100%; /* Sits cleanly right underneath the header height */
    left: 0;
    width: 100%;
    background-color: var(--white, #ffffff);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);

    /* Display properties for smooth structural stacking */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;

    /* Animation state: hidden out of view by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s;
    z-index: 1000;
  }


  
/* The class injected by JavaScript to animate the panel seamlessly into view */

  
#partners .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }


  
/* Adjust internal link parameters inside mobile layout stack */

  
#partners .nav-menu a {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 1.1rem;
  }


  
/* Force the action button CTA to behave beautifully inside mobile width constraints */

  
#partners .nav-menu .nav-cta {
    width: 80%;
    max-width: 280px;
    margin-top: 0.5rem;
  }

}



/* ==========================================================================
   MOBILE & RESPONSIVE BREAKPOINTS
   ========================================================================== */



/* Tablet & Mobile Screens (834px and below) */


@media (max-width: 834px) {
  
#partners .supplier-section {
    padding: 3.5rem 1.25rem;
  }


  
#partners .supplier-spotlight {
    height: 240px;
    margin-bottom: 2.5rem;
  }


  
#partners .spotlight-overlay {
    padding: 1.5rem;
  }


  
#partners .spotlight-overlay h3 {
    font-size: 1.5rem;
  }


  
#partners .supplier-header h2 {
    font-size: 2rem;
  }

}



/* Mobile Devices (600px and below) */


@media (max-width: 600px) {
  
#partners .supplier-section {
    padding: 2.5rem 1rem;
  }


  
#partners .supplier-header {
    margin-bottom: 2rem;
  }


  
#partners .supplier-header h2 {
    font-size: 1.75rem;
  }


  
#partners .supplier-header p {
    font-size: 0.95rem;
  }


  
/* Compact Spotlight Banner for Small Screens */

  
#partners .supplier-spotlight {
    height: 180px;
    border-radius: 12px;
    margin-bottom: 2rem;
  }


  
#partners .spotlight-overlay {
    padding: 1rem 1.25rem;
  }


  
#partners .spotlight-badge {
    font-size: 0.65rem;
    margin-bottom: 0.25rem;
  }


  
#partners .spotlight-overlay h3 {
    font-size: 1.2rem;
  }


  
/* Single Column Grid & Mobile Touch Optimizations */

  
#partners .supplier-grid {
    grid-template-columns: 1fr; /* Forces full-width single column */
    gap: 1.5rem;
  }


  
#partners .supplier-card {
    border-radius: 10px;
  }


  
#partners .card-image-wrapper {
    height: 160px; /* Slightly shorter image for mobile viewports */
  }


  
#partners .supplier-card-header, #partners .supplier-card-body, #partners .supplier-card-footer {
    padding: 0 1.25rem;
  }


  
#partners .supplier-title {
    font-size: 1.2rem;
  }


  
/* Larger touch target for the direct link button on mobile */

  
#partners .btn-supplier {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(215, 126, 94, 0.08); /* Terracotta tint */
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 0.95rem;
  }


  
#partners .btn-supplier:hover {
    background-color: rgba(215, 126, 94, 0.15);
  }

}


html{scroll-behavior:smooth;} #about,#specialties,#partners{scroll-margin-top:90px;}

/* Match Opulence paragraph text on desktop only */
@media screen and (min-width: 769px) {
  .opulence-content p {
    font-size: 1rem;
    line-height: 1.6;
  }
}
