/* ===========================
   Global Styles & Reset
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5a1a1a;
    --secondary-color: #7d2828;
    --accent-color: #a03434;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ===========================
   Navigation Bar (Mobile-First)
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #4a4542;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
}

.logo-img {
    height: 35px;
    width: auto;
}

/* Navigation Menu - Horizontal Layout */
.nav-menu {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    display: inline-block;
    padding: 0;
    font-size: 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C87533;
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link:active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link:active {
    color: #C87533;
}

/* Hamburger Menu - Hidden (not needed for horizontal nav) */
.hamburger {
    display: none;
}

/* ===========================
   Hero Section (Mobile-First)
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 2rem 1rem;
}

.hero-bg {
    background: url('axiom-pipelines-hero-bg.png') center center/cover no-repeat;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 100%;
    padding: 0 1.5rem;
}

.hero h1 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 0;
    font-weight: 700;
    line-height: 1.2;
}

.hero h1:nth-of-type(2) {
    font-size: 2.5rem;
    margin-top: 0;
}

.hero p {
    font-size: 1.15rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 1rem;
}

.cta-button:hover,
.cta-button:active {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ===========================
   Section Styles (Mobile-First)
   =========================== */
.section {
    padding: 3rem 1.5rem;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
    padding: 0 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 1rem auto 0;
}

/* ===========================
   About Section
   =========================== */
.about {
    background: var(--background-light);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===========================
   Services Section
   =========================== */
.services {
    background: var(--white);
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card-wrapper {
    text-decoration: none;
    color: inherit;
}

.service-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
    border: 2px solid transparent;
}

.service-card:hover,
.service-card:active {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===========================
   Consultation Section
   =========================== */
.consultation {
    background: var(--background-light);
}

.consultation-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.consultation-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.consultation-form-container {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.consultation-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submit-button {
    width: 100%;
    padding: 1.1rem;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.submit-button:hover,
.submit-button:active {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 2.5rem 1.5rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-blurb {
    margin-bottom: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-middle h4,
.footer-right h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* ===========================
   Animations
   =========================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Responsive Design (Tablet & Desktop)
   =========================== */

/* Tablet: 600px and up */
@media (min-width: 600px) {
    .section {
        padding: 4rem 2rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero h1:nth-of-type(2) {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .consultation-form-container {
        padding: 2.5rem;
    }
}

/* Desktop: 768px and up */
@media (min-width: 768px) {
    .nav-container {
        padding: 1rem 2rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo-img {
        height: 40px;
    }

    /* Desktop Navigation - Horizontal */
    .hamburger {
        display: none;
    }

    .nav-menu {
        position: static;
        flex-direction: row;
        background: transparent;
        width: auto;
        box-shadow: none;
        padding: 0;
        gap: 2rem;
        justify-content: flex-end;
        margin-left: auto;
    }

    .nav-link {
        padding: 0;
        font-size: 1rem;
        display: inline-block;
    }

    .nav-link::after {
        bottom: -5px;
        left: 0;
        transform: none;
    }

    .nav-link:hover::after,
    .nav-link:active::after {
        width: 100%;
    }

    .hero {
        justify-content: flex-start;
        text-align: left;
        padding: 2rem;
    }

    .hero-content {
        padding-left: 4rem;
        max-width: 800px;
    }

    .hero h1 {
        text-align: left;
        font-size: 4.5rem;
    }

    .hero h1:nth-of-type(2) {
        font-size: 3.8rem;
    }

    .hero p {
        font-size: 1.4rem;
    }

    .section {
        padding: 5rem 2rem;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .about-text h3 {
        font-size: 1.8rem;
    }

    .about-text p {
        font-size: 1.05rem;
        line-height: 1.8;
    }

    .service-card {
        padding: 2rem;
    }

    .service-icon {
        font-size: 3rem;
    }

    .service-title {
        font-size: 1.4rem;
    }

    .consultation-subtitle {
        font-size: 1.2rem;
        margin-bottom: 3rem;
    }

    .consultation-form-container {
        padding: 3rem;
    }

    .footer {
        padding: 3rem 2rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Large Desktop: 1024px and up */
@media (min-width: 1024px) {
    .hero h1 {
        font-size: 5.5rem;
    }

    .hero h1:nth-of-type(2) {
        font-size: 4.5rem;
    }

    .hero p {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .about-content {
        gap: 4rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Extra Large: 1440px and up */
@media (min-width: 1440px) {
    .nav-container {
        max-width: 1400px;
    }

    .about-content,
    .services-grid,
    .footer-content {
        max-width: 1400px;
    }
}
