/*
Theme Name: Sightpoint
Theme URI:  https://sightpoint.ca
Author:      Victor Lane
Author URI:  https://sightpoint.ca
Description: Official Wordpress theme for Sightpoint
Version:     1.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sightpoint
*/

html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* Custom Styles */
.content-box {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    padding: 30px;
    text-align: center;
    box-sizing: border-box;
}

.services-page-intro .content-box {
    max-width: none;
    /* Remove max-width ONLY for service intro */
    width: 100%;
    text-align: left;
    /* Keep left alignment for service intro */
    box-sizing: border-box;
}

/* Green "Get a Free Quote" Button */
.get-quote {
    display: inline-block;
    padding: 5px 10px;
    background-color: #e6f4e9;
    /* Light green background */
    color: #1a4d2e;
    /* Darker green text */
    border-radius: 5px;
    font-size: 0.9rem;
    border: 1px solid #b7dfbd;
    margin-top: 10px;
}

.get-quote a {
    color: #1a4d2e;
    /* Ensure link color is also green */
    text-decoration: none;
    /* Remove underline */
}

.get-quote:hover {
    background-color: #c2e5c9;
}

.content-box h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 25px;
}

.content-box p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.social {
    margin-top: 30px;
}

.social a {
    color: #f26624;
    margin: 0 10px;
    font-size: 1.7rem;
    text-decoration: none;
}

.social a:hover {
    color: #333;
}

.warning-bar {
    background-color: #f0f0f0;
    color: #666;
    padding: 8px 15px;
    /* Slightly reduced vertical padding */
    text-align: center;
    border-top: 1px solid #ddd;
    border-bottom: none;
    border-radius: 0;
    margin-top: 10px;
    /* Reduced top margin */
    margin-bottom: 20px;
    /* Added bottom margin */
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 300;
}

/* Mobile Menu Styles */
.menu-toggle {
    display: none;
    /* Initially hidden */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    z-index: 15;
    position: relative;
}

.primary-menu-wrapper {
    display: block;
    /* Initially shown */
}

.primary-nav-bar {
    background-color: #333;
    text-align: center;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
    opacity: 0;
    animation: menu-rise 0.5s ease-in-out 1 forwards;
}

/* Styles for Primary Menu */
.primary-menu-container {
    text-align: center;
    margin-top: 0;
    margin: 0 auto;
    padding: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    padding: 5px 15px;
    border-radius: 5px;
}

.primary-menu-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.primary-menu-container ul li {
    margin: 0 20px;
    display: flex;
    align-items: center;
    height: 100%;
}

.primary-menu-container ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 0.95rem;
    /* Slightly larger font */
    font-weight: 500;
    /* Bolder font weight */
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* Reduced letter spacing */
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.primary-menu-container ul li a:hover {
    color: #ddd;
}

.primary-menu-container ul li.current-menu-item a {
    color: #fff;
}

.primary-menu-container ul li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #fff;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.primary-menu-container ul li a:hover::after,
.primary-menu-container ul li.current-menu-item a::after {
    width: 100%;
    /* Expand underline on hover/active */
}


/* Styles for Header */
header {
    background-color: #f26624;
    text-align: center;
    padding: 15px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
}

