@import "./vars.css";

/*****   RESET   *****/

*,
*::before,
*::after {
    box-sizing: border-box;
    font: inherit;
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
}

/*********************/

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    font-family: "Reddit Sans", system-ui, sans-serif;
    line-height: 1.5;
    background-color: var(--brand-white);
    color: var(--brand-text);
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    background: none;
    cursor: pointer;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.section {
    padding-block: clamp(3rem, 7vw, 6rem);
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--brand-navy);
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-primary {
    background-color: var(--brand-blue);
    color: var(--brand-white);
    border: 2px solid var(--brand-blue);
}

.btn-primary:hover {
    background-color: var(--brand-blue-hover);
    border-color: var(--brand-blue-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-blue);
    border: 2px solid var(--brand-blue);
}

.btn-outline:hover {
    background-color: var(--brand-blue);
    color: var(--brand-white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

[hidden] {
    display: none !important;
}

/*****   SUBPAGES   *****/

.page-hero {
    background: linear-gradient(135deg, var(--brand-sky) 0%, var(--brand-sky-2) 100%);
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.page-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--brand-navy);
    max-width: 48rem;
}

.page-hero-lead {
    margin-top: 1rem;
    max-width: 44rem;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--brand-muted);
}

.page-hero-with-image {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(22rem, 34vw, 32rem);
    overflow: hidden;
    background: var(--brand-navy);
}

.page-hero-media {
    position: absolute;
    inset: 0;
}

.page-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* zatamnjenje s lijeve strane da bijeli tekst bude čitljiv */
.page-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 44, 107, 0.7) 0%, rgba(10, 44, 107, 0.35) 45%, rgba(10, 44, 107, 0) 75%);
}

.page-hero-with-image .page-hero-inner {
    position: relative;
}

.page-hero-with-image h1,
.page-hero-with-image .page-hero-lead,
.page-hero-with-image .breadcrumb,
.page-hero-with-image .breadcrumb a {
    color: var(--brand-white);
}

.page-hero-with-image .page-hero-lead {
    max-width: 36rem;
}

@media (max-width: 767px) {
    .page-hero-media::after {
        background: rgba(10, 44, 107, 0.55);
    }
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: var(--brand-muted);
}

.breadcrumb a {
    color: var(--brand-blue);
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-content {
    max-width: 50rem;
}

.prose h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--brand-navy);
    margin: 2.5rem 0 0.875rem;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 1.75rem 0 0.5rem;
}

.prose h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 1.25rem 0 0.25rem;
}

.prose p,
.prose ul,
.prose ol {
    margin-bottom: 1rem;
    color: var(--brand-text);
    font-size: 1.05rem;
    line-height: 1.7;
}

.prose ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.prose ol {
    list-style: decimal;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.375rem;
}

.prose strong,
.prose b {
    font-weight: 700;
}

.prose a {
    color: var(--brand-blue);
    font-weight: 600;
    text-decoration: underline;
}

.placeholder {
    background-color: #fff4d6;
    border-radius: 0.25rem;
    padding: 0 0.25rem;
}

.notice {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    background-color: var(--brand-sky);
    border-left: 4px solid var(--brand-blue);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--brand-text);
}

.notice strong {
    color: var(--brand-navy);
    font-weight: 700;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-block: 2.5rem;
}

.value-card {
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background-color: var(--brand-white);
    border: 1px solid var(--brand-line);
    box-shadow: var(--shadow-card);
}

.value-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 0.5rem;
}

.value-card p {
    color: var(--brand-muted);
    line-height: 1.6;
}

.value-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background-color: var(--brand-sky);
    color: var(--brand-blue);
}

@media (max-width: 767px) {
    .value-grid {
        grid-template-columns: 1fr;
    }
}

.social-links,
.prose .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.prose .social-links li {
    margin: 0;
}

.social-links a,
.prose .social-links a {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background-color: var(--brand-sky);
    color: var(--brand-blue);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.social-links a:hover,
.prose .social-links a:hover {
    background-color: var(--brand-blue);
    color: var(--brand-white);
    transform: translateY(-0.125rem);
}

.social-links svg {
    width: 1.375rem;
    height: 1.375rem;
    fill: currentColor;
}

.social-links.on-dark a {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--brand-white);
}

.social-links.on-dark a:hover {
    background-color: var(--brand-white);
    color: var(--brand-navy);
}
