/* Moalboal Dive Center — Headless WordPress Frontend */
/* DESIGN-R | 2026-03-21 */

:root {
    /* Moalboal Dive Center brand palette (matched from Wix site) */
    --navy: #152040;
    --navy-mid: #505870;
    --blue: #2F4890;
    --blue-light: #AFBDE5;
    --blue-pale: #D9E3FF;
    --yellow: #FFDC21;
    --yellow-dark: #D8B600;
    --teal: #11A6A6;
    --white: #ffffff;
    --text: #ffffff;
    --text-light: rgba(255,255,255,0.85);
    --text-muted: rgba(255,255,255,0.6);
    --text-dark: #152040;
    --border: rgba(255,255,255,0.15);
    --max-width: 1200px;
}

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800&family=Poppins:wght@200;300;400;500&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--navy);
}

/* Header */
#site-header {
    background: var(--navy);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 160px;
}

.logo {
    color: var(--white);
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 138px;
    width: auto;
}

#main-nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
}

#main-nav a {
    color: var(--yellow);
    text-decoration: none;
    padding: 8px 14px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    border-radius: 4px;
    transition: all 0.2s;
    text-transform: capitalize;
}

#main-nav a:hover,
#main-nav a.active {
    color: var(--white);
    background: rgba(255,255,255,0.12);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* Main Content */
#content {
    min-height: 70vh;
}

.loading {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-muted);
    font-size: 18px;
}

/* Hero Section */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero.has-bg {
    min-height: 717px;
    padding: 120px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.page-hero.has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(21,32,64,0.4) 0%, rgba(21,32,64,0.5) 100%);
    z-index: 1;
}

.page-hero > * {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero .subtitle {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.page-hero .cta-button {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 36px;
    background: var(--yellow);
    color: var(--navy);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s;
}

.page-hero .cta-button:hover {
    background: var(--yellow-dark);
}

/* Page Body */
.page-body {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 20px;
}

.page-body h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--yellow);
    margin-bottom: 16px;
    margin-top: 40px;
}

.page-body h2:first-child {
    margin-top: 0;
}

.page-body h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--blue-light);
    margin-bottom: 12px;
    margin-top: 30px;
}

.page-body p {
    margin-bottom: 16px;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
}

.page-body a {
    color: var(--yellow);
    text-decoration: none;
}

.page-body a:hover {
    color: var(--yellow-dark);
    text-decoration: underline;
}

.page-body ul, .page-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.page-body li {
    margin-bottom: 8px;
    color: var(--text-light);
    line-height: 1.7;
}

.page-body strong {
    color: var(--white);
}

/* Service Cards (Home page) */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.service-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.08);
}

.service-card h3 {
    color: var(--yellow);
    margin-bottom: 12px;
    margin-top: 0;
}

.service-card p {
    font-size: 15px;
}

.service-card .card-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--yellow);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Pricing Tables */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px;
}

.pricing-table th,
.wp-block-table th {
    background: var(--blue);
    color: var(--white);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-table td,
.wp-block-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    color: var(--text-light);
}

.pricing-table tr:hover td,
.wp-block-table tr:hover td {
    background: rgba(255,255,255,0.05);
}

.pricing-table .price {
    font-weight: 700;
    color: var(--yellow);
    white-space: nowrap;
}

/* WordPress block table styling */
.wp-block-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.team-member {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 30px;
    border: 1px solid var(--border);
}

.team-member h3 {
    margin-top: 0;
    color: var(--yellow);
}

.team-member .role {
    color: var(--teal);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* Dive Sites */
.dive-sites {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.dive-site {
    background: rgba(255,255,255,0.05);
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    color: var(--blue-light);
    text-align: center;
    border: 1px solid var(--border);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 30px 0;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--white);
    font-size: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    margin-bottom: 20px;
    transition: border-color 0.2s;
    background: rgba(255,255,255,0.08);
    color: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--yellow);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    background: var(--yellow);
    color: var(--navy);
    border: none;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button:hover {
    background: var(--yellow-dark);
}

/* Contact Info */
.contact-info {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    border: 1px solid var(--border);
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: 500;
}

/* Credential Badge */
.credential-badge {
    background: rgba(47,72,144,0.2);
    border-left: 4px solid var(--yellow);
    padding: 24px 30px;
    border-radius: 0 8px 8px 0;
    margin: 30px 0;
}

.credential-badge h3 {
    margin-top: 0;
    color: var(--yellow);
}

/* Footer */
#site-footer {
    background: #0d1530;
    color: rgba(255,255,255,0.8);
    padding: 50px 20px 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-inner h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 12px;
}

