/* ========================================================================
   Variables
   ======================================================================== */
:root {
  /* Colors - brand palette inspired by sky, sand, sea, and subtle coral */
  --color-bg: #f9fafb; /* warm near-white */
  --color-surface: #ffffff;
  --color-text: #1f2933; /* deep neutral */
  --color-muted: #6b7280; /* secondary text */

  --color-primary: #1e90ff; /* sky blue for primary actions */
  --color-primary-soft: #e0f2ff; /* soft sky tint for backgrounds */
  --color-accent: #ff7f50; /* subtle coral for highlights */
  --color-accent-soft: #ffe8dd;

  --color-sand: #f4e3c1; /* sandy beige */
  --color-turquoise: #38b2ac; /* soft turquoise */

  --color-success: #16a34a;
  --color-warning: #f59e0b;
  --color-danger: #dc2626;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2933;
  --gray-900: #111827;

  /* Typography - optimized for clean, trustworthy reading */
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", system-ui,
    -system-ui, sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (px converted to rem, base 16px) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radius for soft, inviting UI */
  --radius-none: 0;
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-full: 9999px;

  /* Shadows - soft, atmospheric, travel inspired depth */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 15px 35px rgba(15, 23, 42, 0.18);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 180ms ease-in-out;
  --transition-slow: 260ms ease-in-out;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }
}


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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

h1, h2, h3, h4, h5, h6,
p, figure, blockquote,
dl, dd {
  margin: 0;
}

ul[class], ol[class] {
  padding: 0;
  margin: 0;
  list-style: none;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

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

button {
  border: none;
  background: none;
  padding: 0;
}

textarea {
  resize: vertical;
}

/* Improve text rendering */
body, input, button, textarea, select {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ========================================================================
   Base Styles
   ======================================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  background: radial-gradient(circle at top, #e0f4ff 0, var(--color-bg) 40%, #fdfaf3 100%);
  color: var(--color-text);
}

main {
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.25rem, 3vw + 1.5rem, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.875rem, 2.2vw + 1.2rem, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

h3 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

h4 {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

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

strong {
  font-weight: 600;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  text-underline-offset: 0.15em;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-turquoise);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: var(--space-6) 0;
}


/* ========================================================================
   Accessibility & Focus
   ======================================================================== */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}


/* ========================================================================
   Layout Utilities
   ======================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

.section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.section--alt {
  background: linear-gradient(135deg, rgba(224, 244, 255, 0.7), rgba(253, 250, 243, 0.9));
}

/* Flex helpers */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

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

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-sm {
  gap: var(--space-3);
}

.gap-md {
  gap: var(--space-4);
}

.gap-lg {
  gap: var(--space-6);
}

/* Grid helpers */
.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Alignment helpers */
.text-center {
  text-align: center;
}

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

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-3); }
.mb-md { margin-bottom: var(--space-4); }
.mb-lg { margin-bottom: var(--space-6); }


/* ========================================================================
   Components
   ======================================================================== */

/* Buttons - primary actions for booking and consultation */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--font-size-sm);
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-turquoise));
  color: #ffffff!important;
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background-color: var(--color-surface);
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-xs);
}

.btn--secondary:hover {
  background-color: #f9fafb;
  box-shadow: var(--shadow-sm);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-primary);
  border-color: rgba(125, 211, 252, 0.6);
}

.btn--ghost:hover {
  background-color: rgba(224, 242, 254, 0.8);
}

.btn--accent {
  background: linear-gradient(135deg, var(--color-accent), #ff9966);
  color: #ffffff!important;
  box-shadow: var(--shadow-md);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Inputs & form controls - for organized booking forms */
.input,
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  background-color: #ffffff;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.input::placeholder,
textarea::placeholder {
  color: var(--gray-400);
}

.input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(30, 144, 255, 0.35);
}

.input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--color-danger);
}

label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  font-size: var(--font-size-sm);
  color: var(--gray-700);
}

.form-helper {
  margin-top: 0.25rem;
  font-size: var(--font-size-xs);
  color: var(--gray-500);
}

.form-error {
  margin-top: 0.25rem;
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

/* Card - for services, pricing, testimonials, blog snippets */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.card--soft {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 227, 193, 0.38));
  border: 1px solid rgba(250, 204, 171, 0.5);
}

.card__header {
  margin-bottom: var(--space-3);
}

.card__title {
  font-size: var(--font-size-lg);
  margin-bottom: 0.25rem;
}

.card__subtitle {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
}

.card__body {
  font-size: var(--font-size-sm);
}

.card__footer {
  margin-top: var(--space-4);
}

/* Badges - for pricing tags, trust labels, etc. */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge--accent {
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
}

.badge--primary {
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
}

/* Testimonial highlight */
.testimonial {
  position: relative;
  padding-left: var(--space-4);
  border-left: 3px solid rgba(56, 178, 172, 0.6);
  font-style: italic;
  color: var(--gray-700);
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  left: 0.35rem;
  top: -0.5rem;
  font-size: 2.5rem;
  color: rgba(148, 163, 184, 0.4);
}

/* Map & media wrapper - keep immersive visuals responsive */
.media-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: #000;
}

.media-frame--16x9::before {
  content: "";
  display: block;
  padding-bottom: 56.25%;
}

.media-frame--16x9 > iframe,
.media-frame--16x9 > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* CTA band for booking prompts */
.cta-band {
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.9), rgba(56, 178, 172, 0.9));
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.cta-band__title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-2);
}

.cta-band__text {
  margin-bottom: var(--space-4);
  color: rgba(255, 255, 255, 0.9);
}

/* ========================================================================
   Motion Preferences Overrides
   ======================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
