/* ====================================
   Solento Financial Services
   Main Stylesheet
   ==================================== */

/* ====================================
   Variables & Reset
   ==================================== */
:root {
    --color-primary: #bf1e2d;
    --color-grey: #3f414d;
    --color-white: #ffffff;
    --color-light-grey: #f5f5f5;
    --color-border: #e0e0e0;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --max-width: 1200px;
    --spacing: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-grey);
    line-height: 1.6;
    background-color: var(--color-white);
}

/* ====================================
   Typography
   ==================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-grey);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #8d1621;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
}

/* ====================================
   Layout Components
   ==================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.main-content {
    min-height: calc(100vh - 80px - 300px);
}

/* ====================================
   Header & Navigation
   ==================================== */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.main-nav {
    position: relative;
}

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--color-grey);
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
    background-color: var(--color-light-grey);
}

/* ====================================
   Hero Section
   ==================================== */
.hero {
    background: linear-gradient(135deg, var(--color-grey) 0%, #2a2c35 100%);
    color: var(--color-white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.hero-content h1 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ====================================
   Buttons
   ==================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #8d1621;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(191, 30, 45, 0.3);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ====================================
   Sections
   ==================================== */
section {
    padding: var(--spacing-xl) 0;
}

.page-header {
    background-color: var(--color-light-grey);
    padding: 3rem 0;
    text-align: center;
}

.about-intro,
.mission,
.content-section {
    background-color: var(--color-white);
}

.about-intro {
    text-align: center;
    background-color: var(--color-light-grey);
}

/* ====================================
   Services Grid
   ==================================== */
.services {
    background-color: var(--color-white);
}

.services h2,
.why-choose h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.service-icon {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--color-grey);
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

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

.feature {
    padding: 1.5rem;
    background-color: var(--color-light-grey);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature:hover {
    background-color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* ====================================
   Mission Section
   ==================================== */
.mission {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
}

.mission h2 {
    color: var(--color-white);
}

.mission .lead {
    color: var(--color-white);
    max-width: 800px;
    margin: 0 auto;
}

/* ====================================
   CTA Section
   ==================================== */
.cta {
    background: linear-gradient(135deg, var(--color-grey) 0%, #2a2c35 100%);
    color: var(--color-white);
    text-align: center;
}

.cta h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* ====================================
   Contact Page
   ==================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}
.contact-item a {
    color: var(--color-grey);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--color-primary);
}
/* ====================================
   Forms
   ==================================== */
.contact-form {
    background-color: var(--color-light-grey);
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-grey);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ======10=============================
   Alerts
   ==================================== */
.alert {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 90%;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* ====================================
   Footer
   ==================================== */
.site-footer {
    background-color: var(--color-grey);
    color: var(--color-white);
    padding: 3rem 0 1rem;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: var(--color-white);
}

.footer-section ul {
    list-style: none;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ====================================
   Content Sections
   ==================================== */
.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

.cta-box {
    background-color: var(--color-light-grey);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 3rem;
}

/* ====================================
   Error Page
   ==================================== */
.error-header {
    background-color: var(--color-light-grey);
}

.error-content {
    text-align: center;
    padding: 3rem 0;
}

.error-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        width: 200px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border-radius: 4px;
        padding: 1rem;
        gap: 0.5rem;
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero,
    .cta {
        padding: 2rem 0;
    }
    
    .btn {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}
