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

/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
  /* Colors */
  --primary: #2a5c5a;
  --primary-light: #3a7a78;
  --primary-dark: #1e4544;
  --secondary: #e8f5f2;
  --secondary-dark: #d0e4e0;
  --accent: #d4e0b5;
  --text-main: #2b2b2b;
  --text-light: #5f6c6b;
  --bg-light: #fafcfc;
  --bg-white: #ffffff;
  
  /* Typography */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Borders & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* Typography Elements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--primary-dark);
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: var(--space-sm);
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.bg-light { background-color: var(--bg-light); }
.bg-secondary { background-color: var(--secondary); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   Components: Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

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

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

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

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

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

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

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

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
}

.nav-links a:not(.btn):hover {
  color: var(--primary);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  padding: 10px 20px;
  display: block;
  font-size: 0.95rem;
}

.dropdown a:hover {
  background-color: var(--bg-light);
  color: var(--primary);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition);
  left: 0;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* Responsive Nav */
@media (max-width: 992px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
  }

  .nav-links.open {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .nav-links ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--bg-light);
    margin-top: 10px;
    width: 100%;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
#site-footer {
  background-color: var(--bg-light);
  padding-top: var(--space-xl);
}

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

.footer-brand p {
  margin-top: var(--space-sm);
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: var(--space-sm);
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.social-links a:hover {
  background: var(--primary);
  color: white;
}

.footer-navs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-light);
  font-size: 0.95rem;
}

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

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  .footer-navs {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* ==========================================================================
   Hero Base Component (For subpages)
   ========================================================================== */
.hero-base {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-white) 100%);
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
}

.hero-base h1 {
  max-width: 800px;
  margin: 0 auto var(--space-sm);
}

.hero-base p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.25rem;
}
