/* iSYS Consulting — site styles
   Brand: iSYS Consulting Design System (technical draftsperson's notebook —
   warm cream paper, blueprint navy, Tekton Pro, dotted-frame motif). */

@font-face {
    font-family: "Tekton Pro";
    src: url("/assets/fonts/TektonPro-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Tekton Pro";
    src: url("/assets/fonts/TektonPro-Obl.otf") format("opentype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Tekton Pro";
    src: url("/assets/fonts/TektonPro-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Tekton Pro";
    src: url("/assets/fonts/TektonPro-BoldObl.otf") format("opentype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Tekton Pro Cond";
    src: url("/assets/fonts/TektonPro-BoldCond.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Tekton Pro Ext";
    src: url("/assets/fonts/TektonPro-BoldExt.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand palette */
    --bg: #FAF7EE;         /* paper — warm cream */
    --bg-alt: #F2EEDF;     /* paper-soft */
    --paper-edge: #E4DFCB;
    --text: #141414;       /* ink */
    --muted: #5a5a5a;      /* ink-muted */
    --brand: #1E3A5F;      /* blueprint */
    --brand-dark: #2F5C8A; /* blueprint-mid */
    --border: #D9D5C5;     /* rule */
    --border-strong: #8A8574;
    --radius: 4px;
    --radius-sm: 2px;
    --on-brand: #FAF7EE;
    --max: 1160px;
    --font: Verdana, Geneva, sans-serif;
    --font-cond: "Tekton Pro Cond", "Tekton Pro", "Arial Narrow", sans-serif;
    --font-ext: "Tekton Pro Ext", "Tekton Pro", sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

h1, h2, h3 {
    font-family: var(--font);
    font-weight: 700;
    letter-spacing: -.01em;
}

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

a {
    color: var(--brand);
}

a:hover {
    color: var(--brand-dark);
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1rem;
}

.skip {
    position: absolute;
    left: -999px;
}

.skip:focus {
    left: 1rem;
    top: 1rem;
    background: var(--bg);
    padding: .5rem 1rem;
    z-index: 10;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    padding-top: .75rem;
    padding-bottom: .75rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    display: block;
    height: 36px;
    width: auto;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    font-family: var(--font-cond);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--text);
    border-bottom-color: var(--text);
}

/* Hero */
.hero {
    background: var(--bg-alt);
    padding: 2rem 0 1.5rem;
}

.hero-image {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.hero-image img {
    display: block;
    width: 80%;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.hero h1 {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: normal;
    color: var(--muted);
    max-width: 40rem;
    margin: 0;
}

.btn {
    display: inline-block;
    padding: .75rem 1.4rem;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: var(--on-brand);
    text-decoration: none;
    border: 1px solid var(--brand);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: background .15s ease, border-color .15s ease;
}

.btn:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: var(--on-brand);
}

.btn:active {
    transform: translateY(1px);
}

.btn-ghost {
    background: transparent;
    color: var(--brand);
}

.btn-ghost:hover {
    background: var(--brand);
    color: var(--on-brand);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

/* Sections */
section {
    padding: 2.25rem 0;
}

section h2 {
    font-size: 1.75rem;
    margin: 0 0 1.25rem;
}

.page-title {
    padding: 3rem 0 1rem;
}

.page-title h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: 0 0 .5rem;
}

.page-title p {
    color: var(--muted);
    margin: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1rem;
}

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
    background: #FFFFFF;
    box-shadow: 0 1px 0 0 var(--paper-edge);
}

.card h3 {
    margin: 0 0 .5rem;
    font-size: 1.125rem;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.alt {
    background: var(--bg-alt);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 760px) {
    .two-col {
        grid-template-columns: 1fr 1fr;
    }
}

/* The iSYS dotted frame — lifted from the logo's frame */
.frame-dotted {
    padding: 1.25rem;
    background-image:
        linear-gradient(to right, var(--text) 33%, transparent 0%),
        linear-gradient(to right, var(--text) 33%, transparent 0%),
        linear-gradient(to bottom, var(--text) 33%, transparent 0%),
        linear-gradient(to bottom, var(--text) 33%, transparent 0%);
    background-position: top, bottom, left, right;
    background-size: 6px 2px, 6px 2px, 2px 6px, 2px 6px;
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
}

/* Forms */
form {
    display: grid;
    gap: 1rem;
}

label {
    font-weight: 700;
    display: block;
    margin-bottom: .3rem;
}

input,
textarea {
    width: 100%;
    padding: .7rem .8rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font: inherit;
    color: var(--text);
    background: #FFFFFF;
}

input:focus,
textarea:focus {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
}

textarea {
    min-height: 9rem;
    resize: vertical;
}

.hp {
    position: absolute;
    left: -9999px;
}

address {
    font-style: normal;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.contact-list strong {
    display: block;
}

/* Footer */
.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    color: var(--muted);
    font-size: .95rem;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer a {
    color: var(--muted);
}

.mt {
    margin-top: 2rem;
}

.muted {
    color: var(--muted);
}
