/* Specifications */
#specSection {
  background: #07352f;
}

#specSection .specification-bg {
  background:
    radial-gradient(
      circle at -9% 71%,
      rgba(120, 145, 68, 0.28),
      transparent 29%
    ),
    radial-gradient(circle at 78% 5%, rgba(21, 86, 72, 0.32), transparent 39%),
    linear-gradient(118deg, #103d34 0%, #082e2b 50%, #06352e 100%);
}

#specSection .specification-bg canvas {
  display: none;
}
#specSection .specification-overlay {
  background: transparent;
}

#specSection .specification-scroll-section::before {
  pointer-events: none;
}

#specSection .specification-sticky::before {
  content: "";
  position: absolute;
  right: -25px;
  bottom: 102px;
  width: 165px;
  height: 49%;
  z-index: 1;
  opacity: 0.53;
  background: repeating-linear-gradient(
    90deg,
    #835f36 0 3px,
    #d6ad71 3px 8px,
    #584326 8px 12px
  );
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 34% 39%);
  pointer-events: none;
}

#specSection .specification-sticky::after {
  content: "";
  position: absolute;
  left: -100px;
  bottom: -80px;
  width: 320px;
  height: 430px;
  z-index: 1;
  opacity: 0.23;
  filter: blur(10px);
  background:
    radial-gradient(
      ellipse 30px 105px at 28% 20%,
      #9eac65 35%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40px 120px at 66% 39%,
      #7f9e63 30%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 38px 128px at 30% 67%,
      #abb367 30%,
      transparent 70%
    ),
    radial-gradient(ellipse 37px 105px at 76% 79%, #7e9759 30%, transparent 70%);
  pointer-events: none;
}

#specSection .specification-container {
  width: min(1416px, calc(100% - 120px));
  max-width: none;
  padding: 22px 0 0;
  gap: 0;
}

#specSection .spec-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1.8fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 192px;
  color: #fff9ea;
}

#specSection .spec-script {
  justify-self: start;
  margin: 0 0 0 12px;
  color: #e8c47d;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(20px, 2.5vw, 20px);
  font-style: italic;
  line-height: 0.92;
  text-align: center;
  transform: rotate(-10deg);
}

#specSection .spec-script span {
  display: inline-block;
  margin-left: 50px;
}
#specSection .spec-hero-title {
  text-align: center;
}

#specSection .spec-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #fff9ea;
  font-size: 12px;
  letter-spacing: 0.53em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}

#specSection .spec-eyebrow::before,
#specSection .spec-eyebrow::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: #dabb77;
}

#specSection .spec-hero h2 {
  margin: 1px 0 -3px;
  color: #fff8e6;
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: clamp(54px, 5.7vw, 88px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.12;
  text-shadow: 0 8px 15px rgba(0, 0, 0, 0.14);
}

#specSection .spec-subtitle {
  display: block;
  color: #d4d7c2;
  font-size: clamp(12px, 1.4vw, 21px);
  letter-spacing: 0.43em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

#specSection .spec-title-rule {
  display: block;
  width: 72px;
  height: 4px;
  margin: 20px auto 0;
  border-radius: 99px;
  background: #eac77d;
}

#specSection .spec-hero-copy {
  max-width: 300px;
  margin: 0 0 0 auto;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.7;
}

#specSection .specification-grid {
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  grid-template-rows: none;
  gap: 12px;
  height: auto;
  max-height: none;
  counter-reset: specification;
}

#specSection .spec-card {
  grid-column: span 4;
  counter-increment: specification;
  min-width: 0;
  min-height: 218px;
  height: auto;
  padding: 10px 15px;
  border: 1px solid rgba(255, 249, 236, 0.88);
  border-radius: 16px;
  background: linear-gradient(137deg, #fffef9, #f9f6ec);
  box-shadow: 0 12px 30px rgba(0, 19, 14, 0.2);
  color: #142f30;
  text-align: center;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    transform 0.22s,
    box-shadow 0.22s;
}

#specSection .spec-card:nth-child(n + 11) {
  grid-column: span 5;
  min-height: 190px;
}
#specSection .spec-card::before {
  display: none;
}

