/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Mobile-first styling for Liz Pantalone site */

/* Base mobile styles */
* {
  box-sizing: border-box;
}

html {
  background: linear-gradient(135deg, #14b8a6, #3b82f6); /* Gradient for overscroll areas - swapped */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #3b82f6, #14b8a6);
  min-height: 100vh;
  color: white;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header - Mobile first */
header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Logo container with star background */
.logo-container {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

/* Logo link styling */
a.logo-link {
  text-decoration: none;
  display: inline-block;
}

a.logo-link:hover {
  opacity: 0.9;
}

.star-background {
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(12deg);
  z-index: 0;
  width: 200px;
  height: 200px;
  background: #14b8a6;
  clip-path: polygon(
    50% 0%,
    55% 20%,
    75% 10%,
    65% 30%,
    95% 35%,
    70% 45%,
    85% 70%,
    60% 55%,
    70% 90%,
    50% 70%,
    30% 90%,
    40% 55%,
    15% 70%,
    30% 45%,
    5% 35%,
    35% 30%,
    25% 10%,
    45% 20%
  );
}

.main-logo {
  width: 150px;
  height: auto;
  max-width: 100%;
  position: relative;
  z-index: 2;
  margin-top: 40px;
}

/* Hamburger menu button - Mobile only */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger animation when active */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* Navigation menu - Mobile */
.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  transform: translateY(-100vh);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
}

.nav-menu.active {
  transform: translateY(0);
  opacity: 1;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav li:last-child {
  border-bottom: none;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  display: block;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 1rem;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Contact link highlighting */
nav a.contact-link {
  background: #14b8a6;
  border-radius: 6px;
  font-weight: 600;
}

nav a.contact-link:hover {
  background: #0f9488;
}

/* Service page links */
.service-category h3 a,
.services-list a {
  color: white;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

.service-category h3 a:hover,
.services-list a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

/* Main content */
main {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.container {
  text-align: center;
  max-width: 100%;
  width: 100%;
}

/* Typography - Mobile optimized */
h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

p.intro {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

p.experience {
  margin-bottom: 2rem;
}

/* New section styles */
.tagline {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.expertise-section,
.services-section,
.location-section,
.clients-section,
.cta-section,
.ai-problems-section,
.stakeholder-section,
.agency-comparison-section,
.rails-expertise-section,
.rails-services-section,
.location-advantage-section,
.tech-stack-section,
.ai-pain-points-section,
.ai-refactoring-process-section,
.ai-platforms-section,
.languages-frameworks-section,
.ai-code-examples-section,
.audit-intro-section,
.audit-process-section,
.audit-deliverables-section,
.audit-benefits-section,
.ideal-for-section,
.audit-timeline-section {
  margin-bottom: 2.5rem;
  text-align: left;
}

/* Service pages specific paragraph alignment */
.agency-comparison-section p,
.rails-expertise-section p,
.location-advantage-section p,
.tech-stack-section p,
.ai-pain-points-section p,
.ai-refactoring-process-section p,
.ai-platforms-section p,
.audit-intro-section p,
.audit-timeline-section p,
.audit-value,
.audit-savings,
.local-emphasis,
.agency-comparison,
.process-steps .step p,
.deliverable p,
.comparison-item p {
  text-align: left;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.experience-years {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-top: -0.5rem;
}

.ai-expertise {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.ai-intro {
  text-align: left;
  margin-bottom: 1rem;
}

.location-info {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.timezone-info {
  font-size: 0.9rem;
  opacity: 0.85;
}

.services-list,
.client-list,
.problems-list,
.audit-checklist,
.benefits-list,
.situations-list,
.cons-list,
.pros-list,
.achievements-list,
.tech-list,
.platforms-list,
.examples-list,
.results-list,
.project-types-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-list li,
.client-list li,
.problems-list li,
.audit-checklist li,
.benefits-list li,
.situations-list li,
.cons-list li,
.pros-list li,
.achievements-list li,
.tech-list li,
.platforms-list li,
.examples-list li,
.results-list li,
.project-types-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.services-list li:before,
.client-list li:before,
.problems-list li:before,
.audit-checklist li:before,
.benefits-list li:before,
.situations-list li:before,
.cons-list li:before,
.pros-list li:before,
.achievements-list li:before,
.tech-list li:before,
.platforms-list li:before,
.examples-list li:before,
.results-list li:before,
.project-types-list li:before {
  content: "→";
  position: absolute;
  left: 0;
  opacity: 0.7;
}

.services-list strong,
.client-list strong,
.problems-list strong,
.audit-checklist strong,
.benefits-list strong,
.situations-list strong,
.cons-list strong,
.pros-list strong,
.achievements-list strong,
.tech-list strong,
.platforms-list strong,
.examples-list strong,
.results-list strong,
.project-types-list strong {
  color: rgba(255, 255, 255, 1);
  font-weight: 500;
}

/* Work page specific styles */
.case-study {
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.case-study h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: #14b8a6;
  font-weight: 600;
}

.project-details p {
  margin-bottom: 1.5rem;
  text-align: left;
}

.tech-stack {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 6px;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.results {
  margin-top: 1.5rem;
}

.results strong {
  color: #14b8a6;
}

.testimonial {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid #14b8a6;
  margin: 2rem 0;
  font-style: italic;
  text-align: left;
}

.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Work CTA link on homepage */
.work-link {
  margin-top: 1.5rem;
  text-align: center;
}

.work-cta-link {
  color: #14b8a6;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.2s;
}

.work-cta-link:hover {
  border-bottom-color: #14b8a6;
}

.client-types {
  margin-bottom: 1rem;
}

.cta-section {
  text-align: center;
  margin-bottom: 2rem;
}

.cta-section h2 {
  text-align: center;
}

/* reCAPTCHA notice */
.recaptcha-notice {
  margin-top: 1rem;
  text-align: center;
  opacity: 0.7;
  font-size: 0.8rem;
}

.recaptcha-notice a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

.recaptcha-notice a:hover {
  opacity: 0.8;
}

/* Contact form - Mobile first */
.contact-form {
  max-width: 100%;
  margin: 1.5rem 0 0;
  text-align: left;
}

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

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

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-control:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
}

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

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.cta-contact {
  text-align: center;
  margin-top: 2rem;
}

.cta-contact .btn {
  font-size: 1.1rem;
  padding: 1rem 2rem;
  background: #3b82f6;
  color: white !important;
  text-decoration: none;
}

.cta-contact .btn:hover {
  background: #2563eb;
}

/* Flash messages */
.flash-notice, .flash-alert {
  padding: 0.75rem 1rem;
  margin: 0 auto 1rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  max-width: 600px;
  width: calc(100% - 2rem);
}

.flash-notice {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.flash-alert {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Footer */
footer {
  padding: 1rem;
  text-align: center;
}

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

/* Tablet styles - 768px and up */
@media (min-width: 768px) {
  header {
    padding: 1.5rem;
    justify-content: space-between;
    align-items: center;
  }

  .main-logo {
    width: 180px;
  }

  .star-background {
    width: 240px;
    height: 240px;
  }

  /* Hide hamburger menu on desktop */
  .hamburger {
    display: none;
  }

  /* Show regular navigation */
  .nav-menu {
    position: static;
    background: none;
    backdrop-filter: none;
    transform: none;
    opacity: 1;
    transition: none;
  }

  nav ul {
    flex-direction: row;
    gap: 2rem;
    padding: 0;
  }

  nav li {
    border: none;
  }

  nav a {
    font-size: 0.9rem;
    padding: 0.5rem 0;
    background: none !important;
  }

  nav a:hover {
    opacity: 0.8;
    background: none;
  }

  /* Contact link styling for desktop */
  nav a.contact-link {
    background: #14b8a6 !important;
    border-radius: 6px;
    padding: 0.5rem 1rem !important;
    font-weight: 600;
  }

  nav a.contact-link:hover {
    background: #0f9488 !important;
    opacity: 1;
  }

  h1 {
    font-size: 2.5rem;
  }

  p {
    font-size: 1.1rem;
  }

  p.intro {
    font-size: 1.2rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .expertise-section,
  .services-section,
  .location-section,
  .clients-section,
  .cta-section {
    margin-bottom: 3rem;
  }

  .contact-form {
    max-width: 500px;
    margin: 2rem auto 0;
  }

  .btn {
    width: auto;
  }


  .footer-logo {
    width: 100px;
  }
}

/* Desktop styles - 1024px and up */
@media (min-width: 1024px) {
  header {
    padding: 2rem;
  }

  .main-logo {
    width: 200px;
  }

  .star-background {
    width: 260px;
    height: 260px;
  }

  nav ul {
    gap: 2rem;
  }

  main {
    padding: 2rem;
  }

  h1 {
    font-size: 3rem;
  }

  p {
    font-size: 1.2rem;
  }

  p.intro {
    font-size: 1.3rem;
  }

  .tagline {
    font-size: 1.3rem;
  }

  h2 {
    font-size: 2rem;
  }

  nav a:hover {
    text-decoration: underline;
    opacity: 1;
  }
}

/* Large desktop styles - 1200px and up */
@media (min-width: 1200px) {
  .container {
    max-width: 800px;
  }
}
