:root {
    --company-color: #778DA9;
    --darkest: #0D1B2A;
    --main-dark: #1B263B;
    --main-color: #415A77;
    --light-color: #E0E1DD;
    --link-hover: #0077b6;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica', sans-serif;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    background-color: #fff;
    color: #000000;
}

/* BEGIN WordPress Site styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Helvetica', sans-serif;
    font-weight: 700;
}

h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; margin-bottom: 12px;}
h4 { font-size: 20px; }
h5 { font-size: 18px; margin: 25px 0 18px; }
h6 { font-size: 16px; }
a {color: #00b4d8;text-decoration: none;}
a:hover {text-decoration: none;}
/*  END  WordPress Site styles */

.company-color{
    color: var(--company-color);
}

.company-header {
    color: var(--company-color);
    font-size: 20px;
    font-weight: bold;
    padding: 9px 9px 9px 12px;
    width: 100%;
    display: block;
}

/* Header Styles */
header {
    background-color: var(--main-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo on Left */
.logo-section {
    flex: 0 0 auto;
    margin-left: 20px;
    height: 100%;
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
    height: 100%;
    display: flex;
    align-items: center;
}

.logo {
    width: 220px;
    height: 80px;
    object-fit: contain;
    display: block;
}
.hero-container {
    position: relative;
    width: 100%;
    height: 720px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Gradient fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Hero Background Image */
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

/* Low Quality Image Placeholder - Blurry effect */
.hero-bg-img.lqip {
    filter: blur(20px);
    transform: scale(1.05);
    opacity: 0.7;
}

/* When high-res image is loaded */
.hero-bg-img.loaded {
    opacity: 1;
    filter: none;
    transform: scale(1);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-pretitle {
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.9;
    font-weight: 600;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Loading indicator */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    color: white;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        height: 70vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-pretitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .hero-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-container {
        height: 60vh;
        min-height: 350px;
    }

    .hero-title {
        font-size: 1.8rem;
    }
}

/* Right Side Container */
.header-right-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

/* Main Navigation - Right Justified */
.main-nav {
    flex: 0 0 auto; /* Don't grow, only take needed space */
    margin-right: 15px;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    justify-content: flex-end;
    height: 100%;
    align-items: center;
    margin-right: 10px;
}

.nav-list li {
    position: relative;
    margin: 0 5px;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Menu Items - Underline on hover/active */
.nav-link {
    text-decoration: none;
    color: var(--light-color);
    font-weight: 700;
    font-size: 18px;
    padding: 8px 10px;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--company-color);
    border-bottom: 1px solid #ffffff;
    /* Remove all those extra properties you added */
}

.nav-link i {
    font-size: 12px;
    margin-left: 5px;
}

/* Dropdown Menu */
.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000 !important;
    color: #fff !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    z-index: 1001;
    list-style: none;
    padding: 10px 0;
    margin-top: -27px;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff !important;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-menu a:hover {
    color: var(--company-color) !important;
    width: 100%;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: var(--company-color);
}

/* Header Right Section */
.header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

/* Social Icons with Outline */
.social-icons {
    display: flex;
    gap: 10px;
    height: 100%;
    align-items: center;
    margin-right: 5px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #e2dede; /* Outline as requested */
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.social-icon:hover {
    background-color: #1B263B;
    color: #fff;
    border-color: #0D1B2A;
}

.social-icon i {
    font-size: 16px;
}

/* Contact Box - Full Height Red Box */
.contact-box {
    background-color: var(--light-color);
    height: 100%; /* Full height of header */
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: background-color 0.3s;
}

.contact-box:hover {
    background-color: #0D1B2A;
    color: var(--light-color) !important;
}

.contact-link {
    color: var(--main-color);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    justify-content: center;
}
.contact-link:hover {
    color: var(--light-color);
}
.call-text {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.phone-number {
    font-size: 24px;
    font-weight: 700;
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--light-color);
    cursor: pointer;
    padding: 5px;
}

/* Mobile Navigation (Hidden on Desktop) */
.mobile-nav {
    display: none;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-list li {
    margin-bottom: 10px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-link.active {
    color: #000000;
    border-bottom: 1px solid #000000;
}

.mobile-nav-link i {
    font-size: 12px;
    transition: transform 0.3s;
}

.mobile-dropdown-menu {
    display: none;
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
}

.mobile-dropdown-menu li {
    margin-bottom: 8px;
}

.mobile-dropdown-menu a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.3s;
    border-bottom: 1px solid transparent;
}

.mobile-dropdown-menu a:hover {
    color: #000000;
    border-bottom: 1px solid #000000;
}

.mobile-dropdown-parent.active .mobile-dropdown-menu {
    display: block;
}

.mobile-dropdown-parent.active .mobile-dropdown-toggle {
    transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-nav {
        margin-right: 10px;
    }

    .nav-list li {
        margin: 0 4px;
    }

    .nav-link {
        font-size: 15px;
        padding: 6px 8px;
    }

    .call-text {
        font-size: 13px;
    }

    .phone-number {
        font-size: 22px;
    }
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-nav.open {
        display: block;
    }

    .header-right {
        gap: 10px;
    }

    .header-container {
        height: 80px;
    }

    .logo {
        width: 180px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .logo-section {
        margin-left: 15px;
    }

    .logo {
        width: 160px;
        height: 60px;
    }

    .social-icons {
        gap: 8px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }

    .social-icon i {
        font-size: 14px;
    }

    .contact-box {
        padding: 0 15px;
    }

    .call-text {
        font-size: 12px;
    }

    .phone-number {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .social-icons {
        display: none;
    }

    .logo {
        width: 140px;
        height: 50px;
    }

    .contact-box {
        padding: 0 10px;
    }

    .call-text {
        font-size: 11px;
    }

    .phone-number {
        font-size: 18px;
    }
}

/* Footer Styles */
footer {
    background-color: #1B263B;
    color: #E0E1DD;
    padding: 40px 0 20px;
    position: relative;
    margin-top: -9px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Columns Layout */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

/* Footer Column Styles */
.footer-col {
    display: flex;
    flex-direction: column;
}

/* Brand Column */
.footer-heading {
    color: #fff;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

.footer-tagline {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.badges {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-badge {
    width: 50px;
    height: auto;
    display: block;
}

.license {
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
}

/* Navigation Column */
.footer-subheading {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.footer-nav-list li {
    margin-bottom: 8px;
}

.footer-nav-link {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    display: inline-block;
}

.footer-nav-link:hover,
.footer-nav-link.active {
    color: var(--link-hover); /* Highlight color */
}

.privacy-link {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.privacy-link:hover {
    color: var(--link-hover);
}

/* Contact Column */
.phone-link {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.phone-link:hover {
    color: var(--link-hover);
}

.email-section {
    margin-bottom: 15px;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.email-link:hover {
    color: var(--link-hover);
}

.email-link i {
    font-size: 16px;
}

.address {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--main-color);
    color: var(--light-color);
    text-decoration: none;
    transition: background-color 0.3s;
    border-radius: 50%;
}

.footer-social i:hover {
    background-color: var(--link-hover);
}

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

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

.copyright {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 10px;
}

.hosted-by {
    color: #999;
    font-size: 12px;
}

.hosted-by a {
    color: var(--link-hover);
    text-decoration: none;
}

.hosted-by a:hover {
    text-decoration: underline;
}

/* Back to Top Button */
.back-to-top {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--link-hover);
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.back-to-top:hover {
    background-color: var(--link-hover);
}

.back-to-top i {
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .badges {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .back-to-top {
        position: fixed;
        right: 20px;
        bottom: 20px;
        z-index: 1000;
    }
}

/* HERO SECTION */
.page-hero {
    width: 100%;
    height: 540px;
    color: black;
    padding: 5rem 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

/* Add a dark overlay behind the h1 */
.page-hero h1{
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
    background-color: rgba(0, 0, 0, 0.6); /* 70% black - darker */
    padding: 15px 30px; /* More padding */
    border-radius: 8px; /* More rounded */
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Optional shadow */
    z-index: 2;
}
.blogs {
    height: 330px !important;
    background-image: url('../imgs/hero/blogs.jpg');
    background-position: center !important;
}
.doors {
    background-image: url('../imgs/doors/heromd.jpg');
}
.windows {
    background-image: url('../imgs/windows/heromd.jpg');
}
.cabinets {
    background-image: url('../imgs/cabinets/heromd.jpg');
}
/* page styles */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pad45 {
    padding-top: 45px;
    padding-bottom: 45px;
}
.dark-section {
    background-color: var(--darkest);
    color: #ffffff;
}

/* Grid container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
    gap: 40px; /* Space between columns */
    align-items: center; /* Vertically align items */
}

/* Half side items */
.half-side {
    padding: 20px;
}
.half-side p {
    padding-top: 12px;
}

/* Image styling */
.responsive-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .half-side {
        padding: 10px 0; /* Adjust padding for mobile */
    }
}

/* Container for the two icon boxes */
.two-across {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 20px;
    margin-top: 30px;
}

/* Individual icon box */
.icon-box {
    text-align: center;
    padding: 25px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-top: 4px solid var(--link-hover); /* Red accent line */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Icon styling */
.icon-box i {
    font-size: 42px;
    color: var(--link-hover); /* Red icons */
    margin-bottom: 15px;
    display: block;
}

/* Text styling */
.icon-box h4 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}


.icon-block {
  display: flex;
  flex-direction: column;
  align-items: center; /* This centers the icon and text horizontally */
  text-align: center;
}

.icon-block i {
  font-size: 60px;
  width: 96px;
  height: 99px;
  background-color: var(--company-color);
  color: #fff;
  text-align: center;
  padding: 25px 0px 33px;
  margin-bottom: 15px;
  display: flex; /* Changed from block to flex */
  align-items: center; /* Vertically centers the icon */
  justify-content: center; /* Horizontally centers the icon */
  border-radius: 8px; /* Optional: adds rounded corners */
}

.icon-block h2 {
  text-align: center;
  margin: 0;
}
/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .two-across {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 15px;
    }
}

/* 75% / 25% GRID for Services Pages */
.grid-services {
    display: grid;
    grid-template-columns: 3fr 1fr; /* 75%/25% using fractions */
    gap: 50px;
    margin: 40px 0;
}

.left-side {
    padding-right: 30px;
    border-right: 1px solid #eee; /* Optional separator line */
}

.left-side h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.left-side p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
    color: #555;
}

.right-side {
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid var(--link-hover);
}

.right-side h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--link-hover);
    padding-bottom: 10px;
}

.right-side a {
    display: block;
    color: #555;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: color 0.3s, padding-left 0.3s;
}

.right-side a:hover {
    color: var(--link-hover);
    padding-left: 10px;
}

/* Cabinets page specific - text left, image right layout */
.cabinet-showcase {
    display: flex;
    gap: 50px;
    margin: 40px 0;
    align-items: flex-start;
}

.cabinet-showcase .cabinet-text {
    flex: 1;
    padding-right: 30px;
    border-right: 1px solid #eee;
}

.cabinet-showcase .cabinet-image {
    flex: 1;
}

.cabinet-showcase .cabinet-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
/* Responsive adjustments */
@media (max-width: 992px) {
    .grid-services {
        gap: 30px;
    }

    .left-side h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .grid-services {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .left-side {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 30px;
    }

    .right-side {
        margin-top: 20px;
    }
}

/* GRID of 3-across for bottom of Services pages NOT FINISHED 2FIX */
.grid-three {
    display: grid;
    grid-template-columns: 3fr;
    gap: 50px;
    margin: 40px 0;
}

/* Service Form */
/* Global btn-primary style */
.btn {
  border: none;
  border-radius: 0; /* Remove rounded corners */
  box-sizing: border-box; /* Includes padding and border in width calculation */
  cursor: pointer;
  display: block;
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background-color 0.2s ease;
}
.btn-service {
  padding-top: 9px !important;
  padding-bottom: 9px !important;
  text-align: center;
}
.btn-primary {
  background-color: var(--main-color);
  color: var(--light-color);
}

/* Button hover state */
.btn-primary:hover {
  background-color: var(--company-color);
}

/* Button active state */
.btn-primary:active {
  background-color: #000;
}

/* Form container - assuming it's in a 25% width div */
#serviceForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* Form inputs and textarea */
#serviceForm input,
#serviceForm textarea{
  width: 100%;
}

/* Input and textarea styles */
input, textarea {
  padding: 12px 15px;
  border: 1px solid #ddd;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease;
  background-color: white;
}

/* Focus states */
input:focus, textarea:focus {
  outline: none;
  border-color: #555;
}

/* Placeholder styling */
input::placeholder, textarea::placeholder {
  color: #888;
  opacity: 1;
}

/* Textarea specific styles */
textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.4;
}

/* Optional: Required field indicator */
input:required {
  border-left: 3px solid #ff4444;
}

/* Responsive considerations */
@media (max-width: 768px) {
  /* If the 25% container becomes too narrow on mobile, you might want: */
  #serviceForm {
    gap: 10px;
  }

  input, textarea {
    padding: 10px 12px;
    font-size: 13px;
  }

  .btn-primary {
    padding: 12px 15px;
    font-size: 14px;
  }
}

/* Cards similar to MaterializeCSS */
/* 3-across grid container */
.grid-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px 0;
}

/* Card styling */
.card {
  background: white;
  border-radius: 2px;
  box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: 0 8px 17px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

/* Card image */
.card-image {
  height: 300px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

/* Card content */
.card-content {
  padding: 20px;
  flex-grow: 1;
}


/* Card action */
.card-action {
  padding: 10px 20px 20px;
  border-top: 1px solid rgba(160,160,160,0.2);
}

.card-action a {
  text-decoration: none;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .grid-row-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .grid-row-3 {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .card-image {
    height: 160px;
  }
}
/* Favorite MaterializeCSS styles */
.hide {
    display: none !important;
}
.center {
    text-align: center;
}
.right {
    text-align: right;
}
video.responsive-video {
  max-width: 100%;
  height: auto;
}
.circle {
  border-radius: 50%;
}

#emailForm {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 800px;
    width: 100%;
    margin: 20px auto;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h1 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 8px;
}

.form-header p {
    color: #7f8c8d;
    font-size: 1rem;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.grid-container > div {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"] {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

input::placeholder {
    color: #aaa;
}

textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    min-height: 150px;
    resize: vertical;
    margin-bottom: 25px;
    transition: border 0.3s, box-shadow 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.btn {
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: 600;
    width: 100%;
    display: block;
}

.btn:active {
    transform: translateY(1px);
}

.required-indicator {
    color: #e74c3c;
    margin-left: 3px;
}

.form-note {
    text-align: center;
    margin-top: 15px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Tablet and Desktop styles */
@media (min-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr 1fr;
    }

    .full-width {
        grid-column: 1 / span 2;
    }

    .btn {
        width: auto;
        min-width: 200px;
        margin: 0 auto;
        display: block;
    }

    body {
        align-items: center;
    }
}

/* Phone-specific styles */
@media (max-width: 767px) {
    #emailForm {
        padding: 20px;
    }

    .form-header h1 {
        font-size: 1.6rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"] {
        padding: 14px 12px;
    }

    .btn {
        padding: 16px;
    }
}

/* Form validation styles */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: #2ecc71;
}

/* Success/Error message styles */
.message {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* Home Page Hero section */
.home-hero {
    width: 100%;
    height: 720px;
    color: black;
    padding: 5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    overflow: hidden; /* Prevents overflow from animated images */
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transition: opacity 1.5s ease-in-out;
}

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

.home-hero h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: red;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 25px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: opacity 1.5s ease-in-out;
}

.home-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 0;
    line-height: 1.2;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px 30px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: opacity 1.5s ease-in-out;
}
/* Blog Styles */
.blog-date {
    text-align: right;
    font-size: 9px;
    display: block;
}
.blog-breadcrumbs {
    font-size: 11px;
    margin: 27px 0 18px;
}
.blog-content p {
    padding-top: 12px;
}
.blog-content img {
    width: 80% !important;
    margin: 0 auto;
    display: block;
}
.blog-content hr{
    margin: 24px 0;
}
.blog-content ul {
/*  box-sizing: border-box; */
    margin-left: 36px;
}
/* Non-critical CSS (can be loaded later) */
.non-critical {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.non-critical.loaded {
    opacity: 1;
}

/* Company Info Section - Homepage */
.company-info {
    margin: 60px 0;
    padding: 0 20px;
}

.info-card {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 48px 56px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.info-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--link-hover, #c6a43b);
}

.info-header h2 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: #1a2a3a;
    letter-spacing: -0.5px;
}

.since {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 8px;
    font-style: italic;
}

.license {
    font-size: 1rem;
    color: #888;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.info-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.service-area h3,
.ground-up h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: #1a2a3a;
    position: relative;
    display: inline-block;
}

.service-area h3:after,
.ground-up h3:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--link-hover, #c6a43b);
}

.service-area p,
.ground-up p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 16px;
}

.cta {
    margin-top: 20px;
}

.cta a {
    color: var(--link-hover, #c6a43b);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.cta a:hover {
    text-decoration: underline;
    color: #a07f2a;
}

/* Responsive */
@media (max-width: 768px) {
    .info-card {
        padding: 32px 24px;
    }

    .info-details {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .info-header h2 {
        font-size: 1.8rem;
    }
}