#specSection .spec-card::after {
  content: counter(specification, decimal-leading-zero);
  position: absolute;
  top: 12px;
  right: 17px;
  color: #a6a092;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
}

#specSection .spec-card:hover {
  transform: translateY(-4px);
  border-color: #f2ddae;
  background: #fffef9;
  box-shadow: 0 19px 36px rgba(0, 19, 14, 0.28);
}

#specSection .spec-icon {
  display: grid;
  flex: none;
  width: 76px;
  height: 76px;
  place-items: center;
  margin: 0 auto 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #f7f4e9, #f1ecde);
}

#specSection .spec-icon img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.42) sepia(1) hue-rotate(95deg) saturate(2);
}

#specSection .spec-title {
  margin: 0 0 6px;
  color: #122f31;
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 700;
  line-height: 1.15;
}

#specSection .spec-line {
  width: 40px;
  height: 2px;
  margin: 0 auto 7px;
  background: #c7963a;
}

#specSection .spec-desc {
  max-width: 265px;
  margin: 0 auto;
  color: #2e424c;
  font-size: clamp(12px, 0.92vw, 14px);
  line-height: 1.3;
}

#specSection .spec-promise {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.25fr;
  align-items: center;
  gap: 0;
  min-height: 90px;
  margin-top: 15px;
  border-top: 1px solid rgba(230, 194, 124, 0.5);
  color: #e8c47d;
}

#specSection .spec-promise > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 38px;
  border-right: 1px solid rgba(232, 196, 125, 0.55);
}

#specSection .spec-promise > div:nth-child(4) {
  border-right: 0;
}
#specSection .spec-promise i {
  font-size: 36px;
}

#specSection .spec-promise span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-transform: uppercase;
}

#specSection .spec-promise p {
  margin: 0;
  color: #e8c47d;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(17px, 1.8vw, 26px);
  font-style: italic;
  line-height: 1;
  text-align: right;
  transform: rotate(-7deg);
}

#specSection .spec-promise p span {
  display: inline-block;
  margin-left: 26px;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}

@media (max-width: 1200px) {
  #specSection .specification-container {
    width: min(100% - 48px, 1120px);
  }
  #specSection .spec-hero {
    grid-template-columns: 1fr 1.8fr 1fr;
    min-height: 175px;
  }
  #specSection .specification-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  #specSection .spec-card,
  #specSection .spec-card:nth-child(n + 11) {
    grid-column: auto;
    min-height: 205px;
  }
  #specSection .spec-promise {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 12px;
  }
  #specSection .spec-promise p {
    grid-column: 1 / -1;
    text-align: center;
  }
}

@media (max-width: 850px) {
  #specSection .specification-container {
    width: calc(100% - 36px);
    padding-top: 40px;
  }
  #specSection .spec-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    margin-bottom: 28px;
  }
  #specSection .spec-script {
    display: none;
  }
  #specSection .spec-hero h2 {
    font-size: clamp(46px, 9vw, 72px);
  }
  #specSection .spec-hero-copy {
    max-width: 460px;
    margin: 0 auto;
    text-align: center;
  }
  #specSection .specification-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #specSection .spec-card,
  #specSection .spec-card:nth-child(n + 11) {
    min-height: 210px;
  }
  #specSection .spec-promise {
    grid-template-columns: repeat(2, 1fr);
    padding: 18px 0;
  }
  #specSection .spec-promise > div:nth-child(2) {
    border-right: 0;
  }
  #specSection .spec-promise > div {
    justify-content: flex-start;
    padding-left: 10%;
  }
}

@media (max-width: 540px) {
  #specSection .specification-container {
    width: calc(100% - 28px);
    padding-top: 34px;
  }
  #specSection .spec-eyebrow {
    gap: 9px;
    font-size: 9px;
    letter-spacing: 0.24em;
  }
  #specSection .spec-eyebrow::before,
  #specSection .spec-eyebrow::after {
    width: 22px;
  }
  #specSection .spec-hero h2 {
    font-size: clamp(42px, 11vw, 58px);
  }
  #specSection .spec-subtitle {
    font-size: 11px;
    letter-spacing: 0.24em;
  }
  #specSection .specification-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  #specSection .spec-card,
  #specSection .spec-card:nth-child(n + 11) {
    min-height: 180px;
    padding: 15px 18px;
  }
  #specSection .spec-icon {
    width: 65px;
    height: 65px;
    margin-bottom: 7px;
  }
  #specSection .spec-icon img {
    width: 40px;
    height: 40px;
  }
  #specSection .spec-title {
    font-size: 18px;
  }
  #specSection .spec-desc {
    font-size: 13px;
  }
  #specSection .spec-promise i {
    font-size: 25px;
  }
  #specSection .spec-promise span {
    font-size: 9px;
  }
  #specSection .specification-sticky::before {
    display: none;
  }
}

