/* styles.css for Logan County Veterans Service Commission
   Comprehensive update with responsive design improvements */

/* Table of Contents
   1. CSS Reset and Base Styles!!
   2. Typography
   3. Color Scheme and Variables
   4. Layout and Grid System
   5. Header and Navigation
   6. Hero Section
   7. Services Section
   8. Ohio Bonus Section
   9. Mission Statement Section
   10. Team Section
   11. Location Section
   12. Meetings Section
   13. Free Services Section
   14. Footer
   15. Utility Classes
   16. Animations and Transitions
   17. Responsive Design
   18. Accessibility
   19. Print Styles
*/

/* 1. CSS Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 1rem = 10px for easy calculations */
    scroll-behavior: smooth;
}

body {
    font-size: 1.9rem; /* 16px base font size */
    line-height: 1.6;
    font-family: 'Open Sans', sans-serif;
    color: #333333;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 2. Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    line-height: 1.2;
    margin-bottom: 2rem;
}

h1 { font-size: 4rem; }
h2 { font-size: 3.2rem; }
h3 { font-size: 2.4rem; }
h4 { font-size: 2rem; }
h5 { font-size: 1.8rem; }
h6 { font-size: 1.6rem; }

p { margin-bottom: 1.5rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: var(--secondary-color);
}

/* 3. Color Scheme and Variables */
:root {
    --primary-color: #4a66c9;
    --secondary-color: #b02f28;
    --accent-color: #ff725c;
    --text-color: #333333;
    --background-color: #ffffff;
    --light-gray: #f1f1f1;
    --dark-gray: #666666;
    --white: #ffffff;
    --black: #000000;
    
    --header-height: 8rem;
    --container-width: 120rem;
    --section-padding: 8rem;
    
    --transition-speed: 0.3s;
    --box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* 4. Layout and Grid System */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* 5. Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(1rem);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    max-width: 200px;
    height: auto;
    transition: all var(--transition-speed) ease;
}

header.scrolled .logo {
    max-width: 100px;
}

nav ul {
    display: flex;
    list-style-type: none;
}

nav ul li:not(:last-child) {
    margin-right: 3rem;
}

nav ul li a {
    font-size: 2.6rem;
    font-weight: bold;
    color: var(--text-color);
    transition: color var(--transition-speed) ease;
}

nav ul li a:hover, nav ul li a:focus {
    color: var(--primary-color);
}

.call-button {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: bold;
    transition: background-color var(--transition-speed) ease;
}

.call-button:hover, .call-button:focus {
    background-color: var(--accent-color);
    color: var(--white);
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-color);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

/* Styles for the active state */
.hamburger.is-active span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg);
}

/* 6. Hero Section */
.hero {
    background-image: linear-gradient(rgba(255, 84, 51, 0.8), rgba(86, 137, 255, 0.8)),
        url('../images/banner2.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: left;
    padding: calc(var(--section-padding) * 1.5) 0;
    padding-top: calc(var(--header-height) * 3); /* Adjust this line */
    margin-top: calc(var(--header-height) * 3); /* Adjust this line */
}

.hero-content {
    max-width: 80rem;
}

.hero h1 {
    font-size: 4.8rem;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    max-width: 70rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 1.2rem 2.4rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1.8rem;
    margin-top: 2rem;
    transition: all var(--transition-speed) ease;
}

.cta-button:hover, .cta-button:focus {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-0.2rem);
}

/* 7. Services Section */
#services {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: var(--section-padding);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.service-item {
    background-color: var(--light-gray);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.service-item:hover, .service-item.active {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-0.5rem);
}

.service-icon {
    font-size: 4.8rem;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

.service-item:hover .service-icon,
.service-item.active .service-icon {
    color: var(--white);
}

.service-details {
    background-color: var(--light-gray);
    border-radius: 1rem;
    padding: 4rem;
    margin-top: 4rem;
    box-shadow: var(--box-shadow);
}

/* 8. Ohio Bonus Section */
#ohio-bonus {
    background-color: #fff0ed;
    padding: var(--section-padding) 0;
}

.bonus-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.bonus-text {
    flex: 1;
    padding-right: 4rem;
    min-width: 300px;
}

.bonus-image {
    flex: 1;
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    min-width: 300px;
}

.back-image, .front-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.back-image {
    position: relative;
    z-index: 2;
}

.front-image {
    position: absolute;
    width: 60%;
    top: -50px;
    right: -40px;
    z-index: 1;
    
}

.bonus-link {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 1.2rem 2.4rem;
    border-radius: 0.5rem;
    font-weight: bold;
    margin-right: 1.5rem;
    transition: background-color var(--transition-speed) ease;
}

.bonus-link:hover, .bonus-link:focus {
    background-color: var(--accent-color);
    color: var(--white);
}

/* 9. Mission Statement Section */
#mission-statement {
    background-color: #edf0ff;
    padding: var(--section-padding) 0;
}

.mission-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.mission-text {
    flex: 1;
    padding-left: 4rem;
    min-width: 300px;
}

.mission-image {
    flex: 1;
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    min-width: 300px;
}

.mission-image .front-image {
    left: -40px;
    right: auto;
}

/* 10. Team Section */
#team {
    padding: var(--section-padding) 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: 2rem;
}

