/* Importing Montserrat font from Google Fonts with full weight & italic support */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

/* Adding a custom font 'CelebriSans' from local assets */
@font-face {
    font-family: 'CelebriSans';
    src: url('../fonts/CelebriSans-Bold.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
}

/* Adding regular weight for 'Roboto' font */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.woff') format('woff');
    font-style: normal;
    font-display: swap;
    font-weight: 400;
}

/* Adding bold weight for 'Roboto' font */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Bold.woff') format('woff');
    font-style: normal;
    font-display: swap;
    font-weight: 700;
}

/* CSS variables */
:root {
    --primary-text-color: #1d1d1f;
    /* Shark Gray, similar to Apple's dark text */
    --background-light-gray: #F5F5F7;
    /* Athens Gray from Apple palette */
    --footer-text-color: #d3d3d3;
    /* A light gray for footer text */
    --card-border-color: #E8E8ED;
    /* Very subtle light gray border */
    --apple-blue: #007AFF;
    /* Apple's signature blue for accents/links */

    /* New variables for consistent main headings */
    --main-heading-font: 'Lato', 'Roboto', sans-serif;
    --main-heading-size: 2.5rem;
    /* Default for general main headings */
    --main-heading-weight: 700;
    --main-heading-color: #181818;
    --main-heading-margin-top: 2.5rem;
    --main-heading-margin-bottom: 2rem;
    --main-heading-align: left;
    --main-heading-font-weight: bold;

}

/* Asterisk wildcard selector to override default styles added by the browser */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Apply global font stack */
body {
    font-family: 'Lato', 'Roboto', sans-serif;
    color: var(--primary-text-color);
}

/* Navbar styles */
#navbar {
    position: fixed;
    top: 0;
    background-color: rgba(255, 255, 255, 0.9) !important;
    /* Slightly translucent white */
    backdrop-filter: blur(10px);
    /* Frosted glass effect */
    transition: background-color 0.3s ease, transform 0.3s ease;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    width: 100%;
    z-index: 1000;
    /* Ensure navbar is on top */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    /* Subtle bottom border */
}

/* Hiding the navbar when scrolling */
#navbar.nav-hide {
    transform: translateY(-100%);
}

/* Navigation link styles */
#navbar .nav-link {
    color: var(--primary-text-color);
    /* Dark gray/black for nav links */
    font-family: 'CelebriSans', sans-serif;
    font-weight: bold;
    margin: 0 0.75rem;
    /* Increased horizontal margin */
    padding: 0.5rem 0.5rem;
    transition: color 0.3s ease;
}

/* Hover effect for nav links */
#navbar .nav-link:hover,
#navbar .nav-item .nav-link:hover {
    color: var(--apple-blue) !important;
    /* Apple blue on hover */
}

/* Active nav link */
#navbar .nav-link.active {
    color: var(--apple-blue);
}

/* Brand name styling */
#navbar .company-name {
    font-family: 'CelebriSans', sans-serif;
    font-weight: bold;
    color: var(--primary-text-color);
    /* Dark gray/black for brand */
    font-size: 2rem;
}

/* Navbar toggler (hamburger) button reset */
.navbar-toggler {
    border: none;
    /* Removed border */
    background-color: transparent;
    /* Made background transparent */
    box-shadow: none;
    outline: none;
}

/* Custom hamburger icon for mobile menu */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(29, 29, 31, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    border: none;
}

/* Prevent toggler from showing outlines */
.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none;
    box-shadow: none;
    border: none;
}

@media screen and (max-width: 991.98px) {
    .navbar-collapse .nav-item {
        margin: 0 !important;
        padding: 0 !important;
    }

    #navbar .nav-link {
        font-size: 1.2rem;
        text-align: center;
        /* Center links in collapsed menu */
    }

    .navbar-collapse .nav-link {
        margin: 0;
        padding: 0.5rem 0;
    }

    .navbar-collapse {
        padding: 0;
        background-color: rgba(255, 255, 255, 0.95);
        /* More opaque when expanded */
        border-radius: 0 0 10px 10px;
    }
}

