/* TMK Construction - Main Stylesheet */
/* Mobile-first responsive design */

/* ========================================
   CSS Variables (Color Palette)
   ======================================== */
:root {
    --primary: #1e3a5f;
    --primary-dark: #152a45;
    --secondary: #c41e3a;
    --accent: #d4a03d;
    --light: #f7f9fc;
    --dark: #1a202c;
    --gray: #718096;
    --gray-light: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #a01830;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--accent);
    color: var(--dark);
}

.btn-secondary:hover {
    background-color: #b8892f;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo-text span {
    color: var(--secondary);
}

.nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 20px;
}

.nav-menu.active {
    display: flex;
}

.nav-menu li {
    margin: 10px 0;
}

.nav-menu a {
    font-weight: 500;
    color: var(--dark);
    padding: 10px 0;
    display: block;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.header-cta {
    display: none;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(30, 58, 95, 0.85), rgba(30, 58, 95, 0.85)),
                url('../images/hero-stonework.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 120px 20px 60px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.hero-phone {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
}

.hero-phone a {
    color: var(--accent);
}

.hero-phone a:hover {
    text-decoration: underline;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: 80px 0;
    background-color: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95rem;
}

/* ========================================
   Why Choose Us Section
   ======================================== */
.why-us {
    padding: 80px 0;
    background-color: var(--primary);
    color: var(--white);
}

.why-us .section-title h2,
.why-us .section-title p {
    color: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.why-item {
    text-align: center;
    padding: 20px;
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.why-item h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.why-item p {
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   Featured Projects Section
   ======================================== */
.featured-projects {
    padding: 80px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(30, 58, 95, 0.9));
    padding: 30px 20px 20px;
    color: var(--white);
}

.project-overlay h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.project-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary), #e63950);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cta-phone {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-phone a {
    color: var(--white);
}

.cta-phone a:hover {
    color: var(--accent);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-contact-item span:first-child {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ========================================
   Page Header (for inner pages)
   ======================================== */
.page-header {
    background: linear-gradient(rgba(30, 58, 95, 0.9), rgba(30, 58, 95, 0.9)),
                url('../images/masonry-brick-wall.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 180px 20px 80px;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* ========================================
   About Page Styles
   ======================================== */
.about-content {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 2rem;
}

.credential {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--light);
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 600;
    color: var(--primary);
}

.credential span:first-child {
    color: var(--secondary);
}

/* ========================================
   Services Page Styles
   ======================================== */
.services-page {
    padding: 80px 0;
}

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

.service-category h2 {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
    width: 100%;
}

.services-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-details {
    padding: 25px;
}

.service-details h3 {
    margin-bottom: 10px;
}

.service-details p {
    margin-bottom: 15px;
}

/* ========================================
   Gallery Page Styles
   ======================================== */
.gallery-page {
    padding: 80px 0;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    background-color: var(--light);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 58, 95, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay span {
    color: var(--white);
    font-size: 2rem;
}

/* ========================================
   Lightbox
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 20px;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ========================================
   Contact Page Styles
   ======================================== */
.contact-page {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-info {
    background-color: var(--primary);
    color: var(--white);
    padding: 40px;
    border-radius: 10px;
}

.contact-info h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-item .icon {
    font-size: 1.5rem;
    color: var(--accent);
}

.contact-info-item h4 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 1rem;
}

.contact-info-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.contact-info-item a {
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 700;
}

.free-estimate-badge {
    background-color: var(--secondary);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 30px;
}

.free-estimate-badge h3 {
    color: var(--white);
    margin-bottom: 5px;
}

.free-estimate-badge p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.contact-form-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.contact-form h2 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--gray-light);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
}

/* ========================================
   Responsive Styles - Tablet (768px+)
   ======================================== */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }

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

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .services-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* ========================================
   Responsive Styles - Desktop (1024px+)
   ======================================== */
@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
        gap: 30px;
    }

    .nav-menu li {
        margin: 0;
    }

    .header-cta {
        display: block;
    }

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

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .service-item {
        grid-template-columns: 300px 1fr;
    }

    .service-item img {
        height: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.bg-light { background-color: var(--light); }
.bg-primary { background-color: var(--primary); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.py-4 { padding-top: 4rem; padding-bottom: 4rem; }

/* ========================================
   Top Contact Bar
   ======================================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
    z-index: 1001;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--accent);
}

.top-bar-phone a {
    color: var(--accent);
}

.top-bar-phone a:hover {
    color: var(--white);
}

.top-bar-cta {
    background-color: var(--secondary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.top-bar-cta:hover {
    background-color: #a01830;
}

/* Adjust header position when top bar exists */
body.has-top-bar .header {
    top: 0;
}

/* ========================================
   Hero Slider
   ======================================== */
.hero-slider {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 160px 20px 60px;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(30, 58, 95, 0.8), rgba(30, 58, 95, 0.85));
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.slide-content h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.slide-content h1 span {
    color: var(--accent);
    display: block;
    font-size: 3rem;
}

.slide-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active,
.slider-dot:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--accent);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* ========================================
   Credential Badges Section
   ======================================== */
.credentials-bar {
    background: linear-gradient(135deg, var(--accent), #c4902d);
    padding: 25px 0;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: center;
}

.credential-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--white);
}

.credential-item .icon {
    font-size: 2.5rem;
}

.credential-item .text {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.credential-item .subtext {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ========================================
   Responsive - New Features
   ======================================== */
@media (min-width: 768px) {
    .slide-content h1 {
        font-size: 3rem;
    }

    .slide-content h1 span {
        font-size: 4rem;
    }

    .credentials-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .slide-content h1 {
        font-size: 3.5rem;
    }

    .slide-content h1 span {
        font-size: 4.5rem;
    }
}

@media (max-width: 767px) {
    .top-bar-left {
        display: none;
    }

    .top-bar .container {
        justify-content: center;
    }

    .slider-arrow {
        padding: 10px 15px;
        font-size: 1.2rem;
    }
}
