/* -------------------------------------------------
   Pedicardio – responsive static website
   ------------------------------------------------- */

/* ==== Global reset & base typography ==== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    color: #333;
    background: #fff;
}

/* ==== Colour palette ==== */
:root {
    --dark-blue:   #1b2233;
    --dark-gray:   #555555;
    --black:       #1a1a1a;
    --red:         #e53935;
    --white:       #ffffff;
    --yellow-link: #ffeb3b;
}

/* ==== Layout helper ==== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==================================================
   1. TOP BAR
   ================================================== */
.top-bar {
    background: var(--dark-blue);
    height: 6px;
    width: 100%;
}

/* ==================================================
   2. MAIN HEADER
   ================================================== */
.site-header {
    background: var(--white);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem; /* increased side padding for desktop */
    border-bottom: 1px solid #e0e0e0;
}
.welcome-msg {
    font-size: 0.9rem;
    color: #555;
    margin: 0.4rem 0;
    flex: 1 1 200px;
}
.login-btn {
    background: var(--red);
    color: var(--white);
    text-decoration: none;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    transition: background 0.2s ease;
    flex: 0 0 auto;
}
.login-btn:hover {
    background: #d32f2f;
}

/* ==================================================
   3. BANNER SECTION
   ================================================== */
.banner {
    width: 100%;
    overflow: hidden;
}
.banner img {
    width: 100%;
    height: 300px;               /* desktop */
    object-fit: cover;
    display: block;
}
/* Mobile banner height */
@media (max-width: 768px) {
    .banner img {
        height: auto;           /* let image scale naturally */
        max-height: 180px;      /* limit height on small screens */
        object-fit: contain;    /* avoid cropping */
    }
}

/* ==================================================
   4. PARTNER LOGOS SECTION
   ================================================== */
.partners {
    text-align: center;
    padding: 2rem 0;
}
.partners-title {
    font-size: 1.2rem; /* reduced size */
    margin-bottom: 1rem;
}
.partner-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: center;
}
.logo-card {
    flex: 1 1 150px;
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* Scale all logos to 25% of their container */
.logo-card img {
    max-width: auto;
    height: 50%;
}
.partner img {
    max-width: 100%;
    height: auto;
}
.partner-link {
    margin-top: 0.5rem;
    text-decoration: none;
    color: var(--dark-blue);
    font-size: 0.9rem;
}

/* ==================================================
   5. INFORMATION STRIP
   ================================================== */
.info-strip {
    background: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 1.2rem 0;
    font-size: 0.95rem;
}

/* ==================================================
   6. MAIN FOOTER (two columns)
   ================================================== */
.footer-main {
    background: var(--black);
    color: var(--white);
    padding: 2rem 0;
}
.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.footer-col {
    flex: 1 1 280px;
}
.footer-col h3 {
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}
.footer-col ul {
    list-style: disc inside;
    margin: 0.5rem 0 1rem 0;
    padding-left: 1rem;
}
.yellow-link {
    color: var(--yellow-link);
    text-decoration: none;
}
.yellow-link:hover {
    text-decoration: underline;
}
.footer-divider {
    width: 1px;
    background: #444;
}

/* ==================================================
   7. COPYRIGHT BAR
   ================================================== */
.copyright-bar {
    background: var(--dark-gray);
    color: var(--white);
    padding: 0.8rem 0;
}
.copyright-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.copy-left,
.copy-right {
    font-size: 0.9rem;
}

/* ==================================================
   8. RESPONSIVE BREAKPOINTS (mobile‑first)
   ================================================== */
/* Tablet / small‑desktop (≤1024px) – keep layout, tighter spacing */
@media (max-width: 1024px) {
    .site-header {
        padding: 0.6rem 1rem;
    }
}
/* Mobile (≤768px) */
@media (max-width: 768px) {
    /* Adjust logo cards for smaller screens */
    .logo-card {
        width: 100%;
        max-width: 200px;
        height: auto;
        margin: 0 auto;
    }
    .logo-card img {
        max-width: 80%;
        height: auto;
    }
    /* Header – stack vertically */
    .site-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
        padding: 0.5rem 1rem; /* add comfortable side padding on mobile */
    }
    .welcome-msg,
    .login-btn {
        margin: 0;
    }
    .welcome-msg {
        flex: 0 0 auto; /* prevent flex stretch that adds space */
        margin-bottom: 0.4rem; /* small space between text and button */
    }
    /* Partner logos – vertical stack */
    .partner-logos {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0; /* gap removed, using divider instead */
    }
    .partner-logos .logo-card:not(:last-child) {
        border-bottom: 1px solid var(--dark-gray);
        padding-bottom: 0.8rem;
        margin-bottom: 0.8rem;
    }
    /* Footer – single column, hide divider */
    .footer-columns {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-divider {
        display: none;
    }
    /* Copyright bar – centre */
    .copyright-content {
        flex-direction: column;
        text-align: center;
    }
    .copy-left,
    .copy-right {
        margin: 0.3rem 0;
    }
}
