/* --- Variables --- */
:root {
    --primary-color: #f7ecdb;
    --secondary-color: #8D6E63;
    --accent-color: #FFAB91;
    --light-bg: #FFFEF0;
    --dark-text: #3E2723;
    --nav-icon-border: #5D4037;
}

/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

/* --- Header & Navigation --- */
.header {
    background: var(--primary-color);
    padding: 0.5rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: top 0.3s ease;
}
.nav-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo-text {
    font-family: 'Great Vibes', cursive;
    font-size: 1.5rem;
    color: var(--dark-text);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.logo-img {
    width: 100px;
    height: auto;
    transition: transform 0.3s ease;
}
.logo:hover .logo-img { transform: rotate(15deg); }
.menu-button {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-text);
    transition: transform 0.3s ease;
}
.menu-button.active { transform: translateY(-10px); }
.nav-links {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: rgb(250,229,211);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-direction: column;
    list-style: none;
    padding: 1rem;
    transition: max-height 0.3s ease;
    overflow: hidden;
}
.nav-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    text-align: center;
    padding: 0.5rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: grey;
    font-weight: 500;
}
.nav-links a::before {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    background-image: url('Media/Dog Tales Kennels Nav.png');
    background-size: cover;
    border-radius: 50%;
    border: 2px solid var(--nav-icon-border);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}
.nav-links a:hover { background: rgba(255,255,255,0.2); }
.nav-container:hover .nav-links { display: flex; }

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}
.image-container {
    width: 100%;
    height: 600px;
    overflow: hidden;
    position: relative;
}
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
    position: absolute;
    top: 0; left: 0;
    opacity: 0;
}
.image-container img.active { opacity: 1; }
.hero h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,1);
    margin-bottom: 1rem;
    color: white;
    letter-spacing: -1px;
}
.hero h2 {
    font-size: 2rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,2);
    font-weight: 200;
    max-width: 800px;
    line-height: 1.3;
    padding: 0 2rem;
}

/* --- Section Layout --- */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    font-size: 1.5rem;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--accent-color);
    margin: 1rem auto;
}

/* --- Services --- */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 2rem;
}
.service-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}
.service-card h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px; height: 2px;
    background: var(--accent-color);
}

