/* -----------------------------------------------------------
   PROJECT: AB Studio za masažu - One Page Website
   STYLE: Neutral, Stone & Linen, Minimalist
   ----------------------------------------------------------- */

/* 1. UVOZ FONTOVA (Google Fonts)
   - Cinzel: Za naslove (Elegantan)
   - Quicksand: Za CSS Logo (Geometrijski, obli)
   - Raleway: Za glavni tekst (Čitljiv, moderan) 
*/
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500&family=Quicksand:wght@500;700&family=Raleway:wght@300;400;500;600&display=swap');

/* 2. GLAVNE VARIJABLE (Boje i Postavke) */
:root {
    /* Branding Boje (Izvučene iz logotipa) */
    --brand-brown: #968676;   /* Topla taupe/smeđa (slovo 'a') */
    --brand-grey: #4A4A4A;    /* Tamno siva (slovo 'b' i ruka) */
    
    /* Neutralna Paleta (Interijer i Pozadine) */
    --bg-main: #FDFCFB;       /* "Off-white" topla pozadina */
    --bg-secondary: #F4F2F0;  /* Svijetla bež za sekcije */
    --bg-card: #FFFFFF;       /* Bijela za kartice */
    
    /* Tipografija Boje */
    --text-main: #333333;     /* Glavni tekst */
    --text-light: #777777;    /* Sporedni tekst */
    --border-light: #E0E0E0;  /* Nježni rubovi */

    /* Fontovi */
    --font-heading: 'Cinzel', serif;
    --font-logo: 'Quicksand', sans-serif;
    --font-body: 'Raleway', sans-serif;
    
    /* Layout */
    --container-width: 1100px;
    --header-height: 80px;
}

/* 3. RESET & GLOBALNI STILOVI */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    font-weight: 400;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--brand-grey);
    font-weight: 500;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.narrow {
    max-width: 700px; /* Uži kontejner za tekstove */
}

/* 4. LOGO - Slika */
.brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    user-select: none;
}

.logo-img {
    height: 55px;
    width: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.brand-logo:hover .logo-img {
    transform: scale(1.03);
    opacity: 0.9;
}

/* Footer logo - prilagođen za tamnu pozadinu */
.logo-img-footer {
    height: 70px;
    filter: brightness(1.2) invert(1);
    mix-blend-mode: screen;
}

/* 5. NAVIGACIJA */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 40px;
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--brand-grey);
}

.nav-links a:hover {
    color: var(--brand-brown);
}

/* Admin link u navigaciji */
.admin-link {
    background: var(--brand-grey) !important;
    color: white !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    font-size: 0.75rem !important;
}
.admin-link:hover {
    background: var(--brand-brown) !important;
}

/* Gumb u navigaciji */
.btn-outline {
    border: 1px solid var(--brand-grey);
    padding: 8px 24px;
    border-radius: 2px; /* Minimalistički rubovi */
}

.btn-outline:hover {
    background-color: var(--brand-grey);
    color: #fff;
    border-color: var(--brand-grey);
}

