/* ============================================
   GRAN CANARIA TOURISM - Main Stylesheet
   Design: Warm Mediterranean / Atlantic Island
   ============================================ */

/* --- CSS Variables --- */
:root {
  --ocean: #1565a0;
  --ocean-deep: #0d3f66;
  --ocean-light: #e8f4f8;
  --sand: #f4a261;
  --sand-light: #fbe8d3;
  --terracotta: #e76f51;
  --volcanic: #2d3436;
  --palm: #2d6a4f;
  --palm-light: #d8f3dc;
  --cream: #fefcf6;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #6c757d;
  --gray-700: #495057;
  --gray-900: #212529;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --font-accent: 'Caveat', cursive;
  --container-max: 1280px;
  --navbar-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-900);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--terracotta); }

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

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; color: var(--gray-700); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-accent { font-family: var(--font-accent); color: var(--terracotta); font-size: 1.4em; }
.section-padding { padding: 80px 0; }
.section-padding-lg { padding: 100px 0; }
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-ocean-light { background: var(--ocean-light); }
.bg-sand-light { background: var(--sand-light); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-header .eyebrow {
  font-family: var(--font-accent);
  color: var(--terracotta);
  font-size: 1.3rem;
  display: block;
  margin-bottom: 8px;
}

.section-header h2 {
  margin-bottom: 16px;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}
.btn-primary:hover {
  background: #d4553b;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(231, 111, 81, 0.35);
}

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

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

.btn-sand {
  background: var(--sand);
  color: var(--volcanic);
}
.btn-sand:hover {
  background: #e8943f;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(244, 162, 97, 0.35);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 1000;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.nav-logo .logo-icon {
  font-size: 1.8rem;
}

.nav-logo .logo-icon-img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.meta-icon {
  vertical-align: -2px;
  margin-right: 2px;
  opacity: 0.7;
}

.card-meta .meta-icon {
  color: var(--ocean);
}

.footer-social .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
}

.footer-social .social-icon:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.footer-social .social-icon svg {
  width: 18px;
  height: 18px;
}

.navbar.scrolled .nav-logo { color: var(--ocean-deep); }

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

.nav-links a {
  display: block;
  padding: 8px 16px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all var(--transition);
  text-decoration: none;
}

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

.navbar.scrolled .nav-links a {
  color: var(--gray-700);
}
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--ocean);
  background: var(--ocean-light);
}

.nav-cta {
  padding: 10px 24px !important;
  background: var(--terracotta) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: #d4553b !important;
  transform: translateY(-1px);
}

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

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar.scrolled .nav-hamburger span { background: var(--gray-900); }

.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(165deg, var(--ocean-deep) 0%, var(--ocean) 50%, #1e88c9 100%);
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  will-change: opacity, transform;
  animation: kenburns 20s ease-in-out infinite alternate;
}

.hero-slide.active {
  opacity: 0.45;
}

.hero-slide:nth-child(1) { animation-name: kb-zoom-in; }
.hero-slide:nth-child(2) { animation-name: kb-pan-right; }
.hero-slide:nth-child(3) { animation-name: kb-zoom-out; }
.hero-slide:nth-child(4) { animation-name: kb-pan-left; }
.hero-slide:nth-child(5) { animation-name: kb-zoom-in-alt; }

@keyframes kb-zoom-in {
  0%   { transform: scale(1)     translate(0, 0); }
  100% { transform: scale(1.15)  translate(-1%, -1%); }
}
@keyframes kb-pan-right {
  0%   { transform: scale(1.1)  translate(-2%, 0); }
  100% { transform: scale(1.05) translate(2%, 1%); }
}
@keyframes kb-zoom-out {
  0%   { transform: scale(1.15) translate(1%, 1%); }
  100% { transform: scale(1)    translate(0, 0); }
}
@keyframes kb-pan-left {
  0%   { transform: scale(1.05) translate(2%, -1%); }
  100% { transform: scale(1.12) translate(-2%, 1%); }
}
@keyframes kb-zoom-in-alt {
  0%   { transform: scale(1)    translate(1%, 0); }
  100% { transform: scale(1.18) translate(-1%, -2%); }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none !important;
    transition: opacity 0.5s ease;
  }
}

/* Keep legacy support */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(13, 63, 102, 0.15) 0%,
    rgba(13, 63, 102, 0.05) 40%,
    rgba(13, 63, 102, 0.35) 100%
  );
}

