/* =============================================
   Host-Island.com — Main Stylesheet
   Tropical Illustrated Style, 2026
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&display=swap');

/* --- CSS Variables --- */
:root {
  --sand:       #F5E6C8;
  --sand-light: #FDF6E9;
  --ocean:      #2A7DA6;
  --ocean-dark: #1A5C7A;
  --ocean-light:#5BAFD6;
  --palm:       #3A7D44;
  --palm-light: #5DAA68;
  --sunset:     #E8794A;
  --coral:      #D95F3B;
  --driftwood:  #8B6F47;
  --dark:       #2C2416;
  --white:      #FFFFFF;
  --text:       #3A2E1E;
  --text-light: #6B5A3E;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', sans-serif;

  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 20px rgba(42, 125, 166, 0.12);
  --shadow-lg: 0 8px 40px rgba(42, 125, 166, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--sand-light);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: var(--ocean); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sunset); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--text-light); }

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 70px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Navigation --- */
.site-nav {
  background: rgba(253, 246, 233, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--sand);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
}

.nav-logo:hover { color: var(--ocean); }

.nav-logo svg {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 30px;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--ocean);
  color: var(--white);
}

/* --- Hero / Site Header --- */
.site-hero {
  background: linear-gradient(180deg, #87CEEB 0%, #5BAFD6 35%, #2A7DA6 65%, #F5E6C8 100%);
  overflow: hidden;
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.hero-art {
  width: 100%;
  max-width: 1200px;
  display: block;
}

.hero-text-box {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hero-text-box h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 6px;
}

.hero-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  font-style: italic;
  margin: 0;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--sand) 0%, var(--ocean-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ocean);
  background: rgba(42, 125, 166, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.card-tag.food { color: var(--sunset); background: rgba(232, 121, 74, 0.1); }

.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.95rem; flex: 1; }

.card-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--sand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-light);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--sunset);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(232, 121, 74, 0.4);
}

.btn-primary:hover {
  background: var(--coral);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 121, 74, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--ocean);
  border: 2px solid var(--ocean);
}

.btn-outline:hover {
  background: var(--ocean);
  color: var(--white);
}

.btn-center {
  text-align: center;
  margin-top: 40px;
}

/* --- Welcome Band --- */
.welcome-band {
  background: var(--ocean);
  color: var(--white);
  text-align: center;
  padding: 48px 24px;
}

.welcome-band h2 { color: var(--white); margin-bottom: 12px; }
.welcome-band p { color: rgba(255,255,255,0.85); max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

/* --- Section alternating bg --- */
.section-alt { background: var(--sand); }

/* --- Stars --- */
.stars { color: var(--sunset); font-size: 1rem; letter-spacing: 2px; }

/* --- Divider wave --- */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* --- Footer --- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 28px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--sand);
  margin-bottom: 8px;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

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

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  margin-top: 20px;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--ocean-dark) 0%, var(--ocean) 60%, var(--ocean-light) 100%);
  padding: 60px 24px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero h1 { color: var(--white); position: relative; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.85); position: relative; font-size: 1.1rem; margin: 0; }

/* --- Recipe detail styles --- */
.recipe-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.meta-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--sand);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--driftwood);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .card-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 4px; }
  .nav-links a { padding: 7px 12px; font-size: 0.85rem; }
  .section { padding: 50px 0; }
  .hero-text-box { top: 20px; width: 90%; }
}

@media (max-width: 520px) {
  .nav-links a { padding: 6px 8px; font-size: 0.78rem; }
}