/* 6. HERO SEKCIJA */
.hero {
    height: calc(100vh - var(--header-height));
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: #fff;
    /* Hero pozadina - sunčeve zrake kroz oblake (božansko svjetlo) */
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.hero-inner {
    padding: 20px;
    max-width: 800px;
    animation: fadeIn 1.5s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 40px;
}

.scroll-indicator {
    font-size: 2rem;
    animation: bounce 2s infinite;
    opacity: 0.8;
    margin-top: 40px;
}

/* 7. INTRO & TEKSTUALNE SEKCIJE */
.intro {
    padding: 100px 0;
    text-align: center;
}

.tagline {
    display: block;
    color: var(--brand-brown);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.intro h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.intro p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* 8. USLUGE / GRID KARTICE */
.services {
    background-color: var(--bg-secondary);
    padding: 80px 0 100px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 4px;
    /* "Potpis" brenda - smeđa crta na vrhu */
    border-top: 4px solid var(--brand-brown);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.card-image {
    height: 220px;
    background-color: #E0E0E0; /* Placeholder boja */
    margin-bottom: 25px;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
}

/* Klase za slike - Diskretni duhovni motivi */
.img-1 { background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=600&q=80'); } /* Mirna plaža - opuštanje i mir */
.img-2 { background-image: url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=600&q=80'); } /* Planina sa svjetlom - vjera koja pomiče planine */
.img-3 { background-image: url('https://images.unsplash.com/photo-1518495973542-4542c06a5843?auto=format&fit=crop&w=600&q=80'); } /* Božansko svjetlo kroz drveće - ozdravljenje */

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.price {
    display: inline-block;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
    font-weight: 700;
    color: var(--brand-brown);
    width: 100%;
}

/* 9. BOOKING SEKCIJA (UI FORMA) */
.booking-section {
    padding: 100px 0;
    background-color: var(--bg-main);
}

.booking-ui {
    background-color: var(--bg-card);
    padding: 60px;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 50px rgba(0,0,0,0.04);
}

.booking-header {
    text-align: center;
    margin-bottom: 40px;
}

.visual-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.input-group {
    position: relative;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
}

/* Stil input polja - samo donja linija za elegantan izgled */
.input-group input,
.input-group select {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #CCC;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    border-radius: 0;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-bottom: 1px solid var(--brand-brown);
}

.btn-submit {
    margin-top: 20px;
    background-color: var(--brand-grey);
    color: #fff;
    border: none;
    padding: 18px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: var(--brand-brown);
}

/* 10. FOOTER */
footer {
    background-color: #2D2D2D;
    color: #fff;
    padding: 50px 0 30px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col {
    text-align: left;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: var(--font-body);
}

.footer-col p {
    color: #aaa;
    font-size: 0.85rem;
    margin: 4px 0;
    line-height: 1.5;
}

.footer-small {
    font-size: 0.75rem !important;
    color: #777 !important;
    margin-top: 8px !important;
}

/* Footer brand kolona */
.footer-brand {
    text-align: center;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 10px;
}

footer h3 {
    color: #fff;
    font-size: 1rem;
    letter-spacing: 1px;
    margin: 0 0 5px 0;
}

.footer-owner {
    font-size: 0.8rem !important;
    color: #888 !important;
}

/* Footer logo stil */
.logo-img-footer {
    height: 50px;
    filter: brightness(1.2) invert(1);
    mix-blend-mode: screen;
}

/* Footer kontakt */
.footer-phone {
    color: var(--brand-brown) !important;
    font-size: 1.1rem !important;
    font-weight: 600;
    text-decoration: none;
}

.footer-phone:hover {
    color: #fff !important;
}

.btn-footer-book {
    display: inline-block;
    background: var(--brand-brown);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-footer-book:hover {
    background: #8b7a6b;
    transform: translateY(-2px);
}

/* Footer schedule */
#footer-schedule {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #aaa;
}

#footer-schedule div {
    margin: 2px 0;
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
}

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

/* Footer responsive */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
}

/* 11. ANIMACIJE */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 12. MOBILE RESPONSIVE */
@media (max-width: 768px) {
    /* Navigacija */
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .nav-links {
        margin-top: 15px;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hero */
    .hero h1 { font-size: 2.2rem; }
    
    /* Layout */
    .form-row { grid-template-columns: 1fr; }
    .booking-ui { padding: 30px 20px; }
    
    .intro, .services, .booking-section {
        padding: 60px 0;
    }

    /* Fix za mobilnu tipkovnicu */
    .form input:focus {
        position: relative;
        z-index: 100;
    }
    
    .form {
        padding-bottom: 50px; /* Dodatni prostor za tipkovnicu */
    }
}

/* ============================================
   CALENDAR STYLES (Preserved from original)
   ============================================ */

.calendar {
    margin-bottom: 30px;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
}

.calendar-nav button {
    background: var(--brand-grey);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 2px;
    transition: background 0.3s, opacity 0.3s;
}

.calendar-nav button:hover:not(:disabled) {
    background: var(--brand-brown);
}

.calendar-nav button:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
    opacity: 0.6;
}

.calendar-nav span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--brand-grey);
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.day {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 10px;
    text-align: center;
}

.day.today {
    border-color: var(--brand-brown);
    border-width: 2px;
}

.day-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.day-name {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    font-weight: 600;
    white-space: nowrap;
}

.day-date {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-grey);
}

.slots {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.slot {
    padding: 10px 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    text-align: center;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
}

.slot:hover:not(.taken) {
    background: var(--brand-brown);
    color: #fff;
}

.slot.taken {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    text-decoration: line-through;
}

.slot.selected {
    background: var(--brand-grey);
    color: #fff;
}

.spacer {
    height: 15px;
}

/* Form Styles */
.form {
    background: var(--bg-card);
    padding: 30px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
}

.form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form input:focus {
    outline: none;
    border-color: var(--brand-brown);
}

.input-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 5px;
}

.form.slot-selected input:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

.form input:valid:not(:placeholder-shown) {
    border-color: #27ae60;
}

.form button[type="submit"] {
    width: 100%;
    background: var(--brand-grey);
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 2px;
}

.form button[type="submit"]:hover {
    background: var(--brand-brown);
}

.selection {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    padding: 18px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 500;
    color: #155724;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    animation: selectionPulse 0.5s ease-out;
}

.selection strong {
    color: #0d5524;
    font-weight: 700;
    font-size: 1.15rem;
}

@keyframes selectionPulse {
    0% { transform: scale(0.95); opacity: 0; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

/* Priority Notice */
.priority-notice {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #fff 100%);
    border-left: 4px solid var(--brand-brown);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 0 4px 4px 0;
}

.priority-notice strong {
    display: block;
    margin-bottom: 8px;
    color: var(--brand-grey);
    font-size: 1rem;
}

.priority-notice p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.priority-notice a {
    color: var(--brand-brown);
    font-weight: 600;
}

/* Message Box */
#messageBox {
    padding: 20px 25px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: 400;
    line-height: 1.6;
}

#messageBox strong {
    font-weight: 600;
}

#messageBox small {
    display: block;
    margin-top: 10px;
    opacity: 0.9;
}

#messageBox.hidden {
    display: none;
}

