/* Sonoran Web Builders LLC — Company Site Styles */
:root {
  --forest: #1e4d32;
  --forest-dark: #143524;
  --forest-light: #2a6b45;
  --cyan: #1eb8d4;
  --cyan-light: #4ecfe5;
  --cyan-dark: #0e8fa8;
  --navy: #0d1f36;
  --navy-mid: #16304f;
  --navy-light: #1e3f63;
  --sand: #f0e6d4;
  --sand-dark: #e0d2b8;
  --sand-deeper: #c9b896;
  --cream: #faf7f1;
  --white: #ffffff;
  --text: #1a2a3a;
  --text-muted: #4a5a6a;
  --border: #d4c8b0;
  --shadow: 0 4px 20px rgba(13, 31, 54, 0.08);
  --shadow-lg: 0 12px 40px rgba(13, 31, 54, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max: 1100px;
  --header-h: 72px;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--forest); }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* —— Header —— */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-link:hover { color: var(--cyan-light); }

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cyan);
}

.logo-text {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--cyan-light);
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--cyan);
  color: var(--white);
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.nav-toggle:hover { background: var(--navy-mid); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list a {
  color: var(--sand);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--white);
  background: var(--navy-mid);
}

.nav-list a.active { color: var(--cyan-light); }

.nav-cta {
  background: var(--forest) !important;
  color: var(--white) !important;
  margin-left: 0.5rem;
}

.nav-cta:hover { background: var(--forest-light) !important; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid transparent;
  }
  .nav.open {
    max-height: 360px;
    border-top-color: var(--navy-light);
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0.15rem;
  }
  .nav-list a { padding: 0.75rem 1rem; }
  .nav-cta { margin-left: 0; margin-top: 0.5rem; text-align: center; }
  .logo-text { font-size: 0.9rem; }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
  font-family: inherit;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}
.btn-primary:hover { background: var(--forest-light); color: var(--white); border-color: var(--forest-light); }

.btn-secondary {
  background: var(--cyan);
  color: var(--navy);
  border-color: var(--cyan);
}
.btn-secondary:hover { background: var(--cyan-light); color: var(--navy); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--cyan);
}
.btn-outline:hover { background: var(--cyan); color: var(--navy); }

.btn-outline-dark {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-outline-dark:hover { background: var(--forest); color: var(--white); }

.btn-lg { padding: 1rem 1.75rem; font-size: 1.05rem; }

/* —— Hero —— */
.hero {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 55%, var(--forest-dark) 100%);
  color: var(--white);
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(30, 184, 212, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(30, 77, 50, 0.25) 0%, transparent 35%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .hero .container {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
  }
  .hero { padding: 4.5rem 0 5rem; }
}

.hero-logo {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border-radius: 50%;
  border: 4px solid var(--cyan);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  object-fit: cover;
  background: var(--sand);
}

@media (min-width: 800px) {
  .hero-logo { width: 200px; height: 200px; margin: 0 auto; }
}

.hero-content { text-align: center; }
@media (min-width: 800px) {
  .hero-content { text-align: left; }
  .hero-visual { order: 2; }
  .hero-content { order: 1; }
}

.hero-badge {
  display: inline-block;
  background: rgba(30, 184, 212, 0.2);
  color: var(--cyan-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid rgba(30, 184, 212, 0.35);
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 750;
}

.hero h1 em {
  font-style: normal;
  color: var(--cyan-light);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--sand);
  margin-bottom: 1.75rem;
  max-width: 34rem;
}

@media (min-width: 800px) {
  .hero-lead { margin-left: 0; margin-right: auto; }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

@media (min-width: 800px) {
  .hero-ctas { justify-content: flex-start; }
}

.hero-phone {
  font-size: 1.05rem;
  color: var(--sand-dark);
}

.hero-phone a {
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
}

.hero-phone a:hover { color: var(--cyan-light); }

/* —— Sections —— */
.section {
  padding: 3.5rem 0;
}

.section-alt { background: var(--sand); }

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

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-label {
  display: block;
  color: var(--cyan-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* —— Cards —— */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  height: 100%;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--forest), var(--cyan-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.card h3 {
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card p { color: var(--text-muted); font-size: 0.95rem; }

.card ul {
  margin-top: 0.75rem;
}

.card ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--forest);
  font-weight: 700;
}

/* —— Pricing —— */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.price-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border-color: var(--forest);
  box-shadow: var(--shadow-lg);
}

.price-card.featured::before {
  content: "Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--forest);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-card h3 {
  color: var(--navy);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.price-tag {
  font-size: 1.75rem;
  font-weight: 750;
  color: var(--forest);
  margin: 0.75rem 0;
  line-height: 1.2;
}

.price-tag small {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.price-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

.price-note {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* —— Area strip —— */
.area-strip {
  background: var(--navy);
  color: var(--sand);
  padding: 2rem 0;
  text-align: center;
}

.area-strip h2 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.area-strip p { max-width: 36rem; margin: 0 auto; font-size: 0.95rem; }

/* —— CTA band —— */
.cta-band {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: var(--sand);
  margin-bottom: 1.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* —— Page hero (inner) —— */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 2.75rem 0;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--sand);
  max-width: 32rem;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* —— About —— */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 720px) {
  .about-grid { grid-template-columns: 200px 1fr; gap: 3rem; }
}

.about-logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid var(--forest);
  margin: 0 auto;
  object-fit: cover;
  background: var(--sand);
}

.prose h2 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.prose ul {
  margin: 1rem 0 1.5rem;
}

.prose ul li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.prose ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--cyan-dark);
  font-weight: 700;
}

/* —— Contact —— */
.contact-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .contact-layout { grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
}

.contact-info {
  background: var(--navy);
  color: var(--sand);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-info h2 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.contact-info p { margin-bottom: 1rem; font-size: 0.95rem; }

.phone-block {
  background: var(--navy-mid);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.25rem 0;
  text-align: center;
  border: 1px solid var(--navy-light);
}

.phone-block .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan-light);
  margin-bottom: 0.35rem;
}

.phone-block a {
  color: var(--white);
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.phone-block a:hover { color: var(--cyan-light); }

.contact-detail {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.contact-detail strong {
  display: block;
  color: var(--white);
  margin-bottom: 0.15rem;
}

.contact-detail a { color: var(--cyan-light); }
.contact-detail a:hover { color: var(--white); }
.contact-detail .note {
  font-size: 0.85rem;
  color: var(--sand-deeper);
  margin-top: 0.25rem;
}

/* Form */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-card h2 {
  color: var(--navy);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.form-card > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.form-group label .req { color: var(--forest); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(30, 184, 212, 0.2);
  background: var(--white);
}

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

.form-group .error-msg {
  display: none;
  color: #b33a2e;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #b33a2e;
}

.form-group.has-error .error-msg { display: block; }

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

@media (min-width: 500px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.form-success.visible { display: block; }
.form-card.submitted .quote-form { display: none; }
.form-card.submitted .form-success { display: block; }

.form-success .check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.form-success h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-success p { color: var(--text-muted); margin-bottom: 1rem; }

/* —— Footer —— */
.site-footer {
  background: var(--navy);
  color: var(--sand-deeper);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  object-fit: cover;
  flex-shrink: 0;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.footer-brand p { font-size: 0.9rem; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  color: var(--sand-deeper);
  padding: 0.25rem 0;
  font-size: 0.95rem;
}

.footer-col a:hover { color: var(--cyan-light); }

.footer-bottom {
  border-top: 1px solid var(--navy-light);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}

/* —— Utilities —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
