/* =============================================
   Tecken1 Theme — Main Stylesheet
   ============================================= */

:root {
    --color-bg:          #F8FAFC;
    --color-white:       #FFFFFF;
    --color-text:        #334155;
    --color-heading:     #0F172A;
    --color-muted:       #64748B;
    --color-primary:     #29516d;
    --color-primary-dk:  #1e3d52;
    --color-border:      #E2E8F0;
    --color-footer-bg:   #0F172A;
    --color-footer-text: #94A3B8;

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,.07);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.08);

    --header-h:    68px;
    --max-w:       1120px;
    --section-py:  5rem;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    line-height: 1.25;
    font-weight: 600;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary-dk); }

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

/* --- Layout --- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.site-logo {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-heading);
    text-transform: uppercase;
    letter-spacing: .1em;
}
.site-logo:hover { color: var(--color-primary); }

.nav-menu { display: flex; align-items: center; }

.nav-list {
    list-style: none;
    display: flex;
    gap: .25rem;
}

.nav-list a {
    display: block;
    color: var(--color-text);
    font-size: .8125rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .5rem .75rem;
    border-radius: var(--radius-sm);
    transition: color .2s, background .2s;
}
.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
    color: var(--color-heading);
    background: var(--color-bg);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-heading);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

/* --- Sections --- */
.section { padding: var(--section-py) 0; }

.section-label {
    display: block;
    text-align: center;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: .75rem;
}

.section-intro {
    text-align: center;
    color: var(--color-muted);
    font-size: 1.0625rem;
    max-width: 520px;
    margin: 0 auto 3rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: .875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: .9375rem;
    transition: all .2s ease;
    cursor: pointer;
    border: none;
    line-height: 1;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(41,81,109,.25);
}
.btn-primary:hover {
    background: var(--color-primary-dk);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(41,81,109,.35);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

/* --- Hero --- */
.hero {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    background: var(--color-white);
    text-align: center;
    padding: 4rem 0;
}

.hero-content {
    max-width: 680px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 1.25rem;
    color: var(--color-heading);
}

.hero-subtitle {
    font-size: 1.1875rem;
    color: var(--color-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.6;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Services --- */
.section-services { background: var(--color-bg); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: box-shadow .2s, transform .2s;
}
.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(41,81,109,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
}

.service-card h3 { margin-bottom: .625rem; font-size: 1.0625rem; }
.service-card p  { color: var(--color-muted); font-size: .9375rem; }

/* --- Projects --- */
.section-projects { background: var(--color-white); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: box-shadow .2s, transform .25s;
}
.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.project-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-info { padding: 1.5rem; }
.project-info h3 { margin-bottom: .5rem; }
.project-info p  { color: var(--color-muted); font-size: .9375rem; }

/* --- CTA Section --- */
.section-cta {
    background: var(--color-heading);
    color: var(--color-footer-text);
    text-align: center;
    padding: var(--section-py) 0;
}

.section-cta .section-label { color: rgba(255,255,255,.4); }
.section-cta .section-title { color: #fff; }
.section-cta .section-intro { color: var(--color-footer-text); max-width: 480px; margin-bottom: 2.5rem; }

.section-cta .btn-primary {
    background: #fff;
    color: var(--color-heading);
    box-shadow: none;
}
.section-cta .btn-primary:hover {
    background: var(--color-bg);
    color: var(--color-heading);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* --- Footer --- */
.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 3rem 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    text-align: center;
}

.footer-brand {
    font-weight: 600;
    font-size: .9375rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #fff;
    margin: 0;
}

.footer-info { font-size: .875rem; margin: 0; }
.footer-info a { color: var(--color-footer-text); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.footer-info a:hover { color: #fff; border-bottom-color: #fff; }

.footer-menu { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-menu a { color: var(--color-footer-text); font-size: .875rem; }
.footer-menu a:hover { color: #fff; }

.footer-copy { font-size: .8125rem; color: #475569; margin: .25rem 0 0; }

/* --- WordPress Alignment & Utilities --- */
.alignleft  { float: left; margin: .5rem 1.5rem .5rem 0; }
.alignright { float: right; margin: .5rem 0 .5rem 1.5rem; }
.aligncenter, .alignfull .alignwide { display: block; margin: 0 auto; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .875rem; color: var(--color-muted); text-align: center; margin-top: .5rem; }

.screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
.screen-reader-text:focus {
    clip: auto;
    height: auto;
    left: .5rem;
    overflow: visible;
    top: .5rem;
    width: auto;
    background: var(--color-white);
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 9999;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    :root { --section-py: 3rem; }

    .nav-toggle { display: flex; }

    .nav-menu {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-border);
        padding: 1rem 1.5rem 1.5rem;
        display: none;
    }
    .nav-menu.is-open { display: block; }

    .nav-list { flex-direction: column; gap: 0; }
    .nav-list a {
        padding: .75rem 0;
        border-radius: 0;
        border-bottom: 1px solid var(--color-border);
        font-size: .875rem;
    }
    .nav-list li:last-child a { border-bottom: none; }

    .services-grid,
    .projects-grid { grid-template-columns: 1fr; }

    .footer-menu { flex-direction: column; align-items: center; gap: .75rem; }
}
