/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* Modern Design System & Variables */
:root {
  /* OKLCH Color Space (Progressive Enhancement ready) */
  --primary-oklch: oklch(0.23 0.05 145); /* Deep luxury forest green */
  --primary-light-oklch: oklch(0.32 0.07 142); /* Medium golf green */
  --primary-glow-oklch: oklch(0.45 0.10 140); /* Vibrant fairway green */
  
  --accent-oklch: oklch(0.78 0.12 85); /* Luxury Champagne Gold */
  --accent-hover-oklch: oklch(0.70 0.11 82); /* Darker Gold for hover states */
  --accent-glow-oklch: oklch(0.92 0.06 90); /* Very light gold glow */
  
  --bg-sand-oklch: oklch(0.98 0.01 85); /* Extremely soft warm sand cream */
  --bg-card-oklch: oklch(1 0 0); /* Pure white */
  --bg-dark-oklch: oklch(0.13 0.03 145); /* Extremely rich dark slate green */
  
  --text-dark-oklch: oklch(0.20 0.02 145); /* Rich dark gray with green hint */
  --text-muted-oklch: oklch(0.50 0.02 145); /* Medium gray for captions */
  --text-light-oklch: oklch(0.96 0.01 85); /* Crisp off-white */
  
  /* Fallback Hex Colors for pre-2024 browsers */
  --primary: #0f2c1d;
  --primary-light: #18442d;
  --accent: #d4af37;
  --accent-hover: #b8962c;
  --bg-sand: #fbf9f4;
  --bg-dark: #091710;
  --text-dark: #242c28;
  --text-muted: #6e7a73;
  --text-light: #f4f6f5;

  /* Fonts */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout Constants */
  --max-width: 1200px;
  --header-height: 80px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  /* Modern Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 44, 29, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 44, 29, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 44, 29, 0.12);
  --shadow-glass: 0 8px 32px 0 rgba(15, 44, 29, 0.04);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* @supports rule to apply oklch color values on supported browsers */
@supports (color: oklch(0% 0 0)) {
  :root {
    --primary: var(--primary-oklch);
    --primary-light: var(--primary-light-oklch);
    --accent: var(--accent-oklch);
    --accent-hover: var(--accent-hover-oklch);
    --bg-sand: var(--bg-sand-oklch);
    --bg-dark: var(--bg-dark-oklch);
    --text-dark: var(--text-dark-oklch);
    --text-muted: var(--text-muted-oklch);
    --text-light: var(--text-light-oklch);
  }
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-sand);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin-bottom: 1.2rem;
  font-weight: 300;
}

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

ul {
  list-style: none;
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-sand);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border: 2px solid var(--bg-sand);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

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

.section-padding {
  padding: 5rem 0;
}

/* Header & Navigation */
header {
  height: var(--header-height);
  background: rgba(251, 249, 244, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(15, 44, 29, 0.05);
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(15, 44, 29, 0.95);
  color: var(--text-light);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: var(--shadow-md);
}

header.scrolled h1, header.scrolled .nav-link {
  color: var(--text-light);
}

header.scrolled .logo-img {
  filter: none;
}

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

.logo {
  display: flex;
  align-items: center;
  background-color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.logo:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
}

.logo-img {
  height: 38px;
  width: auto;
  transition: var(--transition-smooth);
}

header.scrolled .logo {
  background-color: transparent;
  box-shadow: none;
  padding: 0;
}

header.scrolled .logo:hover {
  transform: none;
}

header.scrolled .logo-img {
  height: 42px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary);
  position: relative;
  padding: 0.5rem 0;
  letter-spacing: 0.5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition-smooth);
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent);
}

.nav-cta {
  background-color: var(--primary);
  color: var(--text-light) !important;
  padding: 0.6rem 1.25rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  border: 1px solid var(--primary);
}

.nav-cta:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

header.scrolled .nav-cta {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--primary) !important;
}

header.scrolled .nav-cta:hover {
  background-color: transparent;
  color: var(--accent) !important;
  border-color: var(--accent);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--primary);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

header.scrolled .mobile-toggle span {
  background-color: var(--text-light);
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--primary);
  color: var(--text-light);
  overflow: hidden;
  padding: 8rem 0 6rem 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(1.1) brightness(0.85);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 44, 29, 0.9) 30%, rgba(15, 44, 29, 0.4) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 700;
  display: inline-block;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.25rem;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-description {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: rgba(244, 246, 245, 0.85);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--primary);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid rgba(244, 246, 245, 0.4);
}

