/* ============================================
   JCM & Sons Excavating & Landscaping
   Confident Corporate | Terracotta + Sand
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --terracotta: #B55239;
    --terracotta-dark: #8F3F2A;
    --terracotta-light: #D4755D;
    --sand: #E8D5C4;
    --sand-light: #F5EDE5;
    --sand-lighter: #FAF6F2;
    --sand-dark: #C4A882;
    --charcoal: #1E1E1E;
    --charcoal-light: #2D2D2D;
    --slate: #3A3A3A;
    --gray: #6B6B6B;
    --gray-light: #9A9A9A;
    --white: #FFFFFF;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --radius: 4px;
    --radius-lg: 8px;
    --shadow-sm: 0 1px 3px rgba(30,30,30,.06), 0 1px 2px rgba(30,30,30,.04);
    --shadow-md: 0 4px 16px rgba(30,30,30,.08), 0 2px 4px rgba(30,30,30,.04);
    --shadow-lg: 0 12px 40px rgba(30,30,30,.10), 0 4px 12px rgba(30,30,30,.06);
    --transition: 250ms cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--sand-lighter);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; font-weight: 600; }

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

.skip-link {
    position: absolute; top: -100%; left: 16px;
    background: var(--charcoal); color: var(--white);
    padding: 8px 16px; border-radius: var(--radius);
    z-index: 9999; font-size: .875rem;
}
.skip-link:focus { top: 16px; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-body); font-weight: 500;
    font-size: .9375rem; border: 2px solid transparent;
    border-radius: var(--radius); cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--terracotta); color: var(--white);
    border-color: var(--terracotta);
}
.btn-primary:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); box-shadow: var(--shadow-md); }

.btn-ghost {
    background: transparent; color: var(--charcoal);
    border-color: var(--charcoal);
}
.btn-ghost:hover { background: var(--charcoal); color: var(--white); }

.btn-white {
    background: var(--white); color: var(--terracotta);
    border-color: var(--white);
}
.btn-white:hover { background: var(--sand-light); border-color: var(--sand-light); box-shadow: var(--shadow-md); }

.btn-outline-light {
    background: transparent; color: var(--white);
    border-color: rgba(255,255,255,.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn-terracotta {
    background: var(--terracotta); color: var(--white);
    border-color: var(--terracotta);
}
.btn-terracotta:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); }

.btn-small { padding: 8px 18px; font-size: .8125rem; }
.btn-medium { padding: 12px 28px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; padding: 14px 28px; font-size: 1rem; }

/* --- Header --- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(250,246,242,.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(181,82,57,.08);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-size: 1.25rem;
    font-weight: 600; color: var(--charcoal);
}
.logo-mark { color: var(--terracotta); flex-shrink: 0; }
.logo-slash { color: var(--terracotta); font-style: italic; }

.primary-nav ul { display: flex; align-items: center; gap: 32px; }
.primary-nav a {
    font-size: .875rem; font-weight: 500; color: var(--slate);
    transition: color var(--transition);
    position: relative;
}
.primary-nav a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--terracotta);
    transition: width var(--transition);
}
.primary-nav a:hover { color: var(--terracotta); }
.primary-nav a:hover::after { width: 100%; }
.primary-nav .btn-primary { color: var(--white); }
.primary-nav .btn-primary::after { display: none; }
.primary-nav .btn-primary:hover { color: var(--white); }

.nav-toggle {
    display: none; background: none; border: none;
    cursor: pointer; color: var(--charcoal); padding: 4px;
}

/* --- Hero --- */
.hero {
    padding-top: 72px; min-height: 100vh; min-height: 100dvh;
    background: var(--sand-lighter);
    position: relative; overflow: hidden;
}
.hero-pattern {
    position: absolute; inset: 0; pointer-events: none; opacity: .03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23B55239' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: center;
    padding: 60px 0 80px; position: relative; z-index: 1;
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .8125rem; font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase; color: var(--terracotta);
    margin-bottom: 20px;
}
.hero-eyebrow svg { opacity: .7; }

.hero-headline {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 700; color: var(--charcoal);
    line-height: 1.1; margin-bottom: 24px;
}
.hero-headline em {
    font-style: italic; color: var(--terracotta);
}
.hero-sub {
    font-size: 1.125rem; color: var(--gray);
    line-height: 1.7; max-width: 520px; margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
    display: flex; align-items: center; gap: 0;
    padding-top: 32px; border-top: 1px solid var(--sand);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--charcoal); }
.stat-label { font-size: .8125rem; color: var(--gray); }
.stat-divider {
    width: 1px; height: 40px; background: var(--sand-dark);
    margin: 0 24px; flex-shrink: 0;
}

