@import url('./base/reset.css');

:root {
  --ink: #102a43;
  --ink-soft: #334e68;
  --brand: #075985;
  --brand-dark: #082f49;
  --accent: #f97316;
  --paper: #fff;
  --surface: #f4f8fb;
  --line: #dbe7ef;
  --muted: #627d98;
  --max: 1180px;
  --shadow: 0 18px 45px rgba(15, 42, 67, .10);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  font-size: clamp(15px, 0.95vw + 0.8rem, 16px);
}

body,
p,
h1,
h2,
h3,
h4,
li,
span,
a,
button,
input,
select,
textarea {
  font-family: inherit;
}

body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 680px;
  z-index: -1;
  background: radial-gradient(circle at 85% 10%, #b9e7f6 0, transparent 28%), linear-gradient(155deg, #eaf8fc 0%, #f7fbfd 58%, transparent 100%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.section {
  padding: clamp(2.25rem, 4vw, 3.25rem) 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -.025em;
}

h3 {
  margin-bottom: 1.25rem;
  color: var(--brand-dark);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: rgba(8, 47, 73, .94);
  color: #fff;
  backdrop-filter: blur(14px);
}

.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  flex: 1 1 auto;
}

.logo {
  width: 160px;
  height: 44px;
  max-width: 180px;
  flex: 0 0 auto;
  object-fit: contain;
  border: 0;
  border-radius: 18px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}

.brand-text {
  display: block;
  min-width: 0;
}

.company {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  color: #fff;
  line-height: 1.1;
}

.company-tagline {
  display: block;
  margin-top: .22rem;
  color: #fff;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.tagline {
  display: none;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .2rem;
  flex-wrap: wrap;
}

