/* Dunot Developers – single page site */

:root {
  --navy: #12263f;
  --steel: #3b6ea5;
  --gray: #f5f7fa;
  --amber: #f2a33a;
  --text: #2b3a4d;
  --muted: #4a5b70;
  --line: #dce3ec;
  --footer: #0c1b2e;
  --font-head: "Poppins", sans-serif;
  --font-body: "Nunito Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  color: var(--navy);
  margin: 0;
}

p {
  margin: 0;
}
a {
  color: var(--steel);
  text-decoration: none;
}
a:hover {
  color: var(--navy);
}

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

.inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}
.alt {
  background: var(--gray);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
}
.logo:hover {
  color: #fff;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
nav a {
  color: #c9d6e6;
}
nav a:hover {
  color: #fff;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--amber);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  padding: 13px 26px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.btn:hover {
  background: #e8942a;
  color: var(--navy);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  padding: 11px 26px;
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 80px;
}
.eyebrow {
  color: var(--steel);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.15;
  font-weight: 700;
  max-width: 760px;
  margin-bottom: 20px;
}
.lead {
  font-size: 19px;
  max-width: 620px;
  margin-bottom: 32px;
}

/* ---------- Section headings ---------- */
.section-title {
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 8px;
}
.section-intro {
  max-width: 560px;
  margin-bottom: 36px;
}

/* ---------- Cards and grids ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}
.card h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
}
.card p {
  margin-bottom: 16px;
}
.price {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0 !important;
}

.steps h3 {
  font-size: 18px;
  color: var(--steel);
  margin-bottom: 6px;
}

/* ---------- Work ---------- */
.case {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}
.placeholder {
  background: var(--line);
  border-radius: 8px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-weight: 600;
  color: var(--muted);
}
.case h3 {
  font-size: 26px;
  margin-bottom: 12px;
}
.case p {
  margin-bottom: 10px;
}
.quote {
  border-left: 3px solid var(--amber);
  padding-left: 14px;
  color: var(--muted);
  margin: 16px 0 18px;
}
.samples-label {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}
.samples-label span {
  font-weight: 400;
  color: var(--muted);
}
.sample .placeholder {
  min-height: 170px;
  border-radius: 0;
}
.sample {
  padding: 0;
  overflow: hidden;
}
.sample .body {
  padding: 18px;
}
.sample .body strong {
  color: var(--navy);
}
.sample .body p {
  margin: 4px 0 0;
}

/* ---------- About ---------- */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}
.about .text {
  flex: 1 1 440px;
}
.about .text p {
  margin-bottom: 14px;
}
.founder {
  flex: 0 1 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  text-align: center;
}
.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--line);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.founder .name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  color: var(--navy);
}
.founder .role {
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}
form {
  flex: 1 1 440px;
}
.field {
  margin-bottom: 20px;
}
label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
input[type="text"],
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 17px;
  color: var(--text);
  padding: 12px 14px;
  border: 1px solid #b9c5d3;
  border-radius: 6px;
  background: #fff;
}
.hp {
  position: absolute;
  left: -9999px;
}
#form-status {
  margin-top: 14px;
  font-weight: 600;
}
#form-status.ok {
  color: #1f7a45;
}
#form-status.err {
  color: #b3261e;
}

.details {
  flex: 1 1 320px;
  background: var(--gray);
  border-radius: 8px;
  padding: 32px;
  align-self: flex-start;
}
.details p {
  margin-bottom: 14px;
}
.details p:last-child {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
footer {
  background: var(--footer);
  color: #a9b8cb;
  font-size: 15px;
  padding: 44px 0 28px;
}
footer a {
  color: #a9b8cb;
}
footer a:hover {
  color: #fff;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.foot strong {
  display: block;
  font-family: var(--font-head);
  color: #fff;
  margin-bottom: 8px;
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.foot li {
  margin-bottom: 6px;
}
.copy {
  border-top: 1px solid #22344b;
  margin-top: 28px;
  padding-top: 18px;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }
  .hero {
    padding: 56px 0;
  }
  .hero h1 {
    font-size: 34px;
  }
  .section-title {
    font-size: 28px;
  }
  .inner {
    padding: 0 20px;
  }
  nav {
    gap: 16px;
  }
  .btn {
    padding: 14px 22px;
  }
}

/* ---------- Touch feedback: nav and buttons ---------- */

/* Nav links: soft pill background on hover, press on click */
nav a:not(.btn) {
  padding: 8px 14px;
  border-radius: 999px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.12s ease;
}
nav a:not(.btn):hover,
nav a:not(.btn):focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
nav a:not(.btn):active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0.96);
}

/* Buttons: lift on hover, press down on click or tap */
.btn {
  transition:
    background 0.2s ease,
    transform 0.12s ease,
    box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(18, 38, 63, 0.18);
}
.btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: none;
}

/* Turn the movement off for people who disable animations */
@media (prefers-reduced-motion: reduce) {
  .btn,
  nav a:not(.btn) {
    transition: none;
  }
  .btn:hover,
  .btn:active {
    transform: none;
  }
}

/* Nav: highlight the section currently in view */
nav a:not(.btn).active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
nav a:not(.btn).active::after {
  transform: scaleX(1);
}

/* Nav: while the pointer is anywhere in the menu, the current-section highlight steps aside */
@media (hover: hover) {
  nav:hover a:not(.btn).active:not(:hover) {
    background: transparent;
    color: #c9d6e6;
  }
}

/* ========== Responsive: tablets and phones ========== */

img {
  max-width: 100%;
  height: auto;
}
.details a,
footer a {
  overflow-wrap: anywhere;
}

