/*
Theme Name: Sequoia Creative
Theme URI: https://sequoiacreative.ca
Author: Sequoia Creative Solutions
Author URI: https://sequoiacreative.ca
Description: Custom lightweight WordPress theme for Sequoia Creative Solutions - Professional forestry and vegetation management services
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sequoia
*/

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

:root {
    --forest-green: #4f7447;
    --dark-green: #3a5535;
    --accent-black: #000000;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-gray: #6c757d;
    --border-light: #e9ecef;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--forest-green);
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    text-wrap: balance;
}

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

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

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

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo img {
    height: 80px;
    width: auto;
}

.cor-badge img {
    height: 70px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a.active {
    background: var(--accent-black);
    color: var(--white);
    font-weight: 700;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(47, 79, 79, 0.65), rgba(47, 79, 79, 0.65)),
                url('assets/images/home-screen-photo-forest-services-edited-1-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.hero.hero-alt {
    background-image: linear-gradient(rgba(47, 79, 79, 0.65), rgba(47, 79, 79, 0.65)),
                      url('assets/images/Logging-operations_-scaled.jpg');
}

.hero.hero-services {
    background-image: linear-gradient(rgba(47, 79, 79, 0.65), rgba(47, 79, 79, 0.65)),
                      url('assets/images/logging3.jpg');
}

.hero.hero-contact {
    background-image: linear-gradient(rgba(47, 79, 79, 0.65), rgba(47, 79, 79, 0.65)),
                      url('assets/images/contact1.jpg');
}

.hero.hero-home {
    background: var(--white) url('assets/images/backdrop.png') bottom center / contain no-repeat;
    padding: 5rem 0 30rem 0;
    color: var(--text-dark);
}

@media (min-width: 2500px) {
    .hero.hero-home {
        background-size: cover;
    }
}

.hero.hero-home h1 {
    color: var(--forest-green);
}

.hero-intro {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    font-size: 1.15rem;
    line-height: 1.8;
    text-align: justify;
    color: var(--text-dark);
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 0;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--forest-green);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid var(--forest-green);
}

.btn:hover {
    background: var(--white);
    color: var(--text-dark);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--text-dark);
}

