/* Single site-wide system font, without remote font loading. */
body,
button,
input,
textarea,
select {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Creative quality-framework enhancement */
.quality-label {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.q-card {
  border: 1px solid rgba(11, 95, 204, .08);
  overflow: hidden;
}

.q-card::after {
  position: absolute;
  top: 12px;
  right: 20px;
  color: var(--blue);
  content: attr(data-num);
  font-size: 70px;
  font-weight: 800;
  line-height: 1;
  opacity: .07;
}

.q-card h3,
.q-card p { position: relative; z-index: 1; }

/* Professional SVG icons for each quality pillar. */
.q-dot {
  font-size: 0;
  background-color: var(--blue);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 17px;
}

.q-item:nth-child(1) .q-dot {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5c0 4.7 3 8.9 7 10 4-1.1 7-5.3 7-10V6l-7-3Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

.q-item:nth-child(2) .q-dot {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v5l-4 7a3.5 3.5 0 0 0 3 5h6a3.5 3.5 0 0 0 3-5l-4-7V3'/%3E%3Cpath d='M8.5 16h7'/%3E%3C/svg%3E");
}

.q-item:nth-child(3) .q-dot {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='m8.5 12 2.2 2.2L15.8 9'/%3E%3C/svg%3E");
}

.q-item:nth-child(4) .q-dot {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16v11H4z'/%3E%3Cpath d='M8 7V4h8v3M9 12h6'/%3E%3C/svg%3E");
}

.q-item:nth-child(5) .q-dot {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17h9'/%3E%3Cpath d='M14 7h3l3 4v6h-2a2 2 0 0 1-4 0H9a2 2 0 0 1-4 0H3V7h11Z'/%3E%3Ccircle cx='7' cy='17' r='2'/%3E%3Ccircle cx='16' cy='17' r='2'/%3E%3C/svg%3E");
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.show { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Homepage section sequence */
#main-content { display: flex; flex-direction: column; }
#home { order: 1; }
#about { order: 2; }
#products { order: 3; }
#purpose { order: 4; }
.creative-tabs { order: 5; }
#specialization { order: 6; }
#quality { order: 7; }
#why-us { order: 8; }
.core-section { order: 9; }
.missionvision-section { order: 10; }
#contact { order: 11; }

/* Keep the supplied Delviora artwork in its original colours in the footer. */
.brand--footer { filter: none; }
.design-credit { color: #b9d9f8; }

/* The supplied video belongs to the second hero slide only. */
.slide-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.slide-item .video-overlay { z-index: 1; }
.slide-item .slide-content { position: relative; z-index: 2; }

/* Contact form */
.contact-form { display: grid; gap: 14px; margin: 24px 0 28px; }
.form-row { display: grid; gap: 14px; }
.form-field { display: grid; gap: 6px; }
.form-field label { color: var(--navy); font-size: .84rem; font-weight: 750; }
.form-field input,
.form-field textarea { width: 100%; padding: 11px 12px; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 7px; font: inherit; line-height: 1.5; }
.form-field textarea { min-height: 132px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(11,95,204,.14); }
.contact-submit { justify-self: start; min-height: 46px; padding: 11px 18px; color: #fff; background: var(--navy); border: 1px solid var(--navy); border-radius: 7px; font-weight: 800; cursor: pointer; transition: .2s ease; }
.contact-submit:hover { background: var(--green); border-color: var(--green); transform: translateY(-1px); }
.form-note { margin: -5px 0 0; color: var(--muted); font-size: .76rem; }
.form-status { margin: 18px 0 0; padding: 11px 13px; border-radius: 7px; font-size: .88rem; font-weight: 650; }
.form-status--success { color: #14532d; background: #ecfdf3; border: 1px solid #86efac; }
.form-status--error { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

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

.contact-open-button { min-height: 46px; padding: 11px 18px; margin-top: 4px; color: #fff; background: var(--navy); border: 1px solid var(--navy); border-radius: 7px; font-weight: 800; cursor: pointer; transition: .2s ease; }
.contact-open-button:hover { background: var(--green); border-color: var(--green); transform: translateY(-1px); }
.contact-modal { width: min(640px, calc(100% - 32px)); max-height: min(760px, calc(100svh - 32px)); padding: 0; color: var(--text); background: #fff; border: 0; border-radius: 12px; box-shadow: 0 24px 80px rgba(3, 25, 62, .32); overflow: auto; }
.contact-modal::backdrop { background: rgba(3, 22, 52, .7); backdrop-filter: blur(2px); }
.contact-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px 28px 18px; color: #fff; background: var(--navy); }
.contact-modal-header h3 { margin: 0; color: #fff; font-size: 1.52rem; }
.modal-kicker { margin: 0 0 4px; color: #b9d9f8; font-size: .71rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-modal-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.contact-modal-close:hover { background: rgba(255,255,255,.12); }
.modal-intro { margin: 22px 28px 0; color: var(--muted); font-size: .9rem; }
.contact-modal .contact-form { margin: 18px 28px 28px; }

@media (max-width: 599px) { .contact-modal-header { padding: 21px 20px 16px; } .modal-intro { margin: 18px 20px 0; } .contact-modal .contact-form { margin: 16px 20px 22px; } }

.legal-page { padding: 132px 20px 80px; background: #f7fbff; }
.legal-page__wrap { width: min(860px, 100%); margin: 0 auto; padding: clamp(28px, 5vw, 56px); background: #fff; border: 1px solid #d9e7f1; border-radius: 16px; box-shadow: 0 12px 36px rgba(10, 46, 111, .08); }
.legal-page__label { margin-bottom: 10px; color: #5b8e24; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.legal-page h1 { margin-bottom: 14px; color: #123c57; font-size: clamp(2rem, 5vw, 3rem); }
.legal-page h2 { margin: 38px 0 10px; color: #123c57; font-size: clamp(1.25rem, 2.8vw, 1.65rem); }
.legal-page p { max-width: 72ch; margin-bottom: 0; color: #41596a; }
.legal-page__intro { font-size: 1.1rem; line-height: 1.7; }
.legal-page a { color: #0b5fcc; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 599px) { .legal-page { padding: 104px 16px 48px; } .legal-page__wrap { padding: 26px 20px; border-radius: 12px; } }

@media (max-width: 599px) {
  .delviora-spec-cat { padding-inline: 16px; }
  .spec-cat-grid, .spec-cat-card, .spec-left { min-width: 0; }
  .spec-cat-card { gap: 12px; padding: 20px; }
  .spec-left h3, .spec-list li { overflow-wrap: anywhere; }
  .spec-icon { width: 92px; }
}

/* Contact details first, then the form trigger. */
.contact-left { display: flex; flex-direction: column; }
.contact-left .contact-grid { order: 2; }
.contact-left .contact-open-button { order: 3; align-self: flex-start; margin-top: 18px; }
