/* smartBYTES — base styles
   Palette derived from brand assets (see CLAUDE.md):
   slate #4A5568, steel blue #7B96B8, light bg #FAFAFA */

:root {
    --slate: #4A5568;
    --slate-dark: #2D3748;
    --steel-blue: #7B96B8;
    --steel-blue-dark: #5F7A9C;
    --bg-light: #FAFAFA;
    --bg-white: #FFFFFF;
    --border: #E2E5EA;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max-width: 1160px;
    --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--slate-dark);
    background: var(--bg-light);
    line-height: 1.6;
}

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

a { color: var(--steel-blue-dark); text-decoration: none; }
a:hover { color: var(--slate-dark); }

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

h1, h2, h3, h4 {
    color: var(--slate-dark);
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; }

section { padding: 72px 0; }

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--steel-blue-dark);
    margin-bottom: 8px;
    display: inline-block;
}

.section-header {
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-header.align-left {
    margin-left: 0;
    text-align: left;
}

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

/* Buttons */

.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

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

.btn-primary {
    background: var(--steel-blue-dark);
    color: #fff;
}
.btn-primary:hover { background: var(--slate-dark); color: #fff; }

.btn-secondary {
    background: transparent;
    border-color: var(--border);
    color: var(--slate-dark);
}
.btn-secondary:hover { border-color: var(--steel-blue-dark); color: var(--steel-blue-dark); }

.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* Header / nav */

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand-logo { height: 32px; width: auto; }

.primary-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    color: var(--slate-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.primary-nav a:hover,
.primary-nav a.active {
    color: var(--steel-blue-dark);
    border-bottom-color: var(--steel-blue-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--slate-dark);
    border-radius: 2px;
}

/* Hero */

.hero {
    background: var(--bg-white);
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -120px;
    transform: translateY(-50%);
    width: 480px;
    height: 480px;
    background: url('/assets/img/logo/WATERMARKi_GREY.png') no-repeat center / contain;
    opacity: 0.08;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: 680px;
}

.hero h1 { margin-bottom: 20px; }
.hero p.lede {
    font-size: 1.15rem;
    color: var(--slate);
    margin-bottom: 32px;
}

/* Circuit motif divider */

.circuit-divider {
    height: 4px;
    background-image: radial-gradient(circle, var(--steel-blue) 2px, transparent 2px);
    background-size: 24px 4px;
    background-repeat: repeat-x;
    background-position: center;
    opacity: 0.6;
}

/* Cards / grids */

.grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(74, 85, 104, 0.1);
    transform: translateY(-2px);
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(123, 150, 184, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--steel-blue-dark);
}

.card a.card-link {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Alternating section backgrounds */

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

/* Service section (services.php) */

.service-block {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    padding: 56px 0;
    border-bottom: 1px solid var(--border);
}

.service-block:last-of-type { border-bottom: none; }

.service-block .service-label {
    color: var(--steel-blue-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
}

.service-block ul { padding-left: 20px; margin: 0 0 20px; }
.service-block li { margin-bottom: 8px; }

/* CTA banner */

.cta-banner {
    background: var(--slate-dark);
    color: #fff;
    text-align: center;
    border-radius: var(--radius);
    padding: 56px 32px;
}

.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.8); }

/* About page */

.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-story img { border-radius: var(--radius); opacity: 0.9; }

/* App development / case study */

.case-study {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.case-study .badge {
    display: inline-block;
    background: rgba(123, 150, 184, 0.15);
    color: var(--steel-blue-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.feature-list { list-style: none; padding: 0; margin: 0 0 24px; }
.feature-list li {
    padding-left: 26px;
    position: relative;
    margin-bottom: 14px;
}
.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--steel-blue-dark);
}

.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tech-tags span {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8rem;
    color: var(--slate);
}

/* Forms */

.form-field { margin-bottom: 20px; }
.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}
.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-white);
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--steel-blue-dark);
}

.contact-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 48px;
}

.contact-info-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    align-self: start;
}

.form-notice {
    background: rgba(123, 150, 184, 0.12);
    border: 1px solid var(--steel-blue);
    color: var(--slate-dark);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
}

/* Footer */

.site-footer {
    background: var(--slate-dark);
    color: rgba(255,255,255,0.75);
    margin-top: 72px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    padding: 48px 24px 32px;
}

.footer-logo { height: 26px; margin-bottom: 12px; }

.footer-nav ul, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a, .footer-contact a { color: rgba(255,255,255,0.75); }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 24px;
    font-size: 0.85rem;
}

/* Responsive */

@media (max-width: 860px) {
    .service-block { grid-template-columns: 1fr; }
    .about-story { grid-template-columns: 1fr; }
    .case-study { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }

    .primary-nav {
        display: none;
        width: 100%;
    }

    .primary-nav.open { display: block; }

    .primary-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
    }

    .primary-nav li { border-top: 1px solid var(--border); }
    .primary-nav a { display: block; padding: 14px 4px; }

    .header-inner { flex-wrap: wrap; }

    .hero { padding: 56px 0; }
    section { padding: 48px 0; }
}
