:root {
    /* Bays Joinery-inspired palette */
    --bg: #ffffff;
    --bg-muted: #f4f5f6;
    --panel: #ffffff;

    --ink: #111111;
    --ink-2: #5f6670;

    --border: rgba(17, 17, 17, 0.12);
    --shadow: 0 14px 35px rgba(17, 17, 17, 0.10);

    /* Charcoal section blocks + warm orange accent */
    --charcoal: #3f4b56;
    --charcoal-2: #2f3942;

    --accent: #e07a2f;
    --accent-hover: #c96522;

    /* Typography */
    --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

    /* Layout rhythm */
    --container-width: 1180px;
    --header-height: 84px;
    --section-pad: clamp(56px, 7.5vw, 92px);
    --radius: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--ink);
    line-height: 1.6;
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

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

/* Reduce the “boxed” feeling further */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 1200px) {
    .container {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* Typography (weights + size only) */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 800;
    line-height: 1.05;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--ink-2);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-pad) 0;
}

/* Reduce "boxed" feel by letting backgrounds bleed */
.section.bg-light,
.section.bg-dark {
    width: 100%;
}

.bg-light { background-color: var(--bg-muted); }
.bg-dark { background-color: var(--charcoal); color: #fff; }
.text-white { color: #ffffff; }
.text-gray { color: rgba(255,255,255,0.75); }

/* Make full-width sections feel less boxed */
.section.bg-light,
.section.bg-dark {
    padding-left: 0;
    padding-right: 0;
}

.section.bg-light > .container,
.section.bg-dark > .container {
    padding-left: 24px;
    padding-right: 24px;
}

/* Subtle section separators (less boxed) */
.section + .section {
    border-top: 1px solid rgba(17,17,17,0.10);
}

/* Keep alternating blocks clean (no double separators) */
.bg-light.section {
    border-top: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 18px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(224, 122, 47, 0.28);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255,255,255,0.28);
    color: #ffffff;
}

.btn-outline:hover {
    border-color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.08);
}

.btn-lg {
    padding: 14px 18px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    height: var(--header-height);
    background: rgba(17, 17, 17, 0.55);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font);
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
}

.nav-list {
    display: flex;
    gap: 22px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nav-link:hover {
    color: #ffffff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: rgba(255,255,255,0.9);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero Section */
.hero {
    min-height: calc(88vh - var(--header-height));
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(17, 17, 17, 0.55) 0%,
        rgba(17, 17, 17, 0.72) 55%,
        rgba(17, 17, 17, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: clamp(70px, 9vw, 140px) 0;
    max-width: 860px;

    /* Give hero copy breathing room on small screens */
    padding-left: clamp(16px, 4vw, 56px);
    padding-right: clamp(16px, 4vw, 56px);
}

.hero-title {
    font-size: clamp(44px, 6vw, 64px);
    color: #ffffff;
    margin-bottom: 18px;
    line-height: 1.02;
}

.hero-subtitle {
    font-size: clamp(16px, 2.1vw, 20px);
    color: rgba(255,255,255,0.78);
    margin-bottom: 28px;
    max-width: 56ch;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 44px;
}

.section-title {
    font-size: clamp(30px, 3.2vw, 44px);
    margin-bottom: 10px;
}

.section-desc {
    font-size: 16px;
    color: var(--ink-2);
    line-height: 1.7;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}

.service-card {
    grid-column: span 4;
    background: var(--panel);
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    border-color: rgba(224, 122, 47, 0.45);
    box-shadow: var(--shadow);
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 16px;
    margin-bottom: 0;
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: rgba(224, 122, 47, 0.14);
    color: var(--accent);
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 20px;
    height: 20px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 28px;
    align-items: start;
}

.about-content {
    grid-column: span 7;
}

.about-image {
    grid-column: span 5;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: none;
}

.feature-list {
    margin-top: 18px;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-2);
    font-size: 16px;
}

.feature-list li::before {
    content: "✓";
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(224, 122, 47, 0.18);
    color: var(--accent);
    font-weight: 900;
    font-size: 12px;
}

/* Portfolio Section */
.section.bg-dark {
    background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-2) 100%);
    color: #ffffff;
}

.section.bg-dark .section-title { color: #ffffff; }
.section.bg-dark .section-desc { color: rgba(255,255,255,0.72); }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}

.portfolio-item {
    grid-column: span 6;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.portfolio-item:hover {
    transform: translateY(-2px);
    border-color: rgba(224, 122, 47, 0.50);
}

.portfolio-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.portfolio-info {
    padding: 18px;
    color: var(--text);
}

.portfolio-info h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.portfolio-info p {
    margin-bottom: 0;
    font-size: 16px;
    color: var(--text-2);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}

.testimonial-card {
    grid-column: span 6;
    background: #ffffff;
    padding: 22px;
    border-radius: var(--radius);
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(17,17,17,0.06);
}

.quote-icon {
    font-size: 44px;
    color: var(--accent);
    opacity: 0.20;
    position: absolute;
    top: 10px;
    right: 14px;
    font-family: var(--font);
    font-weight: 900;
}

.testimonial-text {
    font-size: 18px;
    font-style: normal;
    margin-bottom: 14px;
    color: var(--text);
}

.testimonial-author strong {
    display: block;
    color: var(--text);
    font-size: 14px;
}

.testimonial-author span {
    font-size: 14px;
    color: var(--text-2);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 28px;
    align-items: start;
}

.contact-info {
    grid-column: span 5;
}

.contact-form-container {
    grid-column: span 7;
}

.contact-details {
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.contact-item h3 {
    font-size: 14px;
    margin-bottom: 4px;
}

.contact-item a,
.contact-item p {
    font-size: 16px;
    color: var(--text-2);
}

.contact-item a:hover {
    color: var(--text);
}

.contact-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.contact-form {
    background: #ffffff;
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(17,17,17,0.10);
    border: 1px solid rgba(17,17,17,0.12);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(17,17,17,0.18);
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(224, 122, 47, 0.70);
    box-shadow: 0 0 0 4px rgba(224, 122, 47, 0.16);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--charcoal-2) 0%, #1f262c 100%);
    color: rgba(255,255,255,0.72);
    padding: 56px 0;
    border-top: 1px solid rgba(255,255,255,0.10);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.footer-logo {
    color: #ffffff;
    font-family: var(--font);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 980px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        padding: 18px 24px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%);
        transition: transform 0.25s ease;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        display: inline-flex;
        padding: 10px 0;
    }

    .services-grid .service-card { grid-column: span 12; }
    .portfolio-grid .portfolio-item { grid-column: span 12; }
    .testimonials-grid .testimonial-card { grid-column: span 12; }

    .about-content,
    .about-image,
    .contact-info,
    .contact-form-container {
        grid-column: span 12;
    }
}

@media (max-width: 600px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-lg {
        width: 100%;
    }

    .hero-content {
        padding-left: 18px;
        padding-right: 18px;
    }
}
