/* shared.css - Styles used across all pages */

:root {
 --primary-color: #e63946; /* Red */
 --secondary-color: #2b2d42; /* Dark Gray */
 --accent-color: #f8f9fa; /* Light Gray/White */
 --text-color: #333;
 --light-text: #6c757d;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Forces horizontal scroll to disappear */
    position: relative;
}

* {
    max-width: 100vw; /* No element can be wider than the viewport */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
 font-family: 'Open Sans', sans-serif;
 color: var(--text-color);
 line-height: 1.6;
 overflow-x: hidden;
}

h1, h2, h3, h4 {
 font-family: 'Montserrat', sans-serif;
 font-weight: 600;
 color: var(--secondary-color);
}

.container {
 width: 100%;
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 15px;
 overflow: hidden;
}

/* Header Styles */
header {
 background-color: white;
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
 position: fixed;
 width: 100%;
 z-index: 1000;
 transition: all 0.3s ease;
}

.header-scrolled {
 box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.nav-container {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 10px 0;
 gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 1; /* Allows the logo area to give up space */
    min-width: 0;   /* Essential for flex-shrink to work on text */
}

.logo img {
 height: 50px;
 margin-right: 10px;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Adds '...' if it absolutely runs out of space */
    font-size: 1.2rem;
    transition: font-size 0.3s ease;
}

.nav-links {
 display: flex;
 list-style: none;
}

.nav-links li {
 margin-left: 30px;
}

.nav-links a {
 text-decoration: none;
 color: var(--secondary-color);
 font-weight: 500;
 transition: color 0.3s;
 position: relative;
}

.nav-links a:hover {
 color: var(--primary-color);
}

.nav-links a::after {
 content: '';
 position: absolute;
 width: 0;
 height: 2px;
 background: var(--primary-color);
 bottom: -5px;
 left: 0;
 transition: width 0.3s;
}

.nav-links a:hover::after {
 width: 100%;
}

.nav-links a.active {
 color: var(--primary-color);
 font-weight: 600;
}

.nav-links a.active::after {
 width: 100%;
}

.cta-button {
 background-color: var(--primary-color);
 color: white;
 padding: 10px 20px;
 border-radius: 5px;
 font-weight: 600;
 transition: all 0.3s;
}

.cta-button:hover {
 background-color: #c1121f;
 transform: translateY(-2px);
 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
 color: white;
}

.secondary-button {
 background-color: transparent;
 color: var(--primary-color);
 border: 2px solid var(--primary-color);
 padding: 10px 20px;
 border-radius: 5px;
 font-weight: 600;
 transition: all 0.3s;
}

.secondary-button:hover {
 background-color: rgba(230, 57, 70, 0.1);
 transform: translateY(-2px);
}

.mobile-menu-btn {
 display: none;
 background: none;
 border: none;
 font-size: 1.5rem;
 color: var(--secondary-color);
 cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
}

/* Footer Styles */
footer {
 background-color: var(--secondary-color);
 color: white;
 padding: 60px 0 20px;
}

.footer-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 40px;
 margin-bottom: 40px;
}

.footer-col h3 {
 color: white;
 margin-bottom: 20px;
 font-size: 1.3rem;
}

.footer-col ul {
 list-style: none;
}

.footer-col ul li {
 margin-bottom: 10px;
}

.footer-col ul li a {
 color: rgba(255, 255, 255, 0.7);
 text-decoration: none;
 transition: color 0.3s;
}

.footer-col ul li a:hover {
 color: white;
}

.footer-col ul li i {
 margin-right: 10px;
 width: 20px;
 text-align: center;
}

.social-links {
 display: flex;
 gap: 15px;
 margin-top: 20px;
}

.social-links a {
 color: white;
 background-color: rgba(255, 255, 255, 0.1);
 width: 40px;
 height: 40px;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 transition: all 0.3s;
}

.social-links a:hover {
 background-color: var(--primary-color);
 transform: translateY(-3px);
}

.copyright {
 text-align: center;
 padding-top: 20px;
 border-top: 1px solid rgba(255, 255, 255, 0.1);
 color: rgba(255, 255, 255, 0.5);
 font-size: 0.9rem;
}

/* Animations */
.animate-on-scroll {
 opacity: 0;
 transform: translateY(30px);
 transition: opacity 0.6s, transform 0.6s;
}

.animate-on-scroll.visible {
 opacity: 1;
 transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 768px) {
 .mobile-menu-btn {
        display: block !important; /* Forces it to show */
        position: relative;
        z-index: 1002;
        color: var(--secondary-color); /* Makes sure it's dark gray/visible */
        font-size: 2rem;
        padding: 5px;
    }

 .nav-container {
        padding: 10px 0;
        width: 100%;
    }


 
 .nav-links {
    display: flex !important; /* Overrides the previous 'none' */
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 999;
 }
 
 .nav-links.active {
     left: 0;
 }
 
 .nav-links li {
        margin: 20px 0;
        width: 100%;
        text-align: center;
    }

     
 .footer-grid {
     grid-template-columns: 1fr;
     gap: 30px;
 }
}

@media (max-width: 576px) {
 .logo-text {
     font-size: 1.2rem;
 }
 
 .footer-col {
     text-align: center;
 }
 
 .social-links {
     justify-content: center;
 }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem; /* Shrink text on very small phones */
    }
    
    .logo img {
        height: 40px; /* Shrink logo image slightly to save width */
        margin-right: 5px;
    }
}

@media (max-width: 360px) {
    .logo-text {
        font-size: 0.9rem; /* Maximum shrink for tiny screens */
    }
}