/*
Theme Name: Ridgestone Networks
Theme URI: https://ridgestonenetworks.com
Description: Custom theme for Ridgestone Networks, LLC.
Version: 2.0.0
Author: Ridgestone Networks, LLC
Author URI: https://ridgestonenetworks.com
Text Domain: ridgestone
*/

/* ===========================
   1. CSS Custom Properties
   =========================== */
:root {
    --color-navy: #022F5D;
    --color-navy-light: #0a3d6f;
    --color-navy-dark: #011d3a;
    --color-yellow: #FBD00F;
    --color-yellow-hover: #ffe34d;
    --color-white: #FFFFFF;
    --color-text: rgba(255, 255, 255, 0.8);
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --color-text-subtle: rgba(255, 255, 255, 0.4);
    --color-border: rgba(255, 255, 255, 0.12);
    --color-border-light: rgba(255, 255, 255, 0.08);
    --font-body: 'Inter', sans-serif;
    --font-nav: 'Rubik', sans-serif;
    --max-width: 1100px;
    --radius: 6px;
    --radius-lg: 10px;
    --transition: 0.2s ease;
}

/* ===========================
   2. Reset & Base Typography
   =========================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.25;
}

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

a:hover {
    color: var(--color-yellow-hover);
}

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

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

/* ===========================
   3. Layout Utilities
   =========================== */
.site-main {
    flex: 1;
}

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

/* ===========================
   4. Site Header & Navigation
   =========================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-navy-dark);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 24px;
}

.header-logo img {
    height: 36px;
    width: auto;
}

.nav-menu .nav-list,
.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.nav-menu .nav-list li a,
.nav-menu ul li a {
    font-family: var(--font-nav);
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text);
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: color var(--transition), background-color var(--transition);
    display: block;
}

.nav-menu .nav-list li a:hover,
.nav-menu ul li a:hover,
.nav-menu .nav-list li.current-menu-item > a,
.nav-menu ul li.current-menu-item > a,
.nav-menu .nav-list li.current_page_item > a,
.nav-menu ul li.current_page_item > a {
    color: var(--color-yellow);
}

/* ===========================
   5. Mobile Navigation
   =========================== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.nav-toggle--active .hamburger {
    background-color: transparent;
}

.nav-toggle--active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle--active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ===========================
   6. Buttons
   =========================== */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 13px 32px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background-color var(--transition), color var(--transition), transform 0.15s ease, border-color var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.4;
}

.btn-primary {
    background-color: var(--color-yellow);
    color: var(--color-navy);
    border-color: var(--color-yellow);
}

.btn-primary:hover {
    background-color: var(--color-yellow-hover);
    border-color: var(--color-yellow-hover);
    color: var(--color-navy);
    transform: translateY(-1px);
}

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

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

.btn-cta {
    background-color: var(--color-navy);
    color: var(--color-yellow);
    border-color: var(--color-navy);
    font-size: 16px;
    padding: 15px 40px;
}

.btn-cta:hover {
    background-color: var(--color-navy-dark);
    color: var(--color-yellow-hover);
    transform: translateY(-1px);
}

/* ===========================
   7. Hero Section (Homepage)
   =========================== */
.hero {
    padding: 60px 24px 40px;
}