/* Grids never force a column wider than the screen */
.grid {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}
.case {
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

/* Hidden on desktop */
.nav-toggle,
.header-cta {
  display: none;
}

/* ----- Tablets and phones: tap-to-open menu ----- */
@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: transparent;
    border: 1px solid #3a5472;
    border-radius: 8px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }
  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-toggle ~ nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 0 6px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .js .nav-toggle ~ nav {
    display: none;
  }
  .js .nav-toggle ~ nav.open {
    display: flex;
  }

  .nav-toggle ~ nav a:not(.btn) {
    padding: 12px 14px;
    border-radius: 8px;
  }
  .nav-toggle ~ nav .btn {
    text-align: center;
    margin-top: 8px;
  }
}

/* ----- Tablets ----- */
@media (min-width: 700px) and (max-width: 960px) {
  .inner {
    padding: 0 32px;
  }
  section {
    padding: 64px 0;
  }
  .hero {
    padding: 72px 0 64px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .section-title {
    font-size: 30px;
  }

  /* Quote button stays in the header, next to the menu button */
  .header-cta {
    display: inline-block;
    margin-left: auto;
    padding: 10px 20px;
  }
  .nav-toggle ~ nav .btn {
    display: none;
  }

  #services .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #services .card:last-child {
    grid-column: 1 / -1;
  }
  .steps .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .case {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .about {
    flex-wrap: nowrap;
    gap: 36px;
  }
  .about .text {
    flex: 1 1 0;
    min-width: 0;
  }
  .founder {
    flex: 0 0 280px;
  }

  .contact {
    flex-wrap: nowrap;
    gap: 32px;
  }
  .contact form {
    flex: 3 1 0;
    min-width: 0;
  }
  .details {
    flex: 2 1 0;
    min-width: 0;
    padding: 26px;
  }
}

/* ----- Phones ----- */
@media (max-width: 699px) {
  .logo {
    font-size: 19px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .lead {
    font-size: 17px;
  }
  .section-title {
    font-size: 26px;
  }

  .btn-row {
    flex-direction: column;
  }
  .btn-row .btn {
    text-align: center;
  }

  .card {
    padding: 22px;
  }
  .sample {
    padding: 0;
  }
  .placeholder {
    min-height: 200px;
  }
  .sample .placeholder {
    min-height: 150px;
  }
  .case {
    gap: 22px;
    margin-bottom: 36px;
  }

  .about {
    gap: 28px;
  }
  .founder {
    flex: 1 1 100%;
  }

  .contact {
    gap: 28px;
  }
  .contact .btn {
    width: 100%;
  }
  .details {
    flex-basis: 100%;
    padding: 22px;
  }

  .foot {
    flex-direction: column;
    gap: 24px;
  }
  .foot ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
  }
  .foot li {
    margin-bottom: 0;
  }
  .foot a {
    display: inline-block;
    padding: 6px 0;
  }
}

/* Touch screens: no "stuck" hover lift after a tap */
@media (hover: none) {
  .btn:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Form fields: subtle focus style instead of the amber outline */
input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(59, 110, 165, 0.15);
}

/* Cards: slight shadow on hover */
.card {
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
@media (hover: hover) {
  .card:hover {
    box-shadow: 0 8px 22px rgba(18, 38, 63, 0.1);
    border-color: #c9d5e3;
  }
}

/* Nav: smoother highlight fade */
nav a:not(.btn) {
  transition:
    background-color 0.35s ease,
    color 0.4s ease,
    transform 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
  nav a:not(.btn) {
    transition: none;
  }
}

/* Form result: clear confirmation box */
#form-status.ok,
#form-status.err {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 17px;
  animation: status-in 0.3s ease;
}
#form-status.ok {
  color: #14532d;
  background: #e7f6ec;
  border-color: #9ad2ae;
}
#form-status.err {
  color: #7f1d1d;
  background: #fdecea;
  border-color: #f0a8a0;
}
#form-status.ok::before {
  content: "✓";
  font-weight: 700;
}
#form-status.err::before {
  content: "!";
  font-weight: 700;
}

@keyframes status-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  #form-status.ok,
  #form-status.err {
    animation: none;
  }
}

/* Send button while the message is being sent */
.btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

/* ---------- Footer: phones get the stacked layout, larger screens keep the original ---------- */
.footer-mobile {
  display: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.footer-brand p {
  margin-top: 12px;
}
.footer-col strong {
  display: block;
  font-family: var(--font-head);
  color: #fff;
  margin-bottom: 12px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin-bottom: 2px;
}
.footer-col a {
  display: inline-block;
  padding: 6px 0;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
}
.footer-contact a {
  padding: 0;
}
.footer-contact svg {
  flex: none;
  margin-top: 3px;
  color: #7f93ab;
}
.footer-bottom {
  border-top: 1px solid #22344b;
  margin-top: 28px;
  padding-top: 18px;
  text-align: center;
}
.footer-social {
  margin-top: 6px;
}

@media (max-width: 699px) {
  .footer-desktop {
    display: none;
  }
  .footer-mobile {
    display: block;
  }
}

/* ---------- Map ---------- */
.map {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}
@media (max-width: 699px) {
  .map iframe {
    height: 260px;
  }
}

/* Required fields: marker, note and messages under each field */
.req {
  color: #b3261e;
}
.form-note {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
}
textarea {
  display: block;
}

.field-error {
  margin: 6px 0 0;
  font-size: 15px;
  color: #b3261e;
}
.field-error:empty {
  display: none;
}

input[type="text"].invalid,
textarea.invalid {
  border-color: #b3261e;
}
input[type="text"].invalid:focus,
textarea.invalid:focus {
  border-color: #b3261e;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.15);
}