.hero-decoration {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 120px;
  background: var(--cream);
  clip-path: ellipse(75% 100% at 50% 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 820px;
  animation: fadeInUp 1s ease-out;
}

.hero-content .eyebrow {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  color: var(--sand);
  margin-bottom: 12px;
  display: block;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.hero-stat {
  text-align: center;
}
.hero-stat .number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--sand);
}
.hero-stat .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Page Heroes (non-home) */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background: linear-gradient(165deg, var(--ocean-deep) 0%, var(--ocean) 100%);
  text-align: center;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--cream);
  clip-path: ellipse(75% 100% at 50% 100%);
}

.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }
.page-hero .eyebrow {
  font-family: var(--font-accent);
  font-size: 1.3rem;
  color: var(--sand);
  margin-bottom: 8px;
  display: block;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 20px 0;
  font-size: 0.9rem;
}
.breadcrumbs a { color: var(--gray-500); }
.breadcrumbs a:hover { color: var(--ocean); }
.breadcrumbs span { color: var(--gray-300); margin: 0 8px; }
.breadcrumbs .current { color: var(--gray-700); font-weight: 500; }

/* ============================================
   CARD COMPONENTS
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

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

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

.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-badge.family { background: var(--palm); }
.card-badge.adventure { background: var(--ocean); }
.card-badge.culture { background: #9c6644; }
.card-badge.nature { background: #2d6a4f; }
.card-badge.beach { background: var(--sand); color: var(--volcanic); }

.card-body {
  padding: 24px;
}

.card-body h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.card-body p {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.card-meta .icon { margin-right: 4px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--terracotta);
  font-weight: 600;
  font-size: 0.95rem;
}
.card-link:hover { gap: 10px; color: #d4553b; }

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ============================================
   FEATURES / HIGHLIGHTS SECTION
   ============================================ */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.highlight-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.highlight-card .icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.highlight-card h4 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.highlight-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

/* ============================================
   FEATURED / SPLIT SECTIONS
   ============================================ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

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

.split-content .eyebrow {
  font-family: var(--font-accent);
  color: var(--terracotta);
  font-size: 1.3rem;
  display: block;
  margin-bottom: 8px;
}

.split-content h2 {
  margin-bottom: 20px;
}

.split-content p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.check-list {
  list-style: none;
  margin: 20px 0;
}

.check-list li {
  padding: 8px 0;
  padding-left: 32px;
  position: relative;
  color: var(--gray-700);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--palm);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ============================================
   WEATHER WIDGET
   ============================================ */
.weather-bar {
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean));
  padding: 24px 0;
  color: var(--white);
}

.weather-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.weather-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.weather-item .icon { font-size: 1.5rem; }
.weather-item strong { font-size: 1.1rem; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--sand-light);
  position: absolute;
  top: 10px;
  left: 24px;
  line-height: 1;
}

.testimonial-card p {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gray-700);
  margin-bottom: 20px;
  position: relative;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ocean-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.testimonial-author .name {
  font-weight: 600;
  color: var(--gray-900);
  display: block;
  font-size: 0.95rem;
}

.testimonial-author .location {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ============================================
   NEWSLETTER / CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean) 50%, #1e88c9 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(244, 162, 97, 0.1);
  border-radius: 50%;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.95);
}

.newsletter-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.4);
}

.newsletter-form button {
  white-space: nowrap;
}

/* ============================================
   ADSENSE PLACEHOLDERS
   ============================================ */
.ad-container {
  max-width: 100%;
  margin: 32px auto;
  text-align: center;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  color: var(--gray-500);
  font-size: 0.8rem;
}

.ad-container.ad-banner { min-height: 90px; }
.ad-container.ad-sidebar { min-height: 250px; }
.ad-container.ad-in-article { min-height: 200px; margin: 40px auto; max-width: 728px; }

/* ============================================
   BLOG
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card .card-body { padding: 28px; }

.blog-card .card-date {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.blog-card .card-body h3 { font-size: 1.2rem; margin-bottom: 12px; }
.blog-card .card-body p { font-size: 0.9rem; }

/* Blog Post Layout */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.blog-article { max-width: 100%; }

.blog-article h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}

.blog-article .article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
  color: var(--gray-500);
}

.blog-article .featured-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 32px;
  aspect-ratio: 16/9;
}

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

