/* ============================================================
   Montecristi — Brand System
   Marca Destino Montecristi — Provincia Ecoturística
   ============================================================ */

:root {
  /* === BRAND COLORS === */
  --color-sol:        #D4A017;  /* Gold / sun — primary brand */
  --color-morro:      #2C4A3E;  /* Deep green — El Morro, nature */
  --color-arena:      #F5EFE0;  /* Sand — backgrounds */
  --color-cielo:      #4A90B8;  /* Sky blue — Caribbean */
  --color-text:       #1A1A1A;
  --color-text-muted: #6B6B6B;
  --color-white:      #FFFFFF;

  /* Derived shades */
  --color-morro-dark:   #1e3329;
  --color-morro-mid:    #3d6357;
  --color-morro-light:  #e8f0ed;
  --color-sol-light:    #e8c04a;
  --color-sol-dark:     #a87d10;
  --color-arena-dark:   #e5d9c3;
  --color-cielo-light:  #d0e8f5;
  --color-cielo-dark:   #2e6b8a;

  /* === TYPOGRAPHY === */
  --font-heading: Georgia, 'Times New Roman', Times, serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* === SPACING === */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* === RADII === */
  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* === SHADOWS === */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.10);
  --shadow:    0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.14);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.18);

  /* === TRANSITIONS === */
  --transition:      0.2s ease;
  --transition-slow: 0.4s ease;

  /* === LAYOUT === */
  --container-max:     1280px;
  --container-padding: 1rem;
  --header-height:     72px;
}

/* Responsive container padding */
@media (min-width: 640px)  { :root { --container-padding: 1.5rem; } }
@media (min-width: 1024px) { :root { --container-padding: 2rem;   } }


/* ============================================================
   BASE STYLES
   ============================================================ */

html { font-size: 16px; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: normal;
  color: var(--color-morro);
}

h1 { font-size: clamp(var(--text-3xl), 5vw,   var(--text-6xl)); }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl),  2.5vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); font-weight: 600; font-family: var(--font-body); }

/* Links */
a {
  color: var(--color-morro);
  transition: color var(--transition);
}
a:hover { color: var(--color-sol); }
a:focus-visible {
  outline: 2px solid var(--color-sol);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Paragraphs */
p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

/* Strong */
strong { font-weight: 600; }

/* Images */
img { height: auto; }

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--color-arena-dark);
  margin: var(--space-8) 0;
}


/* ============================================================
   LAYOUT
   ============================================================ */

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

.container--narrow {
  max-width: 800px;
}

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

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }
}

.section-header {
  margin-bottom: var(--space-12);
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* Grids */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}


/* ============================================================
   UTILITIES
   ============================================================ */

.text-center  { text-align: center; }
.text-muted   { color: var(--color-text-muted); }
.text-sol     { color: var(--color-sol); }
.text-morro   { color: var(--color-morro); }
.text-white   { color: var(--color-white); }

.bg-arena     { background-color: var(--color-arena); }
.bg-morro     { background-color: var(--color-morro); color: var(--color-white); }
.bg-morro h1, .bg-morro h2, .bg-morro h3 { color: var(--color-arena); }
.bg-white     { background-color: var(--color-white); }

.mt-auto  { margin-top: auto; }
.mb-4     { margin-bottom: var(--space-4); }
.mb-8     { margin-bottom: var(--space-8); }
.gap-4    { gap: var(--space-4); }

.flex         { display: 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; }
.items-center { align-items: center; }
.gap-2        { gap: var(--space-2); }
.gap-6        { gap: var(--space-6); }

/* Accessibility */
.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;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--color-morro);
  color: var(--color-white);
  border-radius: var(--radius);
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus {
  top: var(--space-4);
}

/* Page offset for fixed header */
main {
  padding-top: var(--header-height);
}

/* Closed notice */
.notice-closed {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: #fff3cd;
  border: 1px solid #f5c842;
  color: #7d5a00;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-6);
}
