/* ============================================
   FerienFinder24 — Design System & Styles
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --accent: #ff751f;
  --accent-light: #ff943d;
  --accent-dark: #e5621a;
  --accent-bg: rgba(255, 117, 31, 0.08);

  /* Neutrals */
  --dark: #1a1a1a;
  --dark-700: #333333;
  --gray-600: #555555;
  --gray-400: #888888;
  --gray-300: #bbbbbb;
  --gray-200: #e0e0e0;
  --gray-100: #f5f5f5;
  --white: #ffffff;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fs-hero: clamp(2.2rem, 5vw, 3.6rem);
  --fs-h1: clamp(1.8rem, 4vw, 2.8rem);
  --fs-h2: clamp(1.4rem, 3vw, 2rem);
  --fs-h3: clamp(1.1rem, 2vw, 1.4rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 70px;
  --border-radius: 12px;
  --border-radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.07);

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;
}

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

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

body {
  font-family: var(--font-family);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--dark);
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xxl) 0;
}

.section--gray {
  background-color: var(--gray-100);
}

.section__title {
  font-size: var(--fs-h1);
  text-align: center;
  margin-bottom: var(--space-lg);
  font-weight: 800;
}

.section__subtitle {
  text-align: center;
  color: var(--gray-600);
  max-width: 600px;
  margin: -1.5rem auto var(--space-lg);
  font-size: 1.05rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-family);
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 117, 31, 0.3);
}

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 117, 31, 0.4);
}

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

.btn--outline:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--small {
  padding: 0.6rem 1.4rem;
  font-size: var(--fs-small);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.navbar__logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar__logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.navbar__link {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--dark-700);
  position: relative;
  padding: 0.25rem 0;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--transition);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__link:hover {
  color: var(--accent);
}

.navbar__link.active {
  color: var(--accent);
  font-weight: 600;
}

/* Hamburger Menu */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
  z-index: 1001;
}

.navbar__hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--nav-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.25) 60%,
      rgba(255, 117, 31, 0.15) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 750px;
  padding: var(--space-lg);
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero__title span {
  color: var(--accent-light);
}

.hero__subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-lg);
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* ============================================
   CARDS — Offers
   ============================================ */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.offer-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  cursor: pointer;
}

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

.offer-card__image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.offer-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.offer-card:hover .offer-card__image img {
  transform: scale(1.08);
}

.offer-card__badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: var(--accent);
  color: var(--white);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: var(--fs-small);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 117, 31, 0.3);
}

.offer-card__heart {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-size: 1rem;
}

.offer-card__heart:hover {
  background: var(--white);
  transform: scale(1.1);
}

.offer-card__heart.liked {
  color: #e74c3c;
}

.offer-card__body {
  padding: var(--space-md);
}

.offer-card__location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-small);
  color: var(--gray-400);
  margin-bottom: 0.4rem;
}

.offer-card__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.offer-card__rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.offer-card__stars {
  color: #f5a623;
  font-size: var(--fs-small);
  letter-spacing: 2px;
}

.offer-card__rating-text {
  font-size: var(--fs-small);
  color: var(--gray-600);
  font-weight: 500;
}

.offer-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-200);
}

.offer-card__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.offer-card__price small {
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--gray-400);
}

.offer-card__cta {
  font-size: var(--fs-small);
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition-fast);
}

.offer-card__cta:hover {
  gap: 0.6rem;
}

/* ============================================
   CARDS — Blog
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

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

.blog-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

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

.blog-card__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.06);
}

.blog-card__body {
  padding: var(--space-md);
}

.blog-card__category {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.blog-card__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.blog-card__title a:hover {
  color: var(--accent);
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--gray-400);
}

.blog-card__meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ============================================
   ABOUT / WELCOME SECTION
   ============================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about__content {
  padding-right: var(--space-lg);
}

.about__label {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.about__title {
  font-size: var(--fs-h1);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.about__text {
  color: var(--gray-600);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.about__stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.about__stat {
  text-align: center;
}

.about__stat-number {
  font-size: var(--fs-h1);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.about__stat-label {
  font-size: var(--fs-small);
  color: var(--gray-400);
  margin-top: 0.3rem;
}

.about__image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

/* ============================================
   PAGE HEADER (for inner pages)
   ============================================ */
.page-header {
  padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xl);
  text-align: center;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
}

.page-header__title {
  font-size: var(--fs-h1);
  font-weight: 800;
}

.page-header__subtitle {
  color: var(--gray-600);
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

/* ============================================
   BLOG ARTICLE PAGE
   ============================================ */
.article {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + var(--space-lg)) var(--space-md) var(--space-xxl);
}

.article__hero-image {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-md);
}

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

.article__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--gray-400);
  margin-bottom: var(--space-sm);
}

.article__title {
  font-size: var(--fs-h1);
  font-weight: 800;
  margin-bottom: var(--space-lg);
}

.article__content h2 {
  font-size: var(--fs-h2);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.article__content h3 {
  font-size: var(--fs-h3);
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
}

.article__content p {
  color: var(--gray-600);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.article__content ul,
.article__content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
  color: var(--gray-600);
}

.article__content li {
  margin-bottom: 0.5rem;
  list-style: disc;
}

.article__content img {
  width: 100%;
  border-radius: var(--border-radius);
  margin: var(--space-md) 0;
}

.article__content blockquote {
  border-left: 4px solid var(--accent);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  background: var(--accent-bg);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
  color: var(--gray-600);
}

/* Related Articles */
.related-articles {
  margin-top: var(--space-xxl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--gray-200);
}

.related-articles__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__brand p {
  margin-top: var(--space-sm);
  font-size: var(--fs-small);
  line-height: 1.8;
  max-width: 350px;
}

.footer__brand .navbar__logo {
  margin-bottom: var(--space-xs);
}

.footer__heading {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links a {
  font-size: var(--fs-small);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
  flex-shrink: 0;
}

.footer__social a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.footer__bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-small);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-md);
}

.footer__bottom-links a:hover {
  color: var(--accent);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE — Tablet (≤ 992px)
   ============================================ */
@media (max-width: 992px) {
  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about__content {
    padding-right: 0;
    order: 2;
  }

  .about__image {
    order: 1;
  }

  .about__image img {
    height: 350px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

/* ============================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --space-xxl: 3.5rem;
    --space-xl: 2.5rem;
  }

  /* Mobile Navigation */
  .navbar__hamburger {
    display: flex;
  }

  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-height) + var(--space-lg)) var(--space-lg) var(--space-lg);
    gap: var(--space-md);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 999;
  }

  .navbar__links.open {
    right: 0;
  }

  .navbar__link {
    font-size: 1.1rem;
  }

  /* Mobile Overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Hero */
  .hero {
    min-height: 70vh;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  /* Grids */
  .offers-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }

  .blog-grid,
  .blog-grid--two {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }

  /* About */
  .about__stats {
    gap: var(--space-md);
  }

  .about__image img {
    height: 280px;
  }

  /* Article */
  .article__hero-image {
    height: 250px;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* ============================================
   RESPONSIVE — Small Mobile (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
  .hero__content {
    padding: var(--space-md);
  }

  .about__stats {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .page-header {
    padding-top: calc(var(--nav-height) + var(--space-lg));
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: var(--fs-small);
  }
}