/* Speranza Web Services - Production CSS (Concept C: Warm Professional) */

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

:root {
  --accent: #935226;
  --accent-light: #C86F3F;
  --accent-dark: #8B4A25;
  --text-primary: #2C2416;
  --text-secondary: #5A5145;
  --text-muted: #6B5F50;
  --bg-cream: #FAF8F3;
  --bg-white: #FFFFFF;
  --bg-warm: #F5F1E8;
  --border: #E5DFD2;
  --focus: #935226;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Georgia', serif;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-cream);
}

h1, h2, h3, h4 {
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 700;
  color: var(--text-primary);
}

h1 {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h3 {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.4;
  text-wrap: balance;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.skip-link {
  position: absolute;
  top: -999px;
  left: -999px;
  background: var(--accent);
  color: white;
  padding: 1rem 1.5rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(44, 36, 22, 0.05);
}

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

.logo {
  font-family: 'Lora', serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  padding: 0.625rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9375rem;
}

.mobile-menu-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.menu-icon {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  position: relative;
  transition: background 0.3s;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--accent);
  left: 0;
  transition: transform 0.3s;
}

.menu-icon::before {
  top: -7px;
}

.menu-icon::after {
  top: 7px;
}

.mobile-menu-button[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.mobile-menu-button[aria-expanded="true"] .menu-icon::before {
  transform: rotate(45deg) translateY(7px);
}

.mobile-menu-button[aria-expanded="true"] .menu-icon::after {
  transform: rotate(-45deg) translateY(-7px);
}

.menu-text {
  display: none;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--accent);
}

.nav-links .btn-accent,
.nav-links .btn-accent:link,
.nav-links .btn-accent:visited,
.nav-links .btn-accent:hover,
.nav-links .btn-accent:focus,
.nav-links .btn-accent:active {
  color: white !important;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  line-height: inherit;
}

.btn-accent {
  background: var(--accent);
  color: white;
  border: 2px solid transparent;
}

.btn-accent:hover,
.btn-accent:focus {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 111, 63, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--bg-warm);
}

main {
  padding-top: 0;
}

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

.container-narrow {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

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

.hero {
  padding: 8rem 0 6rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-cream) 100%);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  text-align: center;
}

.lead {
  font-size: 1.1875rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 2.5rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.microcopy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.credibility {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

.credibility p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  max-width: 800px;
  margin: 0 auto;
}

.credibility small {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.625rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 1rem auto 0;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.problem-card {
  padding: 2rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(44, 36, 22, 0.04);
}

.problem-card strong {
  display: block;
  color: var(--accent);
  font-size: 1.0625rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-family: 'Lora', serif;
}

.problem-card p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.65;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 840px;
  margin: 0 auto;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.75rem;
  box-shadow: 0 4px 12px rgba(44, 36, 22, 0.06);
}

.service-card h3 {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.service-card .subtitle {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.service-card h4 {
  margin: 1.75rem 0 0.875rem;
  color: var(--text-primary);
}

.service-card ul {
  list-style: none;
  margin: 1rem 0;
}

.service-card ul li {
  color: var(--text-secondary);
  padding-left: 1.5rem;
  margin-bottom: 0.625rem;
  position: relative;
  line-height: 1.65;
}

.service-card ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.pricing-box {
  background: var(--bg-warm);
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 1.75rem;
  margin: 1.75rem 0;
}

.pricing-box h4 {
  color: var(--text-primary);
  margin: 0 0 1.25rem;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.price-item:last-of-type {
  border-bottom: none;
}

.price-item span:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Lora', serif;
  margin-right: 0.625rem;
}

.price-original {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1rem;
}

.first-engagement-badge {
  display: inline-block;
  background: var(--bg-warm);
  color: var(--accent);
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--accent);
}

.guarantee {
  background: var(--bg-white);
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 1.125rem 1.5rem;
  margin: 1.75rem 0;
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 600;
  text-align: center;
}

.note {
  background: var(--bg-warm);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.work-list {
  max-width: 840px;
  margin: 0 auto;
}

.work-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.work-item:last-child {
  border-bottom: none;
}

.work-item strong {
  display: block;
  color: var(--accent);
  font-size: 1.0625rem;
  margin-bottom: 0.75rem;
  font-family: 'Lora', serif;
}

.work-item p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.75;
}

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

.process-step {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem 2rem 2rem;
  position: relative;
  box-shadow: 0 2px 6px rgba(44, 36, 22, 0.04);
}

.step-number {
  position: absolute;
  top: -1.125rem;
  left: 2rem;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  font-family: 'Lora', serif;
}

.process-step h3 {
  margin: 0.5rem 0 0.875rem;
  font-size: 1.375rem;
}

.process-step p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.0625rem;
}

.skills-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 2px 6px rgba(44, 36, 22, 0.04);
}

