/* ==========================================================================
   Webmaster — style.css
   Mobile-first, bez frejmvorka, ručno pisano.
   ========================================================================== */

:root {
    --color-bg: #FAFAF8;
    --color-text: #1A1A1A;
    --color-dark: #14181F;
    --color-dark-text: #F2F2F0;
    --color-accent: #E8871E;
    --color-accent-dark: #C46E12;
    --color-border: #E4E2DD;

    --font-base: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --container-width: 72rem;
    --radius: 6px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-base);
    font-size: 1rem;
    line-height: 1.6;
}

body > main {
    flex: 1 0 auto;
}

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

a {
    color: var(--color-accent-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--color-accent);
}

h1, h2, h3 {
    line-height: 1.25;
    margin: 0 0 0.5em;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.25rem;
}

p {
    margin: 0 0 1em;
}

ul {
    margin: 0 0 1em;
    padding-left: 1.25em;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* --- Header / navigacija --- */
.site-header {
    background: var(--color-dark);
    color: var(--color-dark-text);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    position: relative;
}

.logo {
    color: var(--color-dark-text);
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
}

.nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 28px;
    height: 22px;
    cursor: pointer;
}

.nav-toggle-label span {
    display: block;
    height: 2px;
    background: var(--color-dark-text);
    border-radius: 1px;
}

.site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    padding-top: 0.75rem;
}

.nav-toggle:checked ~ .site-nav {
    display: flex;
}

.site-nav a {
    color: var(--color-dark-text);
    text-decoration: none;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(242, 242, 240, 0.12);
}

.site-nav a[aria-current="page"] {
    color: var(--color-accent);
}

@media (min-width: 48rem) {
    .nav-toggle-label {
        display: none;
    }

    .site-nav {
        display: flex;
        flex-basis: auto;
        flex-direction: row;
        gap: 1.5rem;
        padding-top: 0;
    }

    .site-nav a {
        border-top: none;
        padding: 0;
    }
}

/* --- Hero / naslovna --- */
.hero {
    padding: 2.5rem 1.25rem 1.5rem;
}

.hero h1 {
    font-size: 2rem;
}

.subtitle {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-text);
}

.subtitle-secondary {
    font-size: 1rem;
    color: #4A4A47;
}

/* --- Blokovi na naslovnoj --- */
.blocks {
    display: grid;
    gap: 1.25rem;
    padding: 1rem 1.25rem 3rem;
}

.block {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

@media (min-width: 48rem) {
    .blocks {
        grid-template-columns: repeat(3, 1fr);
        padding-left: 0;
        padding-right: 0;
    }
}

/* --- Generička stranica --- */
.page {
    padding: 2.5rem 1.25rem 3rem;
    max-width: 42rem;
}

.page h1 {
    font-size: 1.75rem;
}

.reference-list {
    columns: 1;
}

@media (min-width: 30rem) {
    .reference-list {
        columns: 2;
        column-gap: 2rem;
    }
}

/* --- Dugmad --- */
.btn {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--color-accent-dark);
    color: #fff;
}

.btn-cta {
    font-size: 1.05rem;
    padding: 0.8rem 1.5rem;
}

/* --- WooCommerce setup / paketi (sažetak) --- */
.hero-page {
    padding-bottom: 1rem;
}

.pricing-summary {
    padding: 1rem 1.25rem 1rem;
}

.pricing-summary-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 48rem) {
    .pricing-summary-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }
}

.price-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.price-card-featured {
    border-color: var(--color-accent);
}

.price-card h2 {
    font-size: 1.1rem;
    letter-spacing: 0.03em;
}

.price-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent-dark);
    margin-bottom: 0.25rem;
}

.price-card .tagline {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.price-card ul {
    margin-bottom: 1rem;
}

.price-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.badge {
    position: absolute;
    top: -0.7rem;
    right: 1rem;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

/* --- WooCommerce setup / cenovnik (tabela) --- */
.pricing {
    padding: 1rem 1.25rem 3rem;
}

.pricing-heading {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    white-space: nowrap;
}

.pricing-table th,
.pricing-table td {
    padding: 0.65rem 0.9rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.pricing-table thead th {
    text-align: center;
    font-size: 1rem;
}

.pricing-table tbody th,
.pricing-table tfoot th {
    text-align: left;
    font-weight: 400;
    white-space: normal;
}

.pricing-table th:first-child,
.pricing-table td:first-child {
    position: sticky;
    left: 0;
    background: #fff;
    text-align: left;
    white-space: normal;
    min-width: 12rem;
}

.pricing-table .package-name {
    font-weight: 700;
}

.pricing-table .price-row td,
.pricing-table .price-row th {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-accent-dark);
}

.pricing-table .package-featured {
    background: rgba(232, 135, 30, 0.07);
}

.pricing-table tbody tr:nth-child(even) td,
.pricing-table tbody tr:nth-child(even) th {
    background: #FAFAF8;
}

.pricing-table tbody tr:nth-child(even) td:first-child,
.pricing-table tbody tr:nth-child(even) th:first-child {
    background: #FAFAF8;
}

.pricing-table tfoot td {
    border-bottom: none;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.pricing-footnote {
    font-size: 0.85rem;
    color: #55534E;
    margin-top: 1rem;
}

/* --- Kontakt --- */
.company-info p {
    margin: 0 0 0.3em;
}

.legal-note {
    font-size: 0.9rem;
    color: #55534E;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    margin-top: 1rem;
}

.contact-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 32rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-row label {
    font-weight: 600;
    font-size: 0.9rem;
}

.form-row input,
.form-row textarea {
    font: inherit;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--color-text);
}

.form-row input:focus,
.form-row textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 1px;
}

/* Honeypot: fizički van ekrana, ne display:none (bolje zavarava botove) */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.field-error {
    display: block;
    color: #B3261E;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-success {
    background: rgba(232, 135, 30, 0.1);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 2rem;
    max-width: 32rem;
}

/* --- Footer --- */
.site-footer {
    background: var(--color-dark);
    color: var(--color-dark-text);
    margin-top: 2rem;
    flex-shrink: 0;
}

.footer-inner {
    padding: 1.75rem 1.25rem;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-inner a {
    color: var(--color-dark-text);
}

.footer-brand p {
    margin: 0 0 0.25em;
    opacity: 0.85;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.footer-contact a {
    font-weight: 600;
}

@media (min-width: 48rem) {
    .footer-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
