/*
Theme Name: Saulės mainai
Version: 0.1.0
Requires PHP: 8.0
Text Domain: saules-mainai
Domain Path: /languages
*/

:root {
    --color-brand: #004aad;
    --color-text: #1d1d1d;
    --color-text-muted: #727272;
    --white: #ffffff;
    --color-surface: #fafafa;
    --color-surface-muted: #f8f8f8;
    --color-surface-brand: #f2f6fb;
    --color-brand-tint: #ccdbef;
    --color-border: #ededed;
    --color-border-strong: #929292;

    --font-body: "Onest", system-ui, sans-serif;
    --font-display: "Alex Brush", cursive;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;

    --font-size-display: 6.25rem;
    --font-size-page-title: 2.5rem;
    --font-size-section-title: 2.5rem;
    --font-size-heading-lg: 1.875rem;
    --font-size-heading-md: 1.5rem;
    --font-size-heading-sm: 1.25rem;
    --font-size-text-lg: 1.25rem;
    --font-size-text: 1rem;
    --font-size-text-sm: 0.875rem;
    --line-height-body: 1.4375;

    --layout-max-width: 1920px;
    --content-max-width: 1340px;
    --layout-gutter: 50px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

body {
    background-color: var(--white);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--font-size-text);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-body);
    -webkit-font-smoothing: antialiased;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6,
.page-title, .section-title, .heading-lg, .heading-md, .heading-sm {
    font-weight: var(--font-weight-medium);
    line-height: 1.275;
}

.text-display {
    font-family: var(--font-display);
    font-size: var(--font-size-display);
    font-weight: var(--font-weight-regular);
    line-height: 0.85;
}

h1,
.page-title {
    font-size: var(--font-size-page-title);
    font-weight: var(--font-weight-semibold);
}

h2,
.section-title {
    font-size: var(--font-size-section-title);
}

h3,
.heading-lg {
    font-size: var(--font-size-heading-lg);
}

h4,
.heading-md {
    font-size: var(--font-size-heading-md);
}

h5, h6,
.heading-sm {
    font-size: var(--font-size-heading-sm);
}

.text-lg {
    font-size: var(--font-size-text-lg);
    line-height: 1.5;
}

.text-body {
    font-size: var(--font-size-text);
    line-height: var(--line-height-body);
}

.text-sm {
    font-size: var(--font-size-text-sm);
    line-height: 1.5;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

img, video {
    height: auto;
}

nav ul,
nav ol {
    list-style: none;
    padding: 0;
}

a {
    color: var(--color-brand);
    text-underline-offset: 0.15em;
}

nav a {
    color: inherit;
    text-decoration: none;
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 3px;
}

.layout,
.container {
    margin-inline: auto;
    width: 100%;
}

.layout {
    max-width: var(--layout-max-width);
}

.container {
    max-width: calc(var(--content-max-width) + 2 * var(--layout-gutter));
    padding-inline: var(--layout-gutter);
    position: relative;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 45px;
    max-width: 100%;
    padding: 0.625rem 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background-color: var(--color-brand);
    color: var(--white);
    font-size: var(--font-size-text);
    font-weight: var(--font-weight-medium);
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    text-decoration: underline;
}

.button:disabled {
    opacity: 0.55;
    cursor: default;
}

.button--outline {
    border-color: var(--color-border-strong);
    background-color: transparent;
    color: inherit;
}

.button--light {
    background-color: var(--white);
    color: var(--color-text);
}

.form-control {
    display: block;
    width: 100%;
    min-height: 45px;
    padding: 10px 16px;
    border: 1px solid #dbdbdb;
    border-radius: var(--radius-sm);
    background-color: var(--white);
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.4;
}

.form-control::placeholder {
    color: #767676;
    opacity: 1;
}

.form-control:focus {
    border-color: var(--color-brand);
    outline: 0;
    box-shadow: inset 0 0 0 1px var(--color-brand);
}

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

.privacy-consent { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; }
.privacy-consent input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--color-brand);
}

@media (max-width: 768px) {
    :root {
        --font-size-display: 3.625rem;
        --font-size-page-title: 1.5rem;
        --font-size-section-title: 1.875rem;
        --font-size-heading-lg: 1.5rem;
        --font-size-heading-md: 1.25rem;
        --font-size-heading-sm: 1.125rem;
        --font-size-text-lg: 1rem;
        --font-size-text: 0.875rem;
        --font-size-text-sm: 0.75rem;
        --line-height-body: 1.5;
        --layout-gutter: 16px;
    }

    .text-display {
        line-height: 0.81;
    }

    textarea.form-control {
        min-height: 100px;
    }
}
