/* Kim Kim & Co., CPAs - Professional Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

:root {
    --primary-navy: #1a365d;
    --primary-gold: #b8860b;
    --accent-gold: #d4a84b;
    --light-gold: #f5e6c8;
    --cream: #faf8f5;
    --white: #ffffff;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-light: #e2e8f0;
    --shadow-soft: 0 4px 20px rgba(26, 54, 93, 0.08);
    --shadow-medium: 0 8px 30px rgba(26, 54, 93, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-navy);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-gold);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2c5282 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
}

.header-top {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

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

.header-top a {
    color: var(--light-gold);
}

.header-top a:hover {
    color: var(--white);
}

.header-main {
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 60px;
    width: auto;
    background: white;
    padding: 4px;
    border-radius: 4px;
}

.logo-text {
    color: var(--white);
}

.logo-text h1 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.logo-text span {
    font-size: 0.875rem;
    color: var(--light-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 1px;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2c5282 50%, var(--primary-gold) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(255,255,255,0.02)" stroke-width="0.5"/></svg>');
    background-size: 200px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 600px;
    opacity: 0.9;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background: var(--accent-gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.4);
}

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

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

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-dark {
    background: var(--primary-navy);
    color: var(--white);
}

.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

.section-light {
    background: var(--white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

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

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

.section-header .divider {
    width: 60px;
    height: 3px;
    background: var(--primary-gold);
    margin: 1.5rem auto 0;
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-gold);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-navy), #2c5282);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--primary-gold);
    border-radius: 8px;
    z-index: -1;
}

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

.about-content .lead {
    font-size: 1.25rem;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.credential {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-gold);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-navy);
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-card h4 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.info-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

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

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

/* Links Page */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.links-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.links-category h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-gold);
}

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

.links-list li {
    margin-bottom: 0.75rem;
}

.links-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--text-dark);
    border-bottom: 1px solid transparent;
}

.links-list a:hover {
    color: var(--primary-gold);
    border-bottom-color: var(--primary-gold);
}

.links-list a::before {
    content: '→';
    color: var(--primary-gold);
}

/* Map Section */
.map-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 4px;
}

.map-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* Footer */
.footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 4rem 0 0;
}

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

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

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer h4 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

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

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2c5282 100%);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--light-gold);
    font-size: 1.125rem;
    margin-bottom: 0;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

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

.breadcrumb span {
    color: var(--accent-gold);
}

/* Badges/Logos */
.partner-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    align-items: center;
}

.partner-logos a {
    display: inline-block;
    transition: var(--transition);
}

.partner-logos a:hover {
    transform: translateY(-3px);
}

.partner-logos img {
    height: 50px;
    width: auto;
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition);
}

.partner-logos img:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        display: none;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-navy);
        flex-direction: column;
        padding: 1rem 0;
        display: none;
        box-shadow: var(--shadow-medium);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        padding: 1rem 2rem;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        border-left-color: var(--accent-gold);
        border-bottom-color: transparent;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .section {
        padding: 3rem 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
}

/* Image placeholders */
.placeholder-img {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2c5282 50%, var(--primary-gold) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    min-height: 200px;
}

/* Support page specific */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.support-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.support-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-3px);
}

.support-card h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

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

/* Alert/Notice boxes */
.notice {
    background: var(--light-gold);
    border-left: 4px solid var(--primary-gold);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
}

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

.notice p {
    margin-bottom: 0;
    color: var(--text-dark);
}

/* About Page Styles */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-gold), var(--primary-navy));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    background: var(--primary-gold);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--primary-gold);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-year {
    display: inline-block;
    background: var(--primary-navy);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-item h4 {
    color: var(--primary-navy);
    margin-bottom: 0.25rem;
}

.timeline-item p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.partner-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    border: 1px solid var(--border-light);
}

.partner-initials {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2c5282 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    font-family: 'Playfair Display', Georgia, serif;
}

.partner-card h3 {
    margin-bottom: 0.5rem;
}

.partner-title {
    display: block;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.partner-credentials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.partner-card p {
    color: var(--text-light);
    text-align: left;
    margin-bottom: 0;
}

/* Approach/Philosophy List */
.approach-list {
    margin-top: 2rem;
}

.approach-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.approach-icon {
    width: 40px;
    height: 40px;
    background: var(--light-gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.approach-item h4 {
    margin-bottom: 0.25rem;
    color: var(--primary-navy);
}

.approach-item p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* Quote Block */
.about-quote {
    display: flex;
    align-items: center;
}

.about-quote blockquote {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2c5282 100%);
    padding: 3rem;
    border-radius: 8px;
    position: relative;
}

.about-quote blockquote::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--primary-gold);
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1;
    opacity: 0.5;
}

.about-quote blockquote p {
    color: var(--white);
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Credentials Grid */
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.credential-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.credential-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.credential-card h3 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.credential-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.credential-status {
    display: inline-block;
    background: var(--primary-gold);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credential-card.highlight {
    background: rgba(184, 134, 11, 0.2);
    border-color: var(--primary-gold);
}

.credential-card.highlight .credential-status {
    background: var(--white);
    color: var(--primary-navy);
}

/* Responsive adjustments for partners */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 1rem;
    }
    
    .timeline-item::before {
        left: -1.5rem;
    }
}
