/* ==========================================================================
   LaMancha AI — Stylesheet
   Colors from brand: Deep Navy, Bright Blue, Teal, Purple
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --color-bg-dark: #0a1628;
    --color-bg-light: #f8f9fa;
    --color-primary: #2d7dd2;
    --color-accent-teal: #45b7aa;
    --color-accent-purple: #7b4397;
    --color-text-light: #ffffff;
    --color-text-dark: #1a1a2e;
    --color-text-muted: #6b7280;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-purple) 100%);
    --gradient-hero: linear-gradient(180deg, var(--color-bg-dark) 0%, #0f1f35 100%);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Sizing */
    --container-max: 1200px;
    --header-height: 72px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--color-text-light);
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--full {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav__logo-img {
    height: 50px;
    width: auto;
}

.nav__logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: -0.5px;
}

.nav__logo-dot {
    color: var(--color-accent-teal);
}

.nav__logo-ai {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__link {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition-fast);
}

.nav__link:hover {
    color: var(--color-text-light);
}

.nav__link--cta {
    background: var(--gradient-primary);
    color: var(--color-text-light);
    padding: 10px 20px;
    border-radius: 6px;
}

.nav__link--cta:hover {
    opacity: 0.9;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav__toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--color-text-light);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-bg-dark);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-medium);
    }
    
    .nav__menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .nav__link--cta {
        width: 100%;
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(45, 125, 210, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(123, 67, 151, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Subtle circuit pattern overlay */
.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero__container {
    position: relative;
    padding: 120px 24px 80px;
}

.hero__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.hero__logo {
    width: 320px;
    height: auto;
    flex-shrink: 0;
    animation: fadeInUp 0.6s ease forwards;
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.4));
}

.hero__text {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero__text .btn {
    margin-top: 8px;
}

@media (max-width: 900px) {
    .hero__content {
        flex-direction: column;
    }
    .hero__logo {
        width: 240px;
    }
    .hero__text {
        text-align: center;
        align-items: center;
    }
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-text-light);
    line-height: 1.15;
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero__subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* --------------------------------------------------------------------------
   Sections (General)
   -------------------------------------------------------------------------- */
.section {
    padding: 100px 0;
}

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

.section--dark {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
}

.section--gradient {
    background: var(--gradient-primary);
    color: var(--color-text-light);
}

.section__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

.section--dark .section__title,
.section--gradient .section__title {
    color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   Challenge Section
   -------------------------------------------------------------------------- */
.challenge__content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.challenge__intro {
    font-size: 1.25rem;
    margin-bottom: 32px;
    color: var(--color-text-dark);
}

.challenge__list {
    text-align: left;
    display: inline-block;
    margin-bottom: 32px;
}

.challenge__list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.challenge__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--gradient-primary);
    border-radius: 50%;
}

.challenge__conclusion {
    font-size: 1.25rem;
    color: var(--color-text-dark);
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition-medium);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 16px;
    margin-bottom: 24px;
    color: var(--color-text-light);
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.service-card__description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Approach Section
   -------------------------------------------------------------------------- */
.approach__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.approach-card {
    text-align: center;
    padding: 20px;
}

.approach-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--color-bg-dark);
    border-radius: 50%;
    margin-bottom: 24px;
    color: var(--color-accent-teal);
}

.approach-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text-dark);
}

.approach-card__description {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about__content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

.about__image-placeholder {
    width: 280px;
    height: 320px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.4);
}

.about__image-placeholder span {
    font-size: 0.875rem;
}

.about__text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.about__text strong {
    color: var(--color-text-light);
}

.about__bio-placeholder {
    font-style: italic;
    color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
}

@media (max-width: 768px) {
    .about__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about__image-placeholder {
        margin: 0 auto;
    }
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact__intro {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 48px;
    opacity: 0.9;
}

.contact__options {
    max-width: 500px;
    margin: 0 auto;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    background: var(--color-text-light);
    border: 2px solid transparent;
    border-radius: 8px;
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent-teal);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn--primary {
    margin-top: 8px;
    background: var(--color-bg-dark);
}

.contact-form .btn--primary:hover {
    background: #0f1f35;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--color-bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 48px 0;
}

.footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-light);
}

.footer__logo-ai {
    color: var(--color-primary);
}

.footer__tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

.footer__links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-text-light);
}

.footer__copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .section {
        padding: 70px 0;
    }
    
    .section__title {
        margin-bottom: 40px;
    }
    
    .hero__container {
        padding: 100px 20px 60px;
    }
    
    .contact-form {
        padding: 28px 20px;
    }
    
    .services__grid {
        gap: 20px;
    }
    
    .service-card {
        padding: 28px 20px;
    }
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__title,
.hero__subtitle,
.hero .btn {
    animation: fadeInUp 0.8s ease forwards;
}

.hero__subtitle {
    animation-delay: 0.15s;
}

.hero .btn {
    animation-delay: 0.3s;
}

/* Fade in on scroll (JS will add .visible class) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Formspree (optional)
   Brad provided starter HTML/CSS. We keep our existing form markup but add compatible styles.
*/

.fs-form {
  display: grid;
  row-gap: 1.5rem;
}

.fs-field {
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
}

.fs-label {
  color: var(--color-text, #f1f5f9);
  display: block;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25rem;
}

.fs-description {
  color: rgba(241, 245, 249, 0.75);
  display: block;
  font-size: 0.95rem;
  line-height: 1.25rem;
}

.fs-button-group {
  display: flex;
  flex-direction: row-reverse;
  column-gap: 1.5rem;
}

.fs-button {
  border-radius: 9999px;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5rem;
  padding: 0.75rem 2rem;
}

.fs-input,
.fs-textarea {
  appearance: none;
  border-radius: 0.75rem;
  border-width: 0;
  color: #0b1220;
  font-size: 1rem;
  line-height: 1.5rem;
  outline: none;
  padding: 0.75rem 1rem;
}

.fs-textarea {
  resize: vertical;
}
