/*
Theme Name: TechEffective
Author: TechEffective
Description: Custom WordPress theme for TechEffective.org.
Version: 0.1.1
Text Domain: techeffective
*/


/*
 * TechEffective Stylesheet Architecture
 *
 * style.css
 *   Core theme styles:
 *   design tokens, global document styles, typography,
 *   content widths, standard WordPress content, and
 *   other site-wide foundations.
 *
 * assets/css/shell.css
 *   Persistent site chrome:
 *   header, branding, navigation, mobile navigation,
 *   skip link, and footer.
 *
 * assets/css/components.css
 *   Reusable interface components and layout patterns:
 *   buttons, text links, CTA sections, feature bands,
 *   inset panels, cards, split layouts, feature grids,
 *   accordions, and related responsive behavior.
 *
 * assets/css/pages/
 *   Page-specific compositions and overrides.
 *   Examples:
 *   - home.css
 *   - services.css
 *   - why-tech-effective.css
 *   - about.css
 *   - contact.css
 *
 * Keep reusable behavior in components.css.
 * Keep page-specific composition in the relevant page file.
 * Promote repeated page patterns into components.css when
 * they become genuinely reusable.
 */


/*
 * Responsive breakpoints
 *
 * Mobile-first layout:
 * 0–599px: mobile
 * 600–899px: tablet
 * 900–1199px: desktop
 * 1200px+: wide desktop
 *
 * Prefer fluid sizing with clamp() where possible.
 * Use media queries only when the layout itself needs to change.
 */

:root {
    /*
     * Brand colors
     */

    --te-color-primary: #0357A1;
    --te-color-primary-dark: #012D50;
    --te-color-primary-mid: #387CAD;
    --te-color-accent-light: #A1D3EA;
    --te-color-accent: #BF5636;
    --te-color-accent-dark: #A6472C;

    /*
     * Neutral and surface colors
     */

    --te-color-text: #1F2933;
    --te-color-text-muted: #718096;
    --te-color-background: #FFFFFF;
    --te-color-background-soft: #EEF5FA;
    --te-color-border: #D8E2E8;

    /*
     * Typography
     *
     * Montserrat is the primary TechEffective typeface.
     * DM Mono is available for occasional technical or metadata use.
     */

    --te-font-sans: "Montserrat", "Segoe UI", Arial, sans-serif;
    --te-font-mono: "DM Mono", "Courier New", monospace;

    --te-font-size-xs: 0.8125rem;
    --te-font-size-sm: 0.875rem;
    --te-font-size-base: 1.0625rem;
    --te-font-size-lg: 1.1875rem;

    /*
     * Fluid display typography
     */

    --te-font-size-lead: clamp(1.125rem, 1rem + 0.5vw, 1.4rem);
    --te-font-size-h4: 1.25rem;
    --te-font-size-h3: clamp(1.5rem, 1.4rem + 0.4vw, 1.625rem);
    --te-font-size-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
    --te-font-size-h1: clamp(2.25rem, 1.7rem + 2.8vw, 3.75rem);

    --te-line-height-heading: 1.1;
    --te-line-height-tight: 1.2;
    --te-line-height-normal: 1.55;
    --te-line-height-relaxed: 1.7;

    --te-font-weight-normal: 500;
    --te-font-weight-medium: 500;
    --te-font-weight-semibold: 600;
    --te-font-weight-bold: 700;

    /*
     * Content widths
     */

    --te-width-content: 860px;
    --te-width-wide: 1200px;
    --te-width-page: 1400px;

    /*
     * Base spacing scale
     */

    --te-space-1: 0.25rem;
    --te-space-2: 0.5rem;
    --te-space-3: 0.75rem;
    --te-space-4: 1rem;
    --te-space-5: 1.5rem;
    --te-space-6: 2rem;
    --te-space-7: 3rem;
    --te-space-8: 4rem;
    --te-space-9: 6rem;

    /*
     * Responsive layout spacing
     */

    --te-gutter: clamp(1rem, 3vw, 2rem);
    --te-section-space: clamp(3rem, 7vw, 6rem);
    --te-section-space-small: clamp(2rem, 5vw, 4rem);

    /*
     * Border radii
     */

    --te-radius-small: 6px;
    --te-radius-medium: 12px;
    --te-radius-large: 20px;

    /*
     * Shadows
     */

    --te-shadow-small: 0 2px 8px rgba(1, 45, 80, 0.08);
    --te-shadow-medium: 0 8px 24px rgba(1, 45, 80, 0.12);
}


