/*
Theme Name:  BRD Pest Solutions
Theme URI:   https://brdpestsolutions.com
Author:      Mixify Marketing
Description: Custom WordPress theme for BRD Pest Solutions — pest control in Utah, Texas, and Georgia.
Version:     1.0.0
License:     Proprietary
Text Domain: brd-pest-solutions
*/

/* ==============================================
   DESIGN TOKENS — BRD Brand System
   ============================================== */
:root {
    /* Brand colors */
    --color-charcoal:    #0c232e;
    --color-brd-blue:    #00538b;
    --color-sky-blue:    #0da3dd;
    --color-red:         #e8620a;
    --color-white:       #eaf5f1;
    --color-white-dim:   rgba(234, 245, 241, 0.72);
    --color-white-muted: rgba(234, 245, 241, 0.4);
    --color-overlay:     rgba(12, 35, 46, 0.85);

    /* Typography */
    --font-headline: 'Montserrat', sans-serif;
    --font-body:     'Inter', sans-serif;

    /* Spacing */
    --space-xs:  4px;
    --space-sm:  8px;
    --space-md:  16px;
    --space-lg:  24px;
    --space-xl:  40px;
    --space-2xl: 64px;
    --space-3xl: 96px;

    /* Layout */
    --max-width:     1280px;
    --header-height: 90px;
    --promo-height:  40px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}


/* ==============================================
   RESET
   ============================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-white);
    background-color: var(--color-charcoal);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    color: inherit;
}

input, textarea, select {
    font-family: inherit;
}


/* ==============================================
   TYPOGRAPHY
   ============================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-white);
}

h1 { font-size: clamp(2rem,   5.5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw,   2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-white-dim);
}

strong { font-weight: 700; }


/* ==============================================
   LAYOUT UTILITIES
   ============================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-md);
}

@media (min-width: 640px) {
    .container { padding-inline: var(--space-lg); }
}

@media (min-width: 1024px) {
    .container { padding-inline: var(--space-xl); }
}

#main {
    flex: 1;
    padding-top: calc(var(--header-height) + var(--promo-height));
    transition: padding-top 0.3s ease;
}

body.no-promo #main {
    padding-top: var(--header-height);
}

/* WordPress admin bar offset — logged-in view only */
.admin-bar .promo-bar    { top: 32px; }
.admin-bar .site-header  { top: calc(32px + var(--promo-height)); }
.admin-bar .mobile-menu  { top: calc(32px + var(--promo-height) + var(--header-height)); }
@media screen and (max-width: 782px) {
    .admin-bar .promo-bar   { top: 46px; }
    .admin-bar .site-header { top: calc(46px + var(--promo-height)); }
    .admin-bar .mobile-menu { top: calc(46px + var(--promo-height) + var(--header-height)); }
}


/* ==============================================
   BUTTONS
   ============================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 15px 32px;
    border-radius: var(--radius-sm);
    transition:
        background-color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
    white-space: nowrap;
    line-height: 1;
}

.btn-red {
    background-color: var(--color-red);
    color: var(--color-white);
}

.btn-red:hover {
    background-color: #c44e07;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(232, 98, 10, 0.4);
}

.btn-red:active {
    transform: translateY(0);
}

.btn-blue {
    background-color: var(--color-brd-blue);
    color: var(--color-white);
}

.btn-blue:hover {
    background-color: #004070;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 83, 139, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid rgba(234, 245, 241, 0.4);
}

.btn-outline:hover {
    border-color: var(--color-white);
    background-color: rgba(234, 245, 241, 0.08);
}

.btn-lg {
    font-size: 1.05rem;
    padding: 22px 52px;
}


/* ==============================================
   ACCESSIBILITY
   ============================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    background: var(--color-red);
    color: var(--color-white);
    padding: var(--space-sm) var(--space-md);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 2px solid var(--color-sky-blue);
    outline-offset: 3px;
    border-radius: 2px;
}