.article-content h2 { margin: 40px 0 16px; font-size: 1.6rem; }
.article-content h3 { margin: 32px 0 12px; font-size: 1.3rem; }
.article-content p { font-size: 1.05rem; line-height: 1.8; }
.article-content ul, .article-content ol { margin: 16px 0; padding-left: 24px; }
.article-content li { margin-bottom: 8px; color: var(--gray-700); }

.article-content blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  border-left: 4px solid var(--sand);
  background: var(--sand-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

/* Sidebar */
.blog-sidebar { position: sticky; top: 100px; }

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sand-light);
}

.sidebar-widget .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-widget .tag {
  padding: 6px 14px;
  background: var(--ocean-light);
  color: var(--ocean);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}

.sidebar-widget .tag:hover {
  background: var(--ocean);
  color: var(--white);
}

.recent-post {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.recent-post:last-child { border-bottom: none; }

.recent-post img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.recent-post h5 {
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 4px;
}

.recent-post .date {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ============================================
   FAMILY GUIDE
   ============================================ */
.age-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border: 2px solid var(--gray-300);
  border-radius: 50px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--gray-700);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--ocean);
  background: var(--ocean);
  color: var(--white);
}

/* Tip boxes */
.tip-box {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--sand-light);
  border-radius: var(--radius-md);
  margin: 24px 0;
  border-left: 4px solid var(--sand);
}

.tip-box.green {
  background: var(--palm-light);
  border-left-color: var(--palm);
}

.tip-box .tip-icon { font-size: 1.5rem; flex-shrink: 0; }
.tip-box p { margin-bottom: 0; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
  background: var(--white);
}

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

.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.contact-info-card .icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ocean-light);
  border-radius: var(--radius-sm);
}

.contact-info-card h4 { margin-bottom: 4px; }
.contact-info-card p { margin-bottom: 0; font-size: 0.95rem; }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--ocean); }

.faq-question .arrow {
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.faq-item.active .faq-question .arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--volcanic);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-about p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
  text-decoration: none;
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: var(--terracotta);
  color: var(--white);
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  transition: all var(--transition);
}

.footer-links a:hover { color: var(--sand); padding-left: 4px; }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--sand); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 300ms; }

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--ocean);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--terracotta);
  transform: translateY(-3px);
}

/* ============================================
   COOKIE NOTICE
   ============================================ */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--volcanic);
  color: rgba(255,255,255,0.9);
  padding: 20px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.cookie-notice.visible { transform: translateY(0); }

.cookie-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-inner p {
  color: rgba(255,255,255,0.8);
  margin: 0;
  font-size: 0.9rem;
}

.cookie-inner a { color: var(--sand); }

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: all var(--transition);
}

.cookie-accept { background: var(--terracotta); color: var(--white); }
.cookie-accept:hover { background: #d4553b; }
.cookie-decline { background: rgba(255,255,255,0.1); color: var(--white); }
.cookie-decline:hover { background: rgba(255,255,255,0.2); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid-4, .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .about-guide { flex-direction: column !important; text-align: center; gap: 20px !important; }
  :root { --navbar-height: 64px; }

  .section-padding { padding: 60px 0; }
  .section-padding-lg { padding: 70px 0; }

  /* Navbar mobile */
  .nav-hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    flex-direction: column;
    background: var(--white);
    padding: 80px 32px 32px;
    gap: 4px;
    transition: right var(--transition);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
  }

  .nav-links.active { right: 0; }

  .nav-links a {
    color: var(--gray-700) !important;
    padding: 14px 16px;
    font-size: 1.05rem;
  }

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

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
  }

  .mobile-overlay.active { display: block; }

  /* Hero mobile */
  .hero { min-height: 90vh; }
  .hero-content { padding: 100px 20px 60px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }

  /* Grids */
  .grid-2, .grid-3, .blog-grid { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; gap: 32px; }
  .split-section.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Blog sidebar */
  .blog-sidebar { grid-template-columns: 1fr; }

  /* Newsletter */
  .newsletter-form { flex-direction: column; }

  /* Cookie */
  .cookie-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .highlights-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .age-filter { gap: 8px; }
  .filter-btn { padding: 8px 16px; font-size: 0.85rem; }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .navbar, .footer, .cookie-notice, .back-to-top, .ad-container, .cta-section { display: none !important; }
  body { background: white; color: black; }
  .hero { min-height: auto; padding: 40px 0; }
}