.hero-inner {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-text {
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.hero-logo {
    width: 100%;
    text-align: center;
}

.hero-logo img {
    max-width: 200px;
    margin: 0 auto;
}

/* ===========================
   8. Page Hero (Inner Pages)
   =========================== */
.page-hero {
    padding: 48px 24px 32px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.page-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.page-hero-title {
    font-size: 30px;
    margin-bottom: 8px;
}

.page-hero-subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.post-hero-meta {
    margin-bottom: 12px;
}

.post-hero-category {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-yellow);
    background-color: rgba(251, 208, 15, 0.12);
    padding: 4px 12px;
    border-radius: var(--radius);
}

.post-hero-info {
    margin-top: 12px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.post-hero-separator {
    margin: 0 8px;
}

/* ===========================
   9. Content Sections
   =========================== */
.section {
    padding: 60px 24px;
}

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

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 12px;
}

.section-title-left {
    text-align: left;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.section-text-wide {
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.7;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.card {
    background-color: var(--color-navy-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.card-icon {
    width: 40px;
    height: 40px;
    color: var(--color-yellow);
    margin-bottom: 16px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.card-text {
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.6;
}

.card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-yellow);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-text {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.7;
}

/* CTA Section */
.section-cta {
    background-color: var(--color-yellow);
    padding: 60px 24px;
}

.section-cta-inner {
    text-align: center;
}

.section-cta-title {
    color: var(--color-navy);
    font-size: 28px;
    margin-bottom: 10px;
}

.section-cta-text {
    color: var(--color-navy);
    opacity: 0.7;
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   10. Page: About
   =========================== */
.about-story {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-story-text p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-story-text p:last-child {
    margin-bottom: 0;
}

.about-story-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    background-color: var(--color-navy-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
}

.placeholder-logo {
    max-width: 200px;
    opacity: 0.6;
}

/* ===========================
   11. Page: Services
   =========================== */
.service-detail {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
}

.service-detail-text p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.service-features li {
    position: relative;
    padding: 5px 0 5px 28px;
    font-size: 15px;
    color: var(--color-text);
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512' fill='%23FBD00F'%3E%3Cpath d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.service-detail-icon {
    display: none;
}

/* ===========================
   12. Page: Contact
   =========================== */
.contact-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-form-title {
    font-size: 22px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 6px;
}

.form-group .required {
    color: var(--color-yellow);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-white);
    background-color: var(--color-navy-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color var(--transition);
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-yellow);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.5)'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    margin-bottom: 16px;
    font-size: 14px;
    border-radius: var(--radius);
    padding: 0;
    min-height: 0;
    transition: all var(--transition);
}

.form-status:empty {
    display: none;
}

.form-status--success {
    display: block;
    color: #34d399;
    background-color: rgba(52, 211, 153, 0.1);
    padding: 12px 16px;
}

.form-status--error {
    display: block;
    color: #f87171;
    background-color: rgba(248, 113, 113, 0.1);
    padding: 12px 16px;
}

.btn-submit {
    width: 100%;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.contact-info-card {
    background-color: var(--color-navy-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    margin-bottom: 20px;
}

.contact-info-card:last-child {
    margin-bottom: 0;
}

.contact-info-title {
    font-size: 18px;
    margin-bottom: 16px;
}

.contact-info-card > p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.7;
}

.contact-info-item {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.5;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--color-yellow);
}

.contact-info-item p {
    margin: 0;
}

/* ===========================
   13. Blog: Layout & Post Grid
   =========================== */
.blog-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px;
}

.post-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post-card {
    background-color: var(--color-navy-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
}

.post-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.post-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-body {
    padding: 24px;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
}

.post-card-category {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-yellow);
    background-color: rgba(251, 208, 15, 0.1);
    padding: 3px 10px;
    border-radius: var(--radius);
}

.post-card-category:hover {
    color: var(--color-yellow-hover);
}

.post-card-date {
    color: var(--color-text-subtle);
}

.post-card-title {
    font-size: 20px;
    margin-bottom: 8px;
    line-height: 1.35;
}

.post-card-title a {
    color: var(--color-white);
}

.post-card-title a:hover {
    color: var(--color-yellow);
}

.post-card-excerpt {
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: 14px;
    line-height: 1.6;
}

.post-card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-yellow);
}

/* Pagination */
.pagination {
    margin-top: 32px;
}

.pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    background-color: var(--color-navy-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    color: var(--color-yellow);
    border-color: var(--color-yellow);
}

.pagination .page-numbers.current {
    background-color: rgba(251, 208, 15, 0.1);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 0;
}

.no-results h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.no-results p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

/* ===========================
   14. Blog: Single Post
   =========================== */
.single-post-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
}

.single-post-image img {
    width: 100%;
    height: auto;
}

.post-content {
    background-color: #f8f9fa;
    color: #1a1a2e;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    font-size: 16px;
    line-height: 1.8;
}

.post-content h2 {
    color: #1a1a2e;
    font-size: 24px;
    margin: 32px 0 12px;
}

.post-content h3 {
    color: #1a1a2e;
    font-size: 20px;
    margin: 28px 0 10px;
}

.post-content h4 {
    color: #1a1a2e;
    font-size: 18px;
    margin: 24px 0 8px;
}

.post-content p {
    margin-bottom: 16px;
}

.post-content ul,
.post-content ol {
    margin: 0 0 16px 24px;
}

.post-content li {
    margin-bottom: 6px;
}

.post-content a {
    color: var(--color-navy);
    text-decoration: underline;
}

.post-content a:hover {
    color: var(--color-navy-light);
}

.post-content blockquote {
    border-left: 4px solid var(--color-yellow);
    padding: 12px 20px;
    margin: 20px 0;
    background-color: #eef0f3;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

.post-content pre {
    background-color: #1a1a2e;
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 14px;
    margin: 20px 0;
}

.post-content code {
    background-color: #e5e7eb;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.post-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

.post-content img {
    border-radius: var(--radius);
    margin: 20px 0;
}

.post-content h2:first-child,
.post-content h3:first-child {
    margin-top: 0;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.post-tag {
    font-size: 13px;
    color: var(--color-text-muted);
    background-color: var(--color-navy-light);
    border: 1px solid var(--color-border);
    padding: 4px 14px;
    border-radius: 20px;
    transition: all var(--transition);
}

.post-tag:hover {
    color: var(--color-yellow);
    border-color: var(--color-yellow);
}

/* Post Navigation */
.post-navigation {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.post-nav-prev,
.post-nav-next {
    display: flex;
    flex-direction: column;
}

.post-nav-next {
    text-align: right;
}

.post-nav-label {
    font-size: 13px;
    color: var(--color-text-subtle);
    margin-bottom: 4px;
}

.post-nav-title {
    font-size: 15px;
    color: var(--color-white);
    font-weight: 600;
}

.post-nav-title:hover {
    color: var(--color-yellow);
}

/* ===========================
   15. Blog: Sidebar & Widgets
   =========================== */
.blog-sidebar .widget {
    background-color: var(--color-navy-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.blog-sidebar .widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

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

.widget-list li,
.widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 14px;
}

.widget-list li:last-child,
.widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-list li a,
.widget ul li a {
    color: var(--color-text);
}

.widget-list li a:hover,
.widget ul li a:hover {
    color: var(--color-yellow);
}

/* Search Form */
.search-form-inner {
    display: flex;
    gap: 0;
}

.search-field {
    flex: 1;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-white);
    background-color: var(--color-navy);
    border: 1px solid var(--color-border);
    border-radius: var(--radius) 0 0 var(--radius);
    border-right: none;
}

.search-field:focus {
    outline: none;
    border-color: var(--color-yellow);
}

.search-submit {
    padding: 10px 14px;
    background-color: var(--color-yellow);
    color: var(--color-navy);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color var(--transition);
}

.search-submit:hover {
    background-color: var(--color-yellow-hover);
}

/* ===========================
   16. Comments
   =========================== */
.comments-area {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.comments-title {
    font-size: 22px;
    margin-bottom: 24px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.comment-list .comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.comment-list .comment-author {
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 4px;
}

.comment-list .comment-metadata {
    font-size: 13px;
    color: var(--color-text-subtle);
    margin-bottom: 10px;
}

.comment-list .comment-metadata a {
    color: var(--color-text-subtle);
}

.comment-list .comment-content {
    font-size: 15px;
    line-height: 1.6;
}

.comment-list .comment-content p {
    margin-bottom: 8px;
}

.comment-list .reply a {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-yellow);
}

.comment-respond {
    margin-top: 24px;
}

.comment-respond .comment-reply-title {
    font-size: 20px;
    margin-bottom: 16px;
}

.comment-respond label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 6px;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-white);
    background-color: var(--color-navy-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.comment-respond input:focus,
.comment-respond textarea:focus {
    outline: none;
    border-color: var(--color-yellow);
}

.comment-respond textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-respond .form-submit {
    margin-top: 4px;
}

/* ===========================
   17. 404 Page
   =========================== */
.error-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 60px 24px;
}

.error-404-inner {
    text-align: center;
    max-width: 480px;
}

.error-404-title {
    font-size: 80px;
    color: var(--color-yellow);
    line-height: 1;
    margin-bottom: 16px;
}

.error-404-text {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.error-404-search {
    margin-bottom: 24px;
}

/* ===========================
   18. Page Content (generic)
   =========================== */
.page-content {
    padding: 40px 24px;
}

.page-content-inner {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
}

.page-content-inner p {
    margin-bottom: 16px;
}

.page-content-inner h2 {
    font-size: 24px;
    margin: 32px 0 12px;
}

.page-content-inner h3 {
    font-size: 20px;
    margin: 24px 0 10px;
}

/* ===========================
   19. Footer
   =========================== */
.site-footer {
    padding: 0 24px 24px;
    margin-top: auto;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 0 0 20px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-left,
.footer-right {
    width: 100%;
}

.footer-nav-list,
.footer-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    padding: 0 0 8px 0;
    margin: 0;
}

.footer-nav-list li a,
.footer-nav ul li a {
    font-family: var(--font-nav);
    color: var(--color-text-subtle);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 12px;
    transition: color var(--transition);
}

.footer-nav-list li:first-child a,
.footer-nav ul li:first-child a {
    padding-left: 0;
}

.footer-nav-list li a:hover,
.footer-nav ul li a:hover {
    color: var(--color-text);
}

.footer-copyright {
    color: var(--color-text-subtle);
    font-size: 13px;
    margin: 0;
}

.footer-address {
    color: var(--color-text-subtle);
    font-size: 14px;
    line-height: 1.6;
}

.footer-address p {
    margin: 0;
}

.footer-email {
    margin-top: 10px;
}

.footer-email a {
    color: var(--color-yellow);
    font-size: 14px;
}

.footer-email a:hover {
    color: var(--color-yellow-hover);
}

/* ===========================
   20. Responsive: 576px+
   =========================== */
@media (min-width: 576px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-logo img {
        max-width: 260px;
    }

    .page-hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-cta-title {
        font-size: 32px;
    }

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

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

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-left {
        width: 55%;
    }

    .footer-right {
        width: 40%;
    }

    .post-navigation {
        flex-direction: row;
        justify-content: space-between;
    }

    .btn-submit {
        width: auto;
    }
}

/* ===========================
   21. Responsive: 768px+
   =========================== */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .header-inner {
        padding: 16px 40px;
    }

    .hero {
        padding: 80px 40px 60px;
    }

    .hero-inner {
        flex-direction: row;
        justify-content: space-between;
        gap: 60px;
    }

    .hero-text {
        width: 55%;
        text-align: left;
    }

    .hero-cta {
        justify-content: flex-start;
    }

    .hero-logo {
        width: 40%;
    }

    .hero-logo img {
        max-width: 100%;
    }

    .page-hero {
        padding: 60px 40px 40px;
    }

    .page-hero-title {
        font-size: 40px;
    }

    .section {
        padding: 80px 40px;
    }

    .section-cta {
        padding: 80px 40px;
    }

    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-story {
        flex-direction: row;
        align-items: center;
    }

    .about-story-text {
        flex: 1;
    }

    .about-story-image {
        flex: 0 0 300px;
    }

    .service-detail {
        flex-direction: row;
        align-items: flex-start;
        gap: 60px;
    }

    .service-detail-text {
        flex: 1;
    }

    .service-detail-icon {
        display: block;
        flex: 0 0 80px;
        width: 80px;
        height: 80px;
        color: var(--color-yellow);
        opacity: 0.5;
        margin-top: 8px;
    }

    .service-detail-icon svg {
        width: 100%;
        height: 100%;
    }

    .service-detail-reverse {
        flex-direction: row-reverse;
    }

    .contact-layout {
        flex-direction: row;
        gap: 48px;
    }

    .contact-form-wrapper {
        flex: 1;
    }

    .contact-sidebar {
        flex: 0 0 320px;
    }

    .blog-layout {
        flex-direction: row;
        gap: 48px;
        padding: 48px 40px;
    }

    .blog-main {
        flex: 1;
        min-width: 0;
    }

    .blog-sidebar {
        flex: 0 0 280px;
    }

    .post-content {
        padding: 40px 36px;
    }

    .site-footer {
        padding: 0 40px 32px;
    }

    .error-404-title {
        font-size: 120px;
    }
}

/* ===========================
   22. Responsive: <768px (Mobile Nav)
   =========================== */
@media (max-width: 767px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-navy-dark);
        border-bottom: 1px solid var(--color-border);
        padding: 8px 24px 16px;
    }

    .nav-menu--open {
        display: block;
    }

    .nav-menu .nav-list,
    .nav-menu ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-menu .nav-list li a,
    .nav-menu ul li a {
        padding: 12px 0;
        border-bottom: 1px solid var(--color-border-light);
    }

    .nav-menu .nav-list li:last-child a,
    .nav-menu ul li:last-child a {
        border-bottom: none;
    }
}

/* ===========================
   23. Responsive: 1024px+
   =========================== */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 46px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .page-hero-title {
        font-size: 46px;
    }

    .card-title {
        font-size: 19px;
    }

    .service-detail-icon {
        flex: 0 0 100px;
        width: 100px;
        height: 100px;
    }

    .post-content {
        padding: 48px 44px;
        font-size: 17px;
    }
}
