/* ============================================
   INTERNATIONAL STYLE - HAIR SALON BERGAMO
   Custom Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --font-display: 'Italiana', serif;
    --font-body: 'Manrope', sans-serif;

    --color-bg: #F9F7F2;
    --color-surface: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-secondary: #666666;
    --color-accent: #B08D57;
    --color-accent-hover: #9A7A4A;
    --color-accent-light: #F5EFE6;
    --color-border: #E8E4DE;
    --color-error: #C0392B;
    --color-success: #27AE60;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 100px;

    --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.06);
    --shadow-md: 0 8px 24px rgba(26, 26, 26, 0.08);
    --shadow-lg: 0 16px 48px rgba(26, 26, 26, 0.12);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 64px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: 16px; /* Prevents zoom on iOS */
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 64px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-header.center {
    text-align: center;
}

.section-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text);
}

.grid-2 {
    display: grid;
    gap: 40px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(249, 247, 242, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--color-text);
    letter-spacing: 0.5px;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.main-nav a {
    font-size: 15px;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    display: block;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    padding-top: calc(var(--header-height) + 40px);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.7) 0%, rgba(26, 26, 26, 0.2) 50%, rgba(26, 26, 26, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 600px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    opacity: 0.9;
}

.hero-text {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
    opacity: 0.85;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    min-height: 48px;
    min-width: 48px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(176, 141, 87, 0.3);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(176, 141, 87, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-text);
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
    min-height: 56px;
}

.btn-full {
    width: 100%;
}

/* About */
.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 320px;
}

.about-content p {
    margin-bottom: 16px;
    color: var(--color-text-secondary);
}

.about-features {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
}

.feature-icon {
    color: var(--color-accent);
    font-size: 18px;
}

/* Services */
.services-grid {
    display: grid;
    gap: 20px;
}

.service-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-info {
    padding: 20px;
}

.service-info h3 {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 4px;
}

.service-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-accent);
}

.duration {
    font-size: 13px;
    color: var(--color-text-secondary);
    background: var(--color-bg);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

/* Team */
.team-grid {
    display: grid;
    gap: 24px;
}

.team-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-card:hover {
    box-shadow: var(--shadow-md);
}

.team-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-accent-light);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 4px;
}

.team-role {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.team-bio {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Booking Wizard */
.booking {
    background: var(--color-surface);
}

.booking-wizard {
    max-width: 720px;
    margin: 0 auto;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-border);
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
    border: 2px solid transparent;
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background: var(--color-accent);
    color: #fff;
}

.progress-step.completed .step-number {
    background: var(--color-success);
}

.step-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
    display: none;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--color-border);
    margin: 0 4px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.wizard-body {
    min-height: 300px;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.wizard-step.active {
    display: block;
}

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

.step-title {
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: 24px;
    text-align: center;
}

/* Service Options in Wizard */
.service-options {
    display: grid;
    gap: 12px;
}

.service-option {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-surface);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
}

.service-option:hover {
    border-color: var(--color-border);
}

.service-option.selected {
    border-color: var(--color-accent);
    background: var(--color-accent-light);
    box-shadow: var(--shadow-sm);
}

.service-option .opt-image {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.service-option .opt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-option .opt-info {
    flex: 1;
}

.service-option .opt-info h4 {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 2px;
}

.service-option .opt-info p {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.service-option .opt-meta {
    text-align: right;
    flex-shrink: 0;
}

.service-option .opt-meta .price {
    display: block;
    font-size: 16px;
}

.service-option .opt-meta .duration {
    display: block;
    margin-top: 2px;
}

/* Staff Options */
.staff-options {
    display: grid;
    gap: 16px;
}

.staff-option {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-surface);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-align: left;
}

.staff-option:hover {
    border-color: var(--color-border);
}

.staff-option.selected {
    border-color: var(--color-accent);
    background: var(--color-accent-light);
}

.staff-option .opt-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.staff-option .opt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-option .opt-info h4 {
    font-family: var(--font-display);
    font-size: 18px;
}

.staff-option .opt-info p {
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* Calendar */
.calendar-container {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.calendar-title {
    font-family: var(--font-display);
    font-size: 20px;
    text-transform: capitalize;
}

.calendar-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-text);
    transition: var(--transition);
}

.calendar-nav:hover {
    background: var(--color-border);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.day-label {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    padding: 8px 0;
}

.day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    min-height: 44px;
}

.day-cell:hover:not(.disabled):not(.empty) {
    background: var(--color-accent-light);
}

.day-cell.selected {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(176, 141, 87, 0.3);
}

.day-cell.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.day-cell.empty {
    cursor: default;
}

.day-cell.today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
}

