/* KoSolutions Inc — one-page business site
   Palette: deep navy + white + teal accent */

:root {
  --navy: #0F2A43;
  --navy-deep: #0A1C2E;
  --navy-mid: #1A3A55;
  --teal: #2A9D8F;
  --teal-dark: #1F7A6E;
  --teal-soft: #E6F5F3;
  --white: #FFFFFF;
  --off-white: #F5F7F9;
  --gray-100: #EEF1F4;
  --gray-200: #D8DEE5;
  --gray-500: #5A6A7A;
  --gray-700: #2C3A48;
  --text: #1A2530;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 67, 0.06);
  --header-h: 64px;
  --mobile-bar-h: 64px;
  --font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-h);
}

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

.wordmark {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--teal-dark);
}

.nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--navy);
}

.header-phones {
  display: none;
  align-items: center;
  gap: 0.45rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  white-space: nowrap;
}

.header-phone:hover {
  background: var(--navy-mid);
  color: var(--white);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--navy);
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 1.25rem 1.25rem;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 8px 24px rgba(15, 42, 67, 0.08);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .header-phones { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

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

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

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

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--white);
}

.btn-block {
  width: 100%;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
  padding: 3.5rem 0 4rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(42, 157, 143, 0.18) 0%, transparent 45%),
    linear-gradient(180deg, transparent 60%, rgba(10, 28, 46, 0.9) 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(255, 255, 255, 0.03) 39px,
      rgba(255, 255, 255, 0.03) 40px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(255, 255, 255, 0.03) 39px,
      rgba(255, 255, 255, 0.03) 40px
    );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: 10%;
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  border-radius: 50%;
  border: 1px solid rgba(42, 157, 143, 0.35);
  box-shadow:
    0 0 0 40px rgba(42, 157, 143, 0.06),
    0 0 0 80px rgba(42, 157, 143, 0.03);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 5vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.hero-sub {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.hero-areas {
  margin: 1.25rem 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 36rem;
}

/* —— Trust bar —— */
.trust-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.92);
  padding: 1.5rem 0;
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.trust-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--teal);
}

@media (min-width: 700px) {
  .trust-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.5rem;
  }
}

@media (min-width: 1000px) {
  .trust-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

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

.section-head {
  margin-bottom: 2.25rem;
  max-width: 36rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--gray-500);
}

/* —— Services —— */
.services-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.service {
  padding: 0;
}

.service h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.service p {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.98rem;
}

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.85rem;
  color: var(--teal);
}

/* —— How we work —— */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
  }
}

.step {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--navy);
}

.step p {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.98rem;
}

/* —— Who we serve —— */
.audiences {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 700px) {
  .audiences {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.audience h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--navy);
}

.audience p {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.98rem;
}

/* —— Why us —— */
.why-lead {
  margin: 0 0 2rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 32rem;
  font-weight: 700;
}

.why-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 2rem;
  }
}

.why-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.why-item p {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.98rem;
}

/* —— About —— */
.founders {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .founders {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

.founder {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.founder-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy-mid), var(--navy));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.founder-avatar--photo {
  object-fit: cover;
  object-position: center 20%;
  display: block;
  background: var(--gray-200);
  color: transparent;
  font-size: 0;
}

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

.founder p {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.98rem;
}

/* —— FAQ —— */
.faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--gray-200);
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.faq-item button:hover {
  color: var(--teal-dark);
}

.faq-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}

.faq-icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  margin-top: -1px;
}

.faq-icon::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
}

.faq-item.is-open .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-panel {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--gray-700);
  font-size: 0.98rem;
}

.faq-item.is-open .faq-panel {
  display: block;
}

.faq-panel p {
  margin: 0;
  max-width: 40rem;
}

/* —— Contact —— */
.contact-section {
  background:
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #143652 100%);
  color: var(--white);
}

.contact-section .section-head h2 {
  color: var(--white);
}

.contact-section .section-head p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-layout {
  display: grid;
  gap: 2rem;
}

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

.contact-aside p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-phones {
  margin-top: 1.5rem;
}

.contact-phones-label {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.75);
}

.contact-phone-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.contact-phone-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1rem;
}

.contact-phone-list a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.contact-phone-list a:hover {
  color: var(--teal-soft);
}

.contact-phone-list a[href^="tel:"] {
  font-size: 1.05rem;
}

.contact-msg {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.audit-form {
  background: var(--white);
  color: var(--text);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

@media (min-width: 600px) {
  .audit-form {
    padding: 1.75rem;
  }
}

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

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

.form-row label .optional {
  font-weight: 400;
  color: var(--gray-500);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}

.form-row input:hover,
.form-row select:hover,
.form-row textarea:hover {
  border-color: var(--gray-500);
}

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

.form-success {
  display: none;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  background: var(--teal-soft);
  color: var(--teal-dark);
  border-radius: var(--radius);
  font-weight: 500;
}

.form-success.is-visible {
  display: block;
}

/* —— Footer —— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
  font-size: 0.95rem;
  padding-bottom: calc(2.5rem + var(--mobile-bar-h));
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand {
  color: var(--white);
  font-weight: 600;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 700px) {
  .site-footer {
    padding-bottom: 2.5rem;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
  }
}

/* —— Mobile sticky call bar —— */
.mobile-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 20px rgba(15, 42, 67, 0.1);
  padding: 0.65rem 0.75rem;
  gap: 0.65rem;
  padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
}

.mobile-bar a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: var(--radius);
  white-space: nowrap;
}

.mobile-bar .bar-call {
  background: var(--navy);
  color: var(--white);
}

@media (min-width: 700px) {
  .mobile-bar {
    display: none;
  }
}

/* Leave room for sticky bar on mobile content */
@media (max-width: 699px) {
  main {
    padding-bottom: 0.5rem;
  }
}

/* —— Decorative rack pattern for section dividers —— */
.rack-rule {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gray-200) 15%,
    var(--gray-200) 85%,
    transparent
  );
  border: 0;
  margin: 0;
}