/* Hero Visual */
.hero-visual {
    position: relative; display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    gap: 0;
}
.hero-img-main {
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 600/720;
}
.hero-img-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-accent {
    position: absolute; bottom: -24px; right: -24px;
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg); border: 4px solid var(--sand-lighter);
    width: 60%; aspect-ratio: 400/280;
}
.hero-img-accent img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
    position: absolute; top: 24px; left: -16px;
    display: flex; align-items: center; gap: 8px;
    background: var(--white); color: var(--charcoal);
    padding: 10px 16px; border-radius: var(--radius);
    font-size: .8125rem; font-weight: 600;
    box-shadow: var(--shadow-md);
}
.hero-badge svg { color: var(--terracotta); }

/* --- Section Shared --- */
.section-header { margin-bottom: 56px; }
.section-header--center { text-align: center; }
.section-tag {
    display: inline-block; font-size: .75rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--terracotta); margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--charcoal); margin-bottom: 16px;
}
.section-desc {
    font-size: 1.0625rem; color: var(--gray);
    max-width: 560px; line-height: 1.7;
}
.section-header--center .section-desc { margin: 0 auto; }

/* --- Services --- */
.services { padding: 100px 0; background: var(--white); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--sand-lighter);
    border: 1px solid var(--sand);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--terracotta-light);
}
.service-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    background: rgba(181,82,57,.08);
    color: var(--terracotta);
    margin-bottom: 20px;
}
.service-card h3 {
    font-size: 1.1875rem; margin-bottom: 10px; color: var(--charcoal);
}
.service-card p {
    font-size: .9375rem; color: var(--gray); line-height: 1.65;
}

/* --- About --- */
.about { padding: 100px 0; background: var(--sand-lighter); }
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: center;
}
.about-images { position: relative; }
.about-img-main {
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 520/640;
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-secondary {
    position: absolute; bottom: -32px; right: 0;
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg); border: 4px solid var(--sand-lighter);
    width: 65%; aspect-ratio: 340/260;
}
.about-img-secondary img { width: 100%; height: 100%; object-fit: cover; }
.about-accent-bar {
    position: absolute; top: -16px; left: -16px;
    width: 80px; height: 80px;
    background: var(--terracotta); border-radius: var(--radius);
    z-index: -1;
}

.about-content .section-title { margin-bottom: 20px; }
.about-body { font-size: 1rem; color: var(--slate); line-height: 1.75; margin-bottom: 16px; }
.about-features {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px 24px; margin: 28px 0 32px;
}
.feature-item {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: .9375rem; color: var(--slate);
}
.check-icon { color: var(--terracotta); flex-shrink: 0; margin-top: 2px; }
.about-content .btn { margin-top: 8px; }

/* --- Gallery --- */
.gallery { padding: 100px 0; background: var(--white); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}
.gallery-item {
    border-radius: var(--radius-lg); overflow: hidden;
    position: relative;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 500ms cubic-bezier(.4,0,.2,1);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item--wide { grid-column: span 12; }
.gallery-item:not(.gallery-item--wide) { grid-column: span 6; }
.gallery-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 16px 20px;
    background: linear-gradient(transparent, rgba(30,30,30,.7));
    color: var(--white); font-size: .875rem; font-weight: 500;
    opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* --- Why Us --- */
.why-us { padding: 100px 0; background: var(--charcoal); color: var(--white); }
.why-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: start;
}
.why-content .section-tag { color: var(--terracotta-light); }
.why-content .section-title { color: var(--white); margin-bottom: 20px; }
.why-body { font-size: 1rem; color: rgba(255,255,255,.65); line-height: 1.75; margin-bottom: 36px; }

.why-list { display: flex; flex-direction: column; gap: 28px; }
.why-list li {
    display: grid; grid-template-columns: 40px 1fr;
    gap: 16px; align-items: start;
}
.why-list-num {
    font-family: var(--font-display); font-size: 1.25rem;
    font-weight: 700; color: var(--terracotta);
    padding-top: 2px;
}
.why-list strong {
    display: block; font-size: 1rem; color: var(--white);
    margin-bottom: 4px; font-family: var(--font-body);
}
.why-list span { font-size: .9375rem; color: rgba(255,255,255,.55); line-height: 1.6; }

.why-visual { position: relative; }
.why-img-block {
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 520/680;
}
.why-img-block img { width: 100%; height: 100%; object-fit: cover; }
.why-quote {
    position: absolute; bottom: -32px; left: -24px; right: -24px;
    background: var(--white); color: var(--charcoal);
    border-radius: var(--radius-lg); padding: 28px 32px;
    box-shadow: var(--shadow-lg);
}
.why-quote svg { color: var(--terracotta); margin-bottom: 12px; opacity: .6; }
.why-quote blockquote { font-size: 1rem; line-height: 1.7; color: var(--slate); font-style: italic; margin-bottom: 12px; }
.why-quote cite { font-size: .8125rem; color: var(--gray); font-style: normal; }