.btn-secondary:hover {
  background-color: rgba(244, 246, 245, 0.1);
  border-color: var(--text-light);
  transform: translateY(-3px);
}

/* Glassmorphism Section Title */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.section-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

/* Package Grid & Cards (Home Page) */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.package-card {
  background: var(--bg-card-oklch);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  border: 1px solid rgba(15, 44, 29, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
}

.package-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 175, 55, 0.2);
}

.card-img-container {
  position: relative;
  height: 240px;
  overflow: hidden;
}

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

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

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(15, 44, 29, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: var(--shadow-sm);
}

.card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-hover);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.card-details {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(15, 44, 29, 0.05);
  padding-bottom: 0.75rem;
}

.card-details span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.card-bullets {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-bullets li {
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  display: flex;
  align-items: start;
  gap: 0.5rem;
}

.card-bullets li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 900;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid rgba(15, 44, 29, 0.05);
  padding-top: 1.25rem;
}

.card-price {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.price-amount {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
}

.card-btn {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 0.6rem 1.25rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--primary);
}

.package-card:hover .card-btn {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}

/* Destinations Summary Callout */
.info-callout {
  margin-top: 5rem;
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: var(--border-radius-lg);
  padding: 4rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.info-callout::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  bottom: -100px;
  right: -50px;
  pointer-events: none;
}

.info-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 4rem;
}

.info-left h3 {
  font-size: 2.2rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.info-left h3 span {
  color: var(--accent);
}

.info-left p {
  color: rgba(244, 246, 245, 0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.info-right {
  display: flex;
  justify-content: flex-end;
}

/* Features Grid (General layout) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.feature-item {
  background: var(--bg-card-oklch);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 44, 29, 0.02);
  transition: var(--transition-smooth);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.15);
}

.feature-icon {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Package Details Layout (Cascais & Vilamoura Pages) */
.details-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 3.5rem;
  margin-top: 3rem;
}

.details-main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Photo Gallery Grid & Lightbox elements */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  height: 420px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.gallery-thumbs-col {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-thumb-wrap {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--border-radius-sm);
}

.gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-thumb-wrap:hover .gallery-thumb-img {
  transform: scale(1.1);
  filter: brightness(0.9);
}

/* Interactive Tabs Component */
.tab-container {
  background: var(--bg-card-oklch);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 44, 29, 0.03);
  overflow: hidden;
  margin-top: 1rem;
}

.tab-nav {
  display: flex;
  background-color: var(--primary);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.tab-btn {
  flex: 1;
  padding: 1.2rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: none;
  border: none;
  color: rgba(244, 246, 245, 0.65);
  cursor: pointer;
  transition: var(--transition-fast);
  border-bottom: 3px solid transparent;
}

.tab-btn:hover {
  color: var(--text-light);
  background-color: rgba(244, 246, 245, 0.05);
}

.tab-btn.active {
  color: var(--accent);
  background-color: rgba(244, 246, 245, 0.08);
  border-bottom-color: var(--accent);
}

.tab-content {
  padding: 2.5rem;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Inclusions Grid inside Tabs */
.inclusions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.inclusion-card {
  display: flex;
  gap: 1rem;
  align-items: start;
}

.inclusion-icon {
  background: var(--bg-sand);
  color: var(--accent-hover);
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid rgba(15, 44, 29, 0.03);
}

.inclusion-text {
  font-size: 0.95rem;
}

.inclusion-title {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.inclusion-desc {
  color: var(--text-muted);
  font-weight: 300;
}

/* Partners Area */
.partners-section {
  margin-top: 2rem;
}

.partners-title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  border-bottom: 1px solid rgba(15, 44, 29, 0.05);
  padding-bottom: 0.5rem;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.partner-logo-card {
  background: var(--bg-card-oklch);
  border-radius: var(--border-radius-md);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 44, 29, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 90px;
  transition: var(--transition-smooth);
}

.partner-logo-card:hover {
  transform: scale(1.05);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.partner-logo-img {
  max-width: 120px;
  max-height: 55px;
  object-fit: contain;
  opacity: 0.85;
  transition: var(--transition-fast);
}

.partner-logo-card:hover .partner-logo-img {
  opacity: 1;
}

/* Booking & Inquiry Sidebar Card */
.sidebar-card {
  background: var(--bg-card-oklch);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 44, 29, 0.04);
  position: sticky;
  top: 110px;
  z-index: 10;
}

.sidebar-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.sidebar-price-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.sidebar-price-amount {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-hover);
  font-family: var(--font-heading);
}

.sidebar-price-amount span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
}

/* Form Styles & Modern Input validations */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid rgba(15, 44, 29, 0.15);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-sand);
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

/* Modern Validation States using :user-valid */
.form-input:user-valid {
  border-color: #2e7d32;
}

.form-input:user-invalid {
  border-color: #c62828;
  background-color: rgba(198, 40, 40, 0.02);
}

.form-error {
  font-size: 0.78rem;
  color: #c62828;
  margin-top: 0.25rem;
  display: none;
}

.form-input:user-invalid + .form-error {
  display: block;
}

.btn-submit {
  width: 100%;
  background-color: var(--primary);
  color: var(--text-light);
  border: 1px solid var(--primary);
  padding: 0.9rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-submit:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Gallery Page Grid */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-card {
  background: var(--bg-card-oklch);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 44, 29, 0.02);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.2);
}

