/* ==========================================
CDL Rescue - Main Stylesheet
Easily customize colors in the :root section
========================================== */

:root {
/* Color Scheme */
--primary-color: #0056b3;
--secondary-color: #007bff;
--accent-color: #28a745;
--background-color: #f8f9fa;
--surface-color: #ffffff;
--text-color: #333333;
--light-text: #ffffff;
--border-color: #dddddd;
--navbar-color: #ffffff;
```
/* Layout */
--max-width: 1200px;
--navbar-height: 100px;

/* Effects */
--shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
--transition: 0.3s ease;
```

}

/* ==========================================
Reset
========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  }

body {
font-family: Arial, Helvetica, sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--background-color);

```
/* Prevent content from hiding behind navbar */
padding-top: calc(var(--navbar-height) + 20px);
```

}

/* ==========================================
Header / Navbar
========================================== */

#header {
position: sticky;
top: 0;
z-index: 1000;

height: var(--navbar-height);
width: 100%;

background-color: var(--surface-color);
box-shadow: var(--shadow);

display: flex;
justify-content: space-between;
align-items: center;

padding: 0 2rem;

}

/* Logo stays left */
.logo {
display: flex;
align-items: center;
flex-shrink: 0;
transition: background-color --transition;
border-radius: 30px;
}

.logo img {
height: 3.5rem;
width: auto;
display: block;
}

.logo:hover {
	background: var(--primary-color);
	transition: var(--transition);
}

/* Navigation stays right */
.navbar {
margin-left: auto;
}

.navbar ul {
display: flex;
flex-direction: row;
align-items: center;
gap: 2rem;

list-style: none;
margin: 0;
padding: 0;

}

.navbar li {
margin: 0;
padding: 0;
}

.navbar a {
display: block;
text-decoration: bold;
color: var(--text-color);
font-weight: 500;
padding: 0.8rem 0.85rem;
border-radius: 5px;
transition: var(--transition);
outline: 2px solid black;
}

.navbar a {
background-color: var(--navbar-color);
color: var(--light-text);
}

/* Mobile Layout */
@media (max-width: 768px) {

#header {
    flex-wrap: wrap;
    height: auto;
    padding: 1rem;
}

.logo {
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
}

.navbar {
    width: 100%;
    margin-left: 0;
}

.navbar ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

}

/* ==========================================
Navigation
========================================== */

.navbar ul {
display: flex;
align-items: center;
gap: 2rem;

```
list-style: none;
```

}

.navbar li {
list-style: none;
}

.navbar a {
text-decoration: none;
color: var(--text-color);
font-weight: 600;
transition: var(--transition);

```
padding: 0.5rem 0.75rem;
border-radius: 5px;
```

}

.navbar a:hover {
color: var(--light-text);
background-color: var(--primary-color);
}

.menu-toggle {
	font-size: 3rem;
	margin-right: 1rem;
	
}

/* ==========================================
Hero Banner
========================================== */

.hero-banner {
width: 100%;
height: 500px;
background-image:
    linear-gradient(
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.45)
    ),
    url("../images/hero-desktop.webp");

background-size: cover;
background-position: center;
background-repeat: no-repeat;

display: flex;
align-items: center;
justify-content: center;

text-align: center;

margin: 0px 0px 0px;
}

.hero-content {
max-width: 900px;
padding: 2rem;
color: white;
}

.hero-content h1 {
font-size: 3rem;
margin-bottom: 1rem;
color: white;

text-shadow: 2px 2px 8px rgba(0,0,0,0.5);

}

.hero-content p {
font-size: 1.3rem;
text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.btn {
	background-color: white;
	color: white;
	font: bold;
	padding: .75em;
}

.btn a {
	background-color:black;
	color:black;
}

.btn:hover {
	color: --primary-color;
	background-color: --secondary-color;
}

/* Mobile */
@media (max-width: 768px) {

.hero-banner {
    height: 350px;
	
	background-image:
    linear-gradient(
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.45)
    ),
    url("../images/hero-mobile.webp");
}

.hero-content h1 {
    font-size: 2rem;
}

.hero-content p {
    font-size: 1rem;
}

}

@media (min-width: 768px) {
	
	.hero-banner {
    background-color: transparent;
	background-image:
    linear-gradient(
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.45)
    ),
    url("../images/hero-desktop.webp");
	}
	
}

/* ==========================================
Main Content
========================================== */

main {
max-width: var(--max-width);
margin: 0 auto;
padding: 2rem;
}

section {
margin-bottom: 4rem;
}

h1, h2, h3 {
margin-bottom: 1rem;
color: var(--primary-color);
}

p {
margin-bottom: 1rem;
}

/* ==========================================
Buttons
========================================== */

.btn {
display: inline-block;

```
padding: 0.75rem 1.5rem;

