
/* Custom CSS for don't panic it-services with Google Fonts */

:root {
    --bs-primary: #212142;
    --bs-primary-rgb: 33, 33, 64;

    /* Font families */
    --font-logo: 'Josefin Sans', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --font-condensed: 'Roboto Condensed', sans-serif;
}

/* Global font setup */
body {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    font-size: 0.9em;
}

/* Logo and brand typography */
.navbar-brand,
.logo-text,
.brand-text {
    font-family: var(--font-body) !important;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.logo-text {
    font-family: var(--font-logo) !important;
    font-weight: 100; /* Thin for "don't" */
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

/* Hero titles and display text */
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6,
.hero-title {
    font-family: var(--font-condensed) !important;
    font-weight: 400;
}

/* Body text */
p, li, span, div, a,
.lead, .card-text, .text-muted {
    font-family: var(--font-body);
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-condensed) !important;
    font-weight: 400;
}

h1 {
    font-size: 28px;
    line-height: 48px;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 20px;
    line-height: 44px;
}

h3 {
    font-size: 18px;
    line-height: 44px;
}

/* Monospace elements */
code, pre, kbd, samp,
.code, .monospace {
    font-family: var(--font-mono) !important;
}

/* Buttons with better typography */
.btn {
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.025em;
}

.zammad-form {
    border: solid 1px #e1e4e8;
    border-radius: 0.5rem;
    padding: 1rem;
}

.zammad-form .btn {
    background-color: #198754;
    color: #ffffff;
    margin: 1em 0 1em 240px; /* Same left margin as form fields */
    display: block;
}

.zammad-form .form-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.zammad-form label {
    flex: 0 0 200px; /* Fixed width for labels */
    text-align: right;
    direction: rtl;
    font-weight: 400;
    margin: 0;
}

.zammad-form input,
.zammad-form textarea,
.zammad-form select {
    flex: 1;
    margin: 0.5em;
}

.symbol {
    display: inline-block;
    width: 1em;
    text-align: center;
    font-weight: 200;
}

a.text-light.text-decoration-none {
    transition: color 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

a.text-light.text-decoration-none:hover {
    color: #79b8ff !important;
    opacity: 0.8;
}

/* Or if you're using Bootstrap */
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

/* Navigation items */
.nav-link {
    font-family: var(--font-body);
    font-weight: 400;
    color: #ffffff;
}

/* Bootstrap overrides */
.bg-primary {
    background-color: var(--bs-primary) !important;
}

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

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
}

.text-primary {
    color: var(--bs-primary) !important;
}

/* Layout utilities */
.min-vh-50 {
    min-height: 50vh;
}

.hero-section {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0052a3 100%);
}

/* Enhanced hero typography */
.hero-section h1 {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: -0.04em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-section .lead {
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* Service cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.service-card .card-title {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.service-card .card-text {
    font-family: var(--font-body);
    font-weight: 300;
}

.service-icon i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
    color: #ffc107 !important;
}

/* Typography enhancements */
.lead {
    font-weight: 300;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-light {
    font-weight: 300 !important;
}

/* Code blocks with better typography */
pre {
    font-family: var(--font-mono);
    font-size: 0.9em;
    line-height: 1.4;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background-color: #f1f3f4;
    color: #d73a49;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
}

/* Footer typography */
footer h5, footer h6 {
    font-family: var(--font-body);
    font-weight: 600;
}

footer p, footer a, footer small {
    font-family: var(--font-body);
    font-weight: 400;
}

/* Dark mode styles */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode .bg-light {
    background-color: #1e1e1e !important;
}

body.dark-mode .card {
    background-color: #1e1e1e;
    border-color: #333;
    color: #ffffff;
}

body.dark-mode .text-muted {
    color: #adb5bd !important;
}

.text-muted {
    color: #777777 !important;
}

body.dark-mode .navbar-dark {
    background-color: #0d1117 !important;
}

body.dark-mode pre {
    background-color: #1e1e1e;
    border-color: #333;
    color: #e1e4e8;
}

body.dark-mode code {
    background-color: #2d2d2d;
    color: #79b8ff;
}

/* Responsive font sizes */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .hero-section {
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.2rem;
        letter-spacing: -0.03em;
    }

    .service-card:hover {
        transform: translateY(-5px);
    }

    .navbar-brand {
        font-size: 1.3rem;
    }
}

/* Small devices font adjustments */
@media (max-width: 576px) {
    body {
        font-size: 0.95rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.2rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced navbar brand */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-body) !important;
    letter-spacing: -0.02em;
}

.navbar-brand:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Footer enhancements */
.bg-dark a:hover {
    color: var(--bs-primary) !important;
    transition: color 0.3s ease;
}

.custom-icon {
    transition: color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.custom-icon:hover {
    color: #ffc107 !important; /* Your hover color */
    transform: scale(1.05);     /* Slight scale effect */
}

/* If you want to keep Bootstrap's text-primary class working */
.text-primary .custom-icon {
    color: var(--bs-primary) !important;
}


.dl-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.5rem;
    max-width: 600px;
    margin: 0 auto;
    align-items: center;
}

.dl-horizontal dt {
    text-align: right;
    font-weight: bold;
    margin: 0;
    padding-right: 0rem;
}

.dl-horizontal dd {
    text-align: left;
    margin: 0;
    padding-left: 0rem;
}
/* Print styles */
@media print {
    body {
        font-family: var(--font-body);
        font-size: 12pt;
        line-height: 1.4;
    }

    h1, h2, h3, h4, h5, h6 {
        font-family: var(--font-body);
        page-break-after: avoid;
    }

    pre, code {
        font-family: var(--font-mono);
        font-size: 10pt;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