.gallery-card-img-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.gallery-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.gallery-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.gallery-card-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.gallery-card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.gallery-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-hover);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.gallery-card-link:hover {
  color: var(--primary);
}

/* Info Welcome Area with Portrait */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.portrait-container {
  background: var(--bg-card-oklch);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 44, 29, 0.04);
  padding: 1rem;
}

.portrait-img {
  width: 100%;
  border-radius: var(--border-radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.portrait-caption {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 1rem;
}

.portrait-subcaption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.welcome-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.welcome-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

/* Recommendations Card styling */
.recom-container {
  margin-top: 5rem;
  background: var(--bg-card-oklch);
  border-radius: var(--border-radius-lg);
  padding: 4rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 44, 29, 0.03);
  text-align: center;
}

.recom-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.recom-empty-state {
  max-width: 500px;
  margin: 0 auto;
}

.recom-empty-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Contacts Layout */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-card {
  background: var(--bg-card-oklch);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 44, 29, 0.02);
  display: flex;
  gap: 1.25rem;
}

.contact-info-icon {
  background: var(--bg-sand);
  color: var(--accent-hover);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 1px solid rgba(15, 44, 29, 0.02);
}

.contact-info-text h4 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.contact-info-text p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.contact-info-text a:hover {
  color: var(--accent-hover);
}

/* Agency Metadata Footer box */
.agency-meta {
  background: rgba(15, 44, 29, 0.03);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  border: 1px dashed rgba(15, 44, 29, 0.15);
}

.agency-meta h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.agency-meta ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.agency-meta ul li strong {
  color: var(--primary);
}

/* Modal Window styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 23, 16, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card-oklch);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212, 175, 55, 0.2);
  text-align: center;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-icon {
  background: #e8f5e9;
  color: #2e7d32;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem auto;
  border: 1px solid rgba(46, 125, 50, 0.1);
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.modal-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Footer Section */
footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 5rem 0 2rem 0;
  margin-top: auto;
  border-top: 3px solid var(--accent);
}

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

.footer-col h4 {
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.footer-col p {
  color: rgba(244, 246, 245, 0.7);
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.footer-logo-img {
  height: 42px;
  filter: brightness(0) invert(1);
}

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

.footer-links a {
  color: rgba(244, 246, 245, 0.75);
  font-size: 0.92rem;
}

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

.footer-contact li {
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
  color: rgba(244, 246, 245, 0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(244, 246, 245, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copyright {
  font-size: 0.82rem;
  color: rgba(244, 246, 245, 0.5);
}

.footer-licensing {
  font-size: 0.82rem;
  color: rgba(244, 246, 245, 0.5);
  text-align: right;
}

/* Animations helper classes */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .details-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .sidebar-card {
    position: static;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .welcome-grid, .contacts-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .portrait-container {
    max-width: 320px;
    margin: 0 auto;
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .info-right {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .hero {
    padding: 6rem 0 4rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--primary);
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 2rem;
    transition: var(--transition-smooth);
    overflow-y: auto;
    align-items: stretch;
    text-align: center;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    color: var(--text-light);
    font-size: 1.15rem;
    display: block;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .gallery-thumbs-col {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 100px;
    gap: 0.75rem;
  }
  
  .info-callout {
    padding: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .footer-licensing {
    text-align: center;
  }
  
  .tab-btn {
    padding: 1rem 0.5rem;
    font-size: 0.85rem;
  }
  
  .tab-content {
    padding: 1.5rem;
  }
}