.day-cell.today.selected::after {
    background: #fff;
}

/* Time Slots */
.time-slots-container {
    animation: fadeIn 0.3s ease;
}

.slots-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.time-slot {
    padding: 12px 8px;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-slot:hover {
    border-color: var(--color-accent);
}

.time-slot.selected {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(176, 141, 87, 0.3);
}

/* Booking Form */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 480px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    transition: var(--transition);
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

/* Summary */
.summary-box {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 28px;
    max-width: 480px;
    margin: 0 auto;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 15px;
}

.summary-item:last-of-type {
    border-bottom: none;
}

.summary-label {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.summary-value {
    font-weight: 600;
    text-align: right;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid var(--color-text);
    font-size: 18px;
    font-weight: 700;
}

/* Wizard Actions */
.wizard-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

@media (max-width: 767px) {
    .wizard-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        margin-top: 0;
        padding: 16px 20px;
        background: var(--color-surface);
        border-top: 1px solid var(--color-border);
        box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
        z-index: 50;
    }
    .booking-wizard {
        padding-bottom: 100px;
    }
}

.wizard-actions .btn {
    flex: 1;
}

/* Gallery */
.gallery-grid {
    display: grid;
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* Contact */
.contact {
    background: var(--color-surface);
}

.contact-info p {
    margin-bottom: 16px;
    font-size: 16px;
}

.contact-address {
    font-size: 18px !important;
    line-height: 1.5;
}

.contact-phone a {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-accent);
    display: inline-block;
    padding: 8px 0;
}

.contact-hours {
    margin-top: 24px;
}

.contact-hours h4 {
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: 12px;
}

.contact-hours ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-hours li {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 320px;
    background: var(--color-bg);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: none;
    display: block;
}

/* Footer */
.site-footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0 24px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-brand .logo {
    color: #fff;
    display: block;
    margin-bottom: 4px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    font-size: 13px;
    opacity: 0.6;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 998;
    background: var(--color-accent);
    color: #fff;
    padding: 16px 28px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(176, 141, 87, 0.4);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 56px;
}

.fab:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(176, 141, 87, 0.5);
}

.fab.hidden {
    transform: translateY(100px);
    opacity: 0;
}

/* Success / Error messages */
.message {
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-top: 16px;
}

.message.success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.message.error {
    background: rgba(192, 57, 43, 0.1);
    color: var(--color-error);
    border: 1px solid rgba(192, 57, 43, 0.2);
}

/* ============================================
   RESPONSIVE - Tablet & Desktop
   ============================================ */

@media (min-width: 768px) {
    :root {
        --header-height: 80px;
    }

    .section {
        padding: 100px 0;
    }

    .section-title {
        font-size: 48px;
    }

    .grid-2 {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .menu-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        flex-direction: row;
        background: transparent;
        border: none;
        padding: 0;
        gap: 32px;
    }

    .main-nav a {
        border: none;
        padding: 0;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        position: relative;
    }

    .main-nav a::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--color-accent);
        transition: width 0.3s ease;
    }

    .main-nav a:hover::after {
        width: 100%;
    }

    .hero-content {
        padding: 0;
    }

    .hero-title {
        font-size: 72px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .time-slots {
        grid-template-columns: repeat(4, 1fr);
    }

    .step-label {
        display: block;
    }

    .progress-step {
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .gallery-item.large {
        grid-row: span 2;
    }

    .booking-wizard {
        padding: 40px;
    }

    .fab {
        display: none; /* Hide FAB on desktop, use nav instead */
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .service-options {
        grid-template-columns: 1fr 1fr;
    }

    .staff-options {
        grid-template-columns: repeat(3, 1fr);
    }
}