background-color: var(--primary-color);
color: var(--light-text);

text-decoration: none;
border-radius: 5px;

transition: var(--transition);
```

}

.btn:hover {
background-color: var(--secondary-color);
}

/* ==========================================
Service Grid List
========================================== */

.service-list {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;

list-style: none;
padding: 0;
margin: 2rem 0;

}

.service-list {
padding: 1.5rem;
border-radius: 10px;

text-align: center;
font-weight: 600;

box-shadow: 0 4px 10px rgba(0,0,0,0.1);
transition: all 0.3s ease;

}


/* Alternate colors */
.service-list li(odd) {
background-color: #0056b3;
color: white;
}

.service-list li(even) {
background-color: #f1f5f9;
color: #333;
}

/* Hover Effect */
.service-list li {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.15);
cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
.service-list {
grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 480px) {
.service-list {
grid-template-columns: 1fr;
}
}

/* Make each card a positioning context */
.service-list li {
position: relative;
border-radius: 7px 10px; 
padding: 1em;
}

/* Vertical divider after column 1 and 2 */
.service-list li((3n))::after {
content: "";

position: absolute;
top: 15%;
right: -10px;

width: 2px;
height: 70%;

background-color: rgba(255,255,255,0.3);

}

/* Darker line for light-colored cards */
.service-list li(even)::after {
background-color: rgba(0,0,0,0.15);
}

.service-list li:nth-child(odd) {
    background: linear-gradient(135deg, #0056b3, #007bff);
    color: white;
}

.service-list li:nth-child(even) {
    background: linear-gradient(135deg, black, #001B3A);
    color: white;
}

/* ==========================================
Footer
========================================== */

footer {
background-color: var(--primary-color);
color: var(--light-text);
text-align: center;
```
padding: 2rem;
padding-top: 1.5rem;
padding-bottom: 1.5rem;
margin-bottom: 0;
```
}

#email, #tel {
	text-decoration: none;
	color: white;
	padding-bottom: .5em;
}

#email:hover {
	text-decoration:underline;
	color: blue;
}

#tel {
	font-size: 1.25em;
	align-content: center;
}


/* ==========================================
Responsive Design
========================================== */

/* Desktop Only */
@media (min-width: 768px) {

/* Hide hamburger on desktop */
.menu-toggle {
display: none;
background: none;
border: none;
font-size: 2rem;
cursor: pointer;
color: var(--text-color);
}

/* Desktop navigation */
.navbar ul {
display: flex;
gap: 2rem;
list-style: none;
}

.desktop-content .btn {
	display: inline-block;
}

.mobile-content {
	display: none;
}

}

/* Mobile Only */
@media (max-width: 768px) {
/* Hamburger Layout on mobile */

    #header {
        position: relative;

        display: flex;
        justify-content: center;
        align-items: center;

        padding: .75rem 1rem;
    }

    .logo {
        margin: 0 auto;
    }

    .logo img {
        height: 50px;
        width: auto;
    }

    .menu-toggle {
        position: absolute;
        right: 15px;
        top: 50%;

        transform: translateY(-50%);

        display: block;
        font-size: 2.5rem;

        background: none;
        border: none;
        cursor: pointer;
		padding-left: 15px;
    }


/* Hide nav by default */
.navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    background: var(--surface-color);
    box-shadow: var(--shadow);

    display: none;
}

/* Show when active */
.navbar.active {
    display: block;
}

.navbar ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.navbar li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

.navbar a {
    display: block;
    padding: 1rem;
    width: 100%;
}


```
#header {
    flex-direction: column;
    height: auto;
    padding: 1rem;
}

body {
    padding-top: 0px;
}

.navbar ul {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.logo img {
    max-height: 50px;
	height: 2rem;
	width: auto;
	display: block;
}
```
.logo:hover {
	background: none;
	transition: none;
}

.mobile-content .btn {
	display: inline-block;
}

.desktop-content {
	display: none;
}

}
