/* =========================================
   Moore Pharma Ltd - Stylesheet
   ========================================= */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    background-color: #e8f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Skip Link (accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 1000;
    font-size: 14px;
}

.skip-link:focus {
    top: 0;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* =========================================
   Header
   ========================================= */
.site-header {
    background-color: #0e8a8a;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

/* Logo */
.site-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
}

/* Navigation */
.main-nav .nav-list {
    list-style: none;
    display: flex;
    gap: 8px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    padding: 8px 18px;
    border-radius: 3px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: block;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    text-decoration: underline;
}

.nav-link.active {
    text-decoration: underline;
}

/* Hamburger (mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
}

.hamburger {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #fff;
    position: relative;
    border-radius: 2px;
    transition: background-color 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    width: 26px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    left: 0;
    transition: transform 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hamburger active state */
.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   Main Content
   ========================================= */
main {
    flex: 1;
}

.page-content {
    padding: 50px 0 80px;
}

/* Page Title */
.page-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    line-height: 1.2;
}

/* Page Body Text */
.page-body p {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.75;
    color: #555;
}

.page-body p:last-child {
    margin-bottom: 0;
}

/* Section Heading (e.g., "Location" on contact page) */
.section-heading {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 28px;
    margin-bottom: 16px;
}

/* Email link */
.email-link {
    color: #c0652a;
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
    background-color: #0e8a8a;
    color: rgba(255, 255, 255, 0.85);
    padding: 40px 0 45px;
}

.site-footer p {
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* =========================================
   Responsive - Tablet & Mobile
   ========================================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background-color: #0e8a8a;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        padding: 12px 0;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        padding: 12px 30px;
        border-radius: 0;
        font-size: 16px;
    }

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .header-inner {
        padding: 0 20px;
    }

    .container {
        padding: 0 20px;
    }

    .page-title {
        font-size: 30px;
    }

    .page-content {
        padding: 35px 0 60px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 26px;
    }

    .logo-img {
        height: 30px;
    }

    .site-footer {
        padding: 30px 0 35px;
    }
}
