/* ==========================================================================
   The McCovy Foundation - Enhanced Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500;600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

/* ==========================================================================
   Base Reset & Utilities
   ========================================================================== */

/* Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin/padding */
* {
  margin: 0;
  padding: 0;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
}

/* Body defaults */
body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* Form defaults */
input, button, textarea, select {
  font: inherit;
}

/* Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Link defaults */
a {
  text-decoration-skip-ink: auto;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: currentColor;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-button {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background-color: #111827;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.form-button:hover {
  opacity: 0.9;
}

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
  --color-primary: #0F3D2E;
  --color-primary-light: #1A5A43;
  --color-secondary: #9CA3AF;
  --color-accent: #E6D3A3;
  --color-accent-warm: #C4A35A;
  --color-background: #FAFBF9;
  --color-background-warm: #F9F7F3;
  --color-white: #FFFFFF;
  --color-border: #E5E7EB;
  --color-text-muted: #6B7280;

  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 1px 2px rgba(15, 61, 46, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 61, 46, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 61, 46, 0.12);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background-color: var(--color-background);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
}

a {
  color: var(--color-primary);
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.logo-crest {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 7rem 0 6rem;
  text-align: center;
  background-color: var(--color-primary);
  background-image:
    linear-gradient(135deg, rgba(15, 61, 46, 0.92) 0%, rgba(26, 90, 67, 0.88) 100%),
    url('https://images.unsplash.com/photo-1511497584788-876760111969?w=1920&q=80');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--color-background), transparent);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background-color: rgba(230, 211, 163, 0.15);
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  fill: none;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--color-white);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-weight: 400;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  margin: 2rem auto 0;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */

.section {
  padding: 5rem 0;
}

.section-light {
  background-color: var(--color-white);
}

.section-warm {
  background-color: var(--color-background-warm);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  fill: none;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-warm);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0;
  color: var(--color-primary);
}

.body-text {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--color-text-muted);
  max-width: 720px;
}

.body-text-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.body-text + .body-text {
  margin-top: 1.5rem;
}

/* Focus Areas Grid */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.focus-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.focus-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.focus-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, rgba(15, 61, 46, 0.1) 0%, rgba(26, 90, 67, 0.1) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.focus-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-primary);
  stroke-width: 1.5;
  fill: none;
}

.focus-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.focus-text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Content Card */
.content-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.content-card-accent {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border: none;
  color: var(--color-white);
}

.content-card-accent .body-text {
  color: rgba(255,255,255,0.85);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 12px;
  padding: 2.5rem;
  color: var(--color-white);
}

.contact-info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.contact-info-card p {
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.contact-info-card p:last-child {
  margin-bottom: 0;
}

.contact-detail {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.contact-detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-form .form-label {
  font-weight: 500;
  color: var(--color-primary);
  font-size: 0.875rem;
}

.contact-form .form-input,
.contact-form .form-textarea {
  border-color: var(--color-border);
  background-color: var(--color-background);
  border-radius: 8px;
}

.contact-form .form-button {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: 1rem 2.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.contact-form .form-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.contact-form .form-input:focus,
.contact-form .form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 61, 46, 0.1);
  background-color: var(--color-white);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background-color: var(--color-primary);
  color: var(--color-accent);
  padding: 3rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.footer-brand-icon {
  width: 24px;
  height: 24px;
  background-color: rgba(230, 211, 163, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--color-accent);
  stroke-width: 2;
  fill: none;
}

.footer-legal {
  max-width: 400px;
  font-size: 0.8125rem;
  opacity: 0.75;
  line-height: 1.6;
}

.footer-meta {
  text-align: right;
}

.footer-copyright {
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-size: 0.75rem;
  font-style: italic;
  opacity: 0.7;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    gap: 1.5rem;
  }

  .hero {
    padding: 5rem 0 4rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.0625rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .focus-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-meta {
    text-align: center;
  }
}
