/* ==========================================================================
   AGR2026 Theme Styles
   Active Green + Ross — Complete Tire & Auto Centre
   ========================================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* ---------- Custom Properties ---------- */
:root {
    --agr-green:        #49A13F;
    --agr-green-dark:   #2d6e26;
    --agr-green-deeper: #1a3a15;
    --agr-green-light:  #e8f5e6;
    --agr-yellow:       #FEF300;
    --agr-yellow-hover: #e6dc00;
    --agr-white:        #ffffff;
    --agr-off-white:    #f6f8f5;
    --agr-border:       #dce3da;
    --agr-text:         #1d1d1d;
    --agr-text-mid:     #4a4a4a;
    --agr-text-light:   #6b6b6b;
    --agr-radius:       6px;
    --agr-radius-lg:    12px;
    --agr-shadow-sm:    0 1px 3px rgba(0,0,0,0.06);
    --agr-shadow-md:    0 4px 16px rgba(0,0,0,0.08);
    --agr-shadow-lg:    0 8px 32px rgba(0,0,0,0.10);
    --agr-font-heading: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    --agr-font-body:    'DM Sans', 'Segoe UI', sans-serif;
    --agr-content-max:  780px;
    --agr-site-max:     1200px;
    --agr-header-h:     72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--agr-font-body);
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    line-height: 1.75;
    color: var(--agr-text);
    background: var(--agr-off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--agr-green-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--agr-font-heading);
    color: var(--agr-green-deeper);
    line-height: 1.25;
    margin: 0 0 0.6em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin: 0 0 1.3em; }

/* ---------- Accessibility ---------- */
:focus-visible {
    outline: 3px solid var(--agr-green);
    outline-offset: 2px;
}

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

.screen-reader-text:focus {
    clip: auto !important;
    display: block;
    height: auto; width: auto;
    position: fixed !important;
    top: 5px; left: 5px;
    background: var(--agr-yellow);
    color: var(--agr-green-deeper);
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 700;
    z-index: 100000;
    border-radius: var(--agr-radius);
    box-shadow: var(--agr-shadow-lg);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    background: var(--agr-green);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Logged-in admin bar offset */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}

.header-inner {
    max-width: var(--agr-site-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--agr-header-h);
    gap: 20px;
}

/* Logo */
.site-branding { flex-shrink: 0; }

.site-branding a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-branding img {
    height: 44px;
    width: auto;
}

.site-title {
    font-family: var(--agr-font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--agr-white);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.site-title a { color: var(--agr-white); text-decoration: none; }
.site-title a:hover { color: var(--agr-yellow); }

.site-description {
    display: none; /* Hidden by default — shown if no logo */
}

/* Navigation */
.main-navigation { flex-grow: 1; }

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
}

.main-navigation li { position: relative; }

.main-navigation a {
    display: block;
    padding: 10px 16px;
    color: var(--agr-white);
    text-decoration: none;
    font-family: var(--agr-font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--agr-radius);
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a {
    background: rgba(255,255,255,0.15);
    color: var(--agr-yellow);
}

/* Dropdown */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--agr-green-dark);
    border-radius: 0 0 var(--agr-radius) var(--agr-radius);
    min-width: 200px;
    box-shadow: var(--agr-shadow-lg);
    flex-direction: column;
    gap: 0;
    padding: 6px 0;
    z-index: 999;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
    display: flex;
}

.main-navigation ul ul a {
    padding: 8px 20px;
    font-size: 0.85rem;
    border-radius: 0;
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--agr-white);
    font-size: 0;
    line-height: 1;
}

.menu-toggle svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.menu-toggle:hover { color: var(--agr-yellow); }

/* Header CTA */
.header-cta {
    flex-shrink: 0;
}

