@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Karla:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
  --color-primary: #3D6B5B;
  --color-secondary: #F4D1D9;
  --color-accent: #E07A5F;
  --color-bg: #F8F9FA;
  --color-text: #212529;
  --color-dark: #1a2f28;
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Space Grotesk', sans-serif;
  --radius-pill: 50px;
  --radius-card: 16px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

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

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

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

/* Navigation - Absolute over hero */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

body:not(.page-home) .site-nav {
  background: var(--color-dark);
}

body:not(.page-home) .site-main {
  padding-top: 80px;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  line-height: 1;
}

.nav-logo-img {
  height: 60px;
  width: auto;
  min-height: 60px;
  max-height: 80px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  border-bottom: 2px solid transparent;
  padding-bottom: 0.2rem;
  font-family: var(--font-body);
}

.nav-links a:hover {
  color: #fff;
  border-bottom-color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle-bar {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 60%, var(--color-text) 100%);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  mix-blend-mode: multiply;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.95);
  max-width: 600px;
  font-weight: 400;
}

.hero-cta {
  display: inline-flex;
  align-self: flex-start;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 16px 40px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 0.5rem;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(224, 122, 95, 0.4);
  color: #fff;
  background: #d86a4f;
}

/* Sections */
.content-section {
  position: relative;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

/* Alternating backgrounds */
.content-section:nth-child(odd) {
  background-color: #fff;
}

.content-section:nth-child(even) {
  background-color: var(--color-bg);
}

/* Dark section in middle (3rd section) */
.content-section:nth-child(3) {
  background-color: var(--color-text);
  color: #f0f0f0;
}

.content-section:nth-child(3) .section-title {
  color: #fff;
}

.content-section:nth-child(3) .section-title::after {
  background-color: var(--color-accent);
}

.content-section:nth-child(3) a {
  color: var(--color-secondary);
}

.content-section:nth-child(3) a:hover {
  color: var(--color-accent);
}

.content-section:nth-child(3) p,
.content-section:nth-child(3) li {
  color: rgba(255,255,255,0.9);
}

/* Section typography alternation */
.content-section:nth-child(odd) .section-title {
  font-family: var(--font-heading);
}

.content-section:nth-child(even) .section-title {
  font-family: var(--font-accent);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  color: var(--color-text);
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 0.75rem;
  border-radius: 2px;
  pointer-events: none;
}

/* Wave Section */
.section--wave {
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  padding: 6rem 0;
  margin: 2rem 0;
}

/* Cards */
.cards-container {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.card-image {
  overflow: hidden;
}

.card-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
  line-height: 1.3;
}

.card-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Image Treatment - Arch Top (Option C) */
.section-image img,
.about-image img {
  width: 100%;
  border-radius: 200px 200px 12px 12px;
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.about-image img {
  aspect-ratio: 3/4;
  border-radius: 200px 200px 16px 16px;
}

/* Section layouts */
.section-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.section-with-image:nth-child(even) {
  direction: rtl;
}

.section-with-image:nth-child(even) > * {
  direction: ltr;
}

.section-text {
  max-width: 540px;
}

.section-content p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.section-content a {
  font-weight: 600;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
}

.section-content a:hover {
  border-bottom-width: 3px;
}

/* About Layout */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.about-text {
  max-width: 640px;
}

/* Decorative Elements */
.decorative-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
  margin: 2rem 0;
}

.divider-line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.divider-accent {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Pull Quote - Style C (Tinted Box) */
.pull-quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.5;
  margin: 2.5rem 0;
  max-width: 600px;
  color: var(--color-text);
  background: rgba(224, 122, 95, 0.1);
  padding: 2rem;
  border-radius: 12px;
  position: relative;
}

.pull-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-style: normal;
  color: #666;
  font-family: var(--font-body);
  font-weight: 600;
}

/* Accent elements */
.accent-break {
  padding: 2rem 0;
  text-align: center;
}

.accent-wave {
  width: 120px;
  height: 20px;
  margin: 0 auto;
  position: relative;
}

.accent-wave::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  border-radius: 3px;
  opacity: 0.6;
}

/* Footer */
.site-footer {
  background-color: var(--color-text);
  color: rgba(255,255,255,0.9);
  margin-top: 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 3rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-secondary);
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.6rem;
}

.footer-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-block;
}

.footer-nav a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  max-width: 280px;
  margin-top: 0.5rem;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.footer-nav-inline {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Blog Specific */
.article-header {
  margin-bottom: 3rem;
}

.article-meta {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-header {
  margin-bottom: 4rem;
}

/* Bootstrap Container Override */
.container {
  max-width: 900px;
}

/* Utility Classes */
.bg-primary-soft {
  background-color: rgba(61, 107, 91, 0.05);
}

/* Responsive */
@media (max-width: 1024px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-layout {
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-dark);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }
  
  .nav-links--open {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero {
    min-height: 70vh;
  }
  
  .hero-inner {
    padding: 5rem 1.5rem 3rem;
  }
  
  .hero-content {
    gap: 2rem;
  }
  
  .section-inner {
    padding: 3rem 1.5rem;
  }
  
  .section-with-image,
  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .section-with-image:nth-child(even) {
    direction: ltr;
  }
  
  .section-image {
    max-width: 100%;
  }
  
  .section-text {
    max-width: 100%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-inner {
    padding: 2.5rem 1.5rem 1.5rem;
  }
  
  .cards-container {
    grid-template-columns: 1fr;
  }
  
  .pull-quote {
    padding: 1.5rem;
    font-size: 1.2rem;
  }
  
  .section--wave {
    clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
  }
}

/* Ensure pointer-events none on decorative pseudo-elements */
.hero::after,
.section-title::after,
.divider-accent,
.accent-wave::after {
  pointer-events: none;
}

/* Print styles */
@media print {
  .site-nav,
  .hero-bg,
  .decorative-divider {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
}