/* ==========================================================================
   base.css
   Design values (CSS variables), font, reset, typography and the small
   shared components used on every page: container, section spacing, label,
   section heading, buttons, links, check list, form fields, helpers.
   Class prefix: oc-  (BEM: oc-block__element--modifier)
   ========================================================================== */

/* ---------- Font (local copy, see docs/CREDITS.md) ---------- */
@font-face {
    font-family: "Outfit";
    src: url("../vendor/outfit/outfit-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ---------- Design values ---------- */
:root {
    /* Colours */
    --oc-blue: #0e47a1;
    --oc-blue-dark: #0a3678;
    --oc-blue-soft: #e7edf6;
    --oc-dark: #00060f;
    --oc-text: #5a5d63;
    --oc-light: #f8f9fa;
    --oc-white: #ffffff;
    --oc-line: #e5e6e7;
    --oc-error: #c0261b;

    /* Type */
    --oc-font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
    --oc-fs-body: 1rem;          /* 16px */
    --oc-fs-h1: clamp(2.5rem, 5vw, 4rem);       /* 40 to 64px */
    --oc-fs-h2: clamp(2rem, 3.4vw, 2.75rem);    /* 32 to 44px */
    --oc-fs-h3: 1.25rem;         /* 20px */

    /* Spacing and shape */
    --oc-section-space: clamp(4.5rem, 9vw, 8.125rem);  /* 72 to 130px */
    --oc-gutter: 24px;
    --oc-radius: 7px;
    --oc-radius-pill: 100px;
    --oc-shadow: 0 10px 40px rgba(0, 6, 15, 0.08);
    --oc-ease: 0.3s ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--oc-font);
    font-size: var(--oc-fs-body);
    line-height: 1.5;
    color: var(--oc-text);
    background: var(--oc-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, p, ul, ol, figure, blockquote {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

h1, h2, h3, h4 {
    color: var(--oc-dark);
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--oc-ease);
}

a:hover {
    color: var(--oc-blue);
}

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

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

/* ---------- Scrollbars: thin, on-brand (global rule) ---------- */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--oc-blue) var(--oc-blue-soft);
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: var(--oc-blue-soft);
}

::-webkit-scrollbar-thumb {
    background: var(--oc-blue);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--oc-blue-dark);
}

/* ---------- Layout helpers ---------- */
.oc-container {
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 12px;
}

@media (max-width: 1399px) {
    .oc-container { max-width: 1140px; }
}

@media (max-width: 1199px) {
    .oc-container { max-width: 960px; }
}

@media (max-width: 991px) {
    .oc-container { max-width: 720px; }
}

@media (max-width: 767px) {
    .oc-container { max-width: 540px; padding-inline: 15px; }
}

.oc-section {
    padding-block: var(--oc-section-space);
}

.oc-section--light {
    background: var(--oc-light);
}

.oc-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Skip link: hidden until focused with the keyboard */
.oc-skip-link {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 1000;
    padding: 10px 18px;
    background: var(--oc-blue);
    color: var(--oc-white);
    border-radius: var(--oc-radius);
}

.oc-skip-link:focus {
    top: 16px;
    color: var(--oc-white);
}

/* ---------- Small label above headings ("| Our Services") ---------- */
.oc-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 11px;
    background: var(--oc-blue-soft);
    color: var(--oc-blue);
    border-radius: var(--oc-radius-pill);
    font-size: 1rem;
    line-height: 1.6;
}

.oc-label::before {
    content: "";
    width: 2px;
    height: 14px;
    background: currentColor;
}

/* ---------- Section heading (label + title + intro, centred) ---------- */
.oc-section-head {
    max-width: 860px;
    margin: 0 auto 60px;
    text-align: center;
}

.oc-section-head__title {
    margin-top: 16px;
    font-size: var(--oc-fs-h2);
}

/* Intro stays narrow (about two lines) while the title can run wider */
.oc-section-head__intro {
    max-width: 560px;
    margin: 16px auto 0;
}

