@import url('https://fonts.googleapis.com/css2?family=Lato&family=Lora&display=swap');

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
}

/* Divi-inspired CSS Framework */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #3EB489;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(62, 180, 137, 0.3);
    transition: all 0.3s ease;
    display: none;
    opacity: 0;
    z-index: 1000;
}

.back-to-top:hover {
    background: #329271;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(62, 180, 137, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
}

.arrow-up {
    display: inline-block;
    line-height: 1;
}

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

body {
    font-family: 'Lato', Arial, sans-serif;
    line-height: 1.7;
    color: #333333;
    background: #F6F5FB;
}

/* Divi Section Framework */
.et_pb_section {
    padding: 60px 0;
    position: relative;
}

.et_pb_row {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.et_pb_column {
    padding: 0 15px;
}

.et_pb_column_4_4 { width: 100%; }
.et_pb_column_1_2 { width: 50%; }
.et_pb_column_1_3 { width: 33.333%; }
.et_pb_column_2_3 { width: 66.666%; }

.et_pb_module {
    margin-bottom: 30px;
}

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
}

.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 0;
}

.logo h1 {
    color: #005A8C;
    font-size: 24px;
    font-weight: 700;
    margin-right: 40px;
}

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

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #005A8C;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #005A8C 0%, #2A3A5A 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 70px;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image-placeholder {
    background: rgba(255,255,255,0.1);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 2px dashed rgba(255,255,255,0.3);
}

/* Buttons */
.et_pb_button {
    background: #005A8C;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.et_pb_button:hover {
    background: #2A3A5A;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 90, 140, 0.3);
}

.et_pb_button_wrapper {
    margin-top: 20px;
}

/* Services Section */
.services-overview {
    background: #F6F5FB;
}

.services-overview h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2A3A5A;
}

.et_pb_blurb {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.et_pb_blurb:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

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

.et_pb_blurb h4 {
    color: #005A8C;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.et_pb_blurb p {
    color: #9B9C9F;
    line-height: 1.6;
}

/* Dentrix Section */
.dentrix-section {
    background: white;
}

.dentrix-section h2 {
    color: #2A3A5A;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.dentrix-section ul {
    list-style: none;
    padding-left: 0;
}

.dentrix-section li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #9B9C9F;
}

.dentrix-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3EB489;
    font-weight: bold;
}

.dentrix-image-placeholder {
    background: #E7E6F0;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 2px dashed #9B9C9F;
    color: #9B9C9F;
}

/* About Section */
.about-section {
    background: #2A3A5A;
    color: white;
}

.about-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-section p {
    font-size: 18px;
    opacity: 0.9;
}

/* Contact Section */
.contact-section {
    background: #F6F5FB;
}

.contact-section h2 {
    color: #2A3A5A;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2A3A5A;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #005A8C;
}

.contact-form p {
    margin-bottom: 20px;
}

/* Footer */
.footer-section {
    background: #2A3A5A;
    color: white;
    padding: 30px 0;
}

.footer-section p {
    margin: 0;
    opacity: 0.8;
}

/* Image Styles */
.hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.feature-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.about-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.et_pb_image img {
    transition: transform 0.3s ease;
}

.et_pb_image img:hover {
    transform: scale(1.02);
}

/* Fallback for missing images */
.et_pb_image img[src=""] {
    display: none;
}

.et_pb_image img[src=""]:after {
    content: "Image loading...";
    display: block;
    text-align: center;
    padding: 50px;
    background: #f0f0f0;
    color: #666;
    border-radius: 8px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .et_pb_column_1_2,
    .et_pb_column_1_3,
    .et_pb_column_2_3 {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .hero-section h1 {
        font-size: 36px;
    }
    
    .nav-menu {
        display: none; /* Would implement mobile menu here */
    }
    
    .et_pb_row {
        flex-direction: column;
    }
    
    .main-navigation {
        flex-direction: column;
        gap: 15px;
    }
}