/* 
    D3 Cutting LLC - Main Stylesheet
    Design System: Deep Forest Green, Charcoal, Off-White, Amber Accent
*/

:root {
    --primary-color: #1A3324;      /* Deep Forest Green */
    --primary-dark: #122419;
    --accent-color: #D97725;       /* Stihl/Machinery Orange-Amber */
    --accent-hover: #C05A18;
    --text-main: #1C1C1C;          /* Charcoal */
    --text-muted: #555555;
    --bg-main: #F4F4F0;            /* Off-White */
    --bg-card: #FFFFFF;
    --white: #FFFFFF;
    
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

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

ul {
    list-style: none;
}

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

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

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.65rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    touch-action: manipulation;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(217, 119, 37, 0.4);
}

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

.btn-ghost:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Header & Navigation */
.site-header {
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-link img {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    margin-left: 10px;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.main-nav a:not(.btn) {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.35rem 0;
}

.main-nav a:not(.btn):hover {
    color: var(--accent-color);
}

.main-nav a:not(.btn).active {
    color: var(--accent-color);
}

.nav-cta {
    margin-left: 0.5rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 8px;
    border-radius: 4px;
    z-index: 1001;
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--accent-color);
}

.mobile-menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: calc(100vh - 76px);
    min-height: calc(100dvh - 76px);
    display: flex;
    align-items: center;
    padding-top: 76px;
    padding-bottom: 3rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    max-width: 820px;
    color: var(--white);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(217, 119, 37, 0.2);
    border: 1px solid rgba(217, 119, 37, 0.6);
    color: #F8B26A;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
    color: var(--white);
    line-height: 1.1;
    word-break: break-word;
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 2.25rem;
    opacity: 0.95;
    max-width: 650px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Trust Bar */
.trust-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.trust-bar-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.trust-item svg {
    color: var(--accent-color);
    flex-shrink: 0;
}

/* Subpage Header */
.subpage-header {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 7rem 0 3.5rem;
    text-align: center;
    background-image: linear-gradient(rgba(18, 36, 25, 0.88), rgba(18, 36, 25, 0.88)), url('../images/background%20cut.jpg');
    background-size: cover;
    background-position: center;
}

.subpage-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.subpage-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.service-image {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.service-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.service-link {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}

/* About / Why Us */
.why-us-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-us-lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.why-us-img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
}

.feature-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(217, 119, 37, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    height: 280px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.gallery-item.large-item {
    grid-column: span 2;
}

/* CTA Banner Section */
.cta-banner {
    background: linear-gradient(rgba(18, 36, 25, 0.92), rgba(18, 36, 25, 0.92)), url('../images/background%20cut.jpg') center/cover;
    color: var(--white);
    padding: 4.5rem 0;
    text-align: center;
}

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

.cta-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto 2rem;
}

.cta-banner-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact */
.contact-section {
    background-color: var(--bg-main);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 3.5rem;
}

.contact-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.method-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.method-item svg {
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 3px;
}

.method-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.method-value {
    color: var(--text-main);
    font-size: 1.15rem;
    font-weight: 500;
}

a.method-value:hover {
    color: var(--accent-color);
}

.contact-form-container {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.form-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 16px; /* Crucial: 16px prevents iOS Safari auto-zoom on input tap */
    background-color: #FAFAFA;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(217, 119, 37, 0.15);
}

/* Footer */
.site-footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-brand h4, .footer-links h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-brand p {
    max-width: 380px;
    line-height: 1.6;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
}

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

.footer-legal {
    margin-top: 3.5rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Responsive Media Queries */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    .hero-title { font-size: 3.25rem; }
    .why-us-grid, .contact-grid { 
        grid-template-columns: 1fr; 
        gap: 2.5rem;
    }
    .why-us-image-container { order: -1; }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item.large-item {
        grid-column: span 1;
    }
    .footer-inner { 
        grid-template-columns: 1fr 1fr; 
        gap: 2rem;
    }
}

/* Mobile & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .site-header {
        height: 70px;
    }
    
    .header-inner {
        height: 70px;
    }

    .logo-text {
        font-size: 1.15rem;
    }

    .logo-link img {
        height: 40px;
    }

    /* Mobile Navigation Drawer */
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px);
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 1.5rem 3rem;
        gap: 1.5rem;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        overflow-y: auto;
        z-index: 999;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .main-nav li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    .main-nav a:not(.btn) {
        display: block;
        padding: 1.1rem 0;
        font-size: 1.15rem;
        font-weight: 600;
        color: var(--primary-color);
    }
    
    .nav-cta {
        margin: 0.5rem 0 0;
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    /* Hero */
    .hero {
        padding-top: 70px;
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }

    .hero-title { 
        font-size: 2.35rem; 
        letter-spacing: -0.5px;
    }

    .hero-subtitle { 
        font-size: 1.125rem; 
        margin-bottom: 2rem;
    }

    .hero-actions { 
        flex-direction: column; 
        width: 100%; 
        gap: 0.75rem;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .trust-bar-inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .subpage-header {
        padding: 6rem 0 3rem;
    }

    .subpage-title {
        font-size: 2.25rem;
    }

    /* Forms */
    .contact-form-container {
        padding: 1.75rem 1.25rem;
    }

    .form-row { 
        grid-template-columns: 1fr; 
        gap: 0;
    }

    /* Gallery */
    .gallery-grid { 
        grid-template-columns: 1fr; 
        gap: 1rem;
    }

    .gallery-item {
        height: 240px;
    }

    .footer-inner { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 2rem;
    }

    .footer-links ul {
        align-items: center;
    }
}

/* Extra Small Phones (max-width: 420px) */
@media (max-width: 420px) {
    .hero-title { 
        font-size: 2rem; 
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
    }
}
