/*
Theme Name: Kent Lofley DO
Theme URI: https://kentlofleydo.com
Author: Kent Lofley DO
Author URI: https://kentlofleydo.com
Description: Custom personal brand theme for KentLofleyDO.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kentlofleydo
Tags: custom, personal-brand, clean
*/

/* ============================================================
   CSS Custom Properties
   ============================================================ */

:root {
    --color-navy:      #0C2340;
    --color-navy-mid:  #122d52;
    --color-teal:      #1D9E75;
    --color-teal-dark: #167a5b;
    --color-light-bg:  #f8f9fb;
    --color-white:     #ffffff;
    --color-text:      #1a1a2e;
    --color-text-muted:#556080;
    --color-border:    #dde3ef;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', system-ui, sans-serif;
    --font-ui:      'DM Sans', system-ui, sans-serif;

    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   16px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 3px rgba(12,35,64,0.08);
    --shadow-md: 0 4px 16px rgba(12,35,64,0.12);
    --shadow-lg: 0 12px 40px rgba(12,35,64,0.16);

    --max-width: 1160px;
    --nav-height: 72px;
    --section-pad: clamp(60px, 8vw, 120px);
}

/* ============================================================
   Reset & Base
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a {
    color: var(--color-teal);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-teal-dark);
}

ul, ol {
    list-style: none;
}

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

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
}

h1 { font-size: clamp(2rem,   5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem,3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.25em;
}

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

strong { font-weight: 600; }
em     { font-style: italic; }

blockquote {
    border-left: 4px solid var(--color-teal);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-text-muted);
    background: var(--color-light-bg);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

code {
    font-family: 'Courier New', monospace;
    font-size: 0.875em;
    background: var(--color-light-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.15em 0.4em;
}

pre {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 2rem 0;
}

pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: 0.9rem;
}

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2.5rem 0;
}

/* ============================================================
   Layout Utilities
   ============================================================ */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 48px);
}

.section-pad {
    padding-block: var(--section-pad);
}

.section--navy {
    background: var(--color-navy);
    color: var(--color-white);
}

.section--light {
    background: var(--color-light-bg);
}

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

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.eyebrow {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-teal);
    margin-bottom: 0.75rem;
    display: block;
}

.section--navy .eyebrow {
    color: var(--color-teal);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--primary {
    background: var(--color-teal);
    color: var(--color-white);
    border-color: var(--color-teal);
}

.btn--primary:hover {
    background: var(--color-teal-dark);
    border-color: var(--color-teal-dark);
    color: var(--color-white);
}

.btn--outline {
    background: transparent;
    color: var(--color-navy);
    border-color: var(--color-navy);
}

.btn--outline:hover {
    background: var(--color-navy);
    color: var(--color-white);
}

.btn--outline-light {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255,255,255,0.6);
}

.btn--outline-light:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn--lg {
    font-size: 1rem;
    padding: 1rem 2.25rem;
}

/* ============================================================
   Navigation
   ============================================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.transparent {
    background: transparent;
}

.site-header.scrolled {
    background: var(--color-navy);
    box-shadow: var(--shadow-md);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    line-height: 1.1;
    transition: opacity 0.2s;
}

.site-logo:hover {
    opacity: 0.85;
    color: var(--color-white);
}

.site-logo span {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-teal);
    margin-top: 2px;
}

.primary-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.primary-menu a {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    color: var(--color-white);
    background: rgba(255,255,255,0.1);
}

.nav-cta {
    margin-left: 0.75rem;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .primary-nav {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--color-navy);
        padding: 1rem 0 1.5rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.35s ease;
        pointer-events: none;
    }

    .primary-nav.open {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        pointer-events: auto;
    }

    .primary-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0 clamp(20px,5vw,48px);
    }

    .primary-menu a {
        display: block;
        padding: 0.75rem 0;
        border-radius: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .nav-cta { margin-left: 0; margin-top: 1rem; }
}

/* ============================================================
   Hero / Front Page
   ============================================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--color-navy);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 80% 50%, rgba(29,158,117,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 80% at 10% 80%, rgba(29,158,117,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero-content h1 {
    color: var(--color-white);
    margin-bottom: 1.25rem;
}

.hero-content h1 em {
    color: var(--color-teal);
    font-style: normal;
}

.hero-content .lead {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

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

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    animation: bounce 2s infinite;
}

.hero-scroll::after {
    content: '';
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.25);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   Cards
   ============================================================ */

