/* ============================================
   Line and Chain Tasmania - Stylesheet
   Mobile-first responsive design
   Breakpoints: 320px mobile, 768px tablet, 1024px desktop
   ============================================ */

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

:root {
    --primary-green: #228B22;
    --accent-orange: #FF8C00;
    --dark-gray: #333;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --text-dark: #333;
    --text-light: #666;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #FBFFE0;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-orange);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    flex: 0 0 auto;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.logo {
    width: 120px;
    height: auto;
    max-height: 60px;
    display: block;
    object-fit: contain;
}

.home-link {
    display: block;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 700;
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.home-link:hover {
    color: var(--accent-orange);
}

.business-name {
    display: none;
    font-size: 1.25rem;
    color: var(--primary-green);
    margin: 0;
    flex: 1;
    text-align: center;
}

.header-cta {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-green);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation */
.nav {
    display: none;
    flex-direction: column;
    background-color: var(--white);
    padding: 1rem;
    border-top: 1px solid var(--light-gray);
}

.nav.active {
    display: flex;
}

.nav a {
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--light-gray);
    text-align: center;
}

.nav a:last-child {
    border-bottom: none;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('hero-image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem 1rem;
    max-width: 800px;
}

.hero-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.hero-cta {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

/* CTA Button */
.cta-button {
    background-color: var(--accent-orange);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.cta-button:hover {
    background-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Services Section */
.services {
    padding: 3rem 1rem;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    color: var(--primary-green);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-brushcutting {
    background-image: url('man brushcutting.jpg');
    background-size: cover;
    background-position: center;
    background-color: var(--light-gray);
}

.service-card-firewood {
    background-image: url('stack  of firewood.jpg');
    background-size: cover;
    background-position: center;
    background-color: var(--light-gray);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.service-content {
    position: relative;
    z-index: 2;
    padding: 1rem;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card-brushcutting .service-icon svg path,
.service-card-brushcutting .service-icon svg circle {
    stroke: var(--white);
    fill: var(--white);
    opacity: 0.9;
}

.service-card-firewood .service-icon svg rect,
.service-card-firewood .service-icon svg circle,
.service-card-firewood .service-icon svg line {
    fill: var(--white);
    stroke: var(--white);
    opacity: 0.9;
}

.service-card h3 {
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.service-card p {
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.service-note {
    margin-top: 1rem;
    padding: 0.75rem;
    color: var(--white) !important;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}


/* Gallery Section */
.gallery {
    padding: 3rem 1rem;
    background-color: var(--light-gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    font-weight: 700;
}

/* CTA Banner */
.cta-banner {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 3rem 1rem;
    text-align: center;
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.cta-banner p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.cta-banner .cta-button {
    background-color: var(--accent-orange);
}

.cta-banner .cta-button:hover {
    background-color: var(--white);
    color: var(--primary-green);
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 2rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-logo {
    width: 150px;
    height: auto;
    max-height: 75px;
    margin-bottom: 1rem;
    display: block;
    object-fit: contain;
}

.footer-left p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.5rem;
}

.footer-center {
    text-align: center;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-nav a {
    color: var(--white);
}

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

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    color: var(--white);
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-orange);
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

/* Footer Contact Section */
.footer-contact {
    text-align: center;
}

.footer-contact h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.contact-item {
    margin-bottom: 1rem;
    color: #ccc;
}

.contact-item strong {
    display: block;
    color: var(--white);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.contact-item a {
    color: var(--accent-orange);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

/* Contact Form (for modal) */
.contact-form {
    background-color: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 8px;
}

.contact-form h3 {
    color: var(--white);
    margin-bottom: 1rem;
    text-align: center;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: rgba(255,255,255,0.9);
    color: var(--text-dark);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 5px rgba(255,140,0,0.3);
}

.contact-form button {
    width: 100%;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-green);
}

#contact-form-modal {
    background-color: transparent;
    padding: 0;
}

#contact-form-modal input,
#contact-form-modal textarea {
    background-color: var(--white);
    border: 1px solid #ddd;
}

/* About Page */
.about-main {
    margin-top: 80px;
    padding: 3rem 1rem;
    min-height: calc(100vh - 60px);
    padding-bottom: 4rem;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content h1 {
    text-align: center;
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto;
}

.about-cta {
    text-align: center;
    margin-top: 2rem;
}

.about-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Location Page */
.location-main {
    margin-top: 80px;
    padding: 3rem 1rem;
    min-height: calc(100vh - 60px);
    padding-bottom: 4rem;
}

.location-content {
    max-width: 900px;
    margin: 0 auto;
}

.location-content h1 {
    text-align: center;
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.location-section {
    margin-bottom: 3rem;
}

.location-section h2 {
    color: var(--primary-green);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.location-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* FAQs Page */
.faqs-main {
    margin-top: 80px;
    padding: 3rem 1rem;
    min-height: calc(100vh - 60px);
    padding-bottom: 4rem;
}

.faqs-content {
    max-width: 800px;
    margin: 0 auto;
}

.faqs-content h1 {
    text-align: center;
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.faqs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background-color: var(--white);
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
    transition: background-color 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.faq-question:hover {
    background-color: var(--light-gray);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 900;
    transition: transform 0.3s ease;
    color: var(--accent-orange);
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
}

.faq-answer p {
    padding: 1.5rem;
    color: var(--text-dark);
    line-height: 1.8;
}

/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 2rem;
    }

    .header-container {
        padding: 1rem 2rem;
    }

    .logo {
        width: 150px;
        max-height: 75px;
    }

    .business-name {
        display: block;
    }

    .home-link {
        font-size: 1rem;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .nav {
        display: flex;
        flex-direction: row;
        border-top: none;
        padding: 0;
        background: none;
    }

    .nav a {
        padding: 0.5rem 1.5rem;
        border-bottom: none;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.25rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-right {
        grid-column: 1 / -1;
    }

    .footer-nav {
        flex-wrap: wrap;
    }

    .about-text {
        flex-direction: row;
        align-items: flex-start;
    }

    .about-photo {
        flex: 0 0 300px;
        margin: 0;
    }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
    .header-cta {
        display: block;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-right {
        grid-column: auto;
    }

    .footer-contact {
        text-align: left;
    }

    .about-photo {
        flex: 0 0 400px;
    }
}

/* Accessibility & Performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cta-button,
    .mobile-menu-toggle {
        display: none;
    }

    body {
        font-size: 12pt;
    }
}

