/**
 * Template: system-ui, sans-serif
 * Generated by PSD2Template
 */

/* ============================================================
   CSS Custom Properties (design tokens from PSD)
   ============================================================ */
:root {
    --tpl-primary:    #598c71;
    --tpl-secondary:  #6c757d;
    --tpl-accent:     #fd7e14;
    --tpl-bg:         #f6f7f6;
    --tpl-text:       #1c1a17;
    --tpl-font:       system-ui, sans-serif;
    --tpl-max-width:  1440px;
    --tpl-card-bg:    #f8f9fa;
    --tpl-border:     rgba(0,0,0,.1);
    --tpl-radius:     0.5rem;
    --tpl-shadow:     0 4px 24px rgba(0,0,0,.08);
    --tpl-transition: 0.25s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--tpl-font);
    background-color: var(--tpl-bg);
    color: var(--tpl-text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Cards & content blocks */
.card, .moduletable {
    background: var(--tpl-card-bg);
    border: 1px solid var(--tpl-border);
    border-radius: var(--tpl-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Headings */
h1,h2,h3,h4,h5,h6 {
    color: var(--tpl-text);
    font-weight: 700;
    line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: 1.5rem; }

/* Accent text */
.text-accent, .accent { color: var(--tpl-accent) !important; }
.text-primary-color { color: var(--tpl-primary) !important; }

a {
    color: var(--tpl-primary);
    text-decoration: none;
    transition: color var(--tpl-transition);
}
a:hover { color: var(--tpl-accent); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   Layout Wrappers
   ============================================================ */
.container {
    max-width: var(--tpl-max-width);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    background: var(--tpl-primary);
    border-bottom: 1px solid transparent;
    color: #fff;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--tpl-shadow);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo a {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    text-decoration: none;
}
.site-logo a:hover { color: rgba(255,255,255,.85); text-decoration: none; }

/* Navigation */
/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 2px solid rgba(255,255,255,.7);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
}
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-primary { display: none; width: 100%; }
    .nav-primary.open { display: block; }
    .nav-primary ul { flex-direction: column; gap: 0; }
    .nav-primary a { display: block; padding: 0.5rem 1rem; }
}
nav.nav-primary ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
nav.nav-primary a {
    color: rgba(255,255,255,.9);
    font-weight: 500;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color var(--tpl-transition);
}
nav.nav-primary a:hover,
nav.nav-primary a.active {
    color: #fff;
    border-bottom-color: var(--tpl-accent);
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--tpl-primary) 0%, var(--tpl-secondary) 100%);
    color: var(--tpl-text);
    padding: 6rem 2rem;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, #598c7133 0%, transparent 70%);
    pointer-events: none;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-section h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1rem; }
.hero-section p { font-size: 1.2rem; opacity: .85; max-width: 600px; margin: 0 auto 2rem; }

/* ============================================================
   Main Content
   ============================================================ */
.site-main {
    min-height: 60vh;
}

/* ============================================================
   Sidebar
   ============================================================ */
#sidebar {
    padding-left: 2rem;
}
#sidebar .moduletable {
    background: #f8f9fa;
    border-radius: var(--tpl-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0,0,0,.06);
}
#sidebar .module-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--tpl-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--tpl-primary);
}

/* ============================================================
   Buttons (override Bootstrap)
   ============================================================ */
.btn-primary {
    --bs-btn-bg: var(--tpl-primary);
    --bs-btn-border-color: var(--tpl-primary);
    --bs-btn-hover-bg: var(--tpl-accent);
    --bs-btn-hover-border-color: var(--tpl-accent);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: #1a1a2e;
    color: rgba(255,255,255,.75);
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
}
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }
.footer-copyright { font-size: 0.85rem; opacity: 0.65; }

/* ============================================================
   Joomla Module Styles
   ============================================================ */
.moduletable { margin-bottom: 1.5rem; }
.module-title, h3.module-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--tpl-primary);
}

/* Messages */
.alert { border-radius: var(--tpl-radius); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .site-header { padding: 0.75rem 0; }
    .site-logo   { font-size: 1.25rem; }
    nav.nav-primary ul { flex-direction: column; gap: 0.5rem; }
    #sidebar { padding-left: 0; margin-top: 2rem; }
}

@media (max-width: 576px) {
    :root { font-size: 14px; }
}

/* ============================================================
   Accessibility
   ============================================================ */
.skip-to-content {
    position: absolute;
    top: -9999px;
    left: 1rem;
    background: var(--tpl-primary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0 0 var(--tpl-radius) var(--tpl-radius);
    z-index: 9999;
}
.skip-to-content:focus { top: 0; }

*:focus-visible {
    outline: 3px solid var(--tpl-accent);
    outline-offset: 2px;
}