/* --- Global Base Styles --- */
body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  background-color: #f7f7f7; /* Porcelain background */
  color: #12324a; /* Slate navy for main text */
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #12324a;
  font-weight: 700;
}

h1 { font-size: 42px; line-height: 1.1; }
h2 { font-size: 36px; line-height: 1.2; }
h3 { font-size: 28px; line-height: 1.3; }
h4 { font-size: 22px; line-height: 1.4; }
p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}
p.lead-text {
  font-size: 20px;
  color: #555;
  line-height: 1.7;
  font-weight: 400;
}

/* --- Buttons --- */
.btn-cta, .cta-btn, .btn-hero {
  display: inline-block;
  background: #d6b86a; /* Gold accent */
  color: #12324a; /* Dark navy text for contrast */
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(214, 184, 106, 0.15);
  transition: all 0.3s ease;
}

.btn-cta:hover, .cta-btn:hover, .btn-hero:hover {
  background: #bf9d5a; /* Slightly darker gold on hover */
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(214, 184, 106, 0.3);
}

/* --- Dividers & Icons --- */
.divider {
  width: 80px; /* Adjust width as needed */
  height: 3px; /* Adjust thickness */
  background-color: #d6b86a; /* Gold accent */
  margin: 20px auto; /* Centered with spacing */
  border-radius: 2px; /* Rounded edges for softness */
}

.icon {
  font-size: 28px; /* Adjust size based on need */
  color: #d6b86a; /* Matches the gold theme */
  vertical-align: middle; /* Align with text */
  margin-right: 8px; /* Add spacing for readability */
}

/* --- Global Scroll-In Animations (Temporarily Modified for Visibility) --- */
section {
    opacity: 1; /* Make all sections visible by default */
    transform: translateY(0); /* Remove initial transform */
}


/* Exclude specific sections from scroll animation if needed */
/* For example, if you want your main Elementor header to load instantly */
.elementor-location-header section,
.elementor-location-footer section {
  opacity: 1 !important;
  transform: translateY(0) !important;
}


/* --- Hero Section - General Styling (Applied to Home, About, Services) --- */
.hero-section { /* Generic class for all hero sections */
  position: relative;
  height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f7f7f7; /* Off-white text color */
  overflow: hidden; /* Ensure pseudo-element blur is contained */
}

.hero-section::before { /* For blurred background effect */
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit; /* Inherits background from .hero-section */
  background-size: cover;
  background-position: center;
  filter: blur(8px); /* Adjust blur intensity */
  z-index: 1; /* Place behind overlay */
}

.hero-section .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 50, 74, 0.5); /* Semi-transparent dark overlay for contrast */
  z-index: 2; /* Above blurred background */
}

.hero-section .hero-content {
  position: relative;
  z-index: 3; /* Ensures text is on top */
  max-width: 800px;
  padding: 0 20px;
}

.hero-section h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px; /* Increased size for impact */
  font-weight: 700;
  margin-bottom: 20px;
  color: #f7f7f7 !important; /* Force off-white color */
  animation: fadeInUp 1.2s ease-in-out forwards;
}

.hero-section p {
  font-size: 20px; /* Increased size */
  line-height: 1.8;
  color: #f7f7f7 !important; /* Force off-white color */
  margin-bottom: 30px;
  animation: fadeInUp 1.5s ease-in-out forwards;
  animation-delay: 0.3s;
}

.hero-section .hero-subtitle { /* Specific for hero subtitles */
  font-style: italic;
  color: #d6b86a;
  font-size: 18px;
  animation: fadeInUp 1.8s ease-in-out forwards;
  animation-delay: 0.5s;
}

@keyframes fadeInUp { /* Global fade-in animation for hero text */
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --- Home Page Specific Styles --- */
.home-about-section { /* Section with 'Learn More About Oliver' button */
  padding: 60px 20px;
  text-align: center;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
}


/* --- About Page Specific Styles --- */
.about-intro h1 { /* Override specific H1 in About intro */
    font-size: 36px;
    margin-bottom: 20px;
}
.about-details { /* Image-left, Text-right section */
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  max-width: 1100px;
  margin: 40px auto;
}

.about-details .about-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}
.about-details .about-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}
.about-details .about-text {
  flex: 2;
  min-width: 480px;
}
.about-details h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: #12324a;
  margin-bottom: 16px;
}
.about-details p {
  color: #555;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}


/* --- Services & Solutions Page Specific Styles --- */
.services-pillars {
  background: #ffffff;
  padding: 60px 20px;
  text-align: center;
}
.services-pillars h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 40px;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.pillar {
  background: #f7f7f7;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left; /* Align pillar text left */
}
.pillar:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.pillar h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  margin-bottom: 12px;
  color: #12324a;
}
.pillar p {
  font-size: 16px;
  color: #555;
  margin-bottom: 12px;
}
.pillar .wit {
  font-style: italic;
  font-size: 14px;
  color: #d6b86a;
}
.secret-sauce {
  background: #12324a;
  padding: 60px 20px;
  color: #ffffff;
  text-align: center;
}
.secret-sauce h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 20px;
  color: #d6b86a;
}
.secret-sauce p {
  font-size: 18px;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}