/* Hero section */
.hero-section {
    min-height: 30vh;
    /* Adjust height for a more compact hero */
    background-color: var(--background-light-gray);
}


/* Hero content styling */
.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    text-align: left;
    /* Left-align hero content */
    padding-left: 2rem;
    /* Small left padding */
    padding-right: 1rem;
    /* Small right padding */
    display: flex;
    padding-top: 200px;
}

/* Main content style */
.main-content {
    background-color: var(--background-light-gray);
    color: var(--primary-text-color);
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Adjustments for sub-headings within main content */
.main-content h2,
.main-content h3 {
    font-family: var(--main-heading-font);
    font-weight: var(--main-heading-weight);
    font-size: 1.8rem;
    /* Slightly smaller for sub-headings */
    text-align: left;
    /* Always left-aligned */
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-text-color);
}

.main-content h2 {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}

/* Layout for columns */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    /* Adjust for Bootstrap's row padding */
    margin-right: -15px;
}

.row>[class*="col-"] {
    padding-left: 15px;
    /* Adjust for Bootstrap's col padding */
    padding-right: 15px;
}

.row p {
    word-wrap: break-word;
}

/* Responsive grid: 100% width for small screens */
@media screen and (max-width: 575.98px) {
    .row>div {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Removed text-align: center overrides for main headings and paragraphs here */
}

/* Medium screens: 2-column layout */
@media screen and (min-width: 576px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Large screens: 4-column layout for .col-lg-3 */
@media screen and (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Card styling (Apple-like) */
.apple-card {
    background-color: #FFFFFF;
    border: 1px solid var(--card-border-color);
    border-radius: 12px;
    /* More rounded corners */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    /* Subtle shadow */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    /* Ensure equal height for all cards */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    overflow: hidden;
    /* Ensures content stays within rounded corners */
}

.apple-card:hover {
    transform: translateY(-3px);
    /* Slight lift effect */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Slightly more prominent shadow on hover */
}

.apple-card .card-body {
    padding: 1.5rem;
    /* Generous padding */
    text-align: left;
    /* Align text within cards to left */
}

.apple-card h2,
.apple-card h3 {
    font-size: 1.3rem;
    /* Slightly smaller for card titles */
    font-weight: 600;
    /* Semi-bold */
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: var(--primary-text-color);
    text-align: left;
    /* Ensure card headings are left aligned */
}

.apple-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4A4A4A;
    /* Slightly lighter gray for body text */
}

.apple-card .feature-icon {
    color: var(--apple-blue);
    /* Apple blue for icons */
    margin-bottom: 1rem;
    font-size: 1.8rem;
    transition: color 0.3s ease;
}


/* Custom CSS for main interactive blocks (carousel, video) */
.interactive-block-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
    /* Increased margin for better separation */
    padding: 0 1rem;
    /* Add some horizontal padding for smaller screens */
}

.interactive-block {
    width: 100%;
    max-width: 1200px;
    /* Max width similar to Apple's large content blocks */
    aspect-ratio: 16/7;
    /* Aspect ratio for video/carousel */
    border-radius: 1.5rem;
    /* Consistent rounded corners */
    overflow: hidden;
    /* Ensure content stays within rounded corners */
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    /* Subtle shadow */
    background: #fff;
    /* White background for blocks */
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    transition: transform 0.5s cubic-bezier(.4, 0, .2, 1);
    /* Smooth transform */
    will-change: transform;
}

.interactive-block:hover {
    transform: scale(1.01);
    /* Slight lift effect on hover for both video and carousel */
}

/* Specific styles for elements inside interactive blocks */
.interactive-block .carousel,
.interactive-block .carousel-inner,
.interactive-block .carousel-item,
.interactive-block video {
    width: 100%;
    height: 100%;
    min-height: 300px;
    /* Ensure a minimum height for visibility */
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.interactive-block .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover the area without distortion */
    border-radius: 1.5rem;
    /* Apply rounded corners to images within */
    display: block;
}

/* Carousel controls (arrows) */
.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    /* Make clickable area smaller */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6);
    /* Darker, slightly translucent */
    border-radius: 50%;
    /* Make them circular */
    padding: 1rem;
    /* Adjust size */
    transition: background-color 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(0, 0, 0, 0.8);
    /* Darken on hover */
}