#messageBox.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#messageBox.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Info Section */
.info {
    padding: 60px 0;
}

.info h2 {
    text-align: center;
    margin-bottom: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.info-grid > div,
.info-grid > address {
    text-align: center;
    padding: 25px;
    background: var(--bg-card);
    border-radius: 4px;
    border-top: 3px solid var(--brand-brown);
}

.info-grid h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.info-grid p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.info-grid p.small {
    font-size: 0.9rem;
    margin-top: 5px;
}

.info-grid #contact-schedule {
    font-size: 1rem;
    line-height: 2;
}

.info-grid a {
    color: var(--brand-brown);
    font-weight: 600;
}

.about {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: 4px;
}

.about h3 {
    margin-bottom: 15px;
}

.about p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Booking Section */
.booking {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.booking h2 {
    text-align: center;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .week-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Cloudflare Turnstile Widget */
.cf-turnstile {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.cf-turnstile iframe {
    border-radius: 4px;
}

/* Duration Selector */
.duration-selector {
    background: var(--bg-card);
    padding: 25px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
}

.duration-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 15px;
}

.duration-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.duration-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 35px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.duration-btn:hover {
    border-color: var(--brand-brown);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.duration-btn.active {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.25);
}

.duration-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-grey);
    margin-bottom: 5px;
}

.duration-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand-brown);
}

.duration-btn.active .duration-time,
.duration-btn.active .duration-price {
    color: #155724;
}

/* Price Options in Service Cards */
.price-options {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
    justify-content: center;
}

.price-options .price {
    border: none;
    padding: 8px 15px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 0.9rem;
    width: auto;
}

/* Mobile Duration Selector */
@media (max-width: 500px) {
    .duration-options {
        flex-direction: column;
        align-items: center;
    }
    
    .duration-btn {
        width: 100%;
        max-width: 200px;
    }
}