.header-cta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--agr-yellow);
    color: var(--agr-green-deeper);
    font-family: var(--agr-font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.header-cta a:hover {
    background: var(--agr-yellow-hover);
    transform: translateY(-1px);
    color: var(--agr-green-deeper);
}

/* Subheader bar */
.subheader {
    background: var(--agr-green-dark);
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    padding: 6px 24px;
    text-align: center;
    letter-spacing: 0.03em;
}

.subheader a {
    color: var(--agr-yellow);
    text-decoration: none;
    font-weight: 500;
}

.subheader a:hover { text-decoration: underline; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.site-content {
    max-width: var(--agr-site-max);
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* Two-column layout (archive/index with sidebar) */
.content-sidebar-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

/* Single posts — no sidebar, centered */
.single .content-sidebar-wrap,
.page .content-sidebar-wrap {
    display: block;
}

.single .content-area,
.page .content-area {
    max-width: var(--agr-content-max);
    margin: 0 auto;
}

/* ==========================================================================
   BLOG INDEX / ARCHIVE
   ========================================================================== */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* Post card */
.post-card {
    background: var(--agr-white);
    border-radius: var(--agr-radius-lg);
    overflow: hidden;
    box-shadow: var(--agr-shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.post-card:hover {
    box-shadow: var(--agr-shadow-md);
    transform: translateY(-2px);
}

.post-card .post-thumbnail {
    overflow: hidden;
    aspect-ratio: 21 / 9;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.03);
}

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

.post-card .entry-title {
    font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
    margin-bottom: 0.5em;
}

.post-card .entry-title a {
    color: var(--agr-green-deeper);
    text-decoration: none;
}

.post-card .entry-title a:hover {
    color: var(--agr-green);
}

.post-card .entry-meta {
    font-size: 0.82rem;
    color: var(--agr-text-light);
    margin-bottom: 0.8em;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.post-card .entry-meta a { color: var(--agr-text-light); }
.post-card .entry-meta a:hover { color: var(--agr-green); }

.post-card .entry-summary {
    color: var(--agr-text-mid);
    font-size: 0.95rem;
    line-height: 1.65;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--agr-font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--agr-green-dark);
    text-decoration: none;
    margin-top: 12px;
    transition: gap 0.2s ease;
}

.read-more-link:hover {
    color: var(--agr-green);
    gap: 10px;
}

.read-more-link::after {
    content: '→';
    font-size: 1.1em;
}

/* ==========================================================================
   SINGLE POST
   ========================================================================== */

/* Breadcrumb */
.breadcrumb {
    font-size: 0.82rem;
    color: var(--agr-text-light);
    margin-bottom: 1.5em;
}

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

.breadcrumb a {
    color: var(--agr-green-dark);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--agr-green);
    text-decoration: underline;
}

.breadcrumb span[aria-hidden] {
    margin: 0 6px;
    color: var(--agr-border);
}

.breadcrumb-current {
    color: var(--agr-text-light);
}

.single-header {
    text-align: center;
    margin-bottom: 2.5em;
    padding-bottom: 2em;
    border-bottom: 2px solid var(--agr-border);
}

.single-header .entry-title {
    font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.6rem);
    max-width: 700px;
    margin: 0 auto 0.5em;
}

.single-header .entry-meta {
    color: var(--agr-text-light);
    font-size: 0.88rem;
}

.single-header .entry-meta a {
    color: var(--agr-text-light);
}

.single-featured-image {
    margin: -20px auto 2.5em;
    max-width: 900px;
    border-radius: var(--agr-radius-lg);
    overflow: hidden;
    box-shadow: var(--agr-shadow-md);
}

.single-featured-image img {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}

/* Full-height variant — toggled via post meta checkbox */
.single-featured-image.full-height img {
    aspect-ratio: auto;
    object-fit: contain;
}

/* ==========================================================================
   POST CONTENT — backward compatible with existing posts
   ========================================================================== */
.entry-content {
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
    line-height: 1.8;
}

/* Headings inside content */
.entry-content h2 {
    margin-top: 2em;
    padding-top: 1.4em;
    border-top: 2px solid var(--agr-green-light);
    color: var(--agr-green-dark);
}

.entry-content h2:first-child,
.entry-content > h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.entry-content h3 {
    margin-top: 1.6em;
    color: var(--agr-green-deeper);
}

/* Images — handle old float-based posts */
.entry-content img {
    border-radius: var(--agr-radius);
}

.entry-content .alignleft {
    float: left;
    margin: 0.3em 1.8em 1.2em 0;
    max-width: 50%;
}

.entry-content .alignright {
    float: right;
    margin: 0.3em 0 1.2em 1.8em;
    max-width: 50%;
}

.entry-content .aligncenter {
    display: block;
    margin: 1.5em auto;
}

.entry-content .wp-caption {
    max-width: 100%;
}

.entry-content .wp-caption-text {
    font-size: 0.82rem;
    color: var(--agr-text-light);
    text-align: center;
    margin-top: 6px;
}

/* Clear floats before headings */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    clear: both;
}

/* Lists */
.entry-content ul,
.entry-content ol {
    margin: 1em 0 1.5em;
    padding-left: 1.5em;
}

.entry-content li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}

.entry-content ul li::marker {
    color: var(--agr-green);
}

/* Tables */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
    border-radius: var(--agr-radius);
    overflow: hidden;
}

.entry-content th {
    background: var(--agr-green);
    color: var(--agr-white);
    font-family: var(--agr-font-heading);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    font-size: 0.9rem;
}

.entry-content td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--agr-border);
}

.entry-content tr:nth-child(even) td {
    background: var(--agr-off-white);
}

