/* ============================================
   KRC Tax & Accounting Services - CSS Styling
   Professional, Modern, Conversion-Focused Design
   ============================================ */

/* 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: #fff;
}

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

/* ============================================
   Navigation Header
   ============================================ */
.navbar {
    background: linear-gradient(135deg, #003d82 0%, #0052a3 100%);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 25px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 15px;
}

.nav-links a:hover {
    color: #ffd700;
}

.phone-header a {
    background: #ffd700;
    color: #003d82;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.phone-header a:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .navbar-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        text-align: center;
    }

    .phone-header {
        width: 100%;
    }

    .phone-header a {
        display: block;
        text-align: center;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 61, 130, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-headline {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subheadline {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #ffd700;
    color: #003d82;
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: white;
    color: #003d82;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero {
        min-height: 400px;
    }

    .hero-headline {
        font-size: 32px;
    }

    .hero-subheadline {
        font-size: 16px;
    }

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

    .btn {
        width: 100%;
    }
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 80px 0;
    background: #f8f9fa;
}

.about h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: #003d82;
}

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

.about-text {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.about-text h3 {
    font-size: 22px;
    color: #003d82;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: 80px 0;
    background: white;
}

.services h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    color: #003d82;
}

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

.service-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #ffd700;
}

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

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 20px;
    color: #003d82;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================
   Why Choose Us Section
   ============================================ */
.why-us {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef7 100%);
}

.why-us h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    color: #003d82;
}

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

.benefit-item {
    background: white;
    padding: 35px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 36px;
    color: #ffd700;
    margin-bottom: 15px;
    font-weight: 700;
}

.benefit-item h3 {
    font-size: 18px;
    color: #003d82;
    margin-bottom: 12px;
    font-weight: 600;
}

.benefit-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   Gallery / Portfolio Section
   ============================================ */
.gallery {
    padding: 80px 0;
    background: white;
}

.gallery h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #003d82;
}

.gallery-intro {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-item h3 {
    font-size: 18px;
    color: #003d82;
    padding: 20px;
    margin: 0;
    font-weight: 600;
}

.gallery-item p {
    color: #666;
    font-size: 14px;
    padding: 0 20px 20px;
    margin: 0;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    color: #003d82;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
    font-size: 22px;
    color: #003d82;
    margin-bottom: 30px;
    font-weight: 600;
}

.info-item {
    margin-bottom: 25px;
}

.info-item strong {
    display: block;
    color: #003d82;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-item p {
    color: #666;
    font-size: 15px;
}

.info-item a {
    color: #0052a3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: #ffd700;
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-weight: 600;
    color: #003d82;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0052a3;
    box-shadow: 0 0 0 3px rgba(0, 82, 163, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

.contact-form button {
    align-self: flex-start;
    margin-top: 10px;
}

#form-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
}

#form-success h3 {
    color: #155724;
    margin-bottom: 10px;
    font-size: 20px;
}

#form-success p {
    color: #155724;
    margin: 0;
}

.map-container {
    margin-top: 60px;
}

.map-container h3 {
    font-size: 24px;
    color: #003d82;
    margin-bottom: 20px;
    font-weight: 600;
}

.map-container iframe {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-form button {
        width: 100%;
        align-self: auto;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: linear-gradient(135deg, #003d82 0%, #0052a3 100%);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffd700;
}

.footer-section p {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-section a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffed4e;
}

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

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

.footer-section ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffd700;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    color: #b0b0b0;
    font-size: 13px;
}

.footer-bottom a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #ffed4e;
}

/* ============================================
   Error Message Styling
   ============================================ */
.error-message {
    color: #ff6b6b;
    margin-top: 5px;
    font-size: 14px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .about,
    .services,
    .why-us,
    .gallery,
    .contact {
        padding: 50px 0;
    }

    .about h2,
    .services h2,
    .why-us h2,
    .gallery h2,
    .contact h2 {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .services-grid,
    .benefits-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-headline {
        font-size: 28px;
    }

    .hero-subheadline {
        font-size: 14px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar,
    .hero-buttons,
    .contact-form,
    .footer {
        display: none;
    }
}
