/* Dunedin Animal Medical Center Styles */
:root {
    --primary-color: #2b7bb9;
    --primary-hover: #1e5a8a;
    --secondary-color: #4CAF50;
    --text-color: #333333;
    --text-light: #757575;
    --bg-light: #f2f2f2;
    --bg-white: #ffffff;
    --accent: #2b7bb9;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    line-height: 1.3;
}

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

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

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

/* Top Bar */
.top-bar {
    background-color: var(--bg-white);
    border-bottom: 1px solid #eaeaea;
    padding: 8px 0;
    font-size: 14px;
}

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

.top-bar-left {
    color: var(--text-color);
}

.top-bar-left em {
    color: var(--text-light);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-right a {
    color: var(--text-color);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    color: var(--primary-color);
    font-size: 16px;
}

.social-icons a:hover {
    color: var(--primary-hover);
}

/* Header */
.header {
    background-color: var(--bg-white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo img {
    height: 56px;
    width: auto;
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: 0.3s;
}

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

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    color: var(--text-color);
    font-weight: 600;
    padding: 10px 0;
    display: block;
}

.nav-menu > li:hover > a {
    color: var(--primary-color);
}

/* Dropdown */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    min-width: 220px;
    list-style: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.submenu li:last-child a {
    border-bottom: none;
}

.submenu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 80px 0 120px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(43, 123, 185, 0.85) 0%, rgba(30, 90, 138, 0.7) 100%);
}

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

.hero-text {
    max-width: 500px;
}

.testimonial-card {
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.testimonial-quote {
    font-style: italic;
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

.testimonial-date {
    font-size: 13px;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

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

.btn-secondary {
    background-color: rgba(255,255,255,0.9);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: white;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 50px;
}

/* Phone CTA */
.phone-cta {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.phone-cta-content h2 {
    font-size: 20px;
    margin-bottom: 5px;
}

.phone-number {
    font-size: 36px;
    font-weight: 700;
    color: white;
    display: block;
    margin-bottom: 10px;
}

.phone-number:hover {
    color: #e0e0e0;
}

.phone-cta p {
    opacity: 0.9;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 18px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background: white;
    padding: 30px 25px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    color: var(--text-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    color: var(--text-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 28px;
    color: white;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Communities Section */
.communities-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.communities-section .section-title {
    color: white;
}

.communities-text {
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.8;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-col a {
    color: #ccc;
}

.footer-col a:hover {
    color: white;
}

.footer-col i {
    width: 20px;
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* Content Section */
.content-section {
    padding: 60px 0;
}

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

.content-main h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.content-main h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--text-color);
}

.content-main p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.content-main ul {
    color: var(--text-light);
    margin-left: 20px;
    margin-bottom: 20px;
}

.content-main li {
    margin-bottom: 8px;
}

.sidebar-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.sidebar-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.sidebar-card p {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.sidebar-card i {
    color: var(--primary-color);
    width: 20px;
}

.cta-card {
    background: var(--primary-color);
    color: white;
}

.cta-card h4,
.cta-card p {
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.contact-info-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    margin-bottom: 15px;
}

.contact-info-card h3 i {
    color: var(--primary-color);
}

.contact-form {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

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

/* Responsive */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        justify-content: center;
        text-align: center;
    }
    
    .top-bar-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .nav-menu > li {
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu > li > a {
        padding: 15px 0;
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        padding-left: 20px;
    }
    
    .has-submenu.active .submenu {
        display: block;
    }
    
    .hero {
        min-height: 400px;
        padding: 60px 0 100px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .phone-number {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
}
