/* -------------------------------------------------
   RadGuru – static landing page
   Author: Claude Code
   ------------------------------------------------- */

/* ==== Global reset & 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;
    min-height: auto;
    display: flex;
    flex-direction: column;
}
/* Main content stretches */
main {
    flex: none;
}

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

/* ==== Colour palette ==== */
:root {
    --primary-blue: #0b5ea8;
    --light-blue:  #d9edf0;
    --dark-gray:   #4d4d4d;
}

/* ==================================================
   1. HEADER
   ================================================== */
.site-header {
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}
.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
}
.logo {
    /* Use the image's native dimensions (up to a reasonable max) */
    max-height: 150px; /* allow larger logo while staying within header */
    width: auto;
    height: auto;
    object-fit: contain;
}
/* Ensure logo and site name are on same line when needed */
.logo-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
/* Logo – render at natural size */
.logo img {
    width: auto;
    height: auto;
    max-width: none;
    display: block;
}
/* Shrink on small screens only if wider than viewport */
@media (max-width: 768px) {
    .logo img {
        max-width: 90vw;
        height: auto;
    }
}
.site-name {
    font-weight: bold;
    margin-left: 0.5rem;
    font-size: 1.2rem;
    color: var(--primary-blue);
}
.header-center {
    overflow-x: auto;            /* mobile: scrollable if too many */
    gap: 0.8rem;
}
.partner-logo {
    height: 30px;
    width: auto;
    flex-shrink: 0;
}
.signin {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.signin svg {
    fill: currentColor;
}

/* Mobile: add gap between logo and sign‑in when header wraps */
@media (max-width: 768px) {
    .site-header {
        gap: 0.5rem; /* slight space between rows */
    }
}

/* ==================================================
   2. HERO BANNER (image slider)
   ================================================== */
.hero {
    margin-bottom: 30px;
    width: 100%;
    overflow: hidden;
    position: relative;
}
.slider {
    position: relative;
    width: 100%;
    height: 180px;               /* mobile default */
}
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}
.slide.active {
    opacity: 1;
}
.dots {
    position: absolute;
    bottom: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}
.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    cursor: pointer;
}
.dot.active {
    background: var(--primary-blue);
}

/* ==== Desktop hero height ==== */
@media (min-width: 1025px) {
    .slider {
        height: 350px;
    }
}

/* ==================================================
   3. ANNOUNCEMENTS & CONTACT SECTION
   ================================================== */
.info-section {
    background: var(--light-blue);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 40px 2rem;
    height: auto;
    min-height: auto;
}
.info-column {
    max-width: 100%;
}
.info-column h2 {
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}
.info-column a {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Tablet & Desktop: two‑column layout */
@media (min-width: 768px) {
    .info-section {
        flex-direction: row;
        justify-content: space-between;
    }
    .info-column {
        flex: 1;
        max-width: 45%;
    }
}

/* ==================================================
   4. FOOTER
   ================================================== */
.footer {
    background: #555555; /* dark gray */
    color: #fff;
    width: 100%;
    padding: 20px 20px; /* increased vertical padding */
    font-size: 14px;
    margin-top: 3rem;
    margin-bottom: 1rem; /* uniform whitespace */
}
.footer a {
    color: #fff;
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
/* Responsive: stack vertically under 768px */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* ==================================================
   Helper utilities
   ================================================== */
@media (prefers-reduced-motion: reduce) {
    .slide,
    .dot {
        transition: none;
    }
}