/* Base styles */
:root {
    --primary-color: #68984D;
    --primary-dark: #427F38;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-bg: #f3f4f6;
    --white: #ffffff;
    --max-width: 1200px;
}

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

body {
	display: flex;
  	flex-direction: column;
  	min-height: 100vh; /* Ensure the body takes up the full viewport height */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.site-branding a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    
    &:hover {
    	color: var(--primary-dark);
    }
}

.primary-navigation #primary-menu {
    display: flex;
    list-style-type: none;
    gap: 1.5rem;
}

.primary-navigation a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.primary-navigation a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
}

/* Submenu styles */
.menu-item-has-children {
    position: relative;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 0.5rem 0;
    z-index: 1000;
    list-style-type: none;
}

.menu-item-has-children:hover .sub-menu {
    display: block;
}

.sub-menu li {
    padding: 0.5rem 1rem;
}

/* Ensure submenu is hidden by default on all screen sizes */
@media (min-width: 769px) {
    .sub-menu {
        display: none;
    }

    .menu-item-has-children:hover .sub-menu {
        display: block;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .menu-toggle .hamburger {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--text-color);
        position: relative;
        transition: background-color 0.3s ease;
    }

    .menu-toggle .hamburger::before,
    .menu-toggle .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: var(--text-color);
        transition: transform 0.3s ease;
    }

    .menu-toggle .hamburger::before {
        transform: translateY(-8px);
    }

    .menu-toggle .hamburger::after {
        transform: translateY(8px);
    }

    .menu-toggle[aria-expanded="true"] .hamburger {
        background-color: transparent;
    }

    .menu-toggle[aria-expanded="true"] .hamburger::before {
        transform: rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .hamburger::after {
        transform: rotate(-45deg);
    }

    .primary-navigation #primary-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .primary-navigation #primary-menu.active {
        display: flex;
    }

    .primary-navigation li {
        padding: 1rem;
    }

    .sub-menu {
    	display: none;
        position: static;
        box-shadow: none;
        padding-left: 1rem;
    }

    .menu-item-has-children > a::after {
        content: '▼';
        margin-left: 0.5rem;
        font-size: 0.8em;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



/* Typography */
h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

p {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  
  &:hover {
  	color: var(--primary-dark);
  }
}


/* Sections */
section {
    padding: 4rem 0;
}

.card {
    padding: 2rem;
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 400px;
}


/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Footer styles */
.site-footer {
    background-color: #171717;
    color: #ffffff;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.site-footer .social-links {
  margin-top: 20px;
}

.social-links a {
  text-decoration: none;
  color: var(--primary-color);
  font-size: 24px;
  transition: color 0.3s ease;
  
  &:hover {
  	color: var(--primary-dark);
  }
}

.footer-logo img {
    max-width: 200px;
    height: auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style-type: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    
    &:hover {
  		color: var(--primary-dark);
  	}
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
    }

    .footer-column {
        width: 100%;
    }
}

