/* 
    HAMRO TRUST & SAFETY CENTER 
    Consolidated Style System
    Clean, non-redundant, and mobile-first.
*/

@font-face {
    font-family: 'Galano Grotesque';
    src: url('../fonts/golano/GalanoGrotesque-Regular.woff2') format('woff2'),
         url('../fonts/golano/GalanoGrotesque-Regular.woff') format('woff');
    font-weight: 400; font-style: normal;
}

@font-face {
    font-family: 'Galano Grotesque';
    src: url('../fonts/golano/GalanoGrotesque-Bold.woff2') format('woff2'),
         url('../fonts/golano/GalanoGrotesque-Bold.woff') format('woff');
    font-weight: 700; font-style: normal;
}

@font-face {
    font-family: 'Galano Grotesque';
    src: url('../fonts/golano/GalanoGrotesque-ExtraBold.woff2') format('woff2'),
         url('../fonts/golano/GalanoGrotesque-ExtraBold.woff') format('woff');
    font-weight: 800; font-style: normal;
}

:root {
    /* Color Palette */
    --primary: #008975;
    --primary-light: #00a08a;
    --primary-dark: #006d5d;
    --primary-surface: #f0f7f5;
    
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --bg-main: #ffffff;
    --bg-soft: #f8fafc;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-premium: 0 20px 25px -5px rgba(0, 137, 117, 0.1);

    --radius-md: 12px;
    --radius-lg: 20px;
    
    --header-height: 80px;
}

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

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: calc(var(--header-height) + 40px);
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, sans-serif;
    background-color: var(--bg-soft);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Header & Navigation */
header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: 'Galano Grotesque', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.logo-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0;
    text-transform: none; /* Keep 'Trust & Safety' with casing */
    opacity: 0.8;
}

nav { display: flex; gap: 12px; }

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500; /* Reduced from 600 */
    font-size: 17px; /* Increased font size */
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

nav a:hover, nav a.active {
    color: var(--primary);
    background: transparent;
}

/* Layout */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px;
    display: flex;
    gap: 40px;
}

.sidebar {
    width: 280px;
    position: sticky;
    top: calc(var(--header-height) + 40px);
    align-self: start;
}

.sidebar-nav ul { list-style: none; }

.sidebar-nav a {
    display: block;
    padding: 10px 16px;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav a:hover {
    color: var(--primary);
    background: var(--primary-surface);
}

.sidebar-nav a.active {
    color: var(--primary);
    background: transparent; /* Removed background color */
    font-weight: 700;
}

.content-wrapper { flex: 1; min-width: 0; }

.content-page {
    background: var(--bg-main);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

/* Typography */
.content-wrapper h1 {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 32px;
    letter-spacing: -1.5px;
}

.content-wrapper h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 40px 0 20px;
    letter-spacing: -0.5px;
}

.last-updated {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 24px;
    display: block;
}

/* Lists - Restored to Standard */
.content-page ul, .content-page ol {
    margin-bottom: 24px;
    padding-left: 20px;
}

.content-page ul { list-style: disc; }
.content-page ol { list-style: decimal; }

.content-page li {
    margin-bottom: 8px; /* Reduced from 12px */
    color: var(--text-muted);
}

/* Links & Emails */
.content-wrapper a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.content-wrapper a:hover {
    border-bottom-color: var(--primary);
}

a[href^="mailto:"] {
    /* color: var(--accent) !important; */
    font-weight: 700 !important;
}

/* Features/Topics Grid */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.card {
    background: var(--bg-main);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-light);
}

.card h3 {
    font-size: 22px;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.card p { color: var(--text-muted); margin-bottom: 24px; }

.card-link {
    margin-top: auto;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
}

.card-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* Special Component: Step Indicator (For How-to guide) */
.content-page {
    counter-reset: step-counter;
}

.step-item {
    counter-increment: step-counter;
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    background: var(--bg-soft);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: flex-start;
}

.step-item:hover {
    transform: translateX(8px);
    background: var(--bg-main);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 137, 117, 0.2);
}

.step-number::before {
    content: counter(step-counter);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.step-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.7;
}

/* Safety Hero (Home Page) */
.safety-hero {
    text-align: center;
    margin-bottom: 40px;
}

.safety-hero h1 { margin-bottom: 16px; }

/* Footer */
footer {
    background: #0f172a;
    padding: 80px 40px;
    color: #f8fafc;
    text-align: center;
}

footer a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
    padding-top: 20px;
}

.footer-nav a { 
    color: #94a3b8 !important; 
    font-weight: 500;
}

/* Navigation Polish */
.back-nav {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.back-nav:hover {
    color: var(--primary);
    transform: translateX(-4px);
}

/* Footer Polish */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 32px 0;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-socials a {
    color: #94a3b8 !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-socials a:hover {
    color: #ffffff !important;
}

/* Mobile */
@media (max-width: 1024px) {
    .container { flex-direction: column; padding: 24px; }
    .sidebar { width: 100%; position: relative; top: 0; }
    .sidebar-nav ul { display: flex; overflow-x: auto; gap: 12px; }
    .sidebar-nav a { white-space: nowrap; }
}

@media (max-width: 768px) {
    header { padding: 0 20px; }
    .logo { font-size: 26px; }
    nav { display: none; } /* Hide main nav on mobile for simplicity */
    .content-page { padding: 32px 20px; }
}
