/*
Theme Name: Brenslie Ridge
Theme URI: https://brenslieridge.com
Author: Brenslie Ridge Holdings LLC
Author URI: https://brenslieridge.com
Description: A premium custom WordPress theme for Brenslie Ridge Holdings LLC.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brenslie-ridge
*/

/* ==================================================
   1. Theme Variables
   ================================================== */

:root {
    --color-black: #050505;
    --color-charcoal: #111214;
    --color-charcoal-light: #1b1d20;
    --color-silver: #c5c8cc;
    --color-silver-light: #f0f1f2;
    --color-silver-dark: #858a91;
    --color-white: #ffffff;
    --color-text: #d8dadd;
    --color-muted: #9da1a7;
    --color-border: rgba(197, 200, 204, 0.22);

    --font-heading: Georgia, "Times New Roman", serif;
    --font-body: Arial, Helvetica, sans-serif;

    --container-width: 1200px;
    --transition: 0.3s ease;
}

/* ==================================================
   2. Reset and Base Styles
   ================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top,
            rgba(255, 255, 255, 0.045),
            transparent 36rem
        ),
        linear-gradient(
            145deg,
            var(--color-black),
            var(--color-charcoal) 60%,
            #090a0b
        );
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
}

body,
button,
input,
textarea,
select {
    font-family: var(--font-body);
}

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

a {
    color: var(--color-silver-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover,
a:focus {
    color: var(--color-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
}

p {
    margin-top: 0;
}

ul,
ol {
    padding-left: 1.4rem;
}

::selection {
    background: var(--color-silver);
    color: var(--color-black);
}

/* ==================================================
   3. Basic Layout
   ================================================== */

.container {
    width: min(100% - 40px, var(--container-width));
    margin-inline: auto;
}

.site-main {
    min-height: 60vh;
}

/* ==================================================
   4. Header
   ================================================== */

.site-header {
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100px;
}

.branding {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 60px;
    height: 60px;
    border: 1px solid var(--color-silver);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        #f2f2f2,
        #9b9b9b,
        #ececec
    );
    color: #000;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: .08em;
}

.logo::before {
    content: "BR";
}

.site-title {
    margin: 0;
    color: var(--color-silver-light);
    font-size: 1.6rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-tagline {
    margin: 4px 0 0;
    color: var(--color-muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .18em;
}

/* ==================================================
   5. Navigation
   ================================================== */

.main-navigation ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--color-silver);
    text-transform: uppercase;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .12em;
    transition: color .3s ease;
}

.main-navigation a:hover {
    color: var(--color-white);
}

/* ==================================================
   6. Hero Section
   ================================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 680px;
    padding: 120px 0;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.hero::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -120px;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(197, 200, 204, 0.12);
    border-radius: 50%;
    transform: translateY(-50%);
}

.hero::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 40px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(197, 200, 204, 0.08);
    border-radius: 50%;
    transform: translateY(-50%);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 760px;
}

.hero-eyebrow {
    margin-bottom: 18px;
    color: var(--color-silver);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.hero-title {
    max-width: 900px;
    margin-bottom: 26px;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.hero-text {
    max-width: 660px;
    margin-bottom: 36px;
    color: var(--color-muted);
    font-size: 1.12rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    margin-bottom: 30px;
    border: 1px solid var(--color-silver-dark);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.02)
        );
    color: var(--color-silver-light);
    font-family: var(--font-heading);
    font-size: 1.9rem;
    letter-spacing: 0.08em;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* ==================================================
   7. Buttons and Calls to Action
   ================================================== */

.button,
.wp-block-button__link,
input[type="submit"],
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 26px;
    border: 1px solid var(--color-silver);
    background: linear-gradient(
        135deg,
        var(--color-silver-light),
        var(--color-silver-dark)
    );
    color: var(--color-black);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
input[type="submit"]:hover,
button:hover {
    color: var(--color-black);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.button-secondary {
    background: transparent;
    color: var(--color-silver-light);
}

.button-secondary:hover,
.button-secondary:focus {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-white);
}

.cta-section {
    padding: 90px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.025);
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-text {
    max-width: 700px;
}