/*
 * Base document styles
 */

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    color: var(--te-color-text);
    background: var(--te-color-background);
    font-family: var(--te-font-sans);
    font-size: var(--te-font-size-base);
    font-weight: var(--te-font-weight-normal);
    line-height: var(--te-line-height-normal);
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

em,
i {
    font-weight: var(--te-font-weight-normal);
    letter-spacing: -0.005em;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}


/*
 * Typography
 */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-family: var(--te-font-sans);
    font-weight: var(--te-font-weight-bold);
}

h1 {
    margin-bottom: var(--te-space-5);
    color: var(--te-color-primary);
    font-size: var(--te-font-size-h1);
    line-height: var(--te-line-height-heading);
    letter-spacing: -0.03em;
}

h2 {
    margin-bottom: var(--te-space-4);
    color: var(--te-color-primary-mid);
    font-size: var(--te-font-size-h2);
    line-height: var(--te-line-height-heading);
    letter-spacing: -0.025em;
}

h3 {
    margin-bottom: var(--te-space-3);
    color: var(--te-color-primary);
    font-size: var(--te-font-size-h3);
    line-height: var(--te-line-height-tight);
    letter-spacing: -0.015em;
}

h4 {
    margin-bottom: var(--te-space-3);
    color: var(--te-color-primary-dark);
    font-size: var(--te-font-size-h4);
    line-height: var(--te-line-height-tight);
}

h5 {
    margin-bottom: var(--te-space-2);
    color: var(--te-color-primary);
    font-size: var(--te-font-size-lg);
    line-height: var(--te-line-height-tight);
}

h6 {
    margin-bottom: var(--te-space-2);
    color: var(--te-color-primary);
    font-size: var(--te-font-size-base);
    line-height: var(--te-line-height-tight);
}

p {
    margin-top: 0;
    margin-bottom: var(--te-space-5);
}

.lead {
    font-size: var(--te-font-size-lead);
    line-height: var(--te-line-height-tight);
}


/*
 * Links
 */

a {
    color: var(--te-color-primary);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.15em;
}

a:hover {
    color: var(--te-color-primary-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--te-color-accent-light);
    outline-offset: 3px;
}


/*
 * Lists
 */

ul,
ol {
    margin-top: 0;
    margin-bottom: var(--te-space-6);
    padding-left: 1.5rem;
}

li {
    margin-bottom: var(--te-space-3);
}

li:last-child {
    margin-bottom: 0;
}


/*
 * Content elements
 */

blockquote {
    margin: var(--te-space-6) 0;
    padding-left: var(--te-space-5);
    border-left: 4px solid var(--te-color-primary-mid);
    color: var(--te-color-primary-dark);
    font-size: var(--te-font-size-lg);
    line-height: var(--te-line-height-relaxed);
}

figure {
    margin: var(--te-space-6) 0;
}

figcaption {
    margin-top: var(--te-space-2);
    color: var(--te-color-text-muted);
    font-size: var(--te-font-size-sm);
}


/*
 * Content widths
 */

.te-container {
    width: min(calc(100% - (var(--te-gutter) * 2)),
            var(--te-width-page));
    margin-inline: auto;
}

.te-container--wide {
    max-width: var(--te-width-wide);
}

.te-container--content {
    max-width: var(--te-width-content);
}


/*
 * Gutenberg and standard WordPress content
 */

.entry-content>* {
    width: min(calc(100% - (var(--te-gutter) * 2)),
            var(--te-width-content));
    margin-inline: auto;
}

.entry-content>.alignwide {
    width: min(calc(100% - (var(--te-gutter) * 2)),
            var(--te-width-wide));
    max-width: var(--te-width-wide);
}

.entry-content>.alignfull {
    width: 100%;
    max-width: none;
}

.entry-content>h2,
.entry-content>h3,
.entry-content>h4 {
    margin-top: var(--te-space-7);
}

.entry-content>h2:first-child,
.entry-content>h3:first-child,
.entry-content>h4:first-child {
    margin-top: 0;
}


/*
 * Basic page breathing room
 */

.site-main {
    padding-block: var(--te-section-space-small);
}

.te-section {
    padding-block: var(--te-section-space-small);
}


/*
 * Reduced motion
 */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}