/* The overview telephone field must leave room for the flag and dial code. */
#overview .overview-field .form-control:not([type="tel"]) {
  padding: 0;
}
#overview .overview-field .intl-tel-input input[type="tel"] {
  padding-left: 76px;
}
#overview .overview-field .intl-tel-input.iti-sdc-3 input[type="tel"] {
  padding-left: 84px;
}
#overview .overview-field .intl-tel-input.iti-sdc-4 input[type="tel"] {
  padding-left: 92px;
}
#overview .overview-field .intl-tel-input.iti-sdc-5 input[type="tel"] {
  padding-left: 100px;
}

/* Keep validation feedback outside the visual input row. */
#overview .overview-field + div.error,
.nest-enquiry-modal .input-group + div.error,
#ContactUs .input-group + div.error,
#desktop-quick-form .quick-field > div.error {
  display: block;
  width: 100%;
  color: #c52323;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}

#overview .overview-field + div.error,
.nest-enquiry-modal .input-group + div.error {
  margin: -4px 2px 9px;
}

#ContactUs .input-group + div.error {
  margin: -14px 0 16px;
}

#overview .overview-field:has(.form-control.error),
.nest-enquiry-modal .input-group:has(.form-control.error) {
  border-color: #c52323;
}

.nest-enquiry-modal .input-group .intl-tel-input input[type="tel"] {
  width: 100%;
  min-width: 0;
}

/* Enquiry popups use the same visual language as the overview card. */
.nest-enquiry-modal .modal-dialog {
  max-width: 420px;
  margin: clamp(100px, 4vh, 55px) auto !important;
}
.nest-enquiry-modal .modal-content {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(219, 202, 169, 0.65);
  border-top: 4px solid #fff;
  border-radius: 22px;
  background: #fbf9f5;
  box-shadow: 0 24px 56px rgba(0, 22, 19, 0.25);
  color: #143a36;
}

.nest-enquiry-modal .modal-content::before,
.nest-enquiry-modal .modal-content::after {
  content: "";
  position: absolute;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    transparent 0 20px,
    rgba(184, 156, 113, 0.12) 21px 22px
  );
  pointer-events: none;
}

.nest-enquiry-modal .modal-content::before {
  top: -68px;
  left: -65px;
}
.nest-enquiry-modal .modal-content::after {
  right: -65px;
  bottom: -66px;
}
.nest-enquiry-modal .modal-body {
  padding: 28px 28px 24px;
}
.nest-enquiry-modal .modal-body > .row,
.nest-enquiry-modal .modal-body > .row > .row {
  display: block;
  width: 100%;
  margin: 0;
}

.nest-enquiry-modal .modal-header {
  position: relative;
  display: block;
  padding: 0 12px 17px;
  border: 0;
  text-align: center;
}

.nest-enquiry-modal .overview-form-kicker {
  display: block;
  color: #a37b35;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.3;
  text-transform: uppercase;
}

.nest-enquiry-modal .modal-header h3.section-head {
  margin: 4px 0 6px !important;
  padding: 0 !important;
  color: #123d39;
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-transform: uppercase;
}

.nest-enquiry-modal .modal-header p {
  max-width: 300px;
  margin: 0 auto;
  color: #364d50;
  font-size: 13px;
  line-height: 1.5;
}

.nest-enquiry-modal .btn-close {
  position: absolute;
  top: -14px;
  right: -12px;
  width: 12px;
  height: 12px;
  padding: 8px;
  border-radius: 50%;
  background-color: #efe9db;
  background-size: 11px;
  opacity: 1;
}

