/* ===== RESET ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* ===== LAYOUT ===== */

.layout {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 40px;
    background-color: #ffebcd;
}

/* ===== SIDEBAR ===== */

.sidebar {
    width: 240px;
    background-color: #a67b5b;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-image {
    margin-top: 25px;
    height: 250px;
    background-image: url("spine.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.social-icons {
    margin-top: auto;
    padding-top: 30px;
    text-align: center;
}

.logo img {
    max-width: 80%;
    height: auto;
    max-height: 140px;
    object-fit: contain;
}

/* ===== NAVIGATION BUTTONS ===== */

.sidebar nav a {
    background-color: #ffebcd;
    color: #3e2f1c;
    text-decoration: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: 0.2s ease;
}

.sidebar nav a:hover {
    background-color: #d8cfc4;
    transform: translateX(4px);
}

/* ===== SOCIAL ICONS ===== */

.social-icons a {
    display: inline-block;
    margin: 0 6px;
    font-size: 18px;
    color: #8b6f47;
    background-color: #ece4da;
    padding: 10px;
    border-radius: 50%;
    transition: 0.2s ease;
}

.social-icons a:hover {
    background-color: #d8cfc4;
    transform: translateY(-3px);
}

/* ===== GENERAL SECTIONS ===== */

.section,
.hero {
    max-width: 900px;
    margin: auto;
}

.button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    background-color: #8b6f47;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

/* ===== SERVICES GRID ===== */

.services-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.service-box {
    flex: 1;
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
}

/* ===== FORM ===== */

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
}

form input,
form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

form button {
    padding: 14px;
    font-size: 16px;
    border: none;
    background-color: #8b6f47;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

/* ===== FOOTER ===== */

footer {
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
    color: #777;
}

h2,
h3 {
    text-align: center;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 20px;
        align-items: center;
    }

    .sidebar nav {
        width: 100%;
        align-items: center;
    }

    .sidebar nav a {
        width: 100%;
    }

    .sidebar-image {
        height: 180px;
        margin-top: 20px;
    }

    .social-icons {
        margin-top: 20px;
    }

    .main-content {
        padding: 20px;
    }

    .services-grid {
        flex-direction: column;
    }

    form {
        max-width: 100%;
    }
}

/* ======================================
   FIXED SAFE AUTO SCROLL GALLERY
   ====================================== */

.photo-scroll {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    margin: 40px 0;
}

.photo-track {
    display: flex;
    gap: 15px;
    position: absolute;
    left: 0;
    top: 0;
    animation: scrollGallery 90s linear infinite;
}

.photo-scroll:hover .photo-track {
    animation-play-state: paused;
}

.photo-track img {
    height: 220px;
    width: auto;
    flex-shrink: 0;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.photo-track img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .photo-scroll {
        height: 180px;
    }

    .photo-track img {
        height: 160px;
    }
}

@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}