.entry-content tr:last-child td {
    border-bottom: none;
}

/* Blockquotes */
.entry-content blockquote {
    border-left: 4px solid var(--agr-green);
    margin: 1.8em 0;
    padding: 1em 1.5em;
    background: var(--agr-green-light);
    border-radius: 0 var(--agr-radius) var(--agr-radius) 0;
    font-style: italic;
    color: var(--agr-text-mid);
}

.entry-content blockquote p:last-child { margin-bottom: 0; }

/* Strong / emphasis */
.entry-content strong {
    font-weight: 700;
    color: var(--agr-text);
}

/* Horizontal rule */
.entry-content hr {
    border: none;
    border-top: 2px solid var(--agr-border);
    margin: 2em 0;
}

/* Links in content */
.entry-content a {
    color: var(--agr-green-dark);
    font-weight: 500;
}

.entry-content a:hover {
    color: var(--agr-green);
}

/* ==========================================================================
   POST FOOTER / TAGS
   ========================================================================== */
.entry-footer {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 2px solid var(--agr-border);
    font-size: 0.88rem;
    color: var(--agr-text-light);
}

.entry-footer a { color: var(--agr-text-light); }
.entry-footer a:hover { color: var(--agr-green); }

.tag-links a {
    display: inline-block;
    background: var(--agr-green-light);
    color: var(--agr-green-dark);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    margin: 4px 4px 4px 0;
    transition: background 0.2s ease;
}

.tag-links a:hover {
    background: var(--agr-green);
    color: var(--agr-white);
}

/* Post navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 3em;
    padding-top: 2em;
    border-top: 2px solid var(--agr-border);
}

.post-navigation a {
    display: block;
    padding: 16px 20px;
    background: var(--agr-white);
    border-radius: var(--agr-radius);
    text-decoration: none;
    box-shadow: var(--agr-shadow-sm);
    transition: box-shadow 0.2s ease;
}

.post-navigation a:hover {
    box-shadow: var(--agr-shadow-md);
}

.post-navigation .nav-label {
    display: block;
    font-size: 0.78rem;
    color: var(--agr-text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.post-navigation .nav-title {
    font-family: var(--agr-font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--agr-green-deeper);
}

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

/* ==========================================================================
   CTA BANNER (appears in single posts and footer)
   ========================================================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--agr-green-dark) 0%, var(--agr-green) 100%);
    color: var(--agr-white);
    text-align: center;
    padding: 48px 24px;
    margin-top: 3em;
    border-radius: var(--agr-radius-lg);
    position: relative;
    overflow: hidden;
}

/* Subtle tread-pattern texture overlay */
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 12px,
        rgba(255,255,255,0.03) 12px,
        rgba(255,255,255,0.03) 14px
    );
    pointer-events: none;
}

.cta-banner h2 {
    font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem);
    color: var(--agr-white);
    margin-bottom: 0.4em;
    position: relative;
}

