/* =====================================================
   Timothy Grant Financial - Main Stylesheet
   ===================================================== */

/* CSS Variables */
:root {
    --primary-color: #1a365d;
    --primary-dark: #0f2847;
    --primary-light: #2a4a7f;
    --secondary-color: #c9a227;
    --secondary-light: #dbb94a;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #888888;
    --background-color: #ffffff;
    --background-light: #f8f9fa;
    --background-dark: #1a365d;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --error-color: #dc3545;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s ease;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-light);
    border-color: var(--secondary-light);
    color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

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

.btn-full {
    width: 100%;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: #ffffff;
    padding: 0.625rem 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-item svg {
    opacity: 0.8;
}

/* Header & Navigation */
.header {
    background-color: var(--background-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 8px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.2;
    white-space: nowrap;
}

.logo-text small {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-light);
}

.logo-img {
    height: 70px !important;
    width: auto !important;
    max-width: 200px !important;
    max-height: 70px !important;
    object-fit: contain;
    display: block;
}

.footer-logo-img {
    height: 80px !important;
    max-width: 200px !important;
    max-height: 80px !important;
    background-color: #ffffff;
    padding: 5px;
    border-radius: 6px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

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

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
    color: #ffffff;
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    color: #ffffff;
    font-size: 2.75rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 0.75rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 4;
}

.hero-buttons .btn {
    cursor: pointer;
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

.hero-buttons .btn-primary:hover {
    background-color: var(--secondary-light);
    border-color: var(--secondary-light);
}

.hero-buttons .btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.hero-buttons .btn-secondary:hover {
    background-color: #ffffff;
    color: var(--primary-color);
}

.hero-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active,
.indicator:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: var(--spacing-xl) 0;
    background-color: var(--background-light);
}

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

.service-card {
    background-color: var(--background-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--secondary-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    margin-top: -45px;
    position: relative;
    box-shadow: var(--shadow-md);
}

.service-content h3 {
    margin-bottom: 0.75rem;
}

.service-content p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9375rem;
}

.service-link:hover {
    color: var(--primary-color);
}

/* Quote Section */
.quote-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.quote-section blockquote {
    max-width: 900px;
    margin: 0 auto;
}

.quote-section blockquote p {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.quote-section blockquote cite {
    font-size: 1.125rem;
    color: var(--secondary-color);
    font-style: normal;
}

/* About Section */
.about {
    padding: var(--spacing-xl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-light);
}

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

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--background-light);
    border-radius: 8px;
}

.feature svg {
    color: var(--success-color);
    flex-shrink: 0;
}

.feature span {
    font-weight: 500;
    color: var(--text-color);
}

/* FAQ Section */
.faq {
    padding: var(--spacing-xl) 0;
    background-color: var(--background-light);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--background-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--background-light);
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--secondary-color);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-light);
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* Contact Section */
.contact {
    padding: var(--spacing-xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.contact-card {
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--secondary-color);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin: 0;
}

.contact-card a {
    color: var(--primary-color);
}

.contact-card a:hover {
    color: var(--secondary-color);
}

/* Contact Form */
.contact-form-container {
    background-color: var(--background-light);
    padding: 2.5rem;
    border-radius: 12px;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
    background-color: var(--background-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

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

.contact-form .btn {
    grid-column: span 2;
    margin-top: 0.5rem;
}

/* Map Section */
.map-section {
    line-height: 0;
}

.map-section iframe {
    display: block;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: #ffffff;
    padding: var(--spacing-lg) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand .logo-icon {
    background: rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-text {
    color: #ffffff;
}

.footer-brand .logo-text small {
    color: rgba(255, 255, 255, 0.7);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.footer h4 {
    color: #ffffff;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.footer ul a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 2rem; }

    .logo-img {
        height: 40px;
        max-width: 140px;
    }

    .footer-logo-img {
        height: 60px;
        max-width: 180px;
    }

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

    .top-bar-left,
    .top-bar-right {
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--background-color);
        padding: 1.5rem;
        gap: 0;
        box-shadow: var(--shadow-md);
        display: none;
    }

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

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .hero {
        height: auto;
        min-height: 500px;
        padding: var(--spacing-lg) 0;
    }

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

    .hero-tagline {
        font-size: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .quote-section blockquote p {
        font-size: 1.5rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .contact-form .btn {
        grid-column: span 1;
    }

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

    .footer-brand .logo {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .services {
        padding: var(--spacing-lg) 0;
    }

    .about,
    .faq,
    .contact {
        padding: var(--spacing-lg) 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }
}

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

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

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Form Success/Error States */
.form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.form-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

/* Print Styles */
@media print {
    .top-bar,
    .header,
    .hero-indicators,
    .contact-form-container,
    .map-section {
        display: none;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-slide {
        position: relative;
        background: none !important;
    }

    .hero-content {
        color: var(--text-color);
    }

    .hero-content h1 {
        color: var(--primary-color);
        text-shadow: none;
    }
}
