@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* 
===================
Global Variables
===================
*/

:root {
/* 
===================
Color Pallette 
===================
*/

/* Primary Color */
--clr-primary: #90ab8b;
/* Secondary Color */
--clr-secondary: #3b4953;
/* Brand-gradient */
--gradient-var1: linear-gradient(180deg, #90ab8b, #3b4953);

/*Fonts */
--ff-primary: "Montserrat", sans-serif;
--ff-secondary: "Roboto", sans-serif;
/* font size */
font-size: 16px;
/* Global Transition */
--transition: all 0.3s ease;

 --header-height: 70px; /* fallback for mobile */
}

/* 
===================
Basic Reset
===================
*/
*, ::after, ::before{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6{
    font-family: var(--ff-primary);
    line-height: 1.2;
}
.header{
    width: 100%;
    display: flex;
    padding: 10px 40px;
    align-items: center;
    position: sticky;
    z-index: 1000;
    top: 0;
    transition: background 0.3s ease;
}
.header:hover{
    background: #333;
}
.header.scrolled{
    background: #333;
}
.logo-link {
    width: fit-content;
    height: fit-content;
    margin-right: auto;
}
.logo-image{
    width: 250px;
    height: auto;
}
.nav-list{
    list-style: none;
    display: flex;
    gap: 30px;
}
.nav-list li a{
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: color 0.3s ease;
}
.nav-list li a:hover{
    color: var(--clr-primary);
}
.menu-icon{
    display: none;
}
/* HEADER RESPONSIVENESS */
@media screen and (max-width: 768px) {
    .logo-image{
        width: 150px;
    }
    .nav-list {
        display: none;
    }
    .menu-icon{
        display: block;
        background: none;
        border: none;
        cursor: pointer;
    }
}
.mobile-sidebar{
  position: fixed;
  top: var(--header-height);              /* starts below header */
  right: 0;
  width: 80%;
  max-width: 320px;
  height: calc(100vh - var(--header-height));
  background: #333;
  z-index: 2000;

  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
}

/* Active state (JS toggles this) */
.mobile-sidebar.active{
  transform: translateX(0);
}

.sidebar-nav{
  padding: 24px 20px;
}

.sidebar-list{
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-list a{
  text-decoration: none;
  color: #f4f4f4;
  font-family: var(--ff-primary);
  font-size: 18px;
  transition: color 0.3s ease;
}

.sidebar-list a:hover{
  color: var(--clr-primary);
}

/* Overlay should also start below header (so header stays clickable) */
.sidebar-overlay{
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  background: rgba(0,0,0,0.6);
  z-index: 1500;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active{
  opacity: 1;
  pointer-events: all;
}

/* Only show on mobile */
@media screen and (min-width: 769px){
  .mobile-sidebar,
  .sidebar-overlay{
    display: none;
  }
}

/* Hero Section */
.hero-section::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    background-image: url('hero.webp');
    background-size: cover;     
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.5);
}
.hero-section{
    height: 100vh;
}
.body-section{
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #f4f4f4;
}
.body-container{
    width: 100%;
}
/* TAgline content for first item dont know wtf I'm saying */
.body-container:nth-of-type(1){
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 60px;
}
.tagline{
    font-size: 40px;
    font-weight: bold;
    text-align: center;
}
.partnered-with{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}
.partnered-with-text{
    font-size: clamp(12px, 4vw, 16px);
    font-style: italic;
    color: #333;
}
.partnered-with-logo img{
    width: 100px;
    height: auto;
}
/* This is for guarentees */
.body-container:nth-of-type(2){
    display: flex;
}
.rule{
    width: 33.33%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #f4f4f4;
    padding: 40px 20px;
    gap: 10px;
}
.rule:first-of-type{
    background: var(--clr-primary);
}
.rule:nth-of-type(2){
    background: #333;
}
.rule:last-of-type{
    background: var(--clr-primary);
}

.icon{
    background: #333;
    border-radius: 100%;
    padding: 10px;
}
.rule:nth-child(2) .icon{
    background: var(--clr-primary) !important;
}
.rule p{
    text-align: center;
}

@media screen and (max-width: 768px){
    .body-container:nth-of-type(2){
        flex-direction: column;
    }
    .rule{
        width: 100%;
    }
}

/* Information Section */
/* Partnership Lead */
.body-container:nth-of-type(3){
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
/* Styling for the logo in the top banner */
.partnership-lead {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    margin-bottom: 5%;
    background: #f4f4f4;
}

.partner-logo-inline {
    height: 30px; /* Adjust based on your logo shape */
    width: auto;
    filter: grayscale(1); /* Optional: makes it look more "premium/subtle" */
    opacity: 0.8;
}

/* Styling for the logo badge inside the card */
.brand-badge {
    height: 20px;
    width: auto;
    margin-left: -10px; /* Slight overlap with the icon for a modern look */
    border-left: 1px solid #ddd;
    padding-left: 10px;
}

.header-bold{
  width: 20%;
  height: 4px;
  background: var(--clr-primary);
  border: none;
  margin-bottom: 10%;
}

.partnership-lead p {
    text-align: center;
}
.partnership-lead strong {
    color: var(--clr-primary);
    text-transform: uppercase;
}

.products-we-supply{
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    background: #f4f4f4;
}

/* Services Grid */
.services-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    justify-content: center;
    justify-items: center;   
    margin: 0 auto;
}

.service-box {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    border-top: 5px solid var(--clr-secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-box.featured {
    border-top-color: var(--clr-primary); /* Highlight the Sanika/Waterproofing part */
    background: #fafafa;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-icon-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.s-logo {
    width: 40px;
    height: 40px;
}

.service-box h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.service-box p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.s-list {
    list-style: none;
    margin-bottom: 30px;
}

.s-list li {
    font-size: 13px;
    color: #444;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
}

.s-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--clr-primary);
    font-weight: bold;
}

.s-btn {
    margin-top: auto;
    text-decoration: none;
    background: var(--clr-secondary);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.s-btn:hover {
    background: var(--clr-primary);
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
    .container-title {
        align-items: center;
        padding-left: 0;
    }
    .services-modern-grid {
        grid-template-columns: 1fr;
    }
    .service-box{
        width: 90%;
    }
    .header-bold{ width: 10%; }
    .partnership-lead {
        flex-direction: column;
        gap: 10px;
        border-radius: 15px; /* Boxier looks better on mobile than pill-shape */
    }
}
/* 
==================
PHone section
==================
*/

.phone-services img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.phone-services h2{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f4f4f4;
    font-size: clamp(21px, 4vw, 28px);
    z-index: 10;
}
.phone-services p{
    display: none;
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f4f4f4;
    width: 100%;
    text-align: center;
    font-size: clamp(14px, 4vw, 22px);
    z-index: 10;
}
.phone-services button{
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f4f4f4;
    background: var(--clr-secondary);
    border: none;
    text-align: center;
    font-size: clamp(12px, 4vw, 14px);
    padding: 0.5em 1em;
    z-index: 10;
}

/* COntact Stuff */
.body-container:nth-of-type(4){
    display: flex;
    align-items: center;
    padding: 40px 20px;
    width: 100%;
    justify-content: center;
    gap: 100px;
    background: #333;
}
.contact-detail{
    color: #f4f4f4;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    align-items: center;
    justify-content: center;
}
.contact-icon{
    padding: 12px;
    border-radius: 100%;
    background: var(--clr-primary);
}

.contact-detail p a{
    color: #f4f4f4;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

@media screen and (max-width: 768px){
    .body-container:nth-of-type(4){
        flex-direction: column;
        gap: 40px;
    }
}

/* Map container */
.body-container:nth-of-type(5){
    display:  none;
}

/* About Stuff */
.body-container:nth-of-type(6){
    display: flex;
    padding: 40px 60px;
}
/* .body-container:nth-of-type(6) > div{
    width: 50%;
} */
.footer-logo{
    width: 300px;
    height: auto;
}
.body-bottom-info:nth-of-type(2){
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
    justify-content: center;
}
.body-bottom-info:nth-of-type(1){
    display: flex;
    justify-content: flex-end;
    padding-right: 150px;
}
.about-us-btn{
    width: fit-content;
    padding: 0.5em 1em;
    background: var(--clr-primary);
    border: none;
    color: #f4f4f4;
    text-decoration: none;
    cursor: pointer;
}
@media screen and (max-width: 768px){
    .body-container:nth-of-type(6){
        flex-direction: column;
        gap: 40px;
        padding: 20px 10px;
    }
    .footer-logo{
        width: 200px;
    }
    .body-bottom-info:nth-of-type(2){
        align-items: center;
        text-align: center;
    }
    .body-container:nth-of-type(6) > div{
        width: 100%;
    }
    .body-bottom-info:nth-of-type(1){
        justify-content: center;
        padding-right: 0;
    }
}

/* Footer Stuff */
.footer {
  background: #333;
  color: #f4f4f4;
  padding-top: 40px;
}
.footer-logo {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  width: 90%;
  margin: auto;
}

.footer-section h2,
.footer-section h3 {
  margin-bottom: 10px;
}

.footer-section p,
.footer-section a {
  font-size: 14px;
  color: #ccc;
  text-decoration: none;
}

.footer-section a:hover {
  color: #fff;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.socials a {
  margin-right: 10px;
  font-size: 20px;
  color: #ccc;
}

.socials a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #555;
  margin-top: 30px;
  font-size: 14px;
}

/* Map Embedded */
.map-embedded{
  height: 40vh;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .map-embedded{
    height: 100vh;
  }
}

.map-embedded iframe{
  width: 100%;
  height: 100%;
  display: block;
}