.hero .btn {
    background: var(--white);
    color: var(--forest-green);
    border: 2px solid var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero .btn:hover {
    background: var(--forest-green);
    color: var(--white);
    border-color: var(--forest-green);
}

.hero.hero-home .btn {
    background: var(--forest-green);
    color: var(--white);
    border: 2px solid var(--forest-green);
}

.hero.hero-home .btn:hover {
    background: var(--white);
    color: var(--forest-green);
    border: 2px solid var(--forest-green);
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
}

.content-section:nth-child(even) {
    background: var(--light-bg);
}

.intro-text {
    text-align: justify;
    max-width: 900px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title .underline {
    width: 80px;
    height: 4px;
    background: var(--forest-green);
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    margin-top: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    width: 100%;
}

@media (min-width: 768px) {
    .service-card {
        width: calc(50% - 16px);
    }
}

@media (min-width: 1200px) {
    .service-card {
        width: calc(33.333% - 22px);
    }
}

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

/* Core Values Cards (Home Page) */
.core-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.core-value-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.core-value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.core-value-icon {
    width: 80px;
    height: 80px;
    background: var(--forest-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.core-value-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.core-value-card h3 {
    color: var(--forest-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.core-value-card p {
    margin: 0;
}

/* Service Cards (Services Page) */
.service-card h3 {
    background: var(--forest-green);
    color: var(--white);
    padding: 1rem;
    margin: -2rem -2rem 1.5rem -2rem;
    border-radius: 0;
}

.service-card.has-image h3 {
    margin: 0 0 1.5rem 0;
}

.service-card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 1.5rem;
}

.service-card.has-image {
    padding: 0;
}

.service-card.has-image .service-card-content {
    padding: 0 2rem 2rem 2rem;
}

.service-card ul {
    list-style: none;
    margin: 1rem 0;
}

.service-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--forest-green);
    font-weight: bold;
}

/* Contact Page Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-image {
    display: flex;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 796px;
}

.contact-form {
    display: flex;
    align-items: center;
}

.contact-form .wpforms-container {
    width: 100%;
}

/* WPForms Styling */
.wpforms-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

div.wpforms-container-full .wpforms-form .wpforms-field-label {
    font-weight: 600 !important;
    color: var(--forest-green) !important;
    margin-bottom: 0.5rem !important;
    font-size: 1rem !important;
}

div.wpforms-container-full .wpforms-form input[type="text"],
div.wpforms-container-full .wpforms-form input[type="email"],
div.wpforms-container-full .wpforms-form input[type="tel"],
div.wpforms-container-full .wpforms-form input[type="url"],
div.wpforms-container-full .wpforms-form input[type="number"],
div.wpforms-container-full .wpforms-form input[type="date"],
div.wpforms-container-full .wpforms-form textarea,
div.wpforms-container-full .wpforms-form select {
    width: 100% !important;
    padding: 0.875rem 1rem !important;
    border: 2px solid var(--border-light) !important;
    border-radius: 4px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    background: var(--white) !important;
}

div.wpforms-container-full .wpforms-form input[type="text"]:focus,
div.wpforms-container-full .wpforms-form input[type="email"]:focus,
div.wpforms-container-full .wpforms-form input[type="tel"]:focus,
div.wpforms-container-full .wpforms-form input[type="url"]:focus,
div.wpforms-container-full .wpforms-form input[type="number"]:focus,
div.wpforms-container-full .wpforms-form input[type="date"]:focus,
div.wpforms-container-full .wpforms-form textarea:focus,
div.wpforms-container-full .wpforms-form select:focus {
    outline: none !important;
    border-color: var(--forest-green) !important;
    box-shadow: 0 0 0 3px rgba(79, 116, 71, 0.1) !important;
}

div.wpforms-container-full .wpforms-form textarea {
    min-height: 150px !important;
    resize: vertical !important;
}

div.wpforms-container-full .wpforms-form .wpforms-field {
    margin-bottom: 1.5rem !important;
}

div.wpforms-container-full .wpforms-form .wpforms-submit-container {
    text-align: center !important;
    margin-top: 2rem !important;
}

div.wpforms-container-full .wpforms-form button[type="submit"],
div.wpforms-container-full .wpforms-form .wpforms-submit {
    display: inline-block !important;
    padding: 0.75rem 3rem !important;
    background: var(--forest-green) !important;
    background-color: var(--forest-green) !important;
    color: var(--white) !important;
    border: 2px solid var(--forest-green) !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
    font-size: 1rem !important;
}

div.wpforms-container-full .wpforms-form button[type="submit"]:hover,
div.wpforms-container-full .wpforms-form .wpforms-submit:hover {
    background: var(--white) !important;
    background-color: var(--white) !important;
    color: var(--text-dark) !important;
    border-color: var(--forest-green) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

div.wpforms-container-full .wpforms-form .wpforms-required-label {
    color: var(--forest-green) !important;
}

div.wpforms-container-full .wpforms-form .wpforms-error {
    color: #dc3545 !important;
    font-size: 0.9rem !important;
    margin-top: 0.5rem !important;
}

div.wpforms-container-full .wpforms-confirmation-container-full {
    background: #d4edda !important;
    border: 2px solid #28a745 !important;
    border-radius: 8px !important;
    padding: 2rem !important;
    text-align: center !important;
    color: #155724 !important;
}

@media (max-width: 768px) {
    .wpforms-container {
        padding: 2rem 1.5rem;
    }
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-brand img {
    height: 60px;
    width: auto;
}

.footer-certifications {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-certifications img {
    height: 60px;
    width: auto;
}

.footer-logo-white {
    filter: brightness(0) invert(1);
}

.footer-bottom {
    text-align: left;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Service Boxes (Home Page) */
.service-boxes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.service-box {
    background: var(--white);
    color: var(--forest-green);
    padding: 0;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.service-box-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.service-box h3 {
    color: var(--forest-green);
    margin: 0;
    font-size: 1.75rem;
    padding: 2rem;
    background: var(--white);
}

/* About Page Layouts */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text-image-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: stretch;
}

.about-image-text-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    align-items: stretch;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image {
    display: flex;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Service Card Content Headings */
.service-card-content h4 {
    margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
.footer-bottom {
    text-align: center;
}

    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }

    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Header */
    .header-inner {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem 15px;
    }

    .logo-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .site-logo img {
        height: 80px;
    }

    .cor-badge img {
        height: 70px;
    }

    .site-header {
        position: relative;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .main-navigation a {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    /* Hero */
    .hero {
        padding: 3rem 0;
    }

    .hero.hero-home {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-intro {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 2rem;
    }

    .hero .btn {
        font-size: 0.9rem;
        padding: 0.65rem 1.5rem;
    }

    /* Sections */
    .content-section {
        padding: 2.5rem 0;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .intro-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Grids */

    .core-values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-boxes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-box h3 {
        font-size: 1.5rem;
    }

    .about-text-image-grid,
    .about-image-text-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-image img {
        max-height: 400px;
    }

    /* Service Cards */
    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    .service-card-content {
        font-size: 0.95rem;
    }

    .service-card-content ul {
        padding-left: 1.25rem;
    }

    /* Core Values */
    .core-value-card {
        padding: 1.5rem;
    }

    .core-value-icon {
        font-size: 2rem;
        width: 60px;
        height: 60px;
    }

    /* Buttons */
    .btn {
        font-size: 0.9rem;
        padding: 0.65rem 1.5rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-brand img,
    .footer-certifications img {
        height: 50px;
    }

    .footer-certifications {
        gap: 1rem;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }

    /* WPForms */
    div.wpforms-container-full .wpforms-form input[type="text"],
    div.wpforms-container-full .wpforms-form input[type="email"],
    div.wpforms-container-full .wpforms-form input[type="tel"],
    div.wpforms-container-full .wpforms-form textarea {
        font-size: 0.95rem;
    }

    div.wpforms-container-full .wpforms-form button[type="submit"] {
        font-size: 0.9rem;
        padding: 0.65rem 1.5rem;
    }
}