.oc-section-head--dark .oc-label {
    background: rgba(255, 255, 255, 0.1);
    color: var(--oc-white);
}

.oc-section-head--dark .oc-section-head__title {
    color: var(--oc-white);
}

.oc-section-head--dark .oc-section-head__intro {
    color: #b8bcc4;
}

/* ---------- Buttons: blue pill with round arrow ---------- */
.oc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 8px 8px 8px 16px;
    border: 0;
    border-radius: var(--oc-radius-pill);
    background: var(--oc-blue);
    color: var(--oc-white);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: background var(--oc-ease), color var(--oc-ease);
}

.oc-btn:hover {
    background: var(--oc-dark);
    color: var(--oc-white);
}

.oc-btn__icon {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    transition: transform var(--oc-ease);
}

.oc-btn:hover .oc-btn__icon {
    transform: translateX(3px);
}

.oc-btn--light {
    background: var(--oc-white);
    color: var(--oc-blue);
}

.oc-btn--light .oc-btn__icon {
    background: var(--oc-blue-soft);
}

.oc-btn--light:hover {
    background: var(--oc-dark);
    color: var(--oc-white);
}

.oc-btn--light:hover .oc-btn__icon {
    background: rgba(255, 255, 255, 0.2);
}

.oc-btn--block {
    width: 100%;
}

/* Text link with a small arrow ("Read More >") */
.oc-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--oc-dark);
    font-weight: 600;
}

.oc-link-arrow i {
    font-size: 0.85em;
    transition: transform var(--oc-ease);
}

.oc-link-arrow:hover i {
    transform: translateX(3px);
}

/* ---------- Check list (two columns) ---------- */
.oc-check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
}

.oc-check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--oc-dark);
    font-weight: 500;
}

.oc-check-list i {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--oc-blue-soft);
    color: var(--oc-blue);
    font-size: 9px;
}

@media (max-width: 575px) {
    .oc-check-list { grid-template-columns: 1fr; }
}

/* ---------- Form fields ---------- */
.oc-input {
    width: 100%;
    min-height: 52px;
    padding: 12px 20px;
    border: 1px solid var(--oc-line);
    border-radius: 4px;
    background: var(--oc-white);
    color: var(--oc-dark);
    transition: border-color var(--oc-ease);
}

.oc-input::placeholder {
    color: var(--oc-text);
}

.oc-input:focus {
    border-color: var(--oc-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 71, 161, 0.15);
}

.oc-select {
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a5d63' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    color: var(--oc-text);
    cursor: pointer;
}

.oc-textarea {
    min-height: 140px;
    resize: vertical;
}

.oc-input.has-error {
    border-color: var(--oc-error);
}

.oc-field-error {
    margin-top: 6px;
    color: var(--oc-error);
    font-size: 0.875rem;
}

.oc-form-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 4px;
    background: var(--oc-blue-soft);
    color: var(--oc-blue);
    font-weight: 500;
}

/* Honeypot field: kept out of sight and out of the tab order */
.oc-hp {
    position: absolute;
    left: -9999px;
}

/* ---------- Slider dots (shared by sliders) ---------- */
.oc-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
}

.oc-dots .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 !important;
    background: #cfdaec;
    opacity: 1;
    transition: all var(--oc-ease);
}

.oc-dots .swiper-pagination-bullet-active {
    width: 24px;
    height: 24px;
    background: var(--oc-blue);
    border: 7px solid var(--oc-blue-soft);
    box-sizing: border-box;
}

/* ---------- Preloader ---------- */
.oc-preloader {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    background: var(--oc-white);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.oc-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.oc-preloader__spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--oc-blue-soft);
    border-top-color: var(--oc-blue);
    border-radius: 50%;
    animation: oc-spin 0.8s linear infinite;
}

@keyframes oc-spin {
    to { transform: rotate(360deg); }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
