body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 100px; /* Space for fixed header */
    background-color: #e0e0e0;
    color: #333;
    line-height: 1.6;
}

header {
    background: #800000;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1100px;
    margin: auto;
}

.logo-container {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo-container img {
    height: 60px;
    margin-right: 10px;
}

.clinic-name {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
}

/* Hamburger menu button - hidden by default on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: white;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-8px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-8px, -6px);
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

/* Dropdown menu styling for desktop */
.dropdown-menu {
    display: none;
    position: absolute;
    background: #800000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 150px;
    top: 100%;
    left: 0;
    z-index: 1000;
}

.dropdown-menu li {
    padding: 0;
    text-align: left;
    margin: 0;
}

.dropdown-menu a {
    color: white;
    display: block;
    padding: 10px 15px;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: #b22222;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

.side-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    margin: 0 20px;
}

.side-images img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    max-width: 100%;
    height: auto;
}

main {
    max-width: 800px;
    flex-grow: 1;
}

.hero {
    text-align: center;
    padding: 60px 20px;
    background: url('riverbend_clinic.png') center center / cover no-repeat;
    background-size: contain;
    background-position: center;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
}

.content-section {
    padding: 40px 20px;
    text-align: center;
    max-width: 900px;
    margin: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    text-align: center;
    margin-top: 10px;
}

.service-item {
    background: #b22222;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    color: white;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 20px;
    background: #800000;
    color: white;
}

.hidden {
    display: none;
}

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


.dropbtn {
    background: none;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
}

/* SIDE IMAGE ARCH BACKGROUNDS */


.side-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    margin: 0 20px;
    padding: 12px;
    background: #e8e4d8; /* matte interior */
    border-radius: 4px;
    box-shadow:
        0 0 0 6px #b8a88a,      /* outer frame */
        0 0 0 10px #8b7a63,     /* deeper outer frame */
        inset 0 0 8px rgba(0,0,0,0.4); /* inner shadow for depth */
    overflow: hidden;
}

.frame {
    width: 100%;
    padding: 12px;
    background: #e8e4d8; /* matte interior */
    border-radius: 4px;
    box-shadow:
        0 0 0 6px #b8a88a,      /* outer frame */
        0 0 0 10px #8b7a63,     /* deeper outer frame */
        inset 0 0 8px rgba(0,0,0,0.4); /* inner shadow for depth */
    /*margin-bottom: 20px; /* space between the two frames */
    overflow: hidden;
    position: relative;
}

.frame img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Forces a consistent square shape */
    object-fit: cover;   /* Acts as a mask: crops image to fill the square without distortion */
    display: block;
}

.orderOverlay {
	display:none;
	position:fixed;
	inset:0;
	background:rgba(0,0,0,.6);
	z-index:9999;
	align-items:center;
	justify-content:center;
}

.orderOverlay .overlay-content {
	background:#fff;
	padding:16px;
	border-radius:12px;
	max-width:700px;
	max-height:90%;
	overflow:auto;
}



/* MOBILE STYLES */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .logo-container img {
        height: 40px;
    }
    
    .clinic-name {
        font-size: 1.2rem;
    }
    
    nav {
        padding: 10px 15px;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: #800000;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        padding: 0;
        margin: 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 0;
        width: 100%;
    }
    
    .nav-links > li > a {
        padding: 18px 15px;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1rem;
    }
    
    /* Mobile dropdown */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #6b0000;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        width: 100%;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 600px;
        display: block;
    }
    
   
    .dropdown-menu a {
        padding: 15px 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 1rem;
    }
    
    /* Content adjustments */
    .content-wrapper {
        flex-direction: column;
        padding: 15px 10px;
    }
    
    .side-images {
        display: none;
				visibility: hidden;
				height: 0;
				padding: 0;
				margin: 0;
    }
    
    .hero {
        height: 200px;
        font-size: 1.2rem;
        padding: 30px 15px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        margin: 10px 0;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    main {
        width: 100%;
        padding: 0 10px;
    }
    
    .content-section {
        padding: 20px 15px;
        text-align: left;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }
    
    .logo-container img {
        height: 35px;
    }
    
    .clinic-name {
        font-size: 1rem;
    }
    
    .nav-links {
        top: 70px;
    }
    
    .hero {
        height: 180px;
    }
    
    .hero h1 {
        font-size: 1.3rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
}
