:root {
    --ocean: #0077b6;
    --deep: #023e8a;
    --light: #caf0f8;
    --sun: #ffd60a;
    --white: #ffffff;
    --dark: #1b1b1b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}


/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--deep);
    color: var(--white);
}

nav h1 {
    font-size: 1.4rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 15px;
}

h2 {
    text-align: center;
}

/* HERO */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                url('./img-r/banner.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
}

.hero p {
    background-color: rgb(0 0 0 / 50%);
    color: white;
    padding: 5px;
    border-radius: 25px;
    max-width: 600px;
    margin: auto;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.btn {
    background: var(--sun);
    color: var(--dark);
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
}

/* SECTION */
section {
    position: relative;
    padding: 50px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-section {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    align-items: center;
    padding: 50px 20px;
}

.about-text h2 {
    margin-bottom: 15px;
    color: var(--deep);
    text-align: left;
}

.about-text p {
    margin-bottom: 15px;
    background-color: white;
}

/* photo-badge-wrap: anchor point so a creature badge can sit on a photo's corner */
.photo-badge-wrap {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    display: block;
}
.padi5  img{
	width:60%; 
	border-radius:10px; 
	display: block; 
	margin: auto; 
	margin-bottom:10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .about-section {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1; /* image on top for mobile */
    }

    .about-text h2 {
        text-align: center;
    }
}

/* SERVICES GRID */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
}

.card {
    display: flex;
	position: relative;
    gap: 20px;
    align-items: flex-start;
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
    overflow: hidden;
}

/* card-media: wraps each card's photo so a creature badge can sit right on its corner,
   staying inside the card's own padding at every screen size — never near the text */
.card-media {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}
.card-media video {
    width: 140px;         /* same as your images */
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.card-media img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.card-content {
    flex: 1;
    min-width: 0;
    max-width: 60ch;
}

.card h3 {
    margin-bottom: 10px;
    color: var(--deep);
}

.card p {
    margin-bottom: 8px;
}

/* MOBILE FIX */
@media (max-width: 768px) {
    .services {
        grid-template-columns: 1fr;
    }
    .card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .card-media {
        width: 100%;
        height: auto;
    }

    .card-media img:first-child {
        width: 100%;
        height: auto;
    }
}

/* WHY US — same layout as .card, dark background + white text */
.why {
    display: grid;
    grid-template-columns: 1fr; /* mobile first */
    gap: 20px;
}

/* Desktop: allow multiple columns */
@media (min-width: 900px) {
    .why {
        grid-template-columns: 1fr 1fr;
    }
}

.why-card {
	display: flex;
    gap: 20px;
	
    align-items: flex-start;
    background: var(--deep);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    overflow: hidden;
}

/* why-media: same idea as card-media, for the Why Us cards */
.why-media {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.why-media img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.why-content {
    flex: 1;
    min-width: 0;
    max-width: 60ch;
}

.why-content h3 {
    margin-bottom: 10px;
    color: var(--white);
}

.why-content p {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .why-card {
	position:relative;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .why-media {
        width: 100%;
        height: auto;
    }

    .why-media img:first-child {
        width: 100%;
        height: auto;
    }
}


/*ZOOMABLE IMAGE*/
/* make cursor clickable */
.zoomable {
    cursor: zoom-in;
}

/* modal background */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding: 20px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
}

/* enlarged image */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal img {
    width: 100%;
    max-width: 800px;
    max-height: 75vh;
    border-radius: 10px;
}
.zoomable:hover {
    opacity: 0.9;
}

/*OWNER BIO*/
.bio{background:#caf0f8;}
.bio-container {
    display: grid;
    gap: 20px;
    align-items: center;
}

/* Mobile (default) — stacked */
.bio-container {
    grid-template-columns: 1fr;
}

/* Medium screens (tablet) */
@media (min-width: 700px) {
    .bio-container {
        grid-template-columns: 1fr 2fr; /* image + text */
    }

    .padi5 {
        grid-column: 1 / -1; /* full width below */
        text-align: center;
    }
}

/* Desktop (large screens) */
@media (min-width: 1100px) {
    .bio-container {
        grid-template-columns: 1fr 2fr 1fr; /* image | text | logo */
    }

    .padi5 {
        grid-column: auto; /* back to normal column */
    }
}

/* horizontal line */
hr {
    border: none;
    height: 2px;
    background: var(--sun);
    width: 30%;
    margin-top: 2px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}



/* FOOTER */
footer {
    background: var(--deep);
    color: white;
    text-align: center;
    padding: 20px;
	padding-bottom: 50px;
}

footer img.contact-img{
	 width: 20%;
}
footer .wapp{
	font-size: 1.4em;
	}
/* RESPONSIVE TEXT */
@media (max-width: 1300px) {
    .hero h2 {
        font-size: 1.8rem;
    }
	footer{
	padding-bottom: 100px;
	}
	footer .wapp{
	font-size: 1.6em;
	}
	footer img.contact-img{
	 width: 40%;
	}
}

@media (max-width: 600px) {
    .hero h2 {
        font-size: 1.8rem;
    }
	footer .wapp{
	font-size: 1.3em;
	}
	footer img.contact-img{
	 width: 100%;
	}
}

/* PADI AWARE SECTION*/
.conservation {
    text-align: center;
    background: var(--light);
    border-radius: 10px;
}

.conservation .aware-logo {
    width: 160px;
    margin: 0 auto 20px;
    display: block;
}

.conservation p {
    max-width: 70ch;
    margin: 0 auto 15px;
}

.conservation a {
    color: var(--deep);
    font-weight: bold;
    text-decoration: none;
}

.conservation a:hover {
    text-decoration: underline;
}

footer hr{width: 5%;}

/* ============================================
   DECORATIVE SEA CREATURE BADGES
   Each one sits directly on the corner of a card's own photo (or the About /
   Instructor photo), never in open text space — so it's safe to show on
   every screen size, phones included.
   ============================================ */
.card-badge {
    position: absolute;
    width: 50px;
    height:50px;
    opacity: 0.95;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}
