/* ==========================================================================
   GANNET ASIA TOURS — BASE & RESET STYLES
   ========================================================================== */

/* Modern CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text-main);
  background-color: var(--color-bg-ivory);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary-800);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

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

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* Sections */
.section {
  padding-top: clamp(2.5rem, 4.5vw, 4rem);
  padding-bottom: clamp(2.5rem, 4.5vw, 4rem);
  position: relative;
}

.section-sand {
  background-color: var(--color-bg-sand);
}

.section-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-text-white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.8);
}

/* Section Header Styles */
.section-header {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}

.section-header.text-left {
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-gold-500);
  margin-bottom: var(--space-3);
}

.eyebrow::before,
.eyebrow.with-lines::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: var(--color-gold-400);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  color: var(--color-text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.text-left .section-subtitle {
  margin-left: 0;
  margin-right: 0;
}

/* Gold Accent Text */
.text-gold {
  color: var(--color-gold-400) !important;
}

.text-white {
  color: var(--color-text-white) !important;
}

/* Page Header Banner (Internal Pages) */
.page-hero {
  position: relative;
  min-height: 48vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + var(--space-12)) var(--container-pad) var(--space-12);
  background-color: var(--color-primary-900);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-text-white);
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 25, 18, 0.75) 0%, rgba(7, 25, 18, 0.88) 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.page-hero h1 {
  color: var(--color-text-white);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  margin-bottom: var(--space-4);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-4);
}

.breadcrumbs a {
  color: var(--color-gold-300);
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.breadcrumbs span.divider {
  color: rgba(255, 255, 255, 0.4);
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary-600), var(--color-gold-400));
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--color-gold-400);
  outline-offset: 3px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-sand);
}

::-webkit-scrollbar-thumb {
  background: #1a503d;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-500);
}
