/* CSS Variables */
:root {
    --primary-green: #6B9080;
    --dark-green: #4A7C59;
    --light-gray: #F5F5F5;
    --medium-gray: #E8E8E8;
    --text-dark: #2C2C2C;
    --text-medium: #5A5A5A;
    --white: #FFFFFF;
    --brown: #8B5A3C;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--light-gray);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: auto;
    max-width: 60px;
    height: auto;
    max-height: 60px;
    background-image: url("treehause-logo.jpeg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    flex-shrink: 0;
  }

.logo-image {
    width: auto;
    max-width: 60px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    flex-shrink: 0;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .logo-icon,
    .logo-image {
      max-width: 50px;
      max-height: 50px;
    }
  }

  @media (max-width: 480px) {
    .logo-icon,
    .logo-image {
      max-width: 40px;
      max-height: 40px;
    }
  }
  
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Fredericka the Great', cursive;
    font-size: 32px;
    color: var(--brown);
    line-height: 1;
    text-decoration: none;
}

.logo-tagline {
    font-size: 11px;
    color: var(--text-dark);
    font-weight: 400;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-green);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
                url('./images/treehause-hero-image.jpeg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-family: 'Roboto', sans-serif;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 2px;
}

/* News Section */
.news-section {
    padding: 80px 0;
    background-color: var(--medium-gray);
}

.section-title {
    font-family: 'Fredericka the Great', cursive;
    font-size: 48px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.news-card {
    background-color: var(--white);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.news-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #C4C4C4 0%, #8E8E8E 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.news-title {
    padding: 20px 15px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-dark);
    min-height: 80px;
}

.news-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-btn {
    width: 35px;
    height: 35px;
    border: 1px solid var(--text-dark);
    background-color: var(--white);
    color: var(--text-dark);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-btn.active {
    background-color: var(--text-dark);
    color: var(--white);
}

/* Clients Section */
.clients-section {
    padding: 60px 0;
    background-color: var(--light-gray);
    text-align: center;
}

.clients-subtitle {
    font-size: 18px;
    color: var(--text-medium);
    font-style: italic;
    margin-top: 10px;
}

/* Menagerie Section */
.menagerie-section {
    padding: 60px 0;
    background-color: var(--white);
    text-align: center;
}

.menagerie-section .section-title {
    font-size: 32px;
}

.menagerie-logo {
    max-width: 250px;
    height: auto;
    margin-top: 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
.contact-section {
    padding: 50px 0;
    background-color: var(--medium-gray);
    text-align: center;
}

.contact-text {
    font-size: 16px;
    color: var(--text-dark);
}

.contact-text a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

.contact-text a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--light-gray);
    padding: 40px 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.copyright {
    text-align: center;
    font-size: 13px;
    color: var(--text-medium);
    padding-top: 20px;
    border-top: 1px solid #D0D0D0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background-color: var(--light-gray);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

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

    .hero-title {
        font-size: 36px;
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .logo-title {
        font-size: 26px;
    }

    .logo-tagline {
        font-size: 9px;
    }

    .logo-icon,
    .logo-image {
        width: 50px;
        height: 50px;
    }

    .menagerie-logo {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 400px;
    }

    .hero-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 36px;
    }

    .news-section {
        padding: 50px 0;
    }

    .menagerie-logo {
        max-width: 150px;
    }
}

/* Logo link styling */
.logo a,
a.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-text {
    text-decoration: none;
}

/* Active navigation state */
.nav-menu a.active {
    color: var(--primary-green);
    font-weight: 600;
}

/* Page Content Styles */
.page-content {
    padding: 80px 0;
    background-color: var(--white);
}

.about-hero {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-family: 'Fredericka the Great', cursive;
    font-size: 56px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 20px;
    color: var(--text-medium);
    font-style: italic;
}

.about-text {
    max-width: 900px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-dark);
}

.pride-text {
    color: var(--primary-green);
}

.team-section {
    text-align: center;
    padding: 60px 0;
    background-color: var(--light-gray);
    margin: 60px -20px 0;
}

.team-name {
    font-size: 18px;
    color: var(--text-dark);
}

/* Submissions Page Styles */
.submissions-page {
    background-color: var(--white);
    padding: 60px 0;
}

.submissions-layout {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.submissions-content {
    padding: 40px 0;
    margin: 0 auto;
}

.submissions-intro {
    margin-bottom: 40px;
}

.intro-text {
    font-size: 16px;
    color: var(--text-medium);
    font-style: italic;
}

.submissions-section h1.page-title {
    font-family: 'Fredericka the Great', cursive;
    font-size: 48px;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.section-heading {
    font-family: 'Fredericka the Great', cursive;
    font-size: 36px;
    color: var(--primary-green);
    margin: 30px 0 15px;
}

.emphasis-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.submissions-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-dark);
}

.submissions-section a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

.submissions-section a:hover {
    text-decoration: underline;
}

.submissions-cta {
    margin-top: 40px;
    text-align: center;
}

.cta-text {
    font-size: 18px;
    color: var(--text-medium);
    margin: 10px 0;
}

.submissions-image {
    position: sticky;
    top: 120px;
}

.image-placeholder {
    width: 100%;
    height: 600px;
    background: linear-gradient(135deg, #8B5A3C 0%, #6B4423 100%);
    border-radius: 0;
}

/* News Page Styles */
.news-page {
    padding: 80px 0;
    background-color: var(--white);
}

.news-filter {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.filter-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-medium);
    cursor: pointer;
    padding: 10px 20px;
    transition: color 0.3s ease;
}

.filter-btn.active {
    color: var(--accent-blue);
    font-weight: 600;
}

.filter-btn:hover {
    color: var(--text-dark);
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--medium-gray);
}

.news-item-image {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #C4C4C4 0%, #8E8E8E 100%);
}

.news-item-content {
    flex: 1;
}

.news-item-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-medium);
}

.news-item-title {
    font-family: 'Fredericka the Great', cursive;
    font-size: 32px;
    color: var(--primary-green);
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-item-excerpt {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-item-footer {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 13px;
    color: var(--text-medium);
}

.news-like {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin-left: auto;
    color: var(--text-medium);
    transition: color 0.3s ease;
}

.news-like:hover {
    color: #E74C3C;
}

/* Responsive Styles for New Pages */
@media (max-width: 768px) {
    .submissions-layout {
        padding: 0 15px;
    }

    .news-item {
        flex-direction: column;
    }

    .news-item-image {
        width: 100%;
        height: 250px;
    }

    .page-title {
        font-size: 42px;
    }

    .section-heading {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 36px;
    }

    .news-item-title {
        font-size: 26px;
    }

    .submissions-layout {
        padding: 0 15px;
    }
}

/* Accent blue for news filter */
:root {
    --accent-blue: #2E86C1;
}