.call-to-action {
  background: #f7f7f7;
  padding: 50px 20px;
  text-align: center;
}
.call-to-action h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 16px;
}
.call-to-action p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 20px;
}


/* --- Carew Page Specific Styles --- */
.carew-partnership .quote {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.6;
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background: #ffffff;
  border-left: 5px solid #d6b86a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.carew-partnership .quote-author {
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  color: #12324a;
  margin-top: 20px;
  text-align: right;
}
.carew-why {
  background: #f7f7f7;
  text-align: center;
}
.carew-why h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 40px;
}
.carew-why .why-flex {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-start;
  text-align: left;
}
.carew-why .why-text {
  flex: 2;
  min-width: 300px;
}
.carew-why .why-text p {
  margin-bottom: 15px;
}
.carew-why .why-highlight {
  flex: 1;
  min-width: 250px;
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.carew-why .why-highlight ul {
  list-style: none;
  padding: 0;
}
.carew-why .why-highlight li {
  margin-bottom: 10px;
  font-weight: 600;
  color: #12324a;
}
.carew-why .why-highlight li:before {
  content: "» ";
  color: #d6b86a;
  margin-right: 5px;
}
.core-programs {
  background: #ffffff;
  text-align: center;
}
.core-programs h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 40px;
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.program-card {
  background: #f7f7f7;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}
.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
.program-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}
.program-icon img {
  width: 100%;
  height: auto;
}
.program-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  margin-bottom: 10px;
  color: #12324a;
}
.program-card p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}
.carew-cta {
  background: #12324a; /* Dark background for CTA */
  color: #ffffff;
  text-align: center;
}
.carew-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: #d6b86a; /* Gold headline */
  margin-bottom: 20px;
}
.carew-cta p {
  font-size: 18px;
  color: #f7f7f7;
  max-width: 800px;
  margin: 0 auto 30px;
}


/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  h3 { font-size: 24px; }
  p { font-size: 15px; }
  p.lead-text { font-size: 18px; }

  .hero-section h1 { font-size: 40px; }
  .hero-section p { font-size: 18px; }
}

@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  p { font-size: 14px; }
  p.lead-text { font-size: 16px; }

  .hero-section { height: 400px; }
  .hero-section h1 { font-size: 36px; }
  .hero-section p { font-size: 16px; }

  .carew-hero h1 { font-size: 36px; }
  .carew-hero p { font-size: 16px; }

  .carew-flex { flex-direction: column; text-align: center; }
  .philosophy-content, .philosophy-credentials { text-align: center; padding-left: 0; }
  .philosophy-credentials ul { padding: 0; }
  .philosophy-credentials li { text-align: center; }
  .program-grid { grid-template-columns: 1fr; }
  .program-card { text-align: left; }
}

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  .hero-section h1 { font-size: 30px; }
  .hero-section p { font-size: 15px; }
  .carew-hero h1 { font-size: 30px; }
  .carew-hero p { font-size: 15px; }
}
/* Header/Footer Menu Custom Fix */
.site-navigation ul.menu li a,
.elementor-nav-menu__link {
  color: #d6b86a !important; /* Gold Menu Color */
  background-color: transparent !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

.site-navigation ul.menu li a:hover,
.elementor-nav-menu__link:hover {
  color: #bf9d5a !important; /* Slightly darker gold for hover */
}
/* --- Fixes for Global Issues --- */

/* Scroll Animation Adjusted (Debug Visibility) */
section {
  opacity: 1; /* Ensure all sections are visible immediately for testing */
  transform: translateY(0); /* No shift now */
}

/* Improved Menu Styling */
.site-navigation ul.menu li a,
.elementor-nav-menu__link {
  color: #d6b86a !important; /* Gold Menu Color */
  text-decoration: none !important;
  transition: color 0.3s ease;
}
.site-navigation ul.menu li a:hover,
.elementor-nav-menu__link:hover {
  color: #bf9d5a !important; /* Darker gold on hover */
}

