/* =============================================
   THE VALE MEDICAL AND WELLNESS CLINIC
   Brand Colours: Red #921513 | Blue #1a3a6b
   ============================================= */

:root {
    --red:        #921513;
    --red-dark:   #6b0f0d;
    --blue:       #1a3a6b;
    --blue-dark:  #0f2347;
    --blue-mid:   #1d4e8f;
    --red-light:  #fdf0f0;
    --blue-light: #eef2f9;
}

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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* TOP BAR */
.top-bar {
    background: var(--blue-dark);
    padding: 8px 20px;
    text-align: right;
    font-size: 14px;
}
.top-bar a {
    color: #c5d5ea;
    text-decoration: none;
    margin-left: 20px;
}
.top-bar a:hover { color: white; }

/* HEADER */
header { background: var(--blue); color: white; }

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    flex-wrap: wrap;
    gap: 15px;
    background: white;
}
.clinic-name h1 { font-size: 24px; font-weight: 700; color: var(--blue); }
.clinic-name p { font-size: 13px; color: #666 !important; margin-top: 2px; }
.clinic-logo { height: 70px; width: auto; display: block; }

.header-contact { text-align: right; }
.header-contact .phone { font-size: 22px; font-weight: bold; color: var(--red); }
.header-contact .phone a { color: var(--red); text-decoration: none; }
.header-contact .phone a:hover { color: var(--red-dark); }
.header-contact .subtext { font-size: 13px; color: #555; margin-top: 4px; }
.header-contact .subtext a { color: var(--blue) !important; text-decoration: none; }
.header-contact .subtext a:hover { color: var(--red) !important; }

/* AGPAL BADGE IN HEADER */
.agpal-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    padding: 5px 10px;
    margin-top: 6px;
    font-size: 12px;
    color: #c5d5ea;
}
.agpal-badge img { height: 28px; width: auto; }
.agpal-badge span { font-weight: 600; color: white; }

/* BULK BILLING BANNER */
.bulk-billing-banner {
    background: #1e8449;
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
}
.bulk-billing-banner span {
    background: white;
    color: #1e8449;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 10px;
    font-weight: 700;
}

/* NAV */
nav { background: var(--red); }
nav ul { list-style: none; display: flex; flex-wrap: wrap; padding: 0 40px; }
nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}
nav ul li a:hover, nav ul li a.active { background: var(--red-dark); }

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 50%, var(--red) 100%);
    color: white;
    padding: 70px 40px;
    text-align: center;
}
.hero h2 { font-size: 38px; margin-bottom: 15px; font-weight: 700; }
.hero p { font-size: 18px; max-width: 600px; margin: 0 auto 30px; color: #dde8f5; }

/* PAGE HERO */
.page-hero {
    background: linear-gradient(135deg, var(--blue) 0%, var(--red) 100%);
    color: white;
    padding: 50px 40px;
    text-align: center;
}
.page-hero h2 { font-size: 34px; margin-bottom: 10px; }
.page-hero p { font-size: 16px; color: #dde8f5; max-width: 600px; margin: 0 auto; }

/* HERO SLIDER */
.hero-slide { position: relative; }
.hero-slide img { width: 100%; height: 420px; object-fit: cover; display: block; }
.hero-slide-overlay {
    position: absolute; inset: 0;
    background: rgba(26,58,107,0.75);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: white; text-align: center; padding: 20px;
}
.hero-slide-overlay h2 { font-size: 38px; margin-bottom: 15px; }
.hero-slide-overlay p { font-size: 18px; max-width: 600px; margin: 0 auto 30px; color: #dde8f5; }

/* HOURS BAR */
.hours-bar {
    background: #f8f8f8;
    border-bottom: 3px solid var(--red);
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.hours-item { text-align: center; }
.hours-item .day { font-size: 12px; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }
.hours-item .time { font-size: 16px; font-weight: 700; color: var(--blue); }

/* BUTTONS */
.btn {
    display: inline-block;
    background: var(--red);
    color: white;
    padding: 13px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    margin: 5px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.btn:hover { background: var(--red-dark); }
.btn-blue { background: var(--blue); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}
.btn-outline:hover { background: rgba(255,255,255,0.2); }
.btn-outline-red {
    background: transparent;
    border: 2px solid var(--red);
    color: var(--red);
}
.btn-outline-red:hover { background: var(--red); color: white; }

/* MAIN CONTENT */
.main-content { max-width: 1100px; margin: 0 auto; padding: 50px 20px; }

/* SECTION TITLES */
.section-title { font-size: 28px; color: var(--blue); margin-bottom: 10px; }
.section-subtitle { color: #666; margin-bottom: 30px; font-size: 15px; }

/* SERVICES GRID (homepage) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.service-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-top: 3px solid var(--red);
    border-radius: 6px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.service-icon { font-size: 34px; margin-bottom: 10px; }
.service-card h3 { font-size: 15px; color: var(--blue); margin-bottom: 6px; font-weight: 600; }
.service-card p { font-size: 13px; color: #666; }

/* CARDS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.card {
    background: white;
    border: 1px solid #e0e0e0;
    border-top: 3px solid var(--red);
    border-radius: 6px;
    padding: 25px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.card-icon { font-size: 36px; margin-bottom: 12px; }
.card h3 { font-size: 16px; color: var(--blue); margin-bottom: 8px; font-weight: 600; }
.card p { font-size: 13px; color: #666; }
.card img { width: calc(100% + 40px); height: 160px; object-fit: cover; border-radius: 3px 3px 0 0; margin: -25px -20px 15px -20px; }

/* INFO BOX */
.info-box {
    background: var(--blue-light);
    border-left: 4px solid var(--blue);
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 20px;
}
.info-box h3 { color: var(--blue); font-size: 18px; margin-bottom: 12px; }
.info-box p, .info-box li { font-size: 14px; color: #444; margin-bottom: 6px; }
.info-box ul { padding-left: 18px; }

/* INFO ROW */
.info-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

/* CONTACT SECTION */
.contact-section {
    background: var(--blue);
    color: white;
    padding: 50px 40px;
    text-align: center;
}
.contact-section h2 { font-size: 28px; margin-bottom: 30px; }
.contact-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto 30px;
}
.contact-item h4 {
    color: #c5d5ea;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.contact-item p, .contact-item a { color: white; font-size: 16px; font-weight: 600; text-decoration: none; }
.contact-item .small { font-size: 13px; color: #c5d5ea; font-weight: normal; margin-top: 4px; }

/* AFTER HOURS BOX */
.after-hours {
    background: #fff8f8;
    border: 1px solid var(--red);
    border-radius: 8px;
    padding: 20px 30px;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}
.after-hours h4 { color: var(--red); font-size: 16px; margin-bottom: 8px; }
.after-hours p { color: #333; font-size: 15px; }
.after-hours a { color: var(--red); font-weight: bold; text-decoration: none; }

/* FOOTER */
footer {
    background: var(--blue-dark);
    color: #c5d5ea;
    padding: 0;
    font-size: 13px;
}
.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 25px 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo img { height: 50px; width: auto; }
.footer-agpal {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 10px 16px;
}
.footer-agpal img { height: 40px; width: auto; }
.footer-agpal-text { font-size: 12px; line-height: 1.4; }
.footer-agpal-text strong { color: white; display: block; font-size: 13px; }
.footer-copy {
    text-align: center;
    padding: 15px 20px;
    font-size: 12px;
}
.footer-copy .medi2apps {
    margin-top: 5px;
    color: #c5d5ea;
}
.footer-copy .medi2apps a {
    color: #f8c4c4;
    font-weight: 600;
}
footer a { color: #c5d5ea; text-decoration: none; }
footer a:hover { color: white; }

/* TABLE */
table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
table th {
    background: var(--blue);
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
}
table td { padding: 12px 15px; border-bottom: 1px solid #e0e0e0; font-size: 14px; }
table tr:nth-child(even) { background: #f8f8f8; }
table tr:hover { background: var(--blue-light); }

/* FORM */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: #333; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(146,21,19,0.12);
}
.form-group textarea { height: 120px; resize: vertical; }

/* LAYOUTS */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 25px; margin-bottom: 40px; }
.divider { border: none; border-top: 1px solid #e0e0e0; margin: 40px 0; }

/* HIGHLIGHT BOX */
.highlight-box {
    background: #fef9e7;
    border: 1px solid #f0c040;
    border-left: 4px solid #f0c040;
    border-radius: 6px;
    padding: 20px 25px;
    margin-bottom: 25px;
}
.highlight-box p { font-size: 14px; color: #444; }

/* GREEN BOX */
.green-box {
    background: #edfaf1;
    border: 1px solid #27ae60;
    border-left: 4px solid #27ae60;
    border-radius: 6px;
    padding: 20px 25px;
    margin-bottom: 25px;
}
.green-box h3 { color: #1e8449; margin-bottom: 8px; }
.green-box p { font-size: 14px; color: #444; }

/* CLINIC PHOTOS */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 30px; }
.photo-grid img { width: 100%; height: 200px; object-fit: cover; border-radius: 6px; }

/* APP STORE BADGES */
.app-badges { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 15px; }
.app-badges img { height: 45px; width: auto; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-main { padding: 15px 20px; text-align: center; justify-content: center; }
    .header-contact { text-align: center; }
    nav ul { padding: 0 10px; }
    nav ul li a { padding: 12px 10px; font-size: 13px; }
    .hero { padding: 50px 20px; }
    .hero h2 { font-size: 26px; }
    .page-hero { padding: 40px 20px; }
    .page-hero h2 { font-size: 26px; }
    .main-content { padding: 30px 15px; }
    .two-col, .three-col { grid-template-columns: 1fr; }
    .contact-section { padding: 40px 20px; }
    .contact-grid { gap: 25px; }
    .hours-bar { padding: 15px 20px; gap: 20px; }
    .footer-main { padding: 20px; justify-content: center; text-align: center; }
    .hero-slide img { height: 280px; }
    .hero-slide-overlay h2 { font-size: 24px; }
    .photo-grid { grid-template-columns: 1fr 1fr; }
}
