/*
Theme Name: La Dolce Vita Relocation
Theme URI: http://ladolcevita-relocation.com
Author: Marco Passoni
Description: Custom WordPress theme for La Dolce Vita Relocation - Helping Americans move to Italy
Version: 1.0
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Gilda+Display:wght@400&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Color Palette */
:root {
  --color-cream: #FFFBF5;
  --color-light-beige: #E3DFD2;
  --color-gold: #BB9255;
  --color-forest: #27402D;
  --color-black: #000000;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: var(--color-cream);
  color: var(--color-black);
  line-height: 1.6;
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Gilda Display', serif;
  font-weight: 400;
  line-height: 1.2;
}

/* Header Styles */
.site-header {
  background: var(--color-cream);
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  padding: 15px 0;
  background: rgba(255, 251, 245, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Gilda Display', serif;
  font-size: 24px;
  font-weight: 400;
  margin: 0;
}

.logo a {
  color: var(--color-forest);
  text-decoration: none;
}

/* Ensure image logo scales nicely */
.logo img {
  display: block;
  height: 80px;
  max-height: 80px;
  width: auto;
}

@media (max-width: 768px) {
  .logo img {
    height: 64px;
    max-height: 64px;
  }
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-black);
  text-decoration: none;
  font-weight: 400;
  font-size: 16px;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--color-gold);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-forest);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Image Styles */
.service-card img,
.path-card img {
  transition: transform 0.3s ease;
}

.service-card:hover img,
.path-card:hover img {
  transform: scale(1.05);
}

/* Logo Section Styling */
.logo-section {
  background: var(--color-cream);
  border-radius: 15px;
  padding: 40px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Button Styles */
.btn {
  display: inline-block;
  background: var(--color-gold);
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #a07c45;
  transform: translateY(-2px);
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 60px;
  color: var(--color-forest);
}

/* Two Column Layout */
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.column h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--color-forest);
}

.column p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-black);
}

/* Three Column Layout */
.three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.feature-card {
  text-align: center;
  padding: 30px 20px;
}

.feature-card h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--color-gold);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-black);
}

/* Background Sections */
.bg-forest {
  background: var(--color-forest);
  color: white;
}

.bg-forest .section-title {
  color: white;
}

.bg-forest .feature-card h4 {
  color: var(--color-gold);
}

.bg-light {
  background: var(--color-light-beige);
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.pricing-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
}

.pricing-card.featured {
  transform: scale(1.05);
  border: 3px solid var(--color-gold);
}

.pricing-header {
  background: var(--color-forest);
  color: white;
  padding: 30px 20px;
}

.pricing-card.featured .pricing-header {
  background: var(--color-gold);
}

.pricing-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 600;
}

.pricing-body {
  padding: 30px 20px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 30px;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-light-beige);
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.comparison-table th {
  background: var(--color-forest);
  color: white;
  padding: 20px;
  text-align: center;
  font-weight: 600;
}

.comparison-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--color-light-beige);
  text-align: center;
}

.comparison-table .feature-name {
  text-align: left;
  font-weight: 500;
  background: var(--color-cream);
}

/* Footer */
.site-footer {
  background: var(--color-forest);
  color: white;
  text-align: center;
  padding: 40px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .two-columns,
  .three-columns,
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Header & mobile menu */
  .site-header .container {
    flex-direction: row;
    gap: 12px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    top: 100px; /* below fixed header (taller logo) */
    left: 0;
    right: 0;
    background: var(--color-cream);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .main-nav.mobile-menu-open {
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 16px;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* Blog Styles */
.blog-pagination .page-numbers {
  display: inline-block;
  padding: 12px 18px;
  margin: 0 5px;
  background: var(--color-gold);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--color-forest);
  transform: translateY(-2px);
}

.blog-pagination .page-numbers.dots {
  background: transparent;
  color: var(--color-forest);
}

.post-card {
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.post-thumbnail {
  overflow: hidden;
}

.post-thumbnail img {
  transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.category-links a {
  color: var(--color-forest);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.category-links a:hover {
  color: var(--color-gold);
}

/* Single Post Styles */
.single-post .post-content {
  line-height: 1.8;
}

.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4 {
  color: var(--color-forest);
  margin: 2.5rem 0 1.5rem 0;
  font-family: 'Gilda Display', serif;
}

.single-post .post-content p {
  margin-bottom: 1.5rem;
}

.single-post .post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.single-post .post-content blockquote {
  border-left: 4px solid var(--color-gold);
  padding: 2rem;
  margin: 2rem 0;
  background: var(--color-cream);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  position: relative;
}

.single-post .post-content blockquote::before {
  content: '"';
  font-size: 4rem;
  color: var(--color-gold);
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: 'Gilda Display', serif;
}

.single-post .post-content ul,
.single-post .post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.single-post .post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Author Bio Styles */
.author-bio {
  border: 2px solid var(--color-light-beige);
  transition: all 0.3s ease;
}

.author-bio:hover {
  border-color: var(--color-gold);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Related Posts Styles */
.related-post-card {
  transition: all 0.3s ease;
}

.related-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.related-post-card h4 a {
  transition: color 0.3s ease;
}

.related-post-card:hover h4 a {
  color: var(--color-gold);
}

/* Navigation Links */
.post-navigation a {
  transition: all 0.3s ease;
}

.post-navigation a:hover {
  opacity: 0.8;
}

/* Featured Post on Blog Home */
.featured-post {
  transition: all 0.3s ease;
}

.featured-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* Tags Styling */
.post-tags a {
  transition: all 0.3s ease;
}

.post-tags a:hover {
  background: var(--color-gold) !important;
  color: white !important;
  transform: translateY(-2px);
}

/* Newsletter Section */
.newsletter-signup input[type="email"] {
  border: 2px solid var(--color-gold);
  transition: all 0.3s ease;
}

.newsletter-signup input[type="email"]:focus {
  outline: none;
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgba(39, 64, 45, 0.1);
}

/* Archive Page Specific Styles */
.blog-archive .posts-grid {
  margin-top: 0;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Widen mobile breakpoint just for the menu toggle visibility */
@media (max-width: 900px) {
  .mobile-menu-toggle { display: inline-flex !important; }
}