/* Holiday Travels - Static Site Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Source+Sans+3:wght@300;400;600;700&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-sand: #f5f0e8;
  --color-ocean: #1a6b8a;
  --color-ocean-dark: #134f66;
  --color-ocean-light: #e8f4f8;
  --color-warm: #c4873b;
  --color-warm-light: #f0dcc4;
  --color-text: #2c2c2c;
  --color-text-light: #666;
  --color-white: #ffffff;
  --color-border: #e0d8cc;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

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

a { color: var(--color-ocean); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-warm); }

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

/* ===== NAVIGATION ===== */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-white);
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.nav-links { display: flex; gap: 30px; list-style: none; }

.nav-links a {
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.nav-links a:hover { color: var(--color-warm-light); }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero--large { height: 520px; }

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--color-white);
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-content h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--color-white);
  margin: 16px auto 0;
}

.hero-content p {
  font-size: 1.15rem;
  font-weight: 300;
  margin-top: 12px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* ===== CONTAINER ===== */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== POST CARDS (Home) ===== */
.posts { padding: 50px 0 60px; }

.post-card {
  border-bottom: 1px solid var(--color-border);
  padding: 36px 0;
}

.post-card:first-child { padding-top: 0; }
.post-card:last-child { border-bottom: none; }

.post-card h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.post-card h2 a { color: var(--color-text); }
.post-card h2 a:hover { color: var(--color-ocean); }

.post-date {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-card p {
  color: var(--color-text-light);
  font-size: 1rem;
}

.post-card .read-more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-ocean);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-card .read-more:hover { color: var(--color-warm); }

/* Page navigation */
.page-nav {
  padding: 20px 0 50px;
  text-align: center;
}

.page-nav a {
  display: inline-block;
  padding: 10px 28px;
  border: 2px solid var(--color-ocean);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  margin: 0 6px;
}

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

/* ===== ARTICLE PAGE ===== */
.article { padding: 50px 0 60px; }

.article h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 8px;
}

.article .post-date { margin-bottom: 28px; }

.article p { margin-bottom: 18px; }

.article strong { color: var(--color-text); }

.article-image {
  margin: 30px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.back-link {
  display: inline-block;
  margin-top: 30px;
  padding: 10px 28px;
  border: 2px solid var(--color-ocean);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
}

.back-link:hover {
  background: var(--color-ocean);
  color: var(--color-white);
}

/* ===== CONTACT PAGE ===== */
.contact-section { padding: 50px 0 60px; }

.contact-section h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.contact-form {
  max-width: 500px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 20px;
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-ocean);
}

.contact-form textarea { height: 160px; resize: vertical; }

.contact-form button {
  padding: 12px 36px;
  background: var(--color-ocean);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover { background: var(--color-ocean-dark); }

/* ===== FOOTER ===== */
.footer {
  background: var(--color-ocean-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 30px 24px;
  font-size: 0.9rem;
}

.footer a { color: rgba(255,255,255,0.9); }
.footer a:hover { color: var(--color-warm-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { padding: 14px 20px; }
  .nav-logo { font-size: 1rem; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.8rem; }
  .hero { height: 320px; }
  .hero--large { height: 380px; }
  .hero-content h1 { font-size: 2.4rem; }
  .article h1 { font-size: 1.7rem; }
  .post-card h2 { font-size: 1.35rem; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .nav-links { gap: 12px; }
}
