/**
 * Mustasfaa.com - Main Stylesheet
 * Contains design system tokens, global resets, grid utilities, components (buttons, cards, forms)
 */

/* Import Fonts (Fallback to clean sans-serif while loading, but using standard geometric fonts) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    /* Premium Curated Color Palette */
    --primary: #004084;        /* Deep Royal Navy (from logo) */
    --primary-dark: #002d5e;   /* Dark Navy */
    --primary-light: #f2f7fc;  /* Soft Blue tint */
    
    --secondary: #0e7c9a;      /* Teal-Cyan Ocean Blue (from logo) */
    --secondary-dark: #0a5a70; /* Darker Ocean Blue */
    --secondary-light: #f0f9fb;/* Clean Cyan tint */
    
    --dark: #0F172A;           /* Deep Charcoal Slate */
    --slate-gray: #475569;     /* Slate */
    --light: #F8FAFC;          /* Premium Warm White/Light Gray */
    --white: #FFFFFF;
    --border: #F1F5F9;         /* Very soft subtle lines */
    
    --danger: #EF4444;
    --success: #10B981;
    --warning: #F59E0B;
    
    /* Typography */
    --font-heading: 'Poppins', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadow System */
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 30px -4px rgba(15, 23, 42, 0.12);
    --shadow-premium: 0 20px 40px -10px rgba(15, 23, 42, 0.05);
    
    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 105px;
    --header-shrink-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 600;
    line-height: 1.25;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 12px;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: var(--radius-full);
}

h2.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.15rem;
}

p {
    color: var(--slate-gray);
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

/* Layout Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections */
.section {
    padding: 80px 0;
    position: relative;
}

.section-bg-white {
    background-color: var(--white);
}

.section-bg-light {
    background-color: var(--light);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 50px auto;
    text-align: center;
}

.section-header p {
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Grid System */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* SVG Icon utilities */
.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.icon-lg {
    width: 32px;
    height: 32px;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-lg {
    padding: 15px 36px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--dark);
    transition: border-color var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
}

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

/* Honeypot field (hidden from users) */
.honey-field {
    display: none !important;
    visibility: hidden !important;
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: var(--primary-light);
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform var(--transition-slow);
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-body {
    padding: 24px;
}

.card-title {
    margin-bottom: 10px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-primary { background-color: var(--primary-light); color: var(--primary); }
.badge-secondary { background-color: var(--secondary-light); color: var(--secondary); }
.badge-accredited { background-color: #FEF3C7; color: #D97706; } /* Gold/Amber */

/* Flex utilities */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-align-center { display: flex; align-items: center; }

/* Text & Colors */
.text-center { text-align: center; }
.text-teal { color: var(--secondary); }
.text-blue { color: var(--primary); }
.bg-white { background-color: var(--white); }
.mr-2 { margin-right: 8px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mt-4 { margin-top: 16px; }

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .section { padding: 50px 0; }
    .hide-mobile { display: none !important; }
}

@media (max-width: 576px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}

/* Responsive 2-column Sidebar Grid */
.grid-sidebar {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 45px;
    align-items: start;
}

.grid-sidebar.doctor-layout {
    grid-template-columns: 1fr 2.2fr;
}

@media (max-width: 991px) {
    .grid-sidebar,
    .grid-sidebar.doctor-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Prevent horizontal scrollbars and coordinate micro-overflows on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Hide Google Translate top banner, tooltips, and highlights */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}
body {
    top: 0px !important;
}
.goog-tooltip {
    display: none !important;
}
.goog-tooltip:hover {
    display: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

