/* Storm Bloom Financial Planning Website Styles */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #004499;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.btn.primary {
    background-color: #0066cc;
    color: white;
}

.btn.primary:hover {
    background-color: #004499;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn.secondary {
    background-color: transparent;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.btn.secondary:hover {
    background-color: #0066cc;
    color: white;
    transform: translateY(-2px);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    color: white;
    padding: 20px 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    color: white;
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn.primary {
    background-color: #0066cc;
    color: white;
}

.cookie-btn.primary:hover {
    background-color: #004499;
}

.cookie-btn.secondary {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-btn.secondary:hover {
    background-color: white;
    color: #1a1a1a;
}

/* Header and Navigation */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0066cc;
}

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

.nav-menu li a {
    font-weight: 500;
    color: #333;
    padding: 5px 0;
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #0066cc;
}

.nav-menu li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

.nav-menu li a:hover:after,
.nav-menu li a.active:after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: #f8f9fa;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: #1a1a1a;
}

.service-card p {
    color: #666;
}

/* About Section */
.about {
    background-color: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-features {
    list-style: none;
    margin-top: 20px;
}

.about-features li {
    padding: 8px 0;
    color: #555;
    font-weight: 500;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Testimonials Section */
.testimonials {
    background-color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

.testimonial-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.testimonial-card blockquote {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-card blockquote:before {
    content: '"';
    font-size: 4rem;
    color: #0066cc;
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: serif;
}

.testimonial-card cite {
    font-weight: 600;
    color: #333;
}

/* Blog Sections */
.blog-preview {
    background-color: #f8f9fa;
}

.blog-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    text-align: center;
}

.blog-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 15px;
}

.blog-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.blog-articles {
    padding: 80px 0;
    background-color: white;
}

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

.blog-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.blog-card.featured {
    grid-column: span 1;
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.blog-date {
    color: #666;
    font-size: 0.9rem;
}

.blog-category {
    background-color: #0066cc;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-content h2,
.blog-content h3 {
    margin-bottom: 15px;
}

.blog-content h2 a,
.blog-content h3 a {
    color: #1a1a1a;
}

.blog-content h2 a:hover,
.blog-content h3 a:hover {
    color: #0066cc;
}

.blog-content p {
    margin-bottom: 20px;
    color: #666;
}

.read-more {
    color: #0066cc;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #004499;
}

.blog-link {
    text-align: center;
}

.blog-newsletter {
    background-color: #0066cc;
    color: white;
    padding: 60px 0;
    border-radius: 10px;
    text-align: center;
    margin-top: 60px;
}

.newsletter-content h2 {
    color: white;
    margin-bottom: 15px;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 12px 24px;
    background-color: white;
    color: #0066cc;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    background-color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.contact-info img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 20px;
}

.contact-details p {
    margin-bottom: 10px;
}

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

.social-links a {
    display: block;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

.social-links img {
    width: 100%;
    height: 100%;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Article Page Styles */
.article-page {
    padding: 120px 0 80px;
}

.article-header {
    text-align: center;
    margin-bottom: 60px;
}

.breadcrumb {
    margin-bottom: 30px;
    color: #666;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #0066cc;
}

.article-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-date,
.article-read-time {
    color: #666;
    font-size: 0.9rem;
}

.article-category {
    background-color: #0066cc;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-lead {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-cta {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin: 60px 0;
}

.article-cta h3 {
    margin-bottom: 15px;
    color: #1a1a1a;
}

.article-cta p {
    margin-bottom: 25px;
    color: #666;
}

.article-navigation {
    max-width: 800px;
    margin: 60px auto 0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Legal Pages */
.legal-page {
    padding: 120px 0 80px;
    background-color: white;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
}

.legal-content h1 {
    margin-bottom: 20px;
    color: #1a1a1a;
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #333;
    border-top: 2px solid #e0e0e0;
    padding-top: 20px;
}

.legal-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #555;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 30px;
}

.legal-content li {
    margin-bottom: 8px;
}

.back-link {
    text-align: center;
    margin-top: 60px;
}

/* Thanks Page */
.thanks-section {
    padding: 120px 0 80px;
    background-color: #f8f9fa;
    text-align: center;
}

.thanks-content {
    max-width: 600px;
    margin: 0 auto;
}

.thanks-icon {
    margin-bottom: 30px;
}

.thanks-actions {
    margin: 40px 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.thanks-info {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    text-align: left;
}

.thanks-info h3 {
    text-align: center;
    margin-bottom: 20px;
}

.thanks-info ul {
    list-style-type: none;
    padding: 0;
}

.thanks-info li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.thanks-info li:last-child {
    border-bottom: none;
}

.emergency-contact {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 20px;
    margin-top: 30px;
}

/* Cookie Settings Page */
.cookie-settings-section {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.cookie-controls {
    margin: 20px 0;
}

.cookie-option {
    margin-bottom: 15px;
}

.cookie-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.cookie-option input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.cookie-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: white;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .blog-card.featured {
        grid-column: span 1;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .hero-buttons {
        justify-content: center;
    }

    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .article-meta {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .contact-form {
        padding: 20px;
    }

    .services-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .nav-toggle {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .container {
        max-width: none;
        padding: 0;
    }
}