.cta-banner p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 1.5em;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--agr-yellow);
    color: var(--agr-green-deeper);
    font-family: var(--agr-font-heading);
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cta-button:hover {
    background: var(--agr-yellow-hover);
    transform: translateY(-2px);
    color: var(--agr-green-deeper);
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.widget-area {
    font-size: 0.9rem;
}

.widget {
    background: var(--agr-white);
    padding: 24px;
    border-radius: var(--agr-radius-lg);
    box-shadow: var(--agr-shadow-sm);
    margin-bottom: 24px;
}

.widget-title {
    font-family: var(--agr-font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--agr-green-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--agr-green);
}

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

.widget li {
    padding: 6px 0;
    border-bottom: 1px solid var(--agr-border);
}

.widget li:last-child { border-bottom: none; }

.widget a {
    color: var(--agr-text-mid);
    text-decoration: none;
}

.widget a:hover {
    color: var(--agr-green);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.pagination a,
.pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: var(--agr-radius);
    font-family: var(--agr-font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.pagination a {
    background: var(--agr-white);
    color: var(--agr-text);
    box-shadow: var(--agr-shadow-sm);
}

.pagination a:hover {
    background: var(--agr-green);
    color: var(--agr-white);
}

.pagination .current {
    background: var(--agr-green);
    color: var(--agr-white);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--agr-green-deeper);
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.footer-top {
    max-width: var(--agr-site-max);
    margin: 0 auto;
    padding: 48px 24px 36px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
}

.footer-col h3 {
    font-size: 0.95rem;
    color: var(--agr-white);
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 1em;
}

.footer-col a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

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

.footer-col li {
    padding: 4px 0;
}

.footer-badge {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.82rem;
    padding: 6px 14px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    color: var(--agr-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 18px 24px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}

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

/* ==========================================================================
   SEARCH & 404
   ========================================================================== */
.search-form {
    display: flex;
    gap: 8px;
    max-width: 500px;
}

.search-form .search-field {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--agr-border);
    border-radius: var(--agr-radius);
    font-family: var(--agr-font-body);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

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

.search-form .search-submit {
    background: var(--agr-green);
    color: var(--agr-white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--agr-radius);
    font-family: var(--agr-font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-form .search-submit:hover { background: var(--agr-green-dark); }

.page-404 {
    text-align: center;
    padding: 60px 24px;
    max-width: 600px;
    margin: 0 auto;
}

.page-404 h1 {
    font-size: 4rem;
    color: var(--agr-green);
    margin-bottom: 0.3em;
}

/* ==========================================================================
   COMMENTS
   ========================================================================== */
.comments-area {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 2px solid var(--agr-border);
}

.comments-title {
    font-size: 1.3rem;
    margin-bottom: 1.5em;
}

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

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

.comment-list .comment:last-child { border-bottom: none; }

.comment-author {
    font-family: var(--agr-font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.comment-author img {
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
    display: inline;
}

.comment-metadata {
    font-size: 0.78rem;
    color: var(--agr-text-light);
    margin-bottom: 8px;
}

.comment-body p { margin-bottom: 0.5em; }

.comment-respond { margin-top: 2em; }

.comment-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--agr-border);
    border-radius: var(--agr-radius);
    font-family: var(--agr-font-body);
    font-size: 1rem;
    margin-bottom: 16px;
    transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--agr-green);
    outline: none;
}

.comment-form .form-submit input {
    background: var(--agr-green);
    color: var(--agr-white);
    border: none;
    padding: 12px 28px;
    border-radius: var(--agr-radius);
    font-family: var(--agr-font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.comment-form .form-submit input:hover {
    background: var(--agr-green-dark);
}

/* ==========================================================================
   ARCHIVE HEADER
   ========================================================================== */
.archive-header {
    margin-bottom: 2em;
    padding-bottom: 1.5em;
    border-bottom: 2px solid var(--agr-border);
}

.archive-header h1 {
    font-size: clamp(1.4rem, 1.2rem + 0.8vw, 2rem);
    margin-bottom: 0.3em;
}

.archive-description {
    color: var(--agr-green-dark);
    font-family: var(--agr-font-heading);
    font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
    font-weight: 700;
    background: var(--agr-green-light);
    display: inline-block;
    padding: 8px 20px;
    border-left: 4px solid var(--agr-yellow);
    border-radius: 0 var(--agr-radius) var(--agr-radius) 0;
    margin-top: 4px;
}

/* ==========================================================================
   RESPONSIVE — Tablet
   ========================================================================== */
@media screen and (max-width: 960px) {
    .content-sidebar-wrap {
        grid-template-columns: 1fr;
    }

    .widget-area {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   RESPONSIVE — Mobile
   ========================================================================== */
@media screen and (max-width: 768px) {
    :root {
        --agr-header-h: 60px;
    }

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

    .site-branding img { height: 36px; }

    /* Show hamburger, hide desktop nav */
    .menu-toggle { display: block; }

    .main-navigation ul {
        display: none;
        position: absolute;
        top: var(--agr-header-h);
        left: 0;
        right: 0;
        background: var(--agr-green-dark);
        flex-direction: column;
        padding: 16px 0;
        gap: 0;
        box-shadow: var(--agr-shadow-lg);
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation a {
        padding: 12px 24px;
        border-radius: 0;
    }

    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: rgba(0,0,0,0.15);
    }

    .main-navigation li:hover > ul,
    .main-navigation li:focus-within > ul {
        display: flex;
    }

    .header-cta { display: none; }

    /* Content */
    .site-content {
        padding: 24px 16px 40px;
    }

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

    .post-navigation {
        grid-template-columns: 1fr;
    }

    /* Un-float images */
    .entry-content .alignleft,
    .entry-content .alignright {
        float: none;
        display: block;
        margin: 1.2em auto;
        max-width: 100%;
    }

    /* Scrollable tables */
    .entry-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* CTA banner */
    .cta-banner {
        padding: 36px 20px;
        border-radius: var(--agr-radius);
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 36px 20px 28px;
    }

    /* Sidebar widgets */
    .widget-area {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
    .site-header,
    .site-footer,
    .widget-area,
    .post-navigation,
    .cta-banner,
    .comments-area,
    .menu-toggle,
    .subheader { display: none; }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .site-content { padding: 0; max-width: 100%; }

    a { color: #000; }

    .entry-content img { max-width: 4in; }
}
