/* Rambles Pet Services - Custom Styles */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;800&family=Open+Sans:wght@300;400;600&display=swap');

:root {
    --primary-color: #17191e;
    --secondary-color: #191919;
    --accent-color: #ffffff;
    --text-dark: #17191e;
    --text-light: #ffffff;
    --text-gray: #606060;
    --border-light: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.6;
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

h1 {
    font-size: 63px;
    margin-bottom: 20px;
}

h2 {
    font-size: 34px;
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

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

/* Header & Navigation */
header {
    background-color: var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-top {
    max-width: 1170px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-width: 300px;
    height: auto;
}

.contact-info {
    text-align: right;
}

.contact-info .tagline {
    margin: 0 0 5px 0;
    color: var(--text-light);
    font-size: 18px;
    font-weight: 300;
}

.contact-info .contact-details {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin: 0;
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.contact-info .contact-item i {
    font-size: 16px;
}

.contact-info .separator {
    color: var(--text-light);
    opacity: 0.5;
}

.contact-info a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.header-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0;
}

.header-nav {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 30px;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
}

nav ul li a {
    color: var(--text-light);
    padding: 8px 16px;
    margin: 10px 5px;
    transition: all 0.25s ease;
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 100px;
    text-align: center;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 30px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    position: relative;
    padding: 0 30px;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
}

.hero .btn {
    text-shadow: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(23, 25, 30, 0.4);
}

.hero-content {
    position: relative;
    padding: 0 10vh;
    z-index: 1;
    max-width: 1170px;
}

.hero h1 {
    color: var(--text-light);
    font-size: 48px;
    margin-bottom: 0;
    font-weight: 100;
}

.hero h2 {
    color: var(--text-light);
    font-size: 32px;
    margin-bottom: 0;
    font-weight: 800;
}

.hero p {
    color: var(--text-light);
    font-size: 18px;
    font-weight: 500;
}

.hero a {
    margin-top: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 100px;
    font-weight: 400;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 15px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: var(--text-dark);
    color: var(--accent-color);
    font-weight: 800;
}

.btn-secondary {
    background-color: var(--text-dark);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: #252525;
    font-weight: 800;
}

/* Container & Grid */
.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 60px 30px 0 30px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col,
[class*="col-"] {
    padding: 0 15px;
    margin-bottom: 30px;
}

/* Service Cards */
.service-card {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-overlay {
    position: relative;
    background-color: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.service-overlay h3 {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-overlay p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* CTA Card */
.cta-card {
    position: relative;
    background-image: url('../images/paw_background.png');
    background-repeat: repeat;
    background-size: 50%;
    filter: brightness(1.1);
    aspect-ratio: 3 / 2;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

#services_section .cta-card,
#services_section .parallax-card {
    margin: 0 !important;
}

#services_section .cta-row > .col {
    padding: 0 !important;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 400px;
    font-weight: 600;
}

.cta-content h3 {
    margin-bottom: 20px;
}

.cta-content p {
    margin-bottom: 25px;
    font-size: 16px;
}

/* Parallax Card */
.parallax-card {
    background-image: url('../images/home_parallax.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    aspect-ratio: 3 / 2;
    background-attachment: fixed;
}

/* Home Narpsuk Images */
#narpsuk_logos {
    margin-top: 40px;
}

#narpsuk_logos img {
    width: 100%;
    height: auto;
}

/* About Card */

#about_rambles {
    margin-bottom: 60px;
}

.about-card {
    background-image: url('../images/home_about.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.about-section .row img,
.dog-walking-section .row img,
.pet-sitting-section .row img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Section Styles */
.section {
    padding: 60px 30px;
}

.section-dark {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: var(--text-light);
}

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

.text-white {
    color: var(--text-light);
}

/* Divider */
.divider {
    width: 100%;
    height: 1px;
    background-color: var(--border-light);
    margin: 40px auto;
}

.divider-small {
    width: 3%;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 20px auto;
}

/* Cards */
.card {
    background-color: #fafafa;
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 30px;
}

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

/* Price Tables */
.price-table {
    background-color: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.price-table-header {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 20px;
    text-align: center;
}

.price-table-header h3 {
    color: var(--text-light);
    margin: 0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 2px dotted var(--border-light);
}

.price-item:last-child {
    border-bottom: none;
}

.price-item .service {
    font-size: 16px;
    color: var(--text-gray);
}

.price-item .price {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Testimonial Cards */
.testimonial-card {
    background-color: #fafafa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    height: 100%;
}

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

.testimonial-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

.testimonial-card .stars {
    color: #ffd700;
    font-size: 28px;
    white-space: nowrap;
    -webkit-text-stroke: 1px #000;
    text-stroke: 1px #000;
    letter-spacing: 2px;
}

.testimonial-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.testimonial-card .quote {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 0;
    flex: 1;
}

.testimonial-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.testimonial-card .date {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 0;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 20px;
    padding: 20px 60px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 5px;
    position: relative;
    aspect-ratio: 1 / 1;
}

.gallery-item a {
    cursor: pointer;
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

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

.gallery-item a:hover img {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.gallery-item a::after {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item a:hover::after {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.lightbox.active {
    display: flex;
    animation: lightboxFadeIn 0.5s ease forwards;
}

.lightbox.closing {
    animation: lightboxFadeOut 0.5s ease forwards;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes lightboxFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.lightbox-image-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.lightbox-image-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

.lightbox-image-container.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox.active .lightbox-image-container.initial {
    animation: lightboxZoomIn 0.5s ease;
}

.lightbox.closing .lightbox-image-container.active {
    animation: lightboxZoomOut 0.5s ease;
}

.lightbox-image-container.slide-left {
    animation: slideOutLeft 0.4s ease forwards !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.lightbox-image-container.slide-right {
    animation: slideOutRight 0.4s ease forwards !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.lightbox-image-container.slide-in-left {
    animation: slideInLeft 0.4s ease forwards !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.lightbox-image-container.slide-in-right {
    animation: slideInRight 0.4s ease forwards !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes lightboxZoomOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.8);
        opacity: 0;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s ease;
    z-index: 10000;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #ccc;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 40px 30px 20px;
}

footer a {
    color: var(--text-light);
    text-decoration: underline;
}

footer a:hover {
    text-decoration: none;
}

.footer-content {
    max-width: 1170px;
    margin: 0 auto;
}

.footer-heading {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
}

.footer-text {
    font-size: 13px;
    line-height: 1.9em;
    margin-bottom: 0;
    color: var(--text-light);
}

.footer-text a {
    color: var(--text-light);
    text-decoration: underline;
}

.footer-text a:hover {
    color: var(--text-light);
    text-decoration: none;
}

.footer-text i {
    font-size: 14px;
}

.footer-map {
    max-width: 100%;
    height: auto;
    margin-top: 15px;
    border-radius: 5px;
}

.social-media {
    margin-top: 15px;
}

.social-media a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #3b5998;
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-media a:hover {
    background-color: #2d4373;
}

.social-media i {
    font-size: 18px;
}

/* Pet List - 3 Column Layout */
.pet-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 10px;
}

.pet-list li {
    position: relative;
    padding-left: 25px;
}

.pet-list li:before {
    content: "\f101";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}


/* Contact Form Styles */
.contact-form {
    background-color: #fafafa;
    padding: 40px;
    border-radius: 8px;
}

.contact-form h3 {
    margin-bottom: 30px;
    color: var(--primary-dark);
    font-size: 24px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(23, 25, 30, 0.1);
}

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

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

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

/* Checkbox Styles */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    flex-shrink: 0;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
    cursor: pointer;
}

.form-checkbox label a {
    color: var(--primary-dark);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.form-checkbox label a:hover {
    color: var(--text-gray);
}

/* Contact Info Box */
.contact-info-box {
    padding: 40px;
}

.contact-info-box h3 {
    margin-bottom: 30px;
    color: var(--primary-dark);
    font-size: 24px;
    font-weight: 700;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-info-item i {
    font-size: 24px;
    color: var(--primary-dark);
    width: 30px;
    flex-shrink: 0;
    margin-top: 5px;
}

.contact-info-item strong {
    display: block;
    color: var(--primary-dark);
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-info-item a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: var(--primary-dark);
}

.contact-info-item p {
    margin: 0;
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1200px) {
    h1 {
        font-size: 37px;
    }

    h2 {
        font-size: 27px;
    }

    .hero {
        padding: 200px 30px;
    }

    .hero h1 {
        font-size: 37px;
    }

    .hero h2 {
        font-size: 25px;
    }

    .hero-content {
        padding: 0 5vh;
    }
}

/* Navigation Resize Desktop */
@media (max-width: 1050px) {
    nav ul li a {
        font-size: 13px;
        padding: 4px 10px;
        margin: 10px 5px;
    }
}

/* Navigation Resize Tablet */
@media (max-width: 890px) {
    nav ul li a {
        font-size: 12px;
        padding: 4px 6px;
        margin: 10px 3px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .contact-info {
        display: none;
    }

    nav {
       width: 100%;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--text-dark);
        padding: 20px;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 5px 0;
        width: 100%;
    }

    nav ul li a {
        padding: 8px 16px;
        margin: 0px 5px;
        font-size: 14px;
        text-align: center;
        width: 100%;
        display: block;
    }

    .pet-list {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 31px;
    }

    h2 {
        font-size: 20px;
    }

    .hero {
        padding: 150px 20px;
    }

    .hero h1 {
        font-size: 31px;
    }

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

    .hero-content {
        padding: 0;
    }

    .container {
        padding: 30px 20px;
    }

    .section {
        padding: 30px 20px;
    }

    .contact-form {
        padding: 30px 20px;
        margin-bottom: 30px;
    }

    .contact-info-box {
        padding: 30px 20px;
    }
}
