/* CraftNest Home Services — responsive, cross-browser CSS */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Arial, Helvetica, sans-serif;
  color: #0b1730;
  background: #f6f9fc;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

:root {
  --navy: #001b49;
  --navy2: #06182f;
  --blue: #1689e8;
  --blue2: #2387e6;
  --muted: #64748b;
  --line: #d8e3f0;
  --bg: #f6f9fc;
  --card: #ffffff;
  --shadow: 0 24px 70px rgba(0, 27, 73, 0.14);
  --radius: 24px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: #fff;
  color: var(--navy);
  border-radius: 10px;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid var(--line);
}

@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .site-header {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

.header-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 220px;
  max-height: 74px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
}

.main-nav a {
  padding: 10px 0;
}

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

.phone-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 999px;
}

.section-pad {
  padding: 76px 0;
}

.hero {
  background:
    radial-gradient(circle at 15% 10%, rgba(22, 137, 232, 0.16), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 44px;
  align-items: center;
}

.kicker {
  margin: 0 0 12px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(38px, 5vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 20px;
}

.lead,
.muted {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  text-align: center;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 16px 34px rgba(22, 137, 232, 0.28);
}

.btn-outline {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.hero-points li {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.form-card-head h2 {
  font-size: 32px;
}

.form-card-head p {
  color: var(--muted);
  margin: 8px 0 20px;
  line-height: 1.5;
}

.order-form {
  display: block;
}

.form-row {
  margin-bottom: 14px;
}

.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.label-hint {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd8ea;
  background: #fbfdff;
  color: #0b1730;
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

select {
  background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(22, 137, 232, 0.14);
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.small-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.cards-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.step,
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 27, 73, 0.06);
}

.service-card {
  padding: 24px;
}

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #eaf5ff;
  font-size: 23px;
}

.service-card p,
.step p,
.feature span {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.why {
  background: #fff;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 44px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature {
  padding: 22px;
}

.feature strong {
  display: block;
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 18px;
}

.step {
  padding: 24px;
}

.step span {
  display: block;
  color: var(--blue);
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 10px;
}

.cta {
  background: var(--navy);
  color: #fff;
  padding: 52px 0;
}

.cta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta h2 {
  color: #fff;
}

.cta p {
  color: #c8d8ef;
  margin: 8px 0 0;
}

.site-footer {
  padding: 24px 0;
  background: #031127;
  color: #d7e4f5;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

@supports not (display: grid) {
  .hero-grid,
  .cards-grid,
  .steps-grid,
  .split,
  .form-row.two {
    display: flex;
    flex-wrap: wrap;
  }

  .hero-grid > *,
  .split > *,
  .form-row.two > * {
    flex: 1 1 320px;
  }

  .cards-grid > *,
  .steps-grid > * {
    flex: 1 1 280px;
  }
}

@media (max-width: 980px) {
  .header-wrap {
    min-height: 76px;
  }

  .brand img {
    width: 185px;
    max-height: 66px;
  }

  .menu-button {
    display: block;
    order: 3;
  }

  .phone-pill {
    display: none;
  }

  .main-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 22px 50px rgba(0, 27, 73, 0.14);
  }

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

  .main-nav a {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .main-nav a:hover {
    background: #eef6ff;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  .section-pad {
    padding: 48px 0;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-grid {
    gap: 28px;
  }

  .lead,
  .muted {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .form-card {
    padding: 20px;
    border-radius: 20px;
  }

  .form-row.two,
  .cards-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .cta-wrap {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand img {
    width: 162px;
  }

  h1 {
    font-size: 36px;
  }

  .form-card {
    margin-left: -4px;
    margin-right: -4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}


.contact-line {
  margin: -10px 0 20px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
}

.contact-line a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

input[type="file"] {
  padding: 12px;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

.upload-note {
  margin-top: 7px;
}


.form-status {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

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

.form-status.is-success {
  background: #e9f8ef;
  color: #146c2e;
  border: 1px solid #bfe8ca;
}

.form-status.is-error {
  background: #fff1f1;
  color: #9f1d1d;
  border: 1px solid #f3c1c1;
}


@media (max-width: 980px) {
  .header-contact {
    width: 100%;
    justify-content: center;
    padding-top: 8px;
  }

  .email-pill,
  .phone-pill {
    font-size: 13px;
    min-height: 38px;
    padding: 9px 12px;
  }
}

@media (max-width: 520px) {
  .header-contact {
    gap: 8px;
  }

  .email-pill,
  .phone-pill {
    width: 100%;
    max-width: 320px;
  }
}




/* v5 cleanup: no horizontal blank space, cleaner header contacts */
html,
body {
  overflow-x: hidden;
}

.header-wrap {
  flex-wrap: nowrap;
}

@media (max-width: 1100px) {
  .brand img {
    width: 184px;
  }

  .main-nav {
    gap: 16px;
  }

  .email-pill {
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 980px) {
  .header-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 170px;
    max-height: 62px;
  }

  .menu-button {
    display: block;
    order: 0;
    justify-self: end;
  }

  .main-nav {
    top: 82px;
    left: 14px;
    right: 14px;
  }

  .header-contact {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    justify-content: stretch;
  }

  .email-pill {
    width: 100%;
    max-width: none;
    min-width: 0;
    font-size: 12px;
  }

  .phone-pill {
    display: inline-flex;
    min-height: 42px;
    padding: 0 14px;
    font-size: 13px;
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .header-contact {
    grid-template-columns: 1fr;
  }

  .email-pill,
  .phone-pill {
    width: 100%;
  }

  .hero-actions {
    gap: 10px;
  }
}


/* v11: simple hero alignment fix */
.hero.section-pad {
  padding-top: 72px !important;
  padding-bottom: 72px !important;
}

.hero-grid {
  align-items: start !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: clamp(44px, 5vw, 78px);
}

.hero-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
  align-self: start !important;
}

.form-card {
  margin-top: 0 !important;
  align-self: start !important;
}

.hero-content .kicker {
  margin-top: 0;
}

.hero-content h1 {
  max-width: 680px;
}

.hero-content .lead {
  max-width: 640px;
}

.hero-actions {
  margin-top: 28px;
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 500px);
    gap: 36px;
  }
}

@media (max-width: 980px) {
  .hero.section-pad {
    padding-top: 36px !important;
    padding-bottom: 52px !important;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }
}


/* v12: header phone only; email moved out of top navigation */
.header-wrap {
  gap: clamp(18px, 3vw, 34px);
}

.phone-pill {
  flex: 0 0 auto;
  white-space: nowrap;
}

.footer-email-line {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.footer-email-line a {
  color: var(--blue);
  font-weight: 950;
}

@media (max-width: 980px) {
  .header-wrap {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .phone-pill {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .phone-pill {
    font-size: 12px;
    padding: 0 12px;
  }
}