.team-member {
    background-color: var(--light-gray);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.team-member:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--box-shadow);
}

.team-member img {
    width: 15rem;
    height: 15rem;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
}

.team-member h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.team-member p {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* 11. Location Section */
#location {
    padding: var(--section-padding) 0;
}

.location-container {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.location-info {
    flex: 1;
    min-width: 300px;
    background-color: var(--light-gray);
    padding: 3rem;
    border-radius: 1rem;
}

#map {
    flex: 1;
    min-width: 300px;
    height: 45rem;
    border-radius: 1rem;
    overflow: hidden;
}

/* 12. Meetings Section */
#meetings {
    background-color: #edf0ff;
    padding: var(--section-padding) 0;
}

.meetings-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.meetings-info {
    flex: 1;
    min-width: 300px;
}

.meetings-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.meetings-image img {
    max-width: 100%;
    border-radius: 1rem;
    transition: transform var(--transition-speed) ease;
}

.meetings-image img:hover {
    transform: scale(1.05);
}

/* 13. Free Services Section */
#free-services {
    background-image: linear-gradient(rgba(255, 84, 51, 0.8), rgba(86, 137, 255, 0.8)),
        url('../images/3d274816-8328-43ea-af68-aec34a972e37.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: var(--section-padding) 0;
}

.free-services-content {
    max-width: 80rem;
    margin: 0 auto;
}

#free-services h2 {
    font-size: 3.6rem;
    margin-bottom: 3rem;
}

/* 14. Footer */
footer {
    background-color: var(--light-gray);
    color: var(--text-color);
    padding: 6rem 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-content > div {
    flex: 1;
    margin: 2rem;
    min-width: 25rem;
}

.footer-content h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.quick-links ul {
    list-style-type: none;
}

.quick-links ul li:not(:last-child) {
    margin-bottom: 1rem;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 0.1rem solid var(--dark-gray);
    color: var(--dark-gray);
}

/* 15. Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden { display: none; }

/* 16. Animations and Transitions */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(2rem);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-in {
    animation: slideIn 0.5s ease-in-out;
}

/* 17. Responsive Design */
@media (max-width: 1200px) {
    html {
        font-size: 56.25%; /* 9px base for tablets */
    }
    
    .container {
        max-width: 96%;
    }
}

@media (max-width: 992px) {
    .bonus-content, .mission-content, .meetings-content {
        flex-direction: column;
    }
    
    .bonus-text, .mission-text, .meetings-info {
        padding: 0;
        margin-bottom: 4rem;
    }
    
    .bonus-image, .mission-image {
        max-width: 400px;
    }
    
    .front-image {
        width: 50%;
        top: -30px;
    }
    
    .bonus-image .front-image {
        right: -20px;
    }
    
    .mission-image .front-image {
        left: -20px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 50%; /* 8px base for mobile */
    }
    
    .logo {
        max-width: 100px;
    }
    
        .hamburger {
            display: block;
        }
    
        nav ul {
            display: none;
        }
    
        nav ul.show {
            display: flex;
            flex-direction: column;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background-color: var(--white);
            box-shadow: var(--box-shadow);
        }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: var(--box-shadow);
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 1.5rem;
    }
    
    
    
    .hero-content, .free-services-content {
        text-align: center;
    }
    
    .location-container {
        flex-direction: column;
    }
    
    #map {
        height: 30rem;
    }
    
    .bonus-image, .mission-image {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-button, .bonus-link {
        display: block;
        width: 100%;
        margin: 1rem 0;
    }
    
    .front-image {
        width: 45%;
        top: -20px;
    }
    
    .bonus-image .front-image {
        right: -10px;
    }
    
    .mission-image .front-image {
        left: -10px;
    }
}

/* 18. Accessibility */
.skip-link {
    position: absolute;
    top: -4rem;
    left: 0;
    background: var(--black);
    color: var(--white);
    padding: 0.8rem;
    z-index: 100;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

:focus {
    outline: 0.3rem solid var(--primary-color);
    outline-offset: 0.3rem;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 19. Print Styles */
@media print {
    header, nav, footer, .cta-button, #map {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: var(--black);
        background: var(--white);
    }
    
    .container {
        max-width: 100%;
        width: 100%;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }
    
    .hero, #ohio-bonus, #mission-statement, #free-services {
        background-image: none;
        color: var(--black);
    }
    
    @page {
        margin: 2cm;
    }
}

/* 19. video button */
.hero-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.video-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.video-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid white;
}

.circle-progress {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.circle-fill {
    stroke-dasharray: 144.51326206513048;
    stroke-dashoffset: 144.51326206513048;
    transition: stroke-dashoffset 0.3s ease;
}

.video-button:hover .circle-fill {
    stroke-dashoffset: 0;
}

.video-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.video-container {
    position: relative;
    width: 80vmin;
    height: 80vmin;
    max-width: 800px;
    max-height: 800px;
}

.close-video {
    position: absolute;
    top: -60px;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.close-video:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .video-container {
        width: 90vw;
        height: 90vw;
    }

    .close-video {
        top: -50px;
        right: -10px;
        font-size: 30px;
        width: 50px;
        height: 50px;
    }
}

#video-placeholder {
    width: 100%;
    height: 100%;
}



/* End of styles.css */