/* --- CTA Banner --- */
.cta-banner {
    padding: 80px 0;
    background: var(--terracotta);
}
.cta-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 32px; flex-wrap: wrap;
}
.cta-text { max-width: 560px; }
.cta-title { font-size: clamp(1.5rem, 3vw, 2.25rem); color: var(--white); margin-bottom: 12px; }
.cta-desc { font-size: 1.0625rem; color: rgba(255,255,255,.8); line-height: 1.7; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-actions .btn-white:hover { background: var(--white); }

/* --- Contact --- */
.contact { padding: 100px 0; background: var(--sand-lighter); }
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: start;
}
.contact-info .section-title { margin-bottom: 16px; }
.contact-desc { font-size: 1rem; color: var(--gray); line-height: 1.7; margin-bottom: 36px; }

.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
    display: flex; align-items: flex-start; gap: 16px;
}
.contact-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    background: rgba(181,82,57,.08); color: var(--terracotta);
}
.contact-item strong {
    display: block; font-size: .8125rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--gray); margin-bottom: 4px;
    font-family: var(--font-body);
}
.contact-item a, .contact-item span {
    font-size: 1rem; color: var(--charcoal); line-height: 1.6;
}
.contact-item a:hover { color: var(--terracotta); }

/* Form */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg); padding: 40px;
    box-shadow: var(--shadow-md); border: 1px solid var(--sand);
}
.form-title {
    font-size: 1.375rem; margin-bottom: 28px; color: var(--charcoal);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: .8125rem; font-weight: 600;
    color: var(--slate); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: .05em;
    font-family: var(--font-body);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 12px 14px;
    border: 1.5px solid var(--sand-dark);
    border-radius: var(--radius); font-size: .9375rem;
    font-family: var(--font-body); color: var(--charcoal);
    background: var(--sand-lighter);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(181,82,57,.12);
    background: var(--white);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-light); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
    text-align: center; padding: 48px 24px;
}
.form-success svg { color: var(--terracotta); margin-bottom: 16px; }
.form-success h4 { font-size: 1.375rem; margin-bottom: 8px; color: var(--charcoal); }
.form-success p { font-size: .9375rem; color: var(--gray); margin-bottom: 24px; }

/* --- Footer --- */
.site-footer {
    background: var(--charcoal); color: rgba(255,255,255,.65);
    padding: 64px 0 0;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px; padding-bottom: 48px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: .9375rem; line-height: 1.7; max-width: 280px; }

.footer-links h4, .footer-contact h4 {
    font-family: var(--font-body); font-size: .8125rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
    color: var(--white); margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
    font-size: .9375rem; color: rgba(255,255,255,.55);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--terracotta-light); }
.footer-contact p { font-size: .9375rem; line-height: 1.7; }
.footer-contact a { color: var(--terracotta-light); transition: color var(--transition); }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 24px 0;
}
.footer-bottom p { font-size: .8125rem; color: rgba(255,255,255,.35); text-align: center; }

/* --- Mobile Nav --- */
@media (max-width: 900px) {
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
    .primary-nav {
        position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
        background: var(--sand-lighter);
        padding: 32px 24px;
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 99;
    }
    .primary-nav.open { transform: translateX(0); }
    .primary-nav ul {
        flex-direction: column; align-items: stretch;
        gap: 0;
    }
    .primary-nav li { border-bottom: 1px solid var(--sand); }
    .primary-nav a {
        display: block; padding: 16px 0;
        font-size: 1.0625rem;
    }
    .primary-nav a::after { display: none; }
    .primary-nav .btn { justify-content: center; margin-top: 16px; }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 40px 0 80px; }
    .hero-visual { order: -1; max-width: 480px; }
    .hero-img-accent { right: -8px; bottom: -16px; }
    .hero-badge { left: 8px; top: 16px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-images { max-width: 480px; }
    .why-visual { max-width: 480px; }
    .why-quote { left: 0; right: 0; bottom: -24px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item--wide, .gallery-item:not(.gallery-item--wide) { grid-column: span 1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-inner { flex-direction: column; text-align: center; }
    .cta-actions { justify-content: center; }
}

@media (max-width: 600px) {
    .container { padding: 0 20px; }
    .hero-headline { font-size: 2rem; }
    .hero-stats { flex-direction: column; align-items: flex-start; gap: 16px; }
    .stat-divider { width: 40px; height: 1px; margin: 0; }
    .services-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-img-accent { width: 70%; bottom: -12px; right: -8px; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .gallery-item img { transition: none; }
    .gallery-item:hover img { transform: none; }
}
