/* CSS Variables */
:root {
  --color-primary: #1e3a5f;
  --color-primary-dark: #13273f;
  --color-accent: #e9a23b;
  --color-accent-dark: #c88428;
  --color-text: #2c2c2c;
  --color-text-light: #5a5a5a;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fb;
  --color-border: #e1e5eb;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --transition: all 0.25s ease;
  --container-width: 1200px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-bg);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.75em;
  color: var(--color-primary-dark);
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.logo span {
  color: var(--color-accent-dark);
}

.site-nav ul {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
}

.site-nav a:hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg);
  text-align: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.82), rgba(19, 39, 63, 0.72));
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 4rem 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--color-bg);
  margin-bottom: 1rem;
}

.hero .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-bg);
  border-color: var(--color-bg);
}

.btn-secondary:hover {
  background-color: var(--color-bg);
  color: var(--color-primary-dark);
  text-decoration: none;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
}

.features {
  background-color: var(--color-bg-alt);
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

/* Cards */
.feature-card {
  background-color: var(--color-bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Hotels */
.hotels {
  background-color: var(--color-bg-alt);
}

.hotel-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hotel-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 0;
  background-color: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.hotel-card:hover {
  box-shadow: var(--shadow-hover);
}

.hotel-image {
  overflow: hidden;
  min-height: 280px;
}

.hotel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.hotel-card:hover .hotel-image img {
  transform: scale(1.05);
}

.hotel-body {
  padding: 2rem;
}

.hotel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-top {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stars {
  color: var(--color-accent-dark);
  letter-spacing: 1px;
}

.score {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary-dark);
}

.hotel-location {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.amenities li {
  padding: 0.25rem 0.75rem;
  background-color: var(--color-bg-alt);
  border-radius: 50px;
  font-size: 0.85rem;
}

.review {
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
  margin: 1.25rem 0;
  font-style: italic;
  color: var(--color-text-light);
}

.review footer {
  font-style: normal;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 0.5rem;
  display: block;
}

/* Guide */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.guide-content h2 {
  font-size: 2.25rem;
}

.guide-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
}

.guide-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 1rem 0 1.5rem;
}

.guide-list li {
  margin-bottom: 0.75rem;
}

.guide-image {
  display: grid;
  gap: 1.5rem;
}

.guide-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 4 / 3;
}

/* CTA */
.cta {
  background-color: var(--color-primary);
  color: var(--color-bg);
  text-align: center;
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  color: var(--color-bg);
  font-size: 2.25rem;
}

.cta p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.signup-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.signup-form input[type="email"] {
  padding: 0.85rem 1.25rem;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  min-width: 280px;
  outline: none;
}

.signup-form input[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(233, 162, 59, 0.4);
}

.form-note {
  font-size: 0.85rem;
  opacity: 0.8;
}

.form-note a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background-color: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: var(--color-bg);
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--color-bg);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.disclaimer {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-primary-dark);
  color: var(--color-bg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 2000;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-banner .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

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

/* Policy pages */
.policy-page {
  background-color: var(--color-bg);
}

.policy-header {
  background-color: var(--color-bg-alt);
  padding: 4rem 0 2rem;
  text-align: center;
}

.policy-header h1 {
  font-size: 2.5rem;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.policy-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.policy-content p,
.policy-content li {
  margin-bottom: 0.75rem;
}

.policy-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.policy-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.policy-date {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hotel-card {
    grid-template-columns: 1fr;
  }

  .hotel-image {
    min-height: 240px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .signup-form {
    flex-direction: column;
    align-items: stretch;
  }

  .signup-form input[type="email"] {
    min-width: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .feature-card:hover,
  .hotel-card:hover .hotel-image img {
    transform: none;
  }
}
