/* 
  Fab Tours - Design System
  Brand color source of truth: logo palette

  Primary brand structure / headings / nav / links: #1C786B
  Primary CTA / action button: #4AA7CF
  Warm supporting accent, not for primary CTAs: #F28C20
  Secondary warm accent, very limited: #DF5A4D
  Subtle neutral tint: #D3CB9D
  Primary body text: #3F3F3F
  Muted text: #6B6B6B
  Footer / tertiary text: #7A7A7A
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  /* Brand palette */
  --c-warm-white: #F9F8F6;
  --c-brand-teal: #1C786B;
  --c-brand-blue: #4AA7CF;
  --c-accent-orange: #F28C20;
  --c-accent-coral: #DF5A4D;
  --c-stone: #D3CB9D;
  --c-surface-soft: #F3F0E8;
  --c-white: #FFFFFF;

  /* Text system */
  --c-text: #3F3F3F;
  --c-text-muted: #6B6B6B;
  --c-text-footer: #7A7A7A;
  --c-heading: #3F3F3F;

  /* Typography */
  --f-heading: 'Gazpacho', 'Playfair Display', serif;
  --f-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* UI */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.08);
  --border-soft: 1px solid rgba(63, 63, 63, 0.08);
  --border-muted: 1px solid rgba(42, 44, 41, 0.12);
  --text-soft: rgba(42, 44, 41, 0.8);
  --text-faint: rgba(42, 44, 41, 0.6);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
}

.header,
.section,
.footer,
.container {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 900px) {
  .header .container {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
  }

  .logo {
    min-width: 0;
    flex: 0 1 auto;
  }

  .logo img {
    max-width: 100%;
    height: auto;
    max-height: 54px;
  }

  .nav-toggle {
    flex: 0 0 auto;
    margin-left: 0;
  }

  .nav-wrapper {
    width: 100%;
    min-width: 0;
  }
}

body {
  font-family: var(--f-body);
  background-color: var(--c-warm-white);
  color: var(--c-text);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* Global text */
a {
  color: var(--c-brand-teal);
  text-decoration: none;
  transition: opacity var(--transition), color var(--transition), background-color var(--transition), border-color var(--transition), transform var(--transition);
}

a:hover {
  opacity: 0.82;
}

.text-link {
  color: var(--c-brand-teal);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link:hover {
  opacity: 1;
  color: var(--c-brand-teal);
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-heading);
  color: var(--c-heading);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 1rem 0;
}

h1 {
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.02;
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
}

h3 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.25;
}

h4 {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
}

p,
li,
input,
textarea,
select {
  color: var(--c-text);
}

p {
  margin: 0 0 1.25rem 0;
  font-size: clamp(16px, 1.5vw, 18px);
  max-width: 65ch;
}

small,
.meta,
.subtitle,
.eyebrow,
.caption,
.footer p,
.footer a {
  color: var(--c-text-muted);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

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

.section--subtle {
  background-color: var(--c-surface-soft);
  border-top: 1px solid rgba(63, 63, 63, 0.05);
  border-bottom: 1px solid rgba(63, 63, 63, 0.05);
}

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

.mb-2 {
  margin-bottom: 2rem;
}

.mb-4 {
  margin-bottom: 4rem;
}

.mt-4 {
  margin-top: 4rem;
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subtitle,
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 0.75rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background-color: rgba(249, 248, 246, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(63, 63, 63, 0.06);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 88px;
}

.logo img {
  height: auto;
  max-height: 64px;
  width: auto;
}

@media (max-width: 768px) {
  .logo img {
    max-height: 54px;
  }
}

.nav-wrapper {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--c-text);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: opacity var(--transition);
}

.nav-link:hover {
  opacity: 0.75;
}

.header-cta {
  flex: 0 0 auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-img {
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.logo-img--header {
  height: 80px;
  max-height: 80px;
  margin: -15px 0;
}

.logo-img--footer {
  height: 60px;
  max-height: 60px;
}

.translate-slot {
  display: flex;
  align-items: center;
  justify-content: center;
}

.visually-hidden-slot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: var(--radius-sm);
  background-color: var(--c-brand-teal);
  color: var(--c-white);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(28, 120, 107, 0.22);
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(28, 120, 107, 0.28);
  opacity: 1;
}

.btn--outline {
  background-color: transparent;
  color: var(--c-brand-teal);
  border: 1px solid var(--c-brand-teal);
  box-shadow: none;
}

.btn--outline:hover {
  background-color: var(--c-brand-teal);
  color: var(--c-white);
  border-color: var(--c-brand-teal);
  box-shadow: none;
}

.btn--quiet {
  background: transparent;
  color: var(--c-text);
  border: 1px solid rgba(42, 44, 41, 0.2);
  box-shadow: none;
}

.btn--quiet:hover {
  background: var(--c-brand-teal);
  color: var(--c-white);
  border-color: var(--c-brand-teal);
  box-shadow: none;
}

.route-primary-action {
  margin-bottom: 1.5rem;
}

.btn--warm {
  background-color: var(--c-brand-teal);
  box-shadow: 0 8px 20px rgba(28, 120, 107, 0.22);
}

.btn--warm:hover {
  box-shadow: 0 12px 26px rgba(28, 120, 107, 0.28);
}

/* Hero */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--space-xl) + 2rem);
  padding-bottom: var(--space-xl);
}

