/* ========================================
   CRAFTSMEN HOME BUILDERS - MODERN CSS
   ======================================== */

/* CSS VARIABLES */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #c7372f;
    --dark-gray: #1a1a1a;
    --medium-gray: #4a4a4a;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #666666;
    --border-color: #e0e0e0;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-gray);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-full {
    width: 100%;
}

/* NAVIGATION */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
    line-height: 0;
}

.logo img {
    height: 100px;
    width: auto;
    transition: var(--transition);
}

.logo img:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-menu li a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown .dropbtn {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 10px 0;
    margin-top: 10px;
}

.dropdown-content li {
    list-style: none;
}

.dropdown-content li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.dropdown-content li a:hover {
    background-color: var(--light-gray);
    color: var(--accent-color);
    padding-left: 25px;
}

.dropdown-content li a::after {
    display: none;
}

.dropdown.active .dropdown-content {
    display: block;
}

.dropdown .dropbtn::after {
    content: ' ▼';
    font-size: 0.7rem;
    margin-left: 4px;
}

.dropdown.active .dropbtn::after {
    content: ' ▲';
}

.nav-cta {
    background-color: var(--accent-color);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 0;
}

.nav-cta:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-cta::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    transition: var(--transition);
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('../images/home/NewConstruction.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(26, 26, 26, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 20% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(20px); opacity: 0; }
}

