/* Carolina Appraisal & Estimating LLC - Enhanced Stylesheet */

:root {
    --sc-blue: #003366;
    --sc-blue-dark: #002244;
    --sc-blue-light: #004488;
    --accent-orange: #ff6b35;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-green: #28a745;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-heavy: 0 8px 40px rgba(0,0,0,0.16);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* Navigation Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(12%) sepia(85%) saturate(2450%) hue-rotate(206deg) brightness(96%) contrast(108%);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--sc-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

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

.nav-link-cta {
    background: var(--accent-orange);
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link-cta:hover {
    background: #e55a2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.nav-link-cta::after {
    display: none;
}

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

.nav-toggle-bar {
    width: 25px;
    height: 3px;
    background: var(--sc-blue);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Enhanced Hero Section */
.hero {
    background: 
        linear-gradient(135deg, rgba(0, 51, 102, 0.7) 0%, rgba(0, 34, 68, 0.7) 100%),
        url('https://images.unsplash.com/photo-1554744512-d6c603f27c54?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.logo {
    width: 450px;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.tagline {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.95;
    margin-bottom: 40px;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.cta-button {
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button.primary {
    background: var(--accent-orange);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.cta-button.primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-orange);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 5px;
}

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

section:nth-child(even) {
    background-color: var(--bg-light);
}

h2 {
    font-size: 2.2rem;
    color: var(--sc-blue);
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced About Section */
.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 600px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.feature-icon {
    color: var(--sc-blue);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    color: var(--sc-blue);
}

.feature-header h4 {
    color: var(--sc-blue);
    margin: 0;
    font-size: 1.1rem;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 280px;
    height: 350px;
    background: linear-gradient(135deg, var(--sc-blue-light), var(--sc-blue));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    text-align: center;
    box-shadow: var(--shadow-medium);
}

/* Enhanced Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--sc-blue-light);
}

.service-card .service-icon {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sc-blue);
}

.service-card .service-icon svg {
    color: var(--sc-blue);
}

.service-card h3 {
    color: var(--sc-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.feature-tag {
    background: var(--sc-blue-light);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Future Services Notice */
.future-services-notice {
    margin-top: 60px;
    padding: 35px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-orange);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.future-services-notice:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.notice-content h3 {
    color: var(--sc-blue);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.notice-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Coverage Section */
.coverage {
    background: var(--bg-white);
}

.coverage p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 50px;
}

.map-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.sc-map-img {
    width: 100%;
    height: auto;
    max-width: 500px;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.sc-map-img:hover {
    transform: scale(1.05);
}

/* Credentials Section */
.credentials {
    background: linear-gradient(135deg, var(--sc-blue) 0%, var(--sc-blue-dark) 100%);
    color: white;
}

.credentials h2 {
    color: white;
}

.credentials h2::after {
    background: var(--accent-orange);
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.credential-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

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

.credential-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.credential-icon svg {
    color: white;
}

.credential-item p {
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 500;
}

/* Enhanced Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.method-icon {
    flex-shrink: 0;
    color: var(--sc-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-icon svg {
    color: var(--sc-blue);
}

.method-info h4 {
    color: var(--sc-blue);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.contact-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-link:hover {
    text-decoration: underline;
}

.method-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 5px;
}

.trust-indicators {
    background: var(--sc-blue);
    color: white;
    padding: 25px;
    border-radius: 12px;
}

.trust-indicators h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.trust-indicators ul {
    list-style: none;
    padding: 0;
}

.trust-indicators li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* Enhanced Contact Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    color: var(--sc-blue);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group.half {
    margin-bottom: 0;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--sc-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.submit-btn {
    background: var(--accent-orange);
    color: white;
    padding: 16px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.submit-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 15px;
    text-align: center;
}

/* Checkbox styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--sc-blue);
}

.checkbox-label span {
    user-select: none;
}

/* Footer */
.footer {
    background: var(--sc-blue-dark);
    color: white;
    padding: 50px 0 30px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-copyright {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-logo {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.footer-logo-img {
    width: 200px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    opacity: 0.8;
    filter: brightness(0) invert(1);
}

/* Responsive Design */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 30px;
        padding-top: 60px;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-medium);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 15px 0;
    }
    
    .nav-link-cta {
        padding: 12px 30px;
        border-radius: 8px;
    }
    
    .hero {
        padding: 120px 0 80px;
        margin-top: 80px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-stats {
        gap: 30px;
        flex-direction: column;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .credentials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .contact-methods {
        gap: 20px;
    }
    
    .contact-method {
        padding: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 16px;
    }
    
    .form-group.half {
        margin-bottom: 0;
    }
    
    .contact-form {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .tagline {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
        width: 90%;
        max-width: 280px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-item {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .about-features {
        gap: 20px;
    }
    
    .feature-item {
        gap: 12px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .feature-header {
        display: flex;
        align-items: center;
        gap: 10px;
        justify-content: center;
    }
    
    .feature-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-card .service-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
    }
    
    .contact-methods {
        gap: 12px;
    }
    
    .contact-method {
        padding: 12px;
        flex-direction: row;
        text-align: left;
        gap: 12px;
        align-items: flex-start;
    }
    
    .method-icon {
        min-width: 40px;
    }
    
    .method-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .method-info h4 {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    
    .contact-link {
        font-size: 1rem;
    }
    
    .method-info p {
        font-size: 0.85rem;
        margin-top: 2px;
    }
    
    .contact-form {
        padding: 16px;
        margin-top: 20px;
    }
    
    .contact-form h3 {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }
    
    .form-row {
        margin-bottom: 12px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group.half {
        margin-bottom: 12px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .submit-btn {
        padding: 14px 30px;
        font-size: 1rem;
        margin-top: 8px;
    }
    
    .form-note {
        font-size: 0.8rem;
        margin-top: 12px;
    }
    
    .image-placeholder {
        width: 250px;
        height: 300px;
        font-size: 0.9rem;
    }
    
    .map-container {
        padding: 15px;
        margin: 0 -15px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .hero {
        background: white;
        color: var(--text-dark);
    }
    
    .contact-form {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}