﻿/* === Evergreen Vets Combined CSS ===
   Designed to support Desktop, iPad, and Mobile
*/

/* ====== Global Styles ====== */
body {
    margin: 0;
    background-color: #FFFFFF;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 17px;
    line-height: 26px;
    color: #000;
    padding: 0;
    box-sizing: border-box;
}

h1, h2, h3 {
    margin: 0;
    font-weight: normal;
    color: #333;
}
h1 {
    font-size: 32px;
    color: #339933;
    text-align: left;
}
h1.home {
    color: #606060;
    text-align: center;
}
h2 { font-size: 24px; }
h3 { font-size: 16px; }

img {
    max-width: 100%;
    height: auto;
}

/* ====== Header ====== */
.header {
    background-color: #fff;
    padding: 10px 0;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    z-index: 999;
}
.header-inside {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1250px;
    margin: 20px auto;
    padding: 0 15px;
    box-sizing: border-box;
    position: relative;
    align-items: flex-start;
}
.header-left {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}
.header-middle, .header-right {
    margin-top: 40px; /* increased spacing */
}
.header-left img {
    max-width: 340px;
}
.header-h1 h1 {
    font-size: 32px;
    color: #606060;
}
.header-telephone {
    font-size: 28px;
    font-weight: bold;
    color: #339933;
}
.header-email a {
    color: #339933;
    font-size: 20px;
    text-decoration: none;
    font-weight: bold;
}

/* ====== Navigation ====== */
.navigation {
    background-color: #339933;
    width: 100%;
    clear: both;
    margin-top: 0;
    padding: 0;
    position: relative;
    z-index: 998;
    height: auto;
    border-bottom: none;
}
.navigation-inner {
    max-width: 1065px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    height: 40px; /* consistent green bar height */
    display: flex;
    align-items: center;
}
.navigation-inner ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}
.navigation-inner li {
    margin: 0 2px;
}
.navigation-inner a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    background-color: transparent;
    text-decoration: none;
    font-family: "Trebuchet MS", sans-serif;
    border: none;
    font-size: 18px;
}
.navigation-inner a:hover {
    background-color: #358310;
    border-radius: 4px;
}

/* ====== Menu Gap Below Green Bar ====== */
.navigation {
    margin-bottom: 40px;
}

/* ====== Mobile Hamburger ====== */
.hamburger {
    display: none;
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background: #333;
    margin: 6px auto;
    transition: all 0.3s ease-in-out;
}
.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ====== Mobile Menu ====== */
.mobileMenu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #339933;
    text-align: center;
    z-index: 1000;
    padding: 0;
    box-sizing: border-box;
}
.mobileMenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobileMenu li a {
    display: block;
    padding: 12px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #fff;
    font-size: 18px;
}
.mobileMenu li a:hover {
    background-color: #2a7c2a;
}

/* ====== Page & Boxes Layout ====== */
.page,
.two-boxes-inner,
.three-boxes-inner,
.footer-inner,
.navigation-inner,
.header-inside {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-header h1 {
    margin-top: 40px;
}

.team {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 20px;
}
.team-left {
    flex: 0 0 250px;
    margin-right: 20px;
}
.team-right {
    flex: 1;
}

.two-boxes-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.box-image {
    flex: 0 0 68%;
}
.box-text {
    flex: 1;
}

.box-image img.cat, .box-image img.dog {
    float: left;
    margin: 0 20px 20px 0;
    max-width: 200px;
    height: auto;
}

/* ====== Three Boxes ====== */
.three-boxes {
    margin-top: 60px;
}
.three-boxes-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.box, .box-end {
    flex: 1 1 32%;
    border: 1px solid #339933;
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    font-size: 16px;
    line-height: 26px;
}

/* ====== Footer ====== */
.footer {
    background-color: #339933;
    color: #fff;
    text-align: center;
    padding: 30px 15px;
    margin-top: 40px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding-top: 0;
    padding-bottom: 0;
}
.footer-far-left, .footer-left, .footer-middle, .footer-right {
    flex: 1 1 22%;
    box-sizing: border-box;
    text-align: left;
    font-size: 14px;
    border-right: 1px solid #fff;
    padding-right: 10px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.footer-far-left:last-child, .footer-left:last-child, .footer-middle:last-child, .footer-right:last-child {
    border-right: none;
}
.footer a {
    color: #fff;
    text-decoration: none;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
}
.footer a:hover {
    text-decoration: underline;
}
.footer-right img.phone {
    float: right;
    margin-left: 10px;
}
.footer-right div:first-child {
    font-size: 28px;
    font-weight: bold;
}
.footer-right div:nth-child(2) {
    font-size: 24px;
    font-weight: bold;
}
.footer-right div:nth-child(2) a {
    font-size: 20px;
    font-weight: bold;
}

/* ====== Responsive ====== */
@media (min-width: 1025px) {
    .header-left { width: 35%; text-align: left; }
    .header-middle { width: 40%; text-align: center; }
    .header-right { width: 25%; text-align: right; }
    .navigation-inner ul { display: flex !important; }
    .mobileMenu, .hamburger { display: none !important; }
    .two-boxes-inner {
        flex-direction: row;
    }
}

@media (max-width: 1024px) {
    .header-inside { flex-direction: column; align-items: center; }
    .header-left, .header-middle, .header-right { width: 100%; }
    .navigation-inner ul { display: none !important; }
    .hamburger { display: block; }
    .mobileMenu.active { display: block !important; }
    .navigation { display: block; }
    h1, h1.home { font-size: 26px; }
    .page { width: 95%; margin: 0 auto; padding: 10px; }
    .two-boxes-inner {
        flex-direction: column;
    }
    .box-image, .box-text {
        width: 100%;
        padding-left: 0;
        border-left: none;
    }
    .three-boxes-inner {
        flex-direction: column;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-far-left, .footer-left, .footer-middle, .footer-right {
        width: 100%;
        text-align: center;
        border-right: none;
    }
    .footer-right img.phone {
        float: none;
        margin-left: 0;
    }
}

@media (max-width: 700px) {
    body, html { overflow-x: hidden; }
    h1, h1.home { font-size: 22px; }
    .page { width: 95%; margin: 0 auto; padding: 10px; }
}
@media (max-width: 768px) {
    .header-left img {
        margin-top: 30px;
    }
}
@media (max-width: 768px) {
    .three-boxes-inner {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .three-boxes-inner .box,
    .three-boxes-inner .box-end {
        width: 100%;
        margin: 0;
    }

.three-boxes .box-end {
    overflow: hidden;
}
}
@media (max-width: 768px) {
    h1 {
        font-size: 30px;
        line-height: 30px;
        margin-top: 10px;
    }
}
@media (max-width: 1024px) {
  .header-middle,
  .header-right {
    text-align: center;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
    h1 {
        font-size: 38px;
        margin-top: 0px;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .navigation {
        margin-bottom: 0px; /* Adjust this value to control the gap */
    }

    .two-boxes-inner h1 {
        margin-top: 0;
    }
}