.cta-title {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.cta-description {
    margin-bottom: 0;
    color: var(--color-muted);
}

/* ==================================================
   8. Services Section
   ================================================== */

.services-section {
    padding: 110px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 56px;
}

.section-eyebrow {
    margin-bottom: 16px;
    color: var(--color-silver);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: 18px;
    font-size: clamp(2.3rem, 5vw, 4.25rem);
}

.section-description {
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.service-card {
    position: relative;
    min-height: 260px;
    padding: 34px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.015)
        );
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 72px;
    height: 1px;
    background: var(--color-silver);
    transition: width var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(197, 200, 204, 0.45);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.02)
        );
}

.service-card:hover::before {
    width: 100%;
}

.service-number {
    display: block;
    margin-bottom: 28px;
    color: var(--color-silver-dark);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.14em;
}

.service-title {
    margin-bottom: 16px;
    font-size: 1.55rem;
}

.service-description {
    margin-bottom: 0;
    color: var(--color-muted);
}

/* ==================================================
   10. Footer
   ================================================== */

.site-footer {
    padding: 36px 0;
    border-top: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.35);
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.88rem;
}

.site-footer a {
    color: var(--color-silver);
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--color-white);
}

.footer-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-navigation a {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ==================================================
   11. Forms and Contact Page
   ================================================== */

form {
    width: 100%;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-silver-light);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.035);
    color: var(--color-white);
    font-size: 1rem;
    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-silver);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(197, 200, 204, 0.08);
}

textarea {
    min-height: 180px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--color-muted);
}

.form-group,
.contact-form p {
    margin-bottom: 22px;
}

.contact-details {
    display: grid;
    gap: 18px;
    margin-top: 32px;
}

.contact-details a {
    color: var(--color-silver-light);
}

/* ==================================================
   12. Widgets, Search, and 404 Page
   ================================================== */

.widget {
    margin-bottom: 32px;
    padding: 24px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.025);
}

.widget-title {
    margin-bottom: 18px;
    font-size: 1.25rem;
}

.widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.widget li + li {
    margin-top: 10px;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form label {
    flex: 1;
    margin: 0;
}

.search-form input[type="search"] {
    height: 100%;
}

.search-results,
.error-404 {
    padding: 100px 0;
}

.error-404 {
    text-align: center;
}

.error-404 .page-title {
    font-size: clamp(3rem, 8vw, 6rem);
}

.error-404 .page-content {
    margin: 0 auto;
}

/* ==================================================
   13. Responsive Styles: Tablets
   ================================================== */

@media (max-width: 900px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        gap: 18px;
    }

    .hero {
        min-height: auto;
        padding: 100px 0;
    }

    .hero::before {
        right: -220px;
    }

    .hero::after {
        right: -40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer .container {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==================================================
   14. Responsive Styles: Phones
   ================================================== */

@media (max-width: 600px) {
    .container {
        width: min(100% - 28px, var(--container-width));
    }

    .site-header .container {
        min-height: auto;
    }

    .branding {
        gap: 14px;
    }

    .logo {
        width: 52px;
        height: 52px;
        font-size: 1.15rem;
    }

    .site-title {
        font-size: 1.1rem;
    }

    .site-tagline {
        font-size: 0.65rem;
        letter-spacing: 0.12em;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 12px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .hero-title {
        font-size: clamp(2.4rem, 13vw, 3.6rem);
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button,
    .wp-block-button__link,
    input[type="submit"],
    button {
        width: 100%;
    }

    .services-section,
    .content-section,
    .cta-section {
        padding: 75px 0;
    }

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

    .service-card {
        min-height: auto;
        padding: 28px;
    }

    .search-form {
        flex-direction: column;
    }

    .footer-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==================================================
   15. Accessibility and WordPress Utilities
   ================================================== */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    top: 10px;
    left: 10px;
    z-index: 10000;
    width: auto;
    height: auto;
    padding: 12px 16px;
    margin: 0;
    overflow: visible;
    clip: auto;
    background: var(--color-white);
    color: var(--color-black);
}

.alignleft {
    float: left;
    margin-right: 24px;
    margin-bottom: 18px;
}

.alignright {
    float: right;
    margin-left: 24px;
    margin-bottom: 18px;
}

.aligncenter {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.clear::before,
.clear::after,
.entry-content::before,
.entry-content::after {
    display: table;
    content: "";
}

.clear::after,
.entry-content::after {
    clear: both;
}

:focus-visible {
    outline: 2px solid var(--color-silver);
    outline-offset: 3px;
}