/* PAGE HERO (INTERNAL PAGES) */
.page-hero {
    position: relative;
    height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('https://images.unsplash.com/photo-1600573472550-d7c4e97a4b6a?w=1920&h=800&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
}

/* SECTIONS */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* SERVICES OVERVIEW */
.services-overview {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.services-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.services-list li {
    padding: 12px 20px;
    background-color: var(--white);
    border-left: 4px solid var(--accent-color);
    font-size: 1.05rem;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.services-list li:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-left-width: 6px;
}

.service-card {
    background-color: var(--white);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    width: 100%;
    height: 275px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

/* Overlay for specific images with harsh lines */
.service-image.overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-image.overlay::before {
    opacity: 0;
}

.service-content {
    padding: 30px 25px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.service-content p {
    margin-bottom: 0;
    line-height: 1.7;
    color: var(--text-light);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: var(--accent-color);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--primary-color);
}

/* FEATURED PROJECTS */
.featured-projects {
    background-color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.project-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 30px 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-overlay h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.project-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.text-center {
    text-align: center;
}

/* WHY CHOOSE US */
.why-choose-us {
    background-color: var(--primary-color);
    color: var(--white);
}

.why-choose-us .section-header h2,
.why-choose-us .section-header p {
    color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
}

.feature-item {
    text-align: left;
}

.feature-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    opacity: 0.3;
    margin-bottom: 16px;
}

.feature-item h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.85);
}

/* TESTIMONIALS */
.testimonials {
    background-color: var(--light-gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-left: 4px solid var(--accent-color);
}

.stars {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 24px;
    line-height: 1.8;
}

.testimonial-author strong {
    display: block;
    color: var(--dark-gray);
    font-weight: 700;
    margin-bottom: 4px;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* SERVICE AREA */
.service-area {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.area-group {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.area-group:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.area-group h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent-color);
}

.area-group ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.area-group li {
    padding: 8px 12px;
    background-color: var(--light-gray);
    border-left: 3px solid var(--primary-color);
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.area-group li:hover {
    border-left-width: 5px;
    background-color: #e8e8e8;
    transform: translateX(3px);
}

.service-area-note {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-top: 20px;
}

.service-area-note a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
}

.service-area-note a:hover {
    color: var(--primary-color);
}

/* CTA BANNER */
.cta-banner {
    background: linear-gradient(135deg, var(--dark-gray), var(--primary-color));
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* SERVICES PAGE */
.services-detail {
    padding: 80px 0;
}

.service-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 100px;
    align-items: center;
}

.service-detail-card.reverse {
    direction: rtl;
}

.service-detail-card.reverse > * {
    direction: ltr;
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 500px;
}

.service-detail-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-intro {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.service-features h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.service-features ul {
    margin-bottom: 32px;
}

.service-features li {
    padding-left: 30px;
    margin-bottom: 12px;
    position: relative;
    color: var(--text-light);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.small-projects-cta {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.cta-box {
    background-color: var(--white);
    padding: 60px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border-top: 4px solid var(--accent-color);
}

.cta-box h2,
.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-box .btn {
    margin: 0.5rem;
}

.cta-box .btn-outline {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.cta-box .btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* PORTFOLIO PAGE */
.portfolio-section {
    padding: 80px 0;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 30px 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-item-overlay {
    transform: translateY(0);
}

.portfolio-item-overlay h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.portfolio-item-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-caption {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.lightbox-caption h3 {
    color: var(--white);
    margin-bottom: 8px;
}

.lightbox-caption p {
    color: rgba(255, 255, 255, 0.8);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background-color: transparent;
    color: var(--white);
    border: none;
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2001;
}

.lightbox-close {
    top: 20px;
    right: 40px;
}

.lightbox-prev {
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.2);
}

/* ABOUT PAGE */
.about-story {
    padding: 80px 0;
}

.about-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 600px;
}

.values-section {
    background-color: var(--light-gray);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.value-card {
    text-align: center;
    padding: 40px 20px;
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--accent-color);
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-gray));
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.why-choose-detail {
    padding: 80px 0;
}

.choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.choose-item {
    padding: 30px;
    background-color: var(--light-gray);
    border-left: 4px solid var(--accent-color);
}

.choose-item h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

/* CONTACT PAGE */
.contact-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.quote-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.quote-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.quote-intro p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.contact-form-wrapper > p {
    margin-bottom: 32px;
    color: var(--text-light);
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-info-wrapper {
    position: sticky;
    top: 100px;
}

.contact-info-box {
    background-color: var(--white);
    padding: 40px;
}

.contact-info-box h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.contact-info-box > p {
    margin-bottom: 32px;
    color: var(--text-light);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    align-items: flex-start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.contact-link {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.contact-link:hover {
    color: var(--primary-color);
}

.contact-note {
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: var(--light-gray);
    border-left: 3px solid var(--accent-color);
}

.badge svg {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
}

.badge span {
    font-weight: 600;
    font-size: 0.9rem;
}

.map-section {
    padding: 0;
}

.map-container {
    width: 100%;
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(20%);
}

.emergency-banner {
    background-color: var(--dark-gray);
    padding: 50px 0;
}

.emergency-content {
    text-align: center;
}

.emergency-content h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 12px;
}

.emergency-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

/* FOOTER */
.footer {
    background-color: var(--dark-gray);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ANIMATIONS */
.fade-in {
    animation: fadeIn 1s ease-in;
}

.fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .service-detail-card,
    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-detail-card.reverse {
        direction: ltr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-wrapper {
        position: static;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.4rem; }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .logo img {
        height: 85px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .page-hero {
        height: 300px;
        margin-top: 70px;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 30px 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 16px 0;
    }
    
    /* Mobile Dropdown Styles */
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        background-color: var(--light-gray);
        margin-top: 10px;
        padding: 0;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content li a {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .dropdown-content li a:hover {
        padding-left: 20px;
        background-color: rgba(255, 255, 255, 0.5);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .services-grid,
    .projects-grid,
    .features-grid,
    .testimonials-grid,
    .values-grid,
    .stats-grid,
    .choose-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        left: 10px;
        right: 10px;
    }
    
    .lightbox-close {
        right: 10px;
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero {
        min-height: 600px;
    }
    
    .logo img {
        height: 65px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 14px 30px;
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .contact-info-box {
        padding: 30px 20px;
    }
}

/* Service Detail Pages */
.service-detail-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.service-detail-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

.service-detail-main {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.service-detail-main h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.service-detail-main h3 {
    color: var(--text-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-detail-main h4 {
    color: var(--text-color);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.service-detail-main p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.service-detail-main ul,
.service-detail-main ol {
    margin: 20px 0;
    padding-left: 25px;
}

.service-detail-main li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.service-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.sidebar-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.sidebar-box ul {
    list-style: none;
    padding: 0;
}

.sidebar-box ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--light-gray);
}

.sidebar-box ul li:last-child {
    border-bottom: none;
}

.sidebar-box ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-box ul li a:hover {
    color: var(--primary-color);
}

.check-list {
    list-style: none !important;
    padding: 0 !important;
}

.check-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.check-list li::before {
    content: "?";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

@media (max-width: 968px) {
    .service-detail-content {
        grid-template-columns: 1fr;
    }

    .service-detail-main {
        padding: 30px;
    }

    .sidebar-box {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .service-detail-section {
        padding: 60px 0;
    }

    .service-detail-content {
        gap: 30px;
    }

    .service-detail-main {
        padding: 25px;
    }

    .service-detail-main h2 {
        font-size: 1.75rem;
    }

    .service-detail-main h3 {
        font-size: 1.3rem;
        margin-top: 25px;
    }

    .service-detail-main h4 {
        font-size: 1.1rem;
    }

    .sidebar-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .service-detail-section {
        padding: 40px 0;
    }

    .service-detail-content {
        gap: 20px;
    }

    .service-detail-main {
        padding: 20px;
    }

    .service-detail-main h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .service-detail-main h3 {
        font-size: 1.2rem;
        margin-top: 20px;
        margin-bottom: 12px;
    }

    .service-detail-main h4 {
        font-size: 1rem;
        margin-top: 15px;
    }

    .service-detail-main p {
        font-size: 0.95rem;
    }

    .service-detail-main ul,
    .service-detail-main ol {
        padding-left: 20px;
        margin: 15px 0;
    }

    .sidebar-box {
        padding: 18px;
    }

    .sidebar-box h4 {
        font-size: 1.1rem;
    }

    .cta-box {
        padding: 40px 20px;
    }

    .cta-box h2,
    .cta-box h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .cta-box p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .cta-box .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Responsive Grid Classes for Service Pages */
.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin: 2rem 0;
    text-align: center;
}

.process-step {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.process-step-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2980b9;
}

.process-step-label {
    font-size: 0.9rem;
    margin-top: 5px;
}

.content-image-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 25px;
    align-items: start;
    margin: 1rem 0;
}

.image-content-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 25px;
    align-items: start;
    margin: 2rem 0;
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.content-image-grid img,
.image-content-grid img {
    width: 100%;
    border-radius: 8px;
}

/* Tablet Responsive */
@media (max-width: 968px) {
    .process-steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .content-image-grid,
    .image-content-grid {
        grid-template-columns: 1fr;
    }
    
    .two-column-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .process-steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .process-step {
        padding: 12px;
    }
    
    .process-step-number {
        font-size: 1.5rem;
    }
    
    .process-step-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .process-steps-grid {
        grid-template-columns: 1fr;
    }
}
