/* Custom Fonts */
@font-face {
    font-display: swap;
    font-family: 'Crimson Text';
    font-style: normal;
    font-weight: 400;
    src: url('/font/Crimson_Text/CrimsonText-Regular.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Crimson Text';
    font-style: italic;
    font-weight: 400;
    src: url('/font/Crimson_Text/CrimsonText-Italic.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Crimson Text';
    font-style: normal;
    font-weight: 600;
    src: url('/font/Crimson_Text/CrimsonText-SemiBold.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Crimson Text';
    font-style: italic;
    font-weight: 600;
    src: url('/font/Crimson_Text/CrimsonText-SemiBoldItalic.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Crimson Text';
    font-style: normal;
    font-weight: 700;
    src: url('/font/Crimson_Text/CrimsonText-Bold.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Crimson Text';
    font-style: italic;
    font-weight: 700;
    src: url('/font/Crimson_Text/CrimsonText-BoldItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'TheSignature';
    src: url('/font/Thesignature.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #2d2d2d;
    --primary-light: #f8f8f8;
    --accent-gold: #c9a961;
    --text-dark: #333;
    --text-light: #fff;
    --gray-medium: #666;
    --gray-light: #e5e5e5;
    --header-footer-bg: #BEBFC1;
    --header-footer-text: #363435;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', 'Segoe UI', Tahoma, Geneva, Verdana, serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--header-footer-bg);
    color: var(--header-footer-text);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 300;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--header-footer-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-gold);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}

.header-phone-link {
    color: var(--header-footer-text);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    white-space: nowrap;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-social a {
    color: var(--header-footer-text);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: color 0.3s ease;
}

.header-social a:hover {
    color: var(--accent-gold);
}

.header-social svg {
    width: 22px;
    height: 22px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--header-footer-text);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background-image: url('/img/kitchen3.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
}

.hero-content {
    flex: 1;
    text-align: center;
    padding: 2rem 0;
}

.hero-portrait {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    align-self: flex-end;
}

.hero-portrait img {
    height: 360px;
    width: auto;
    object-fit: cover;
    object-position: top;
    display: block;
    border: 4px solid rgba(255, 255, 255, 0.75);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--text-light);
    color: var(--primary-dark);
    border-color: var(--text-light);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-secondary {
    background-color: var(--primary-dark);
    color: var(--text-light);
    border-color: var(--primary-dark);
}

.btn-secondary:hover {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.btn-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--accent-gold);
}

/* Services Section */
.services {
    padding: 4rem 0;
    background-color: var(--primary-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--primary-dark);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--gray-medium);
    margin-bottom: 1rem;
}

/* Featured Projects / Gallery */
.featured-projects {
    padding: 4rem 0;
    background-color: white;
}

/* LightGallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    background-color: var(--gray-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.07);
    opacity: 0.88;
}


.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--text-light);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Why Choose Us */
.why-choose-us {
    padding: 4rem 0;
    background-color: var(--primary-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-dark);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.feature p {
    color: var(--gray-medium);
}

.cta-center {
    text-align: center;
}

/* Reviews Carousel */
.reviews-carousel {
    position: relative;
    min-height: 180px;
    margin: 2rem 0 2.5rem;
}

.review-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    text-align: center;
    padding: 1.5rem 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.review-card.active {
    opacity: 1;
    pointer-events: auto;
}

.review-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 0.75rem;
}

.review-stars svg {
    width: 22px;
    height: 22px;
    fill: var(--accent-gold);
    stroke: none;
}

.review-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.review-text {
    font-size: 0.975rem;
    color: var(--gray-medium);
    font-style: italic;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.about-text .lead {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--gray-medium);
    line-height: 1.8;
}

.about-signature {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--gray-light);
}

.about-signature p {
    color: var(--primary-dark);
    font-style: italic;
}

.signature-name {
    font-family: 'TheSignature', cursive;
    font-size: 18px;
    font-style: normal;
    font-weight: normal;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: var(--primary-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.contact-item h3 {
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--gray-medium);
    margin-bottom: 1.5rem;
}

.contact-description {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.contact-note {
    color: var(--gray-medium);
    font-size: 0.95rem;
}

/* Required star */
.required-star {
    color: #c0392b;
    margin-left: 2px;
}

/* Field-level error text */
.field-error {
    display: block;
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    min-height: 1.1em;
}

/* Form note (either/or hint) */
.form-note {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    margin-top: -0.5rem;
}

/* Contact Form */
.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-dark);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #c0392b;
    background-color: #fff5f5;
}

/* Disabled submit button */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Contact CTA Section */
.contact-cta {
    padding: 4rem 0;
    background-color: var(--primary-dark);
}

.contact-cta .btn-primary {
    background-color: var(--accent-gold);
    color: var(--text-light);
    border-color: var(--accent-gold);
    font-size: 1.15rem;
    padding: 1rem 2.5rem;
}

.contact-cta .btn-primary:hover {
    background-color: transparent;
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

/* Footer */
.footer {
    background-color: var(--header-footer-bg);
    color: var(--header-footer-text);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--header-footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--header-footer-text);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--accent-gold);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .header-content {
        flex-wrap: wrap;
    }

    .nav {
        order: 3;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background-color: var(--primary-dark);
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-inner {
        justify-content: flex-start;
    }

    .hero-portrait {
        display: none;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 968px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        height: 500px;
    }

    .hero-content h2 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .services-grid,
    .projects-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header-phone-link {
        font-size: 1rem;
    }

    .hero {
        height: 400px;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* =============================================
   Service Pages
   ============================================= */

/* 4-column services grid on index */
.services-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .services-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Service Hero Banner */
.service-hero {
    position: relative;
    height: 340px;
    background-image: url('/img/gallery/kitchen2.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.service-hero--pantry {
    background-image: url('/img/gallery/DEB49B33-8DFB-4D72-8DF0-D18E9D959745.jpeg');
}

.service-hero--vanity {
    background-image: url('/img/gallery/att.D4KzfIUN5F61KRlFwftQYAdvtPBj2fVx1n9KKpmFNZU.jpeg');
}

.service-hero--countertops {
    background-image: url('/img/kitchen_drill.jpeg');
}

.service-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.service-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 800px;
}

.service-hero-breadcrumb {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 0.75rem;
}

.service-hero-breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-hero-breadcrumb a:hover {
    color: var(--accent-gold);
}

.service-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.service-hero-content p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Service Detail Section */
.service-detail {
    padding: 4rem 0;
    background-color: white;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.service-detail-text h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1.25rem;
}

.service-detail-text h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin: 1.75rem 0 0.75rem;
}

.service-detail-text .lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.service-detail-text p {
    color: var(--gray-medium);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.service-list li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    color: var(--gray-medium);
    line-height: 1.6;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: 700;
}

.service-cta-btn {
    margin-top: 1rem;
    background-color: var(--primary-dark);
    color: var(--text-light);
    border-color: var(--primary-dark);
}

.service-cta-btn:hover {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--text-light);
}

.service-detail-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 350px;
}

/* Countertop Options */
.countertop-options {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.countertop-option {
    padding: 1.25rem 1.5rem;
    background-color: var(--primary-light);
    border-left: 4px solid var(--accent-gold);
    border-radius: 0 6px 6px 0;
}

.countertop-option h3 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin: 0 0 0.4rem;
}

.countertop-option p {
    color: var(--gray-medium);
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.7;
}

/* Service Gallery Section */
.service-gallery-section {
    padding: 4rem 0;
    background-color: var(--primary-light);
}

/* CTA heading/subtext inside contact-cta */
.cta-heading {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.cta-subtext {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
}

/* Responsive: service detail */
@media (max-width: 768px) {
    .service-hero-content h1 {
        font-size: 2rem;
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-image {
        order: -1;
    }

    .service-detail-image img {
        min-height: 240px;
    }

    .cta-heading {
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Smooth Scrolling Enhancement */
section {
    scroll-margin-top: 80px;
}
