/**
 * body_style_general.css
 * Global styles: reset, design tokens, typography, component base styles.
 * Rules here apply to ALL screen sizes.
 * Desktop-specific layout overrides → body_style_desktop.css
 * Mobile/tablet layout overrides    → body_style_mobile.css
 */

/* =========================
   RESET & BOX MODEL
========================= */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   DESIGN TOKENS
   Shared across all breakpoints.
   Layout-sensitive values (padding, font sizes that scale)
   are overridden per breakpoint in desktop/mobile files.
========================= */

:root {
    /* Brand colours */
    --color-primary:       #1a2e5a;
    --color-primary-mid:   #2a6db5;
    --color-primary-light: #eef4fb;

    /* Neutral shades */
    --color-bg-white:  #ffffff;
    --color-bg-light:  #f9fafb;
    --color-border:    #e5e7eb;
    --color-text:      #333333;
    --color-muted:     #6b7280;
    --color-dark:      #1a1a1a;

    /* Typography */
    --font-body:   "Segoe UI", Arial, sans-serif;
    --fs-xs:   12px;
    --fs-sm:   14px;
    --fs-base: 16px;
    --fs-md:   17px;   /* body text – slightly reduced for readability on small screens */
    --fs-lg:   20px;
    --fs-xl:   24px;
    --fs-2xl:  28px;   /* headings – base value; desktop overrides to 32px */
    --fs-3xl:  36px;

    /* Radius & shadow */
    --radius-sm:  8px;
    --radius-md:  12px;
    --shadow-card: 0 8px 32px rgba(26,46,90,0.10);

    /* Layout – mobile-first base values */
    --section-v-padding: 48px;     /* vertical section padding */
    --inner-h-padding:   20px;     /* horizontal inner padding */
    --inner-max-width:   1100px;
    --header-height:     70px;     /* used for content-container offset */
}

/* =========================
   GLOBAL BODY
========================= */

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-bg-white);
    /* Prevent horizontal overflow on narrow viewports */
    overflow-x: hidden;
}

/* =========================
   HEADING SCALE
   Base values – desktop overrides larger sizes.
========================= */

h1 {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.2;
}

h2 {
    font-size: var(--fs-2xl);
    font-weight: 650;
    color: var(--color-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

h3 {
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
}

h4 {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

p {
    font-size: var(--fs-md);
    line-height: 1.75;
    margin-bottom: 16px;
    color: var(--color-text);
    max-width: 100ch;
}

a {
    color: var(--color-primary-mid);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-primary);
}

/* =========================
   LAYOUT WRAPPERS
========================= */

/* Main content area – offset by fixed header */
.content-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-height);
}

/* Thin white band that masks content scrolling under fixed header */
.header-separator {
    position: fixed;
    top: var(--header-height);
    height: 8px;
    width: 100%;
    z-index: 5;
    pointer-events: none;
    background: var(--color-bg-white);
}

/* =========================
   SECTION STRUCTURE
========================= */

.ks-section {
    padding: var(--section-v-padding) 0;
    border-bottom: 1px solid #f0f0f0;
}

.ks-section:last-child {
    border-bottom: none;
}

/* Centred inner wrapper */
.ks-section-inner {
    max-width: var(--inner-max-width);
    margin: 0 auto;
    padding: 0 var(--inner-h-padding);
}

/* Bottom margin between direct block children */
.ks-section-inner > div {
    margin-bottom: 28px;
}

/* =========================
   TYPOGRAPHY HELPERS
========================= */

.section-title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: var(--fs-base);
    color: var(--color-muted);
    margin-bottom: 40px;
    max-width: 620px;
    line-height: 1.7;
}

.ks-p {
    font-size: var(--fs-md);
    line-height: 1.75;
    margin-bottom: 16px;
    color: var(--color-text);
    max-width: 100ch;
}

.ks-intro {
    max-width: 780px;
}

/* =========================
   GRID LAYOUTS
   Default: single column (mobile-first).
   Desktop expands to multi-column via body_style_desktop.css.
========================= */

.ks-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}

.ks-three-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* =========================
   CARDS
========================= */

.ks-card {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.ks-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
}

.ks-card .card-icon {
    margin-bottom: 16px;
    color: var(--color-primary-mid);
    display: flex;
    align-items: center;
}

.ks-card h3 {
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.ks-card p {
    font-size: var(--fs-sm);
    line-height: 1.75;
    color: #555;
    margin-bottom: 0;
}

/* Highlighted blue gradient variant */
.ks-card-highlight {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
    color: var(--color-bg-white);
    border: none;
}

.ks-card-highlight h3,
.ks-card-highlight .card-icon {
    color: var(--color-bg-white);
}

.ks-card-highlight p {
    color: rgba(255,255,255,0.85);
}

/* =========================
   PROCESS STEPS
========================= */

.ks-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ks-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ks-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-mid));
    color: var(--color-bg-white);
    font-size: var(--fs-base);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ks-step-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.ks-step-content p {
    font-size: var(--fs-sm);
    line-height: 1.75;
    color: #555;
    margin-bottom: 0;
}