@media (max-width: 768px) {
    .interactive-block {
        max-width: 95%;
        /* Make interactive blocks wider on smaller screens */
        aspect-ratio: 16/9;
        /* Adjust aspect ratio for mobile */
        border-radius: 1rem;
    }

    .interactive-block .carousel-item img {
        border-radius: 1rem;
    }

    .apple-card .card-body {
        text-align: center;
        /* Center text within cards on smaller screens */
    }

    .apple-card h2,
    .apple-card h3 {
        text-align: center;
        /* Center card headings on smaller screens */
    }
}

/* Feature icon styles */
.feature-icon {
    color: var(--primary-text-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    vertical-align: middle;
}

/* Google My Business Section Styles */
.google-section {
    text-align: center;
    margin-top: 3rem;
    padding-bottom: 2rem;
}

.google-section a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    /* Remove underline from link */
}

/* Google icon */
.google-business-icon {
    display: block;
    height: 50px;
    width: auto;
    transition: transform 0.2s ease-in-out;
    margin-left: 0.5rem;
}

.google-business-icon:hover {
    transform: scale(1.05);
}

/* Text next to Google logo */
.google-text {
    font-size: 1.1rem;
    color: var(--primary-text-color);
    margin-right: 0.5rem;
    font-weight: 500;
    /* Medium weight */
}

/* Arrow icon size */
.arrow-icon {
    height: 1rem;
    width: auto;
    filter: invert(20%);
    /* Darken arrow for contrast */
}

/* Media query for larger screens for Google logo */
@media (min-width: 768px) {
    .google-business-icon {
        height: 60px;
    }
}

/* Map container styling */
.map-container {
    border-radius: 12px;
    /* Consistent rounded corners */
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 350px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    margin-bottom: 1.5rem;
    /* Space below map */
}

/* Ensure iframe fits perfectly inside the container */
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Smaller map for mobile */
@media screen and (max-width: 576px) {
    .map-container {
        margin: 1rem auto;
        /* Center horizontally and add vertical space */
        width: 90%;
        height: 250px;
        /* Adjust height for mobile */
    }

    .map-container+p {
        margin-top: 0.5rem;
        margin-bottom: 0;
        text-align: center;
    }
}

/* Footer section layout and background styling */
.footer-section {
    background-color: var(--background-light-gray);
    background-image: none;
    /* Removed specific footer images */
    height: auto;
    min-height: 35vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    color: var(--footer-text-color);
    /* Light gray text */
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Dark overlay for footer readability */
.footer-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    z-index: 0;
}

/* Ensures text layers appear above overlay */
.footer-section {
    position: relative;
    z-index: 1;
}

.footer-section h3,
.footer-section p,
.footer-section a,
.footer-section .footer-icon,
.footer-section .rights-reserved {
    position: relative;
    z-index: 2;
    color: var(--footer-text-color) !important;
    /* Force the whitish color */
}

/* Footer text and links */
.footer-section h3 {
    font-family: 'CelebriSans', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 1rem;
    margin: 0;
}

.footer-section a {
    color: var(--footer-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FFFFFF;
    /* White on hover */
}

.footer-section .footer-icon {
    color: var(--footer-text-color);
    margin-right: 0.5rem;
    vertical-align: middle;
}

.footer-section .rights-reserved {
    font-size: 0.9rem;
    margin-top: 1rem;
    color: var(--footer-text-color);
}

/* Responsive Alignment */
@media (max-width: 768px) {
    .footer-section .text-md-start {
        text-align: center !important;
    }

    .footer-section .text-md-end {
        text-align: center !important;
    }
}

/* Key Aspects Section (uses apple-card) */
.key-aspects {
    background-color: var(--background-light-gray);
    color: var(--primary-text-color);
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}