/**
 * PTS Forestry Contractors - Garden Tree Inspired Design
 * Colour palette: Deep forest green, lime accent, cream background
 */

:root {
    /* Colours */
    --color-forest: #0d1f0c;
    --color-forest-dark: #071406;
    --color-lime: #b8d936;
    --color-lime-hover: #c8e94a;
    /* Darker green for text/links on light backgrounds - better contrast */
    --color-accent-content: #2d6b29;
    --color-accent-content-hover: #1e4d1b;
    --color-cream: #f8f6f1;
    --color-cream-dark: #ebe8e2;
    --color-white: #ffffff;
    --color-text: #1a2f19;
    --color-text-muted: #4a5c49;
    
    /* Typography */
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    
    /* Layout */
    --max-width: 1280px;
    --header-height: 80px;
    --border-radius: 4px;
    
    /* Transitions */
    --transition: 0.25s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-cream);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition);
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--color-lime);
    color: var(--color-forest);
    border-color: var(--color-lime);
}

.btn-primary:hover {
    background: var(--color-lime-hover);
    border-color: var(--color-lime-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-forest);
}

.btn-outline-light {
    background: transparent;
    color: var(--color-lime);
    border-color: var(--color-lime);
}

.btn-outline-light:hover {
    background: var(--color-lime);
    color: var(--color-forest);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    transition: background var(--transition);
}

.site-header.scrolled {
    background: rgba(13, 31, 12, 0.95);
    backdrop-filter: blur(10px);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--color-lime);
}

.main-nav {
    display: none;
}

@media (min-width: 1024px) {
    .main-nav {
        display: block;
    }
    
    .nav-list {
        display: flex;
        gap: var(--space-md);
    }
    
    .nav-list a {
        color: var(--color-white);
        font-size: 0.9rem;
        font-weight: 500;
        opacity: 0.9;
    }
    
    .nav-list a:hover,
    .nav-list a.active {
        color: var(--color-lime);
        opacity: 1;
    }
    
    .header-cta {
        display: inline-flex;
    }
}

@media (max-width: 1023px) {
    .header-cta {
        display: none;
    }
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--color-white);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Mobile nav */
.main-nav.mobile-open .nav-list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-forest);
    padding: var(--space-lg);
    gap: var(--space-sm);
}

/* Hero */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 31, 12, 0.5), rgba(13, 31, 12, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--space-2xl) var(--space-lg);
    max-width: 900px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.hero-title .accent {
    color: var(--color-lime);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

/* Hero page (smaller) */
.hero.hero-page {
    min-height: 50vh;
}

.hero-page .hero-content {
    padding: calc(var(--header-height) + var(--space-2xl)) var(--space-lg) var(--space-xl);
}

/* Service Cards - overlapping */
.services-cards {
    margin-top: -120px;
    position: relative;
    z-index: 10;
    padding-bottom: var(--space-xl);
}

.cards-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .cards-container {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
}

.service-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(13, 31, 12, 0.1);
    transition: transform var(--transition), box-shadow var(--transition);
    display: block;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(13, 31, 12, 0.15);
}

.card-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-icon {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-lime);
    color: var(--color-forest);
    font-size: 1.5rem;
    font-weight: 300;
    border-radius: 50%;
}

.card-content {
    padding: var(--space-md);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-accent-content);
    margin-bottom: var(--space-xs);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* About Section */
.about-section {
    padding: var(--space-2xl) var(--space-lg);
    background: var(--color-cream);
}

.about-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.about-content {
    display: grid;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.about-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-forest);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.about-title .accent {
    color: var(--color-lime);
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.link-arrow {
    color: var(--color-accent-content);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.link-arrow:hover {
    color: var(--color-accent-content-hover);
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(13, 31, 12, 0.08);
}

.about-image img {
    width: 100%;
}

/* Stats Section */
.stats-section {
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-cream-dark);
}

.stats-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .stats-inner {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-forest);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Process Section */
.process-section {
    padding: var(--space-2xl) var(--space-lg);
    background: var(--color-forest);
    color: var(--color-white);
}

.process-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.process-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .process-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.process-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-lg);
    }
}

.process-item {
    position: relative;
}

.process-icon {
    color: var(--color-lime);
    margin-bottom: var(--space-md);
}

.process-number {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-lime);
    margin-bottom: var(--space-xs);
}

.process-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.process-item-text {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    background: var(--color-cream);
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--color-forest);
    margin-bottom: var(--space-sm);
}

.cta-text {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

/* Page Content (inner pages) */
.page-content {
    padding: calc(var(--header-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
    max-width: 800px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-forest);
    margin-bottom: var(--space-lg);
}

.page-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-forest);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.page-content p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.page-content ul {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.page-content li {
    position: relative;
    margin-bottom: var(--space-xs);
    color: var(--color-text-muted);
}

.page-content li::before {
    content: '•';
    position: absolute;
    left: -1rem;
    color: var(--color-accent-content);
}

/* Footer */
.site-footer {
    background: var(--color-forest);
    color: var(--color-white);
    padding: var(--space-2xl) var(--space-lg) var(--space-lg);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-tagline {
    margin-top: var(--space-xs);
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer-address {
    margin-top: var(--space-sm);
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-contact h3,
.footer-services h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.footer-contact p,
.footer-services ul {
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-contact a,
.footer-services a {
    color: var(--color-lime);
}

.footer-contact a:hover,
.footer-services a:hover {
    color: var(--color-lime-hover);
}

.footer-services ul li {
    margin-bottom: var(--space-xs);
}

.office-hours {
    margin-top: var(--space-sm);
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.8;
    text-align: left;
}

.footer-credit {
    font-size: 0.85rem;
    opacity: 0.8;
    text-align: right;
}

/* Contact Page */
.contact-page .contact-details {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: var(--color-cream-dark);
    border-radius: var(--border-radius);
}

.contact-details h2 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: var(--space-md);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.contact-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-forest);
}

.contact-item a {
    color: var(--color-accent-content);
    font-size: 1.125rem;
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--color-accent-content-hover);
}

.contact-email {
    margin-bottom: var(--space-sm);
}

.office-hours-note,
.address-note {
    font-size: 0.9rem;
    margin-top: var(--space-sm);
}