.nav a {
  padding: .55rem .7rem;
  border-radius: .5rem;
  color: #dbeafe;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}

.nav a:hover,
.nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.menu-toggle b {
  margin-left: .4rem;
}

.hero {
  padding: clamp(3rem, 6vw, 4.6rem) 0 clamp(2.1rem, 3.5vw, 2.8rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(2rem, 4.5vw, 3.5rem);
}

.hero-intro {
  display: block;
  margin-bottom: .8rem;
  color: var(--brand);
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-text h2 {
  max-width: 680px;
  margin: 0 0 1.35rem;
  color: var(--brand-dark);
  font-size: clamp(2.5rem, 5vw, 4.55rem);
}

.lead {
  max-width: 610px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.cta,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: .6rem;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(249, 115, 22, .25);
  transition: transform .2s, box-shadow .2s, background .2s;
}

.cta {
  margin-top: 1.75rem;
  padding: .9rem 1.25rem;
}

.cta::after {
  content: "→";
  margin-left: .65rem;
  font-size: 1.2em;
}

.cta:hover,
.btn-primary:hover {
  background: #ea580c;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(249, 115, 22, .33);
}

.hero-image {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.hero-image::before {
  display: none;
}

.hero-image img {
  width: 100%;
  min-height: 400px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: none;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  transform: translateZ(0) scale(1);
  transform-origin: center;
  transition: transform .45s ease, filter .45s ease;
}

.hero-image:hover img {
  transform: translateZ(0) scale(1.04);
  filter: brightness(1.04);
}

.section:not(.quote-section)>h3::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: .7rem;
  border-radius: 9px;
  background: var(--accent);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
  box-shadow: 0 7px 20px rgba(15, 42, 67, .045);
  backface-visibility: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s;
}

.card:hover {
  border-color: #9dd9eb;
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.card-media {
  height: 185px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  transform: translateZ(0) scale(1);
  transform-origin: center;
  transition: transform .5s ease;
}

.card:hover .card-media img {
  transform: translateZ(0) scale(1.08);
}

.card h4,
.card p {
  padding-inline: 1.25rem;
}

.card h4 {
  margin: 1.25rem 0 .65rem;
  color: var(--brand-dark);
  font-size: 1.08rem;
}

.card p {
  padding-bottom: 1.4rem;
  color: var(--ink-soft);
  font-size: .94rem;
}

.deliverables {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.drawing-left ul {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
}

.drawing-left li {
  padding-left: 1.6rem;
  position: relative;
}

.drawing-left li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}

.drawing-left strong {
  color: var(--brand-dark);
}

.drawing-preview {
  overflow: hidden;
  border-radius: .9rem;
}

.drawing-preview img {
  width: 100%;
  border-radius: .75rem;
  box-shadow: 0 12px 26px rgba(15, 42, 67, .16);
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  transform: translateZ(0) scale(1);
  transform-origin: center;
  transition: transform .45s ease, filter .45s ease;
}

.drawing-preview:hover img {
  transform: translateZ(0) scale(1.04);
  filter: brightness(1.03);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery figure {
  overflow: hidden;
  border-radius: .9rem;
  background: var(--paper);
  box-shadow: 0 7px 20px rgba(15, 42, 67, .08);
}

.gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  transform: translateZ(0) scale(1);
  transform-origin: center;
  transition: transform .4s;
}

.gallery figure:hover img {
  transform: translateZ(0) scale(1.06);
}

figcaption {
  padding: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.quote-section {
  padding-top: clamp(2.1rem, 3.5vw, 2.8rem);
}

.quote-inner {
  padding: clamp(1.5rem, 5vw, 4rem);
  border-radius: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, #082f49, #075985);
  box-shadow: var(--shadow);
}

.quote-inner h3 {
  color: #fff;
}

.quote-sub {
  margin-bottom: 1.75rem;
  color: #ccecf9;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.full {
  grid-column: 1/-1;
}

label .label {
  display: block;
  margin-bottom: .4rem;
  color: #e0f2fe;
  font-size: .85rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  padding: .75rem .85rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  outline: 0;
  color: var(--ink);
  background: #fff;
  transition: border .2s, box-shadow .2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(251, 146, 60, .3);
}

textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.35rem;
}

.btn-primary {
  padding: .8rem 1.25rem;
}

.btn-primary.is-loading {
  opacity: .75;
  cursor: wait;
}

.form-msg {
  color: #dbeafe;
  font-weight: 650;
}

.form-msg.success {
  color: #bbf7d0;
}

.form-msg.error {
  color: #fecaca;
}

.privacy-note {
  margin-top: 1rem;
  color: #ccecf9;
  font-size: .82rem;
  line-height: 1.5;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 110px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--paper);
  color: var(--ink-soft);
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.contact-card strong {
  color: var(--brand-dark);
}

.contact-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer {
  padding: 1.5rem 0;
  background: var(--brand-dark);
  color: #b9dced;
  text-align: center;
  font-size: .9rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  animation: fadeUp .65s ease-out forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width:1180px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    gap: 2rem;
  }
}

@media (max-width:960px) {
  .nav {
    gap: 0;
  }

  .nav a {
    padding: .45rem;
    font-size: .82rem;
  }

  .hero-grid,
  .deliverables {
    grid-template-columns: 1fr;
  }

  .hero-image img {
    min-height: 330px;
  }

  .quote-inner {
    padding: 1.4rem;
  }
}

@media (max-width:768px) {
  html {
    scroll-padding-top: 72px;
  }

  .topbar-inner {
    min-height: 68px;
    gap: .75rem;
    flex-wrap: wrap;
  }

  .brand {
    flex: 1 1 100%;
    margin-bottom: 8px;
  }

  .logo {
    width: 92px;
    height: 56px;
    border-radius: 16px;
  }

  .company {
    font-size: 1.08rem;
  }

  .company-tagline {
    font-size: .8rem;
  }

  .tagline {
    font-size: .75rem;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    padding: .45rem;
    margin-left: auto;
  }

  .menu-toggle span {
    width: 17px;
    height: 2px;
    display: block;
    margin: 2px;
    background: currentColor;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    padding: .8rem 1rem 1rem;
    flex-direction: column;
    align-items: stretch;
    background: var(--brand-dark);
    border-top: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: .75rem;
    font-size: .95rem;
  }

  .hero {
    padding-top: 2.4rem;
    padding-bottom: 2.4rem;
  }

  .hero-text h2 {
    font-size: clamp(2.1rem, 7vw, 2.8rem);
  }

  .hero-image {
    margin-top: .5rem;
  }

  .hero-image img {
    min-height: 260px;
  }

  .cards,
  .gallery,
  .contact-grid,
  .grid {
    grid-template-columns: 1fr;
  }

  .card-media {
    height: 210px;
  }

  .section {
    padding: 2.15rem 0;
  }

  .quote-section {
    padding-top: 1.65rem;
  }
}

@media (max-width:560px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .hero {
    padding-top: 1.85rem;
    padding-bottom: 1.65rem;
  }

  .hero-text h2 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .lead {
    font-size: 1rem;
  }

  .cta {
    width: 100%;
  }

  .quote-inner {
    padding: 1.1rem;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Switch to the compact navigation before the links can compete with the logo. */
@media (max-width:1100px) {
  .topbar-inner {
    min-height: 70px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    padding: .55rem .75rem;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: .45rem;
    font-weight: 700;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: .65rem max(20px, calc((100% - var(--max)) / 2));
    flex-direction: column;
    align-items: stretch;
    background: var(--brand-dark);
    border-top: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 12px 22px rgba(0, 0, 0, .16);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: .7rem .85rem;
    font-size: .95rem;
  }
}
