/* =========================================================
   Touch-Base static site stylesheet
   No dependencies. Plain CSS3, mobile-friendly.
   ========================================================= */

:root {
    --color-dark: #2c3e50;
    --color-dark-2: #34495e;
    --color-accent: #3aaef5;
    --color-accent-hover: #1e94d4;
    --color-text: #555;
    --color-heading: #2c3e50;
    --color-muted: #7f8c8d;
    --color-bg: #ffffff;
    --color-bg-alt: #f7f7f7;
    --color-border: #e5e5e5;
    --max-width: 1150px;
    --pad: 1.5rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); text-decoration: underline; }

h1, h2, h3, h4 {
    color: var(--color-heading);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.6em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.15rem; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* ---------- Header / nav ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.site-logo img { max-height: 60px; width: auto; }

.main-nav ul {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav a {
    color: var(--color-heading);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s, color 0.15s;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.5rem;
    color: var(--color-heading);
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(to bottom, #3d6a8f 0%, #2c3e50 65%, #1a2533 100%);
    color: #fff;
    padding: 3.5rem 0;
}
/* Optional alternate gradient: dark at top, lighter at bottom (the original) */
.hero.hero-classic {
    background: linear-gradient(to bottom, #1a2533 0%, #2c3e50 35%, #3d6a8f 100%);
}
.hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.hero-image img { width: 220px; }
.hero-content {
    text-align: center;
}
.hero-content h1 {
    color: #fff;
    font-size: 2.6rem;
    margin: 0 0 1.5rem;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Slim hero variant for sub-pages (page title left, action buttons right) */
.hero.hero-sub { padding: 2.5rem 0; }
.hero.hero-sub .container {
    justify-content: space-between;
    gap: 1.5rem;
}
.hero.hero-sub h1 {
    color: #fff;
    font-size: 1.9rem;
    margin: 0;
}
.hero.hero-sub .hero-buttons { margin: 0; }
.hero.hero-sub .btn {
    padding: 0.55rem 1.4rem;
    font-size: 0.85rem;
}
@media (max-width: 640px) {
    .hero.hero-sub .container { justify-content: center; text-align: center; }
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: 3px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    text-decoration: none;
}
.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.btn-primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #fff;
    text-decoration: none;
}
.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.btn-secondary:hover {
    background: #fff;
    color: var(--color-heading);
    text-decoration: none;
}
.btn-outline {
    background: transparent;
    color: var(--color-heading);
    border-color: var(--color-heading);
}
.btn-outline:hover {
    background: var(--color-heading);
    color: #fff;
    text-decoration: none;
}

/* ---------- Generic section ---------- */
section { padding: 3.5rem 0; }
section.alt { background: var(--color-bg-alt); }
section.compact { padding: 2rem 0; }
section.tagline { padding: 3rem 0; text-align: center; }
section.tagline h2 { max-width: 800px; margin: 0 auto 1rem; }
section.tagline p { max-width: 800px; margin: 0 auto; color: var(--color-text); }

/* ---------- OS cards ---------- */
.os-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}
.os-card {
    padding: 1.5rem;
}
.os-card img {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.25rem;
}
.os-card h3 { margin-bottom: 0.5rem; }
.os-card h3 a { color: var(--color-heading); }
.os-card h3 a:hover { color: var(--color-accent); text-decoration: none; }
.os-card p { margin: 0; }
.os-card a.desc { color: var(--color-text); }
.os-card a.desc:hover { color: var(--color-accent); text-decoration: none; }

/* ---------- Feature rows ---------- */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-image { order: 2; }
.feature-image {
    text-align: center;
}
.feature-image img {
    max-width: 280px;
    margin: 0 auto;
}
.feature-image img.larger { max-width: 340px; }
.feature-image img.smaller { max-width: 220px; }
.feature-image img.os-logo { max-width: 160px; }
.feature-text h3 { margin-bottom: 0.75rem; }
.feature-text h3 a { color: var(--color-heading); }
.feature-text h3 a:hover { color: var(--color-accent); text-decoration: none; }
.feature-text p { margin: 0 0 1rem; }
.feature-text .read-more {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-heading);
    border: 1px solid var(--color-heading);
    border-radius: 3px;
    transition: background 0.15s, color 0.15s;
}
.feature-text .read-more:hover {
    background: var(--color-heading);
    color: #fff;
    text-decoration: none;
}

/* ---------- About page (sectioned with right sidebar) ---------- */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 3rem;
    align-items: start;
}
.about-content { min-width: 0; }
.about-section { display: none; }
.about-section.is-active { display: block; }
.about-section h2 {
    margin-top: 0;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
}
.about-section h3 { margin-top: 1.5rem; }
.about-section h4 { margin-top: 1.5rem; }

.company-address {
    font-style: normal;
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

.info-list {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0.6rem 1.5rem;
    margin: 1.5rem 0 0;
}
.info-list dt {
    font-weight: 600;
    color: var(--color-heading);
}
.info-list dd { margin: 0; }

.about-nav {
    background: var(--color-bg-alt);
    border-radius: 6px;
    padding: 1.25rem 1rem;
    position: sticky;
    top: 5.5rem;
}
.about-nav h4 {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
    padding: 0 0.5rem;
}
.about-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.about-nav li { margin: 0; }
.about-nav a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 4px;
    color: var(--color-heading);
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.about-nav a:hover {
    background: rgba(0,0,0,0.04);
    color: var(--color-accent);
    text-decoration: none;
}
.about-nav a.is-active {
    background: #fff;
    color: var(--color-accent);
    border-left-color: var(--color-accent);
    font-weight: 600;
}

@media (max-width: 768px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .about-nav {
        position: static;
        order: -1;
    }
    .info-list {
        grid-template-columns: 1fr;
        gap: 0.25rem 0;
    }
    .info-list dt {
        margin-top: 0.6rem;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-dark);
    color: #cbd2d8;
    padding: 3rem 0 0;
}
.site-footer h3 {
    color: #fff;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.6rem;
    margin-bottom: 1.25rem;
    display: inline-block;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
}
.site-footer a { color: #cbd2d8; }
.site-footer a:hover { color: #fff; }
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer ul li {
    padding: 0.3rem 0;
}
.contact-list {
    line-height: 1.7;
}
.contact-list .icon {
    display: inline-block;
    width: 1.4em;
    color: var(--color-accent);
}
.contact-list a { color: #cbd2d8; }

.copyright-bar {
    margin-top: 3rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
    text-align: center;
    color: #95a0aa;
}
.copyright-bar a { color: #95a0aa; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image { order: 2; }
    .hero-image img { width: 160px; margin: 0 auto; }
    .hero-buttons { justify-content: center; }
    .os-cards { grid-template-columns: 1fr; }
    .feature-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
    .feature-row.reverse .feature-image { order: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
    h1 { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2rem; }
    h2 { font-size: 1.4rem; }
    .nav-toggle { display: block; }
    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem var(--pad);
        gap: 0.5rem;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    }
    .main-nav.open ul { display: flex; }
    .site-header { position: relative; }
    section { padding: 2.5rem 0; }
}
