/* Snack stranice - Editorial Design */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
    --cream: #f9f7f3;
    --charcoal: #2d2d2d;
    --terracotta: #c4654a;
    --sage: #7d8471;
    --sage-dark: #5a6350;
    --light-border: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 18px;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    background: var(--cream);
    color: var(--charcoal);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: 2.75rem;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

em, i {
    color: var(--terracotta);
}

a {
    color: var(--charcoal);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Header */
header {
    padding: 30px 50px;
    border-bottom: 1px solid var(--light-border);
}

header nav {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

header .logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: var(--charcoal);
    text-decoration: none;
}

header .logo:hover {
    color: var(--terracotta);
}

header ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
}

header li {
    margin: 0;
}

header nav a {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--terracotta);
    transition: width 0.3s ease;
}

header nav a:hover::after {
    width: 100%;
}

/* Main content */
main {
    flex: 1;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 50px;
}

/* Sections */
section {
    margin-bottom: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-border);
}

section:first-child {
    border-top: none;
    padding-top: 0;
}

/* Overline */
.overline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--terracotta);
    margin-bottom: 1rem;
    display: block;
}

/* Hero */
.hero {
    text-align: left;
    padding: 2rem 0 3rem;
    border-top: none;
}

.hero h1 {
    font-size: 3.5rem;
    max-width: 700px;
}

.tagline {
    font-size: 1.25rem;
    color: #666;
    max-width: 500px;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    font-weight: 400;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Source Sans 3', sans-serif;
}

.button-primary,
.button {
    background: var(--charcoal);
    color: var(--cream);
}

.button-primary:hover,
.button:hover {
    background: var(--terracotta);
    color: var(--cream);
}

.button-secondary {
    background: transparent;
    color: var(--charcoal);
    border: 1px solid var(--charcoal);
}

.button-secondary:hover {
    background: var(--charcoal);
    color: var(--cream);
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* CTA section */
.cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Feature grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature {
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-border);
}

.feature-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 1rem;
    color: var(--sage);
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Packages */
.packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.package {
    background: #fff;
    padding: 2rem;
    border: 1px solid var(--light-border);
}

.package h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

.package-description {
    color: #666;
    margin-bottom: 1.5rem;
}

.package .features-list {
    list-style: none;
    margin-left: 0;
    margin-bottom: 1.5rem;
}

.package .features-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-border);
    font-size: 0.95rem;
}

.package .features-list li:last-child {
    border-bottom: none;
}

.package .price {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-top: 1rem;
}

.package .price .amount {
    color: var(--terracotta);
}

.package .price .period {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem;
    color: #666;
    display: block;
    margin-top: 0.25rem;
}

/* Addons */
.addons {
    margin-top: 3rem;
}

.addons ul {
    list-style: none;
    margin-left: 0;
}

.addons li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-border);
}

.addons li:last-child {
    border-bottom: none;
}

/* FAQ */
.faq dt {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.faq dd {
    margin-left: 0;
    color: #666;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-border);
}

/* Contact */
.contact-intro {
    max-width: 500px;
    margin-bottom: 2rem;
}

.contact-actions {
    margin-bottom: 2rem;
}

.contact-details {
    background: #fff;
    padding: 2rem;
    border: 1px solid var(--light-border);
    max-width: 400px;
}

.contact-details h2 {
    margin-top: 0;
    font-size: 1.25rem;
}

.contact-details p {
    margin-bottom: 0.75rem;
}

.contact-details a {
    color: var(--terracotta);
}

.contact-details a:hover {
    color: var(--charcoal);
}

/* Contact form */
.contact-form-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-border);
}

form {
    max-width: 450px;
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 400;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--light-border);
    background: #fff;
    font-size: 1rem;
    font-family: 'Source Sans 3', sans-serif;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--sage);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.char-count {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
}

/* Messages */
.error {
    color: #c44a4a;
}

.success {
    color: var(--sage-dark);
}

.form-message {
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.form-message.error {
    background: #fff5f5;
    border: 1px solid #c44a4a;
}

.form-message.success {
    background: #f5f9f5;
    border: 1px solid var(--sage);
}

/* Turnstile */
.cf-turnstile {
    margin-bottom: 1rem;
}

/* Note section */
.note {
    background: #fff;
    padding: 1.5rem;
    border-left: 3px solid var(--sage);
    margin-top: 2rem;
}

.note h2 {
    margin-top: 0;
    font-size: 1rem;
    font-family: 'Source Sans 3', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.note p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #666;
}

.note p:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    border-top: 1px solid var(--light-border);
    padding: 30px 50px;
    margin-top: auto;
    background: var(--cream);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #999;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: #999;
}

.footer-links a:hover {
    color: var(--terracotta);
}

/* Error page */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-page p {
    color: #666;
    margin-bottom: 2rem;
}

/* Hidden elements */
[hidden] {
    display: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .packages {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    header {
        padding: 20px 25px;
    }

    header nav {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    header ul {
        flex-wrap: wrap;
        gap: 20px;
    }

    main {
        padding: 40px 25px;
    }

    h1 {
        font-size: 2rem;
    }

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

    .features {
        grid-template-columns: 1fr;
    }

    .packages {
        grid-template-columns: 1fr;
    }

    footer {
        padding: 20px 25px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}