.footer-inner a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.footer-inner a:hover {
    color: var(--white);
}

.footer-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.powered-by {
    margin-top: 8px;
}

/* Mobile */
@media (max-width: 768px) {
    .logo-img {
        height: 60px;
    }

    .header-inner {
        height: 80px;
    }

    .nav-toggle {
        display: block;
    }

    #main-nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 10px 20px 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    #main-nav.open ul {
        display: flex;
    }

    #main-nav a {
        padding: 12px 14px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .page-hero {
        padding: 50px 20px;
    }

    .page-body {
        padding: 40px 16px;
    }

    .header-inner {
        position: relative;
    }

    .page-hero.has-bg {
        min-height: 400px;
        padding: 80px 20px;
    }

    .service-cards.three-col {
        grid-template-columns: 1fr;
    }

    .home-section.split {
        flex-direction: column;
    }

    .split-left, .split-right {
        padding: 40px 20px;
    }

    .section-inner.two-col {
        flex-direction: column;
    }

    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-card {
        flex-direction: column;
        text-align: center;
    }

    .team-card img {
        margin: 0 auto 16px;
    }
}

/* Home Page Sections */
.home-section {
    padding: 60px 20px;
}

.home-section.dark {
    background: var(--navy);
}

.home-section.gradient {
    background: linear-gradient(135deg, var(--blue) 0%, #1a5a9e 100%);
}

.home-section.light {
    background: #f8f8f8;
    color: var(--text-dark);
}

.home-section.light h2 {
    color: var(--navy);
}

.home-section.light p {
    color: #444;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-inner.centered {
    text-align: center;
    max-width: 800px;
}

.section-inner.two-col {
    display: flex;
    gap: 40px;
    align-items: center;
}

.col-text {
    flex: 1;
}

.col-image {
    flex: 1;
}

.col-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.section-inner h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--yellow);
    margin-bottom: 16px;
}

.section-inner h3 {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 20px;
}

.section-inner p {
    margin-bottom: 16px;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
}

.section-inner strong {
    color: var(--white);
}

.section-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--yellow);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--yellow);
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.2s;
}

.section-link:hover {
    background: var(--yellow);
    color: var(--navy);
}

.service-cards.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.star-rating {
    font-size: 36px;
    color: var(--yellow);
    letter-spacing: 8px;
    margin-bottom: 20px;
}

/* Split section (contact CTA) */
.home-section.split {
    display: flex;
    background: var(--navy);
}

.split-left {
    flex: 1;
    padding: 60px 40px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
}

.split-left h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.split-left p {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.7;
}

.split-left a {
    color: var(--yellow);
    text-decoration: none;
}

.split-contact {
    margin-top: 24px;
}

.split-right {
    flex: 1;
    padding: 60px 40px;
    background: var(--white);
}

.split-right .contact-form label {
    color: var(--text-dark);
}

.split-right .contact-form input,
.split-right .contact-form textarea {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid #ccc;
}

.split-right .contact-form input:focus,
.split-right .contact-form textarea:focus {
    border-color: var(--navy);
}

.split-right .contact-form button {
    background: var(--navy);
    color: var(--white);
}

.split-right .contact-form button:hover {
    background: var(--blue);
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.photo-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.photo-gallery img:hover {
    transform: scale(1.03);
}

/* Team Cards with Photos */
.team-card {
    display: flex;
    gap: 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--yellow);
}

.team-card h3 {
    color: var(--yellow);
    margin-top: 0;
    margin-bottom: 4px;
}

.team-card .role {
    color: var(--teal);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.team-card p {
    font-size: 15px;
}

/* Content images */
.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