.skills-box strong {
  display: block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 1.0625rem;
  font-family: 'Lora', serif;
}

.skills-box p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.75;
}

.faq-list {
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.875rem;
}

.faq-item p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.75;
}

.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

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

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

input,
select,
textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(200, 111, 63, 0.15);
  outline-offset: 0;
}

select {
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 9rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

button[type="submit"] {
  width: 100%;
  margin-top: 1rem;
}

.contact-alternatives {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}

.contact-alternatives a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.contact-alternatives a:hover,
.contact-alternatives a:focus {
  text-decoration: underline;
}

footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}

.footer-tagline {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  text-decoration: underline;
}

.footer-legal {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  /* Mobile header */
  .nav-container {
    padding: 0 1rem;
  }
  
  nav {
    padding: 1rem 0;
  }
  
  .logo {
    font-size: 1.125rem;
  }
  
  .mobile-menu-button {
    display: flex;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(44, 36, 22, 0.1);
    flex-direction: column;
    gap: 0;
    padding: 0;
    align-items: stretch;
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-links a {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    color: var(--text-primary);
    text-align: left;
  }
  
  .nav-links a:last-child {
    border-bottom: none;
  }
  
  .nav-links .btn-accent {
    margin: 0.75rem 1.25rem 1.25rem;
    padding: 0.875rem 1.5rem;
    text-align: center;
    border-radius: 6px;
    width: auto;
  }
  
  /* Mobile containers and gutters */
  .container {
    padding: 0 1.25rem;
  }
  
  .container-narrow {
    padding: 0 1.25rem;
  }
  
  section {
    padding: 3.5rem 0;
  }
  
  .hero {
    padding: 4.5rem 0 3.5rem;
  }
  
  /* Section headers */
  .section-header {
    margin-bottom: 2.5rem;
  }
  
  /* Mobile typography */
  h1 {
    font-size: 2rem;
    line-height: 1.25;
    text-wrap: balance;
    text-align: center;
  }

  h2 {
    font-size: 1.75rem;
    text-wrap: balance;
  }

  .lead {
    font-size: 1rem;
    text-align: center;
  }
  
  /* Hero eyebrow mobile fix */
  .eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-align: center;
    word-spacing: 0.25em;
  }
  
  /* CTA buttons */
  .cta-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  /* Service cards mobile fix */
  .service-grid {
    max-width: none;
  }
  
  .service-card {
    padding: 2rem 1.25rem;
  }
  
  /* Pricing box mobile */
  /* Pricing box mobile */
  .pricing-box {
    margin-left: 0;
    margin-right: 0;
    padding: 1.25rem;
  }
  
  /* Price items stack on mobile */
  .price-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-bottom: 1rem;
  }
  
  .price-item span:first-child {
    font-size: 0.9375rem;
  }
  
  .guarantee {
    margin-left: 0;
    margin-right: 0;
  }
  
  .note {
    margin-left: 0;
    margin-right: 0;
  }
  
  .service-card .btn {
    margin-left: 0;
    margin-right: 0;
  }
  
  /* Problem grid */
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .problem-card {
    padding: 1.5rem;
  }
  
  /* Credibility strip */
  .credibility {
    padding: 1.5rem 1.25rem;
  }
  
  .credibility p {
    font-size: 0.875rem;
  }
  
  /* Process grid */
  .process-grid {
    grid-template-columns: 1fr;
  }
  
  /* Work list */
  .work-item {
    padding: 1.5rem 0;
  }
  
  /* FAQ */
  .faq-item {
    padding: 1.5rem 0;
  }
  
  /* Contact form */
  .contact-form {
    padding: 0;
  }
  
  /* Footer */
  footer {
    padding: 2.5rem 0;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Extra small mobile (360px) */
@media (max-width: 390px) {
  .nav-container {
    padding: 0 0.875rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .container-narrow {
    padding: 0 1rem;
  }
  
  .service-grid {
    max-width: none;
  }
  
  .service-card {
    padding: 1.75rem 1rem;
  }
  
  .eyebrow {
    font-size: 0.625rem;
    letter-spacing: 0.06em;
  }
  
  h1 {
    font-size: 1.75rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
    transition: none !important;
  }
}

/* Print styles */
@media print {
  nav,
  .skip-link,
  .cta-group,
  .contact-alternatives {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
