/* main.css - Core styles for automation consulting website */

/* Base Styles and Variables */
:root {
    --color-primary: #2D4F3C; /* Forest Green */
    --color-primary-dark: #1a3026;
    --color-secondary: #D2B48C; /* Desert Sand */
    --color-secondary-light: #e5d4b7;
    --color-accent-1: #708090; /* Slate Gray */
    --color-accent-2: #CC7755; /* Terracotta */
    --color-background: #F8F8F5;
    --color-text: #333333;
    --color-text-light: #666666;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 5px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-background);
}

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

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

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

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

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

.cta-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-button:hover, .cta-button:focus {
    background-color: var(--color-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

section {
    padding: 5rem 0;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Header Styles */
header.banner-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-background {
    width: 100%;
    height: 320px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: top center;
    display: block;
}

.header-nav {
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, rgba(45, 79, 60, 0.3) 0%, rgba(45, 79, 60, 0.7) 30%, rgba(45, 79, 60, 0.95) 100%),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 70" preserveAspectRatio="none"><defs><pattern id="juniperPattern" patternUnits="userSpaceOnUse" width="1200" height="100"><g fill="%231A2D23" opacity="1"><path d="M20,100 L35,60 L30,60 L40,40 L35,40 L45,20 L50,20 L60,40 L55,40 L65,60 L60,60 L75,100 Z"/><path d="M120,100 L130,70 L125,70 L135,40 L130,40 L138,20 L146,20 L154,40 L149,40 L159,70 L154,70 L164,100 Z"/><path d="M220,100 L228,75 L224,75 L235,45 L230,45 L242,15 L254,15 L266,45 L261,45 L272,75 L268,75 L276,100 Z"/><path d="M320,100 L335,60 L330,60 L340,40 L335,40 L345,20 L350,20 L360,40 L355,40 L365,60 L360,60 L375,100 Z"/><path d="M420,100 L430,70 L425,70 L435,40 L430,40 L438,20 L446,20 L454,40 L449,40 L459,70 L454,70 L464,100 Z"/><path d="M520,100 L528,75 L524,75 L535,45 L530,45 L542,15 L554,15 L566,45 L561,45 L572,75 L568,75 L576,100 Z"/><path d="M620,100 L635,60 L630,60 L640,40 L635,40 L645,20 L650,20 L660,40 L655,40 L665,60 L660,60 L675,100 Z"/><path d="M720,100 L730,70 L725,70 L735,40 L730,40 L738,20 L746,20 L754,40 L749,40 L759,70 L754,70 L764,100 Z"/><path d="M820,100 L828,75 L824,75 L835,45 L830,45 L842,15 L854,15 L866,45 L861,45 L872,75 L868,75 L876,100 Z"/><path d="M920,100 L935,60 L930,60 L940,40 L935,40 L945,20 L950,20 L960,40 L955,40 L965,60 L960,60 L975,100 Z"/><path d="M1020,100 L1030,70 L1025,70 L1035,40 L1030,40 L1038,20 L1046,20 L1054,40 L1049,40 L1059,70 L1054,70 L1064,100 Z"/><path d="M1120,100 L1128,75 L1124,75 L1135,45 L1130,45 L1142,15 L1154,15 L1166,45 L1161,45 L1172,75 L1168,75 L1176,100 Z"/></g></pattern></defs><rect width="1200" height="70" fill="%232D4F3C"/><path d="M0,15 Q300,0 600,10 Q900,20 1200,5 L1200,70 L0,70 Z" fill="%23D2B48C" opacity="0.25"/><path d="M0,25 Q400,5 800,15 Q1000,25 1200,10 L1200,70 L0,70 Z" fill="%23D2B48C" opacity="0.15"/><rect x="0" y="20" width="1200" height="50" fill="url(%23juniperPattern)"/></svg>') center bottom / cover no-repeat;
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
    transition: padding 0.3s ease;
}

header.banner-header.scrolled .header-background {
    height: 0;
}

header.banner-header.scrolled .header-nav {
    padding: 0.75rem 0;
    background: linear-gradient(180deg, rgba(45, 79, 60, 0.95) 0%, rgba(45, 79, 60, 0.95) 100%),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 70" preserveAspectRatio="none"><defs><pattern id="juniperPattern" patternUnits="userSpaceOnUse" width="1200" height="100"><g fill="%231A2D23" opacity="1"><path d="M20,100 L35,60 L30,60 L40,40 L35,40 L45,20 L50,20 L60,40 L55,40 L65,60 L60,60 L75,100 Z"/><path d="M120,100 L130,70 L125,70 L135,40 L130,40 L138,20 L146,20 L154,40 L149,40 L159,70 L154,70 L164,100 Z"/><path d="M220,100 L228,75 L224,75 L235,45 L230,45 L242,15 L254,15 L266,45 L261,45 L272,75 L268,75 L276,100 Z"/><path d="M320,100 L335,60 L330,60 L340,40 L335,40 L345,20 L350,20 L360,40 L355,40 L365,60 L360,60 L375,100 Z"/><path d="M420,100 L430,70 L425,70 L435,40 L430,40 L438,20 L446,20 L454,40 L449,40 L459,70 L454,70 L464,100 Z"/><path d="M520,100 L528,75 L524,75 L535,45 L530,45 L542,15 L554,15 L566,45 L561,45 L572,75 L568,75 L576,100 Z"/><path d="M620,100 L635,60 L630,60 L640,40 L635,40 L645,20 L650,20 L660,40 L655,40 L665,60 L660,60 L675,100 Z"/><path d="M720,100 L730,70 L725,70 L735,40 L730,40 L738,20 L746,20 L754,40 L749,40 L759,70 L754,70 L764,100 Z"/><path d="M820,100 L828,75 L824,75 L835,45 L830,45 L842,15 L854,15 L866,45 L861,45 L872,75 L868,75 L876,100 Z"/><path d="M920,100 L935,60 L930,60 L940,40 L935,40 L945,20 L950,20 L960,40 L955,40 L965,60 L960,60 L975,100 Z"/><path d="M1020,100 L1030,70 L1025,70 L1035,40 L1030,40 L1038,20 L1046,20 L1054,40 L1049,40 L1059,70 L1054,70 L1064,100 Z"/><path d="M1120,100 L1128,75 L1124,75 L1135,45 L1130,45 L1142,15 L1154,15 L1166,45 L1161,45 L1172,75 L1168,75 L1176,100 Z"/></g></pattern></defs><rect width="1200" height="70" fill="%232D4F3C"/><path d="M0,15 Q300,0 600,10 Q900,20 1200,5 L1200,70 L0,70 Z" fill="%23D2B48C" opacity="0.25"/><path d="M0,25 Q400,5 800,15 Q1000,25 1200,10 L1200,70 L0,70 Z" fill="%23D2B48C" opacity="0.15"/><rect x="0" y="20" width="1200" height="50" fill="url(%23juniperPattern)"/></svg>') center bottom / cover no-repeat;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.nav-logo {
    display: none;
}

.nav-logo a {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-menu li {
    margin: 0;
}

.nav-menu li a {
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-menu li a.active,
.nav-menu li a:hover {
    color: var(--color-secondary);
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-menu li:last-child {
    margin-left: 1rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin-bottom: 5px;
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: 320px;
    background-color: var(--color-primary);
    color: white;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    /* Background pattern will be added via CSS or an SVG */
    background-image: radial-gradient(circle at 80% 50%, rgba(210, 180, 140, 0.2) 0%, rgba(45, 79, 60, 0) 50%),
                     radial-gradient(circle at 20% 80%, rgba(210, 180, 140, 0.2) 0%, rgba(45, 79, 60, 0) 50%);
}

/* Problem/Solution Section */
.problem-solution {
    background-color: white;
}

.two-column {
    display: flex;
    gap: 2rem;
}

.column {
    flex: 1;
}

.card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
}

.card.highlight {
    border-left: 4px solid var(--color-primary);
}

.challenge-list,
.solution-list {
    list-style: none;
    padding: 0;
}

.challenge-list li,
.solution-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.challenge-list li:before {
    content: "•";
    color: var(--color-accent-2);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.solution-list li:before {
    content: "•";
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

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

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.learn-more {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--color-accent-1);
}

.learn-more:hover {
    color: var(--color-primary);
}

/* Results Section */
.results {
    background-color: rgba(210, 180, 140, 0.1);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat {
    text-align: center;
    max-width: 250px;
}

.stat .number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.stat .description {
    font-size: 1.1rem;
}

/* About Snapshot Section */
.about-snapshot {
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.photo {
    flex: 0 0 250px;
}

.photo-placeholder {
    width: 200px;
    height: 200px;
    background-color: var(--color-accent-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.about-text {
    flex: 1;
}

.text-link {
    font-weight: 600;
    color: var(--color-primary);
    display: inline-block;
    margin-top: 0.5rem;
}

.text-link:hover {
    color: var(--color-accent-2);
}

/* CTA Section */
.cta-section {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--color-primary-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-company {
    flex: 1;
    max-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.footer-company p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.link-group h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.link-group ul {
    list-style: none;
}

.link-group ul li {
    margin-bottom: 0.75rem;
}

.link-group ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.link-group ul li a:hover {
    color: var(--color-secondary);
}

.footer-contact h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a {
    color: var(--color-secondary);
}

.footer-contact a:hover {
    color: var(--color-secondary-light);
}

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

/* Page Header (for internal pages) */
.page-header {
    background-color: var(--color-primary);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.page-header p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
}

/* Contact Form Styles */
.contact-section {
    background-color: white;
    padding: 5rem 0;
}

.contact-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    background-color: var(--color-primary);
    color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
}

.contact-info h2 {
    color: white;
    text-align: left;
    margin-bottom: 2rem;
}

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

.info-item .icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.info-item h3 {
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-item p, 
.availability p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.info-item a {
    color: white;
}

.info-item a:hover {
    color: var(--color-secondary);
}

.availability h3 {
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-form-container {
    flex: 2;
}

.contact-form-container h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.contact-form {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 1.5rem;
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
}

input, 
textarea, 
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, 
textarea:focus, 
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 79, 60, 0.1);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.checkbox-container input {
    width: auto;
    margin-right: 0.75rem;
    margin-top: 0.3rem;
}

.checkbox-container label {
    font-weight: normal;
    margin-bottom: 0;
}

.submit-btn {
    background-color: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-note {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 1rem;
    text-align: center;
}

.form-message {
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    text-align: center;
}

.success-message {
    background-color: rgba(45, 79, 60, 0.1);
    border-left: 4px solid var(--color-primary);
}

.error-message {
    background-color: rgba(204, 119, 85, 0.1);
    border-left: 4px solid var(--color-accent-2);
}

.form-message h3 {
    margin-bottom: 1rem;
}

/* FAQ Section */
.faq-section {
    background-color: rgba(210, 180, 140, 0.1);
    padding: 5rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: var(--transition);
}

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

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 1.5rem 1.5rem;
}

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

/* Responsive styles will be in responsive.css */