.site-header {
    background: linear-gradient(135deg, #f7b733, #f26624, #d13212);
    text-align: center;
    padding: 15px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    background-size: 200% 200%;
    animation: sunset-shift 10s ease infinite;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-height: 120px;
}

@keyframes sunset-shift {
    0% {
        background-position: 90% 50%;
    }

    50% {
        background-position: 11% 51%;
    }

    100% {
        background-position: 90% 50%;
    }
}

@keyframes sun-setting {
    0% {
        transform: translateY(50px) translateX(-50%);
        opacity: 0;
    }

    100% {
        transform: translateY(0) translateX(-50%);
        opacity: 1;
    }
}

@keyframes menu-rise {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-animation-wrapper {
    animation: sun-setting 2.5s ease-in-out 1 forwards;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.logo-container img {
    max-width: 180px;
    display: block;
}

/* Styles for Description in Header */
.header-description {
    font-size: 0.8rem;
    color: #fff;
    text-align: center;
    opacity: 0;
    padding: 5px 0;
    margin-top: 5px;
    transition: opacity 0.5s ease-in-out;
}

.header-description.fade-in {
    opacity: 0.7;
}

/* Highlighted Contact Style - RED - Whole Line */
.contact-highlight-line {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f8d7da;
    /* Light red background */
    color: #842029;
    /* Darker red text */
    border-radius: 5px;
    font-size: 0.9rem;
    border: 1px solid #f5c2c7;
}

.contact-highlight-line a {
    color: #842029;
    /* Ensure link color is also red */
    text-decoration: none;
    /* Remove underline */
}

.contact-highlight-line:hover {
    background-color: #f1aeb5;
}

/* Homepage Styles */

.homepage-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center content */
    justify-content: flex-start;
    /* Align items to the start of the container */
    padding-top: 0;
    /* Adjust as needed */
    padding-bottom: 40px;
    /* Add spacing below main content */
    box-sizing: border-box;
}

/* Hero Section */
.hero {
    position: relative;
    /* Needed for absolute positioning of slides */
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    z-index: 1;
    /* Hide overflowing images */
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Place behind content */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Maintain image aspect ratio */
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    /* Bring content to the front */
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.hero-tagline {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.8;
    box-sizing: border-box;
}

.hero-button {
    font-size: 1.2rem;
    padding: 15px 30px;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-button:hover {
    background-color: #d9551a;
    /* Keep the darker orange */
    color: #fff;
    /* Change text color to white */
}

/* Services Overview */
.home-services {
    padding: 60px 20px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    width: 100%;
}

.home-services h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    box-sizing: border-box;
}

/* Services Page Styles  */

.services-container {
    max-width: 960px;
    /* Adjust as needed -  A common content width */
    width: 100%;
    margin: 0 auto;
    /* Center the container */
    box-sizing: border-box;
}

.services-page-intro {
    width: 100%;
    /* Span the full width */
    margin-bottom: 30px;
    /* Add spacing below the intro */
    box-sizing: border-box;
}

.service-category {
    /* Optional: Equalize Heights */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Distribute space evenly */
    margin-bottom: 0;
    /* Remove bottom margin - spacing handled by grid gap */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Add a subtle shadow */
    transition: transform 0.2s ease-in-out;
    box-sizing: border-box;
}

.service-category:hover {
    transform: translateY(-5px);
    /* Move up slightly on hover */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsive grid */
    gap: 30px;
    /* Spacing between grid items */
    margin-top: 0;
    /* Spacing between content-box and grid */
    box-sizing: border-box;
}

.service-category h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #f26624;
    /* Use your theme's accent color */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-category img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 5px;
    display: block;
    /* Ensure centering works */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.service-item {
    background-color: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.service-item i {
    font-size: 2.5rem;
    color: #f26624;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.service-item p {
    font-size: 1rem;
    margin-bottom: 25px;
    box-sizing: border-box;
}

.service-link {
    display: inline-block;
    color: #f26624;
    text-decoration: none;
    font-weight: 600;
    box-sizing: border-box;
}

/* About Us Snippet */
.home-about {
    padding: 60px 20px;
    background-color: #fff;
    box-sizing: border-box;
    width: 100%;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
}

.home-about h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.home-about p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.home-about .button {
    font-size: 1rem;
    /* Adjust font size as needed */
    padding: 10px 15px;
    /* Adjust padding as needed */
    background-color: #f26624;
    /* Match the button's default color */
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Smooth transition */
}

.home-about .button:hover {
    background-color: #d9551a;
    /* Darker orange on hover */
    color: #fff;
    /* White text on hover for contrast */
}

/* About Us Page Styles */
.about-us-container {
    max-width: 960px;
    /* Or the width of your navbar */
    width: 100%;
    margin: 0 auto;
    /* Center the container */
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    /* Use flexbox */
    justify-content: center;
    /* Center horizontally */
}

.about-us-container .content-box {
    width: 100%;
    /* Ensure content box takes full width */
    max-width: 600px;
    /* Or a reasonable content width */
    margin: 0 auto;
    /* Center the content box */
}

.about-us-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #f26624;
    text-align: center;
}

.about-us-container h3 {
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #333;
}

.about-us-container p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.about-us-container ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.about-us-container li {
    font-size: 1.1rem;
    line-height: 1.5;
    padding-left: 25px;
    position: relative;
    display: flex;
    align-items: baseline;
}

/* Custom Bullet Point Styling */
.about-us-container li::before {
    content: "\2022";
    position: absolute;
    left: 10px;
    top: 35px;
    transform: translateY(-100%);
    font-size: 1.7em;
    color: #f26624;
}

/* Featured Projects/Portfolio */
.home-portfolio {
    padding: 60px 20px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    width: 100%;
}

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.home-portfolio h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    box-sizing: border-box;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* Contact/Call to Action */
.home-contact {
    padding: 80px 20px;
    background-color: #fff;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    box-sizing: border-box;
}

.home-contact h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.home-contact p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.page-content {
    margin-bottom: 20px;
    text-align: left;
    /* Spacing between page content and services */
    box-sizing: border-box;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .primary-nav-bar {
        position: relative;
        /* Position relative for mobile menu */
        padding: 10px;
        z-index: 5;
    }

    .primary-menu-container {
        display: flex;
        /* Use flexbox to contain button and wrapper */
        justify-content: space-between;
        /* Space items horizontally */
        align-items: center;
        /* Vertically center items */
        padding: 5px 15px;
    }

    .menu-toggle {
        display: block;
        /* Show hamburger button on mobile */
    }

    .primary-menu-wrapper {
        display: none;
        /* Hide menu on mobile by default */
        width: 100%;
        position: absolute;
        top: 100%;
        /* Position below the nav bar */
        left: 0;
        background-color: #333;
        z-index: 10;
        /* Ensure it's on top */
    }

    .primary-menu-container ul {
        flex-direction: column;
        /* Stack on smaller screens */
        align-items: center;
        /* Center items */
        padding: 0;
        margin: 0;
    }

    .primary-menu-container ul li {
        margin: 5px 0;
        /* Spacing between stacked items */
        display: block;
    }

    .primary-menu-container ul li:last-child {
        border-bottom: none;
        /* Remove divider on last item */
    }

    .primary-menu-container ul li a {
        display: block;
        padding: 10px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }

    .service-category {
        margin-bottom: 20px;
    }

    .content-box {
        padding: 20px;
    }

    .site-header {
        padding: 10px;
    }

    .logo-container {
        position: relative;
        /* Adjust logo positioning */
        transform: none;
        left: 0;
        text-align: center;
        margin: 0 auto;
    }

    .header-description {
        display: none;
        /* Hide description on mobile */
    }

    .hero {
        padding: 80px 20px;
        min-height: 400px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-carousel {
        height: 100%;
    }

    .hero-content {
        position: relative;
    }

    .home-services {
        padding: 50px 20px;
    }

    .home-services h2 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        padding: 20px;
    }

    .service-item i {
        font-size: 2rem;
    }

    .service-item h3 {
        font-size: 1.3rem;
    }

    .home-about {
        padding: 50px 20px;
    }

    .home-about h2 {
        font-size: 1.8rem;
    }

    .home-portfolio {
        padding: 50px 20px;
    }

    .home-portfolio h2 {
        font-size: 1.8rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .home-contact {
        padding: 60px 20px;
    }

    .home-contact h2 {
        font-size: 1.8rem;
    }
}

/* Responsive adjustments (if needed) */
@media (max-width: 480px) {
    .content-box {
        padding: 20px;
    }

    .content-box h1 {
        font-size: 1.5rem;
    }
}

html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Footer Refinements */
footer {
    color: #555;
    position: relative;
    /* Adjust footer text color */
}

footer::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ddd;
    margin-bottom: 10px;
    /* Add space between line and footer text */
}

main {
    flex: 1;
    padding-top: 60px;
    /* Add spacing above main content */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 40px;
    /* Add spacing below main content */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    /* Apply to headings as well */
}

a {
    color: #ff88005e;
    /* Teal for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff8800;
    /* Lighter teal on hover */
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f26624;
    /* Use your theme's accent color */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Added color transition */
    box-sizing: border-box;
}

.button:hover {
    background-color: #d9551a;
    /* A slightly darker shade */
    color: #fff;
    /* Keep text white for contrast */
}