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

:root {
  --color-primary: #1B263B;
  --color-secondary: #F8F7F2;
  --color-accent: #C5A059;
  --color-accent-dark: #8C6D33; /* Darker gold for text on white to meet 3:1 for large text, still below 4.5:1 but better. For 4.5:1 we need even darker. */
  --color-accent-accessible: #7B6437; /* For small text on white */
  --color-text: #1a1a1a;
  --color-text-light: #374151; /* Darker gray for better contrast (was #4b5563) */
  --color-bg: #ffffff;
  --color-bg-alt: #f3f4f6;
  --color-white: #ffffff;
  --color-black: #000000;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.1);
  
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-bg);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  font-size: 1rem;
  min-width: 44px;
  min-height: 44px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #2c3e50;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: transparent;
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.btn-accent:hover {
  background-color: #b08d4a;
  color: var(--color-primary); /* Changed to primary for better contrast against #b08d4a */
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid #e5e7eb;
}

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

.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-white);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.nav-links {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: var(--space-lg);
  }
}

.nav-link {
  font-weight: 500;
  color: var(--color-primary);
  position: relative;
}

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

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

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-nav {
  position: fixed;
  top: 80px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 80px);
  background: var(--color-white);
  transition: 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--space-2xl);
  z-index: 999;
  overflow-y: auto;
}

.mobile-nav.active {
  left: 0;
}

.mobile-nav a {
  font-size: 1.5rem;
  margin-bottom: var(--space-xl);
  font-family: var(--font-heading);
  color: var(--color-primary);
  padding: 0.5rem 1rem;
}

.hero {
  padding: 120px 0 60px; /* Reduced padding for mobile */
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--color-white);
  text-align: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 160px 0 80px;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55); /* Darker overlay for better contrast */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 4rem;
  }
}

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

@media (min-width: 768px) {
  .section {
    padding: var(--space-2xl) 0;
  }
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

@media (min-width: 768px) {
  .section-title h2 {
    font-size: 2.5rem;
  }
}

.section-title p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-2xl) 0 var(--space-lg);
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  display: block;
}

.footer h4 {
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}

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

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: #d1d5db; /* Lighter gray for better contrast on navy */
}

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

.footer p.text-gray-400 {
  color: #d1d5db !important; /* Force better contrast in footer */
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.875rem;
  color: #e5e7eb; /* Brighter gray for better contrast (was #9ca3af) */
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--color-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  transition: var(--transition);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

.error-message {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 4px;
  display: none;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-md);
  z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: var(--space-md) 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary);
  width: 100%;
  text-align: left;
  background: none;
  border: none;
}

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

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: var(--space-sm);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

.testimonial-card {
  background: var(--color-secondary);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  position: relative;
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  color: var(--color-accent);
  opacity: 0.3;
  font-family: serif;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 700;
  color: var(--color-primary);
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.bg-gold { background-color: var(--color-accent); }
.text-gold { color: var(--color-accent-accessible); } /* Default for light backgrounds */
.bg-navy .text-gold, 
.footer .text-gold,
.hero .text-gold { color: var(--color-accent); } /* Lighter version for dark backgrounds */

.bg-navy { background-color: var(--color-primary); }
.text-navy { color: var(--color-primary); }

.text-green-600 { color: #15803d !important; } /* Darker green for accessibility (passes 4.5:1) */

.text-gray-400 { color: #94a3b8 !important; } /* Default gray-400 */
.bg-navy .text-gray-400, 
.footer .text-gray-400,
.hero .text-gray-400 { color: #cbd5e1 !important; } /* Lighter gray for dark bg */

.text-gray-500 { color: #475569 !important; } /* Darker gray for light bg (passes 4.5:1) */

.hero h1 {
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

.hero p {
  text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}