.nest-enquiry-modal form,
.nest-enquiry-modal form > .col-lg-12,
.nest-enquiry-modal form .col-lg-12.nopadding {
  width: 100%;
  padding: 0;
  margin: 0;
}

.nest-enquiry-modal .input-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  min-height: 45px;
  margin: 0 0 9px;
  padding: 0 15px;
  border: 1px solid #e0dcd4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 9px rgba(55, 46, 29, 0.06);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.nest-enquiry-modal .input-group:focus-within {
  border-color: #bc9558;
  box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.2);
}

.nest-enquiry-modal .input-group::before {
  display: block;
  flex: 0 0 18px;
  margin-right: 12px;
  color: #55574d;
  font-family: "Font Awesome 6 Free";
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.nest-enquiry-modal .input-group:has(input[name="fname"])::before {
  content: "\f007";
}
.nest-enquiry-modal .input-group:has(input[type="email"])::before {
  content: "\f0e0";
}
.nest-enquiry-modal .input-group:has(select)::before {
  content: "\f1ad";
}

.nest-enquiry-modal .input-group .form-control,
.nest-enquiry-modal .input-group .intl-tel-input {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}

.nest-enquiry-modal .input-group .form-control {
  height: 43px;
  min-height: 43px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #173d39;
  font-size: 13px;
}

.nest-enquiry-modal .input-group .form-control:not([type="tel"]) {
  padding: 0;
}
.nest-enquiry-modal .input-group .form-control::placeholder {
  color: #65717a;
  opacity: 1;
}
.nest-enquiry-modal .input-group select {
  cursor: pointer;
}

.nest-enquiry-modal .form-buttons {
  padding: 3px 0 0 !important;
  text-align: center;
}
.nest-enquiry-modal .input-group-btn {
  display: block;
  width: 100%;
}
.nest-enquiry-modal .nf-submit-trigger {
  display: flex;
  justify-content: center;
  width: 100% !important;
  min-height: 47px !important;
  margin: 4px 0 0 !important;
  border: 1px solid #c69b50 !important;
  border-radius: 999px;
  background: linear-gradient(105deg, #e5c383, #d2a45a) !important;
  box-shadow: 0 7px 18px rgba(139, 99, 38, 0.18) !important;
  color: #113d39;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.nest-enquiry-modal .nf-submit-trigger:hover,
.nest-enquiry-modal .nf-submit-trigger:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(139, 99, 38, 0.28) !important;
}
.nest-enquiry-modal .nf-submit-shell {
  display: block;
  width: 100%;
}
.nest-enquiry-modal .nf-submit-ring {
  display: flex;
  width: 100%;
  height: 45px;
}
.nest-enquiry-modal .nf-submit-svg {
  display: none;
}

.nest-enquiry-modal .nf-submit-arrow {
  color: #113d39;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.nest-enquiry-modal .nf-submit-ring::after {
  content: "\f061";
  position: absolute;
  top: 6px;
  right: 7px;
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 50%;
  background: #103c36;
  color: #f5d390;
  font-family: "Font Awesome 6 Free";
  font-size: 14px;
  font-weight: 900;
}

.nest-enquiry-modal .nf-submit-spinner {
  top: 13px;
  left: calc(50% - 10px);
  width: 20px;
  height: 20px;
  border-color: rgba(17, 61, 57, 0.2);
  border-top-color: #113d39;
}

.nest-enquiry-modal .overview-assurances {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-top: 24px;
  text-align: center;
}

.nest-enquiry-modal .overview-assurances > div {
  display: grid;
  justify-items: center;
  gap: 7px;
}
.nest-enquiry-modal .overview-assurances i {
  color: #ae863e;
  font-size: 21px;
}
.nest-enquiry-modal .overview-assurances span {
  color: #725c39;
  font-size: 11px;
  line-height: 1.25;
}

@media (max-width: 540px) {
  .nest-enquiry-modal .modal-dialog {
    max-width: calc(100% - 28px);
    margin: 95px auto !important;
  }
  .nest-enquiry-modal .modal-body {
    padding: 26px 19px 22px;
  }
  .nest-enquiry-modal .modal-header h3.section-head {
    font-size: 27px;
  }
}

.nest-enquiry-modal.show .modal-dialog {
  top: auto !important;
  transform: none !important;
}
