/*
  Theme: Augment Teams
  File: Main Stylesheet
  Description: This file contains all the primary styles for the website,
               including global settings, layout, components, and responsive design.
*/

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* --- Global Variables & Root Styles --- */
:root {
    --primary-color: #0A4D68;
    --secondary-color: #088395;
    --accent-color: #05BFDB;
    --light-color: #F7F7F7;
    --dark-color: #0B2447;
    --text-color: #333;
    --white-color: #FFFFFF;
    --border-color: #e0e0e0;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.12);
    --font-family: 'Poppins', sans-serif;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--white-color);
    color: var(--text-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; } /* Slightly increased for better hierarchy */
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
}

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

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

ul {
    list-style: none;
}

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

/* --- Reusable Components (Buttons, Forms, Cards) --- */

/* Buttons & CTAs */
.cta-button, .secondary-cta {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.cta-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.secondary-cta {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.secondary-cta:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

/* Add focus styles for accessibility */
.cta-button:focus-visible, .secondary-cta:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(10, 77, 104, 0.2);
}

/* --- Header & Navigation --- */
.main-header {
    background: var(--white-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color); /* Subtle border for separation */
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding-bottom: 5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    height: 24px;
    width: 30px;
    position: relative;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 10px; }
.hamburger-menu span:nth-child(3) { top: 20px; }

/* Hamburger active state (X icon) - Smoother animation */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* --- Page Sections --- */

/* General Section Styling */
section {
    padding: 5rem 0; /* Increased padding for more white space */
}

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

.page-header-section {
    background-color: var(--light-color);
    text-align: center;
    padding: 4rem 0;
}
.page-header-section p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    background-color: var(--light-color);
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 3rem; /* Increased gap */
}

.hero-content {
    flex: 1.5;
}

.hero-content .sub-headline {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

/* Benefits/Value Proposition Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* More responsive grid */
    gap: 2rem;
}

.benefit-card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

/* Social Proof/Testimonials Section */
.social-proof-section {
    background-color: var(--light-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* More responsive grid */
    gap: 2rem;
}

.testimonial-card {
    background: var(--white-color);
    padding: 2rem;
    border-left: 5px solid var(--accent-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.testimonial-card .rating {
    color: #f5b400;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-card .cite {
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
}

/* How It Works Section */
.how-it-works-preview .container {
    text-align: center;
}

.steps-overview {
    display: flex;
    justify-content: space-around;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.steps-overview .step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.steps-overview .step span {
    display: flex; /* Use flex for perfect centering */
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: var(--accent-color);
    color: var(--white-color);
    border-radius: 50%;
    font-weight: 700;
}

.process-steps-section .container {
    max-width: 800px;
}

.process-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

/* Pricing Section */
.pricing-explanation-section {
    text-align: center;
    background-color: var(--light-color);
}

.total-example {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
}

.pricing-cards-section .container {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Make cards equal height */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 2.5rem;
}

.pricing-card {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    border-top: 5px solid var(--secondary-color);
    display: flex; /* Use flexbox for layout */
    flex-direction: column;
}

.pricing-card .cta-button {
    margin-top: auto; /* Push button to the bottom */
}

.price-from {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.price-from span {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-color);
}

.price-desc {
    margin-bottom: 2rem;
    min-height: 50px;
}

.features-list {
    text-align: left;
    margin-bottom: 2.5rem;
}

.features-list li {
    margin-bottom: 0.75rem;
    padding-left: 30px;
    position: relative;
}

.features-list li::before {
    content: '✔';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.whats-included-section {
    background-color: var(--light-color);
}

.included-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.included-list li {
    padding-left: 25px;
    position: relative;
}

.included-list li::before {
    content: '✔';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Contact Section */
.contact-form-section .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-container {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Final CTA Section */
.final-cta-section {
    background: var(--dark-color) url('your-subtle-background-image.png') center/cover; /* Optional: add a subtle pattern */
    color: var(--white-color);
    text-align: center;
}

.final-cta-section h2 {
    color: var(--white-color);
}

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

/* --- Footer --- */
.main-footer {
    background-color: var(--dark-color);
    color: #ccc;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive footer columns */
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #444;
}

.main-footer h3, .main-footer h4 {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a, .footer-contact a {
    color: #ccc;
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #aaa;
}

/* --- Popup / Modal --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 36, 71, 0.8); /* Use dark color for overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform var(--transition-speed) ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.close-popup:hover {
    transform: rotate(90deg);
    color: var(--primary-color);
}

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

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */

/* Tablet & Smaller Desktops */
@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-cta {
        justify-content: center;
    }
    .hero-image {
        margin-top: 2rem;
    }
    .contact-form-section .container {
        grid-template-columns: 1fr;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    section { padding: 3rem 0; }

    /* Improved Mobile Navigation */
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--white-color);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 5rem;
        gap: 0;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
      font-size: 1.2rem;
    }

    /* Hide desktop CTA button, show one in the menu */
    .main-header .cta-button {
        display: none;
    }
    .main-nav .cta-button {
        display: block;
        margin-top: 2rem;
    }

    .hamburger-menu {
        display: block; /* Show hamburger */
    }

    /* Adjust layout grids for mobile */
    .steps-overview,
    .pricing-breakdown {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

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