/**
 * Custom color scheme based on logo colors
 * Primary green: #4CAF50 (light green)
 * Hover/dark green: #388E3C (medium green)
 * Accent: #7FD137 (light accent from logo)
 */

/* Primary buttons and links */
.btn-primary,
.btn-primary:focus {
    background-color: #4CAF50 !important;
    border-color: #4CAF50 !important;
}

.btn-primary.active,
.btn-primary:hover {
    background-color: #388E3C !important;
    border-color: #388E3C !important;
}

.btn-outline {
    border: 2px solid #4CAF50 !important;
    color: #4CAF50 !important;
}

.btn-outline:hover {
    border: 2px solid #4CAF50 !important;
    background: #4CAF50 !important;
    color: #fff !important;
}

/* Links */
a {
    color: #4CAF50;
}

a:hover {
    color: #388E3C;
}

/* Navigation active state */
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: #4CAF50 !important;
}

/* Topbar links */
.topbar a {
    color: #4CAF50;
}

.topbar a:hover {
    color: #388E3C;
}

/* Headings with color */
h1.color, h2.color, h3.color, h4.color, h5.color, h6.color {
    color: #4CAF50 !important;
}

/* Icons and decorative elements */
.fa-primary {
    color: #4CAF50;
}

/* Practice/Service boxes */
.practice-style2 {
    position: relative;
    overflow: hidden;
    border: none !important;
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
    min-height: 120px !important;
}

.practice-style2:hover {
    border-color: #4CAF50 !important;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.2) !important;
    transform: translateY(-2px) !important;
}

.practice-style2 img {
    display: none !important;
}

.practice-style2 h4 {
    color: #fff !important;
    background: #4CAF50 !important;
    padding: 40px 15px !important;
    margin: 0 !important;
    font-size: 18px !important;
    text-align: center !important;
    font-weight: 600 !important;
}

.practice-style2 span {
    display: none !important;
}

.practice-style2 a {
    text-decoration: none !important;
}

/* Footer links */
footer .footer-links a:hover {
    color: #7FD137;
}

/* Forms */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: #4CAF50 !important;
}

/* Pricing tables */
.plan-info.active,
.plan-info:hover {
    border-color: #4CAF50 !important;
}

.plan-price {
    color: #4CAF50 !important;
}

/* Page headers */
.page_header {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
}

/* Accordion active state */
.panel-heading.active {
    background-color: #4CAF50 !important;
    color: #fff !important;
}

.panel-heading.active a {
    color: #fff !important;
}

.panel-heading {
    background-color: #f5f5f5 !important;
    border-color: #e0e0e0 !important;
}

.panel-default {
    border-color: #e0e0e0 !important;
}

.panel-heading a {
    color: #333 !important;
}

.panel-heading a:hover {
    color: #4CAF50 !important;
}

.panel-heading a .fa {
    color: #333 !important;
}

.panel-heading.active a .fa {
    color: #fff !important;
}

/* Counter items */
.counter-item i {
    color: #4CAF50;
}

/* Custom list bullets */
.list2 li a:hover i {
    color: #7FD137;
}

/* Table striped rows */
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(76, 175, 80, 0.05);
}

/* Call to action sections */
.attorney-content {
    background-color: rgba(76, 175, 80, 0.03);
}

.cta-call a {
    color: #4CAF50;
    font-weight: bold;
}

.cta-call a:hover {
    color: #388E3C;
}

/* Navbar brand logo adjustment */
.navbar-brand {
    padding: 5px 15px !important;
    height: 70px !important;
}

.navbar-brand img {
    max-height: 60px !important;
    width: auto !important;
}

/* Replace old blue color #27496c with #333 everywhere */
h1, h2, h3, h4, h5, h6 {
    color: #333 !important;
}

/* Restore heading sizes (main.css resets them to inherit) */
.col-md-9 h1, .col-md-9 h2, .col-md-9 h3, .col-md-9 h4,
.main-content h1, .main-content h2, .main-content h3, .main-content h4 {
    font-size: revert !important;
    font-weight: 600 !important;
    margin: 25px 0 15px !important;
    line-height: 1.3 !important;
}
.col-md-9 h1, .main-content h1 { font-size: 32px !important; }
.col-md-9 h2, .main-content h2 { font-size: 26px !important; }
.col-md-9 h3, .main-content h3 { font-size: 22px !important; }
.col-md-9 h4, .main-content h4 { font-size: 18px !important; }

.navbar-default .navbar-nav > li > a {
    color: #333 !important;
}

/* Override any remaining #27496c blue colors with #333 */
.heading-title,
.heading-title2,
.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6,
p strong,
.lead,
.panel-title,
.side-practise a,
.list2 a {
    color: #333 !important;
}

/* Footer background - green theme */
footer {
    background-color: #4CAF50 !important;
    padding: 40px 0 20px 0 !important;
}

footer h4 {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

footer p,
footer a {
    color: #fff !important;
    font-size: 14px !important;
}

footer a:hover {
    color: #7FD137 !important;
    text-decoration: none !important;
}

footer .footer-links li {
    margin-bottom: 8px !important;
}