.hero--image {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero--image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(43, 43, 43, 0.18) 0%,
      rgba(43, 43, 43, 0.45) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1,
.hero p,
.hero .subtitle {
  color: var(--c-white);
}

.hero p {
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 2rem;
  max-width: 38rem;
}

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: var(--space-md);
}

.card {
  height: 100%;
  background-color: var(--c-white);
  border: var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(28, 120, 107, 0.14);
}

.card-content {
  padding: 1.5rem;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--c-heading);
}

.card p {
  font-size: 1rem;
  color: var(--c-text-muted);
  margin-bottom: 0;
}

.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

/* Placeholders */
.placeholder {
  display: block;
  width: 100%;
  background-color: #DADADA;
  border-radius: var(--radius-md);
}

.ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.ratio-3-4 {
  aspect-ratio: 3 / 4;
}

/* Split layouts */
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-xl);
  align-items: center;
}

/* Form */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--c-heading);
  font-size: 0.92rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  min-height: 52px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(28, 120, 107, 0.18);
  border-radius: var(--radius-sm);
  background-color: var(--c-white);
  color: var(--c-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--c-brand-teal);
  box-shadow: 0 0 0 3px rgba(28, 120, 107, 0.08);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
.footer {
  padding: var(--space-xl) 0 var(--space-md) 0;
  background-color: var(--c-white);
  border-top: 1px solid rgba(63, 63, 63, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-layout {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 4rem;
  align-items: flex-start;
}

.footer-col:first-child {
  padding-right: 2rem;
}

.footer-brand-link {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  max-width: 280px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.footer .footer-col h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--c-brand-teal);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-col a {
  display: inline;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-top: 2.5rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-faint);
  font-size: 0.9rem;
}

.footer-bottom-row a {
  display: inline;
  color: inherit;
  margin: 0;
}

.footer-contact-row {
  display: flex;
  gap: 1.5rem;
  color: var(--text-faint);
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  max-width: 20ch;
  color: var(--c-text-muted);
  margin-bottom: 0;
}

.footer h3 {
  font-size: 1.2rem;
  color: var(--c-text);
  margin-bottom: 1.25rem;
  font-family: var(--f-heading);
}

.footer a {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--c-text-muted);
}

.footer a:hover {
  color: var(--c-brand-teal);
  opacity: 1;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(63, 63, 63, 0.08);
  color: var(--c-text-footer);
  font-size: 0.92rem;
  flex-wrap: wrap;
}

.footer-bottom p,
.footer-bottom a {
  color: var(--c-text-footer);
  margin: 0;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin-bottom: 5px;
  background-color: var(--c-brand-teal);
  transition: all var(--transition);
}

.nav-toggle span:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1100px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .footer-col:first-child {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .header .container {
    flex-wrap: wrap;
    gap: 1rem;
    min-height: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .nav-wrapper {
    display: block;
    width: 100%;
  }

  .nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(63, 63, 63, 0.08);
  }

  .nav.is-open {
    display: flex;
  }

  .split-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4.5rem;
  }

  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero {
    min-height: 68vh;
    padding-top: calc(var(--space-xl) + 1rem);
    padding-bottom: var(--space-xl);
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 56px);
  }

  .hero p {
    font-size: 1.05rem;
  }

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

  .card-content {
    padding: 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-layout {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

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

  .footer-bottom-row,
  .footer-contact-row {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* Hide Default Google Translate Banner */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

body {
  top: 0px !important;
  position: static !important;
}

#goog-gt-tt {
  display: none !important;
}

.goog-tooltip {
  display: none !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Language Selector Responsive Rules */
.lang-mobile {
  display: none !important;
}

@media (max-width: 900px) {
  .lang-desktop {
    display: none !important;
  }

  .lang-mobile {
    display: flex !important;
  }
}









/* Native GTranslate Boutique Overrides */
.gt_selector {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent !important;
  border: none !important;
  color: var(--c-text) !important;
  font-family: var(--f-body, sans-serif) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  opacity: 0.8 !important;
  padding: 0.1rem 0.3rem !important;
  cursor: pointer !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232b2b2b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.15rem center !important;
  background-size: 10px !important;
  outline: none !important;
  transition: opacity 0.2s ease, background-color 0.2s ease !important;
  border-radius: 4px !important;
  min-width: 0 !important;
  width: 2.5rem !important;
  text-align: center;
}

.gt_selector:hover {
  opacity: 1 !important;
  background-color: rgba(43, 43, 43, 0.04) !important;
}

/* Ensure selected option maintains styling */
.gt_selector option {
  font-family: var(--f-body, sans-serif) !important;
  font-size: 0.85rem !important;
  background-color: #FFFFFF !important;
  color: var(--c-text) !important;
}