/* =========================
   HIGHLIGHT / QUOTE BOX
========================= */

.ks-highlight-box {
    background: var(--color-primary-light);
    border-left: 4px solid var(--color-primary-mid);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px 24px;
    margin: 24px 0;
}

.ks-highlight-box p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--color-primary);
    font-style: italic;
    max-width: 60ch;
    margin-bottom: 0;
}

/* =========================
   SPECS / FACTS TABLE
========================= */

.ks-specs {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
    margin: 20px 0;
}

.ks-specs tr {
    border-bottom: 1px solid var(--color-border);
}

.ks-specs td {
    padding: 10px 14px;
    color: #444;
    line-height: 1.6;
    vertical-align: top;
}

/* Left column: label */
.ks-specs td:first-child {
    font-weight: 600;
    color: var(--color-primary);
    width: 42%;
    background: var(--color-bg-light);
}

/* =========================
   BADGE / TAG
========================= */

.ks-badge {
    display: inline-block;
    background: var(--color-primary-light);
    color: var(--color-primary-mid);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 20px;
    padding: 4px 12px;
    margin: 4px 4px 4px 0;
}

.ks-badge-dark {
    background: var(--color-primary);
    color: var(--color-bg-white);
}

/* =========================
   CTA SECTION
========================= */

.ks-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
    color: var(--color-bg-white);
    padding: 48px 20px;
    text-align: center;
}

.ks-cta h2 {
    font-size: var(--fs-2xl);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-bg-white);
}

.ks-cta p {
    font-size: var(--fs-base);
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* CTA button group: stack on mobile */
.ks-cta .ks-btn,
.ks-cta .ks-btn-outline {
    display: block;
    width: fit-content;
    margin: 0 auto 12px;
}

/* =========================
   BUTTONS
========================= */

.ks-btn {
    display: inline-block;
    background: var(--color-bg-white);
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    text-align: center;
    white-space: nowrap;
}

.ks-btn:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    color: var(--color-primary);
}

/* Outline variant (used on dark backgrounds) */
.ks-btn-outline {
    background: transparent;
    color: var(--color-bg-white);
    border: 2px solid rgba(255,255,255,0.7);
    margin-left: 0;   /* reset: desktop adds margin, mobile stacks */
}

.ks-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--color-bg-white);
    color: var(--color-bg-white);
}

/* Dark (navy) button */
.ks-btn-dark {
    background: var(--color-primary);
    color: var(--color-bg-white);
}

.ks-btn-dark:hover {
    background: var(--color-primary-mid);
    color: var(--color-bg-white);
}

/* =========================
   HERO SECTION BUTTON ROW
   The hero uses an inline flex div for buttons.
   On mobile they stack; desktop keeps them inline.
========================= */

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* =========================
   DIVIDER
========================= */

.ks-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
    margin: 40px 0;
}

/* =========================
   CONTACT FORM
========================= */

.contact-center {
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Two inputs side-by-side on desktop; single column on mobile */
.form-row {
    display: grid;
    grid-template-columns: 1fr;   /* mobile-first: single column */
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--fs-base);   /* 16px prevents iOS auto-zoom */
    color: #222;
    background: #fafafa;
    transition: border-color 0.2s;
    outline: none;
    width: 100%;
    -webkit-appearance: none;    /* consistent styling on iOS */
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-primary-mid);
    background: var(--color-bg-white);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

/* Submit button: full-width on mobile */
.form-submit {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-mid));
    color: var(--color-bg-white);
    font-size: 16px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: opacity 0.2s, transform 0.2s;
    text-align: center;
}

.form-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Contact info block */
.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    background: var(--color-primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-primary-mid);
}

.contact-info-item--person {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.contact-person-photo--lg {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--color-primary-light);
}

.contact-info-text h4 {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contact-info-text p,
.contact-info-text a {
    font-size: var(--fs-base);
    color: var(--color-primary);
    text-decoration: none;
    line-height: 1.5;
    margin-bottom: 0;
}

.contact-info-text a:hover {
    color: var(--color-primary-mid);
}

/* =========================
   JOB CARDS & LISTINGS
========================= */

.job-list {
    margin-left: 20px;
    padding-left: 16px;
    font-size: var(--fs-sm);
    line-height: 1.8;
    color: #555;
}

.job-list li {
    margin-bottom: 6px;
}

.job-card {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s;
}

.job-card:hover {
    box-shadow: var(--shadow-card);
}

.job-card .job-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.job-card h3 {
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--color-primary);
}

.job-card .job-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.job-card p {
    font-size: var(--fs-sm);
    line-height: 1.75;
    color: #555;
    margin-bottom: 16px;
}

.job-card .job-apply {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-bg-white);
    font-size: var(--fs-sm);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.2s;
}

.job-card .job-apply:hover {
    background: var(--color-primary-mid);
    color: var(--color-bg-white);
}