.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: 1.75rem;
}

.card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* ============================================================
   Grid Utilities
   ============================================================ */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   Section: About Strip
   ============================================================ */

.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
}

.about-split img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

@media (max-width: 768px) {
    .about-split { grid-template-columns: 1fr; }
}

/* ============================================================
   Section: Stats / Credentials
   ============================================================ */

.stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-teal);
    line-height: 1;
    display: block;
}

.stat-item .label {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-top: 0.5rem;
    display: block;
}

/* ============================================================
   Section Heading Component
   ============================================================ */

.section-heading {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-heading h2 {
    margin-bottom: 1rem;
}

.section-heading p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 560px;
}

.section--navy .section-heading p {
    color: rgba(255,255,255,0.65);
}

.section-heading--center {
    text-align: center;
}

.section-heading--center p {
    margin-inline: auto;
}

/* ============================================================
   Blog / Archive
   ============================================================ */

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

.post-card {
    display: flex;
    flex-direction: column;
}

.post-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card .post-meta {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
}

.post-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    flex: 1;
}

.post-card h3 a {
    color: var(--color-navy);
    text-decoration: none;
}

.post-card h3 a:hover {
    color: var(--color-teal);
}

.post-card .excerpt {
    font-size: 0.925rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

/* ============================================================
   Single Post
   ============================================================ */

.single-hero {
    background: var(--color-navy);
    color: var(--color-white);
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 4rem;
}

.single-hero h1 {
    color: var(--color-white);
    max-width: 760px;
}

.post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

.post-meta-bar .category-link {
    background: rgba(29,158,117,0.2);
    color: var(--color-teal);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.post-content {
    max-width: 720px;
    margin-inline: auto;
    padding-block: clamp(3rem, 6vw, 5rem);
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--color-navy);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
    list-style: revert;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.post-content li {
    margin-bottom: 0.4rem;
}

.post-content a {
    border-bottom: 1px solid rgba(29,158,117,0.4);
    transition: border-color 0.2s;
}

.post-content a:hover {
    border-color: var(--color-teal);
}

.post-content img {
    border-radius: var(--radius-md);
    margin-block: 2rem;
    box-shadow: var(--shadow-md);
}

.post-content figure {
    margin-block: 2rem;
}

.post-content figcaption {
    font-family: var(--font-ui);
    font-size: 0.825rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

/* ============================================================
   Page Interior
   ============================================================ */

.page-hero {
    background: var(--color-navy);
    color: var(--color-white);
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 4rem;
}

.page-hero h1 {
    color: var(--color-white);
}

.page-content {
    max-width: 800px;
    margin-inline: auto;
    padding-block: clamp(3rem, 6vw, 5rem);
}

.page-content h2,
.page-content h3 {
    color: var(--color-navy);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.page-content ul,
.page-content ol {
    list-style: revert;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    background: var(--color-navy);
    color: rgba(255,255,255,0.7);
    padding-top: 5rem;
    padding-bottom: 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand .site-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
    margin-bottom: 0;
}

.footer-col h4 {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 1.25rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-col ul a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: var(--color-teal);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: var(--font-ui);
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Forms
   ============================================================ */

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(29,158,117,0.12);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

/* ============================================================
   Utility Classes
   ============================================================ */

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

.mt-auto { margin-top: auto; }
.mb-0    { margin-bottom: 0; }
.gap-1   { gap: 0.5rem; }
.gap-2   { gap: 1rem; }
.gap-3   { gap: 1.5rem; }

/* ============================================================
   WordPress Core Classes
   ============================================================ */

.wp-block-image { margin-block: 2rem; }
.alignwide { margin-inline: -2rem; }
.alignfull { margin-inline: calc(50% - 50vw); }
.alignleft  { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.825rem; color: var(--color-text-muted); text-align: center; margin-top: 0.4rem; }

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    font-family: var(--font-ui);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1.5px solid var(--color-border);
    color: var(--color-text);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pagination a:hover,
.pagination .current {
    background: var(--color-teal);
    border-color: var(--color-teal);
    color: var(--color-white);
}