/* --- Film Strip --- */
.film-strip {
    height: 180px;
    margin: -1.5rem -1.5rem 2rem -1.5rem;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    position: relative;
    display: flex;
    transition: transform 0.5s;
}
.media-item {
    flex: 0 0 auto;
    width: 250px;
    height: 180px;
    position: relative;
    animation: pan-film-strip 12s linear infinite;
}
.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
@keyframes pan-film-strip {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- Quotes --- */
.card-content { display: block; font-size: 1.5em; }
.service-quote {
    margin-top: auto;
    padding: 1rem;
    background: rgba(216,155,116,0.1);
    border-radius: 8px;
    font-style: italic;
    position: relative;
}
.service-quote::before {
    content: '“';
    position: absolute;
    left: -5px; top: -15px;
    font-size: 3rem;
    color: var(--accent-color);
    font-family: 'Times New Roman', serif;
}

/* --- Why Us --- */
.why-us {
    background: var(--light-bg);
    padding: 3rem 2rem;
    margin: 2rem 0;
}
.why-us ul {
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
}
.why-us li {
    padding: 1rem;
    margin: 1rem 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.why-us li:hover { transform: translateX(10px); }

/* --- Contact --- */
.contact-details {
    text-align: center;
    margin-bottom: 2rem;
}
.contact-details div {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* --- Footer --- */
footer {
    background: linear-gradient(to right, var(--secondary-color), var(--dark-text));
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
    display: grid;
    gap: 1rem;
}

/* --- Floating Action Buttons --- */
.button-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
}
.whatsapp-button, .youtube-button {
    position: fixed;
    bottom: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 50%;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    cursor: pointer;
    font-size: 24px;
    z-index: 1000;
    transition: background-color 0.3s, transform 0.3s;
}
.whatsapp-button {
    right: 20px;
    background-color: #25D366;
}
.whatsapp-button:hover {
    background-color: #128C7E;
    transform: translateY(-10px);
}
.youtube-button {
    right: 90px;
    background-color: #FF0000;
}
.youtube-button:hover {
    background-color: #C8102E;
    transform: translateY(-10px);
}
.whatsapp-tooltip, .youtube-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    display: none;
    z-index: 1001;
}
.whatsapp-tooltip { background-color: #25D366; }
.youtube-tooltip { background-color: #FF0000; }
.whatsapp-button:hover .whatsapp-tooltip,
.youtube-button:hover .youtube-tooltip { display: block; }

/* --- Modal & Booking Form --- */
.modal {
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1000;
}
.modal.active { opacity: 1; visibility: visible; }
.modal-content {
    transform: translateY(-20px);
    transition: all 0.3s;
    background: var(--light-bg);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 28rem;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.modal.active .modal-content { transform: translateY(0); }
.modal-header {
    background: var(--primary-color);
    color: var(--dark-text);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.modal-header h3 { margin: 0; font-size: 1.25rem; font-weight: 700; }
.modal-header button {
    color: var(--dark-text);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}
.modal-header button:hover { color: var(--secondary-color); }
.modal-body {
    padding: 1.5rem;
    flex: 1 1 auto;
    overflow-y: auto;
    max-height: 60vh;
}
.modal-footer {
    background: var(--primary-color);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid rgba(0,0,0,0.1);
}
.tab-content { display: none; }
.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--secondary-color);
    margin-bottom: 1rem;
}
.tab-btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    background: none;
    color: var(--dark-text);
}
.tab-btn.active-tab {
    color: var(--accent-color);
    border-color: var(--accent-color);
}
.grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.service-option {
    transition: all 0.2s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border: 1px solid var(--secondary-color);
    border-radius: 0.5rem;
    cursor: pointer;
    background: var(--light-bg);
    color: var(--dark-text);
}
.service-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: var(--primary-color);
}
.service-option.selected {
    border-color: var(--accent-color);
    background-color: var(--primary-color);
}
.service-option i {
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}
.form-group { margin-bottom: 1rem; }
.form-label {
    display: block;
    color: var(--dark-text);
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--secondary-color);
    border-radius: 0.5rem;
    outline: none;
    background: white;
    color: var(--dark-text);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255,171,145,0.5);
}
.btn-whatsapp {
    background: #25D366;
    color: white;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}
.btn-whatsapp:hover { background: #128C7E; }
.btn-whatsapp i { margin-right: 0.5rem; }
.close-x {
    background: #e53935;
    border: none;
    font-size: 1.7rem;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-left: 1rem;
    margin-right: -0.5rem;
    line-height: 1;
    padding: 0 0.6em;
    border-radius: 50%;
    width: 2.2em;
    height: 2.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(229,57,53,0.15);
}
.close-x:hover, .close-x:focus {
    background: #b71c1c;
    color: #fff;
    outline: none;
}
.booking-btn {
    background: linear-gradient(90deg, #ff914d 0%, #ff5e62 100%);
    color: #fff;
    padding: 14px 32px;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 16px rgba(255,94,98,0.2);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    letter-spacing: 1px;
}
.booking-btn:hover {
    background: linear-gradient(90deg, #ff5e62 0%, #ff914d 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 24px rgba(255,94,98,0.3);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .whatsapp-button { bottom: 90px; right: 20px; }
    .youtube-button { bottom: 20px; right: 20px; }
}
@media (max-width: 600px) {
    .modal-content {
        max-width: 98vw;
        padding: 0.5rem;
        max-height: 98vh;
    }
    .modal-body {
        padding: 1rem 0.5rem;
        max-height: 60vh;
    }
    .modal-header, .modal-footer { padding: 0.75rem 0.5rem; }
    .grid-cols-2 { grid-template-columns: 1fr; gap: 0.5rem; }
    .form-input, .form-select, .form-textarea { font-size: 1em; padding: 0.5rem; }
    .btn-whatsapp { width: 100%; justify-content: center; }
}
