/*
Theme Name: Classic Minimal
Theme URI: https://example.com/classic-minimal
Author: AI Assistant
Description: A lightweight, legacy-style classic theme built without theme.json or block layouts. Perfect for standard PHP and custom CSS development.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: classic-minimal
*/

/* ==========================================================================
   Global Theme Settings & Resets
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    color: #4A4A4A; /* Primary Dark Grey brand color */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

/* Global site structural wrap */
.site-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0 !important; /* Enforces sharp image block corners */
}

.wp-block-image img,
.wp-block-image {
    border-radius: 0 !important;
}

/* ==========================================================================
   Gutenberg & Cover Block Breakout Framework (Chrome & Safari Fixes)
   ========================================================================== */

/* This lets full-bleed blocks stretch edge-to-edge even when trapped in a classic container */
.site-container .alignfull {
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: 100vw !important;
    width: 100vw !important;
}

.site-container .alignwide {
    margin-left: calc(50% - 600px) !important;
    margin-right: calc(50% - 600px) !important;
    max-width: 1200px !important;
    width: auto !important;
}

/* Normalizes layout blocks inside both browsers */
.wp-block-columns {
    display: flex !important;
    flex-wrap: wrap;
    width: 100% !important;
    gap: 2em;
}

.wp-block-column {
    flex: 1 1 0%;
    min-width: 0;
}

/* Typography elements */
h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4A4A4A;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4A4A4A;
    margin-top: 0;
    margin-bottom: 1.2rem;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: #4A4A4A;
}

/* Call to Action Pill Button */
.btn-cta {
    display: inline-block;
    background-color: #699881; /* Main Brand Green */
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.95rem;
    transition: background 0.2s ease;
    margin-top: 10px;
}

.btn-cta:hover {
    background-color: #4A4A4A; /* Shifts cleanly to Dark Grey on hover */
}

/* ==========================================================================
   Header & Navigation (Cleaned & Consolidated)
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #D1E3DC; /* Delicate Brand Off-white line */
    padding: 20px 0;
    width: 100%;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.site-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}





/* ==========================================================================
   Layout Sections
   ========================================================================== */
.hero-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    padding: 40px 0 60px 0;
}

.hero-content {
    padding-left: 20px;
}

.grid-section {
    display: grid;
    gap: 50px;
    padding: 40px 0;
    align-items: start;
}

.layout-platform {
    grid-template-columns: 1.3fr 0.7fr;
}

.layout-add01 {
    grid-template-columns: 1fr 1fr;
}

.layout-add02 {
    grid-template-columns: 0.7fr 1.3fr;
    padding-top: 0;
}

/* Content cards utilising brand colors */
.sidebar-box {
    background-color: #699881; /* Brand Green Box */
    color: #ffffff;
    padding: 30px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.sidebar-box.tint-box {
    background-color: #D1E3DC; /* Light tinted Brand Off-white backdrop */
    color: #4A4A4A; /* Legible Dark Grey text overlay */
    text-align: center;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.full-width-text {
    max-width: 850px;
    margin: 60px auto 40px auto;
    text-align: left;
}

.full-width-text h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.bottom-cta {
    text-align: center;
    padding: 60px 0 80px 0;
}

.bottom-cta h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.entry-meta {
    display:none;
}

.site-footer {
    background: #D1E3DC; /* Brand Off-white background */
    color: #4A4A4A;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #ABCBBE; /* Brand Light Green separator edge */
    text-align: center;
}

/* Base link style */
a {
    color: #D32F2F; /* Bright Red */
    text-decoration: underline; /* Keeps the underline for readability */
    transition: color 0.2s ease-in-out; /* Smooth color change on hover */
}

/* When someone hovers over or clicks the link */
a:hover, a:focus {
    color: #cc0000; /* Darker red on hover */
    text-decoration: none; /* Removes underline on hover */
}



/* ==========================================================================
   Elegant Dark Testimonial Block Override (Repaired)
   ========================================================================== */
.testimonial-quote {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important; 
    font-size: 1.25rem !important; /* Bumped up size so the quote carries weight */
    line-height: 1.5 !important; /* Repaired from 1.0 to prevent overlapping sentences */
    letter-spacing: 0.02em;
    max-width: 750px;
    margin: 0 auto 15px auto !important;
    color: #ffffff !important;
    font-style: italic;
}

.testimonial-author {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #D1E3DC; /* Leverages your brand off-white for hierarchy styling */
}

/* ==========================================================================
   Page Specific Blocks
   ========================================================================== */
.company-accent-box {
    background-color: #699881 !important;
    padding: 40px 30px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.company-accent-box p,
.company-accent-box h3 {
    color: #ffffff !important;
    font-family: Arial, sans-serif !important;
    font-size: 1.15rem !important;
    line-height: 1.6 !important;
    font-weight: bold;
    text-align: center;
    margin: 0 !important;
    letter-spacing: 0.01em;
}

/* ==========================================================================
   Responsive Breakpoints (Mobile Optimization)
   ========================================================================== */
@media (max-width: 768px) {
    .site-container {
        padding: 15px;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .site-navigation,
    .site-navigation ul,
    .main-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero-section,
    .layout-platform,
    .layout-add01,
    .layout-add02 {
        grid-template-columns: 1fr !important;
        gap: 30px;
        padding: 25px 0;
    }

    .hero-section {
        display: flex;
        flex-direction: column-reverse;
    }

    .hero-content {
        padding-left: 0;
    }

    h1 {
        font-size: 1.9rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .sidebar-box {
        width: 100%;
    }
}

/* ==========================================================================
   Custom Red Brand Button
   ========================================================================== */
.btn-red {
    display: inline-block;
    background-color: #D32F2F; /* Your exact Alert Red */
    color: #ffffff !important;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.03em;
    padding: 12px 32px;
    border-radius: 4px; /* Clean crisp corners (change to 50px for a pill shape) */
    box-shadow: 0 4px 6px rgba(211, 47, 47, 0.15); /* Soft, color-matched glow shadow */
    transition: all 0.25s ease-in-out;
    cursor: pointer;
    border: none;
    text-align: center;
    line-height: 1;
}

/* Hover State (Desktop) */
.btn-red:hover {
    background-color: #b71c1c; /* Deepens slightly to a rich crimson */
    box-shadow: 0 6px 12px rgba(211, 47, 47, 0.25); /* Shadow expands on hover */
    transform: translateY(-2px); /* Lifts up slightly for a satisfying tactile feel */
}

/* Active State (When clicked or tapped on mobile) */
.btn-red:active {
    transform: translateY(1px); /* Sinks into the page when pressed */
    box-shadow: 0 2px 4px rgba(211, 47, 47, 0.15);
}

/* ==========================================================================
   Mobile Responsive Hamburger Navigation Framework
   ========================================================================== */

/* Desktop Display: Hide the toggle switch by default */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
    z-index: 999;
}

.hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #4A4A4A; /* Your Dark Grey brand color */
    transition: all 0.3s ease-in-out;
}

/* Mobile Media Query Brake Override */
@media (max-width: 768px) {
    /* Expose the responsive tap button */
    .menu-toggle {
        display: flex;
    }

    /* Restructure navigation links into a clean, hidden dropdown tray */
    .main-menu {
        display: none !important; /* Kept closed until toggled */
        flex-direction: column !important;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #ffffff;
        padding: 20px !important;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        border-bottom: 2px solid #D1E3DC; /* Brand Off-white delimiter accent */
        z-index: 998;
        gap: 20px !important;
    }

    /* Force parent header position context to lock the dropdown dropdown alignment */
    .header-container {
        position: relative;
        flex-direction: row !important; /* Keep Logo and Hamburger in line on mobile */
        justify-content: space-between;
    }

    /* Active Class Indicator: When JS adds '.toggled', open the menu instantly */
    .site-navigation.toggled .main-menu {
        display: flex !important;
    }

    /* Smooth Hamburger Visual Morph into an "X" when clicked */
    .site-navigation.toggled .hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .site-navigation.toggled .hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    .site-navigation.toggled .hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


body {
    /* Modern system font stack focusing on clean geometry and readability */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #4A4A4A; 
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .main-menu li a {
    /* Slightly tightens heading letter spacing for a premium, editorial look */
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.75rem;
    font-weight: 800; /* Extra bold for commanding attention on the hero */
    color: #4A4A4A;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.0rem;
    font-weight: 700; /* Clean, clear sectional dividers */
    color: #4A4A4A;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 1.2rem;
}

/* Restores and forces visibility on the custom header logo img element */
.site-logo img, 
.custom-logo {
    max-height: 50px !important;
    width: auto !important;
    display: block !important;
}


p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem; /* Marginally increased for easier scanning of technical data */
    color: #5A5A5A; /* Softened slightly to reduce stark contrast strain */
}

/* Call to Action Pill Button */
.btn-cta {
    display: inline-block;
    background-color: #699881; 
    color: #ffffff !important;
    text-decoration: none;
    padding: 12px 32px; /* Adjusted spacing to look balanced with newer typography weights */
    border-radius: 50px;
    font-weight: 600; /* Semi-bold offers better scaling than pure bold on modern screens */
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: background 0.2s ease;
    margin-top: 10px;
}


/* ==========================================================================
   Gutenberg Isolated Team Section Block Overrides (Class Protected)
   ========================================================================== */

/* This layout block handles the spacing gap between cards */
.wp-block-columns.is-style-team-card-row {
    gap: 30px !important;
}

/* Individual card styling with soft background tinting - ONLY fires when class is present */
.wp-block-column.is-style-team-card {
    background-color: #f7f9f8 !important; /* Soft tint variant of brand palette */
    padding: 0 0 25px 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Constrains and centers the portrait framing paths inside team card modules */
.wp-block-column.is-style-team-card .wp-block-image {
    margin: 0 0 25px 0 !important;
    width: 100% !important;
}

.wp-block-column.is-style-team-card .wp-block-image img {
    width: 100% !important;
    height: 280px !important;
    object-fit: cover !important;
}

/* Card Heading and Bio paragraph adjustments isolated to the team cards */
.wp-block-column.is-style-team-card h3 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: center;
    color: #4A4A4A;
    margin: 0 auto 20px auto !important;
    padding: 0 25px !important;
    max-width: 280px;
}

.wp-block-column.is-style-team-card p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    text-align: center;
    color: #6A6A6A;
    margin: 0 !important;
    padding: 0 25px !important;
}


/* ==========================================================================
   Custom Red Brand Button (Global Theme Stylesheet)
   ========================================================================== */
.center-button-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 20px auto !important;
    clear: both;
}

.btn-red,
.wp-block-button__link.btn-red,
.wp-block-button.btn-red a {
    display: inline-block !important;
    background-color: #D32F2F !important; /* Alert Red */
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: Arial, sans-serif !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    letter-spacing: 0.03em !important;
    padding: 12px 32px !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 6px rgba(211, 47, 47, 0.15) !important;
    transition: all 0.25s ease-in-out !important;
    cursor: pointer !important;
    border: none !important;
    text-align: center !important;
    line-height: 1 !important;
}

.btn-red:hover,
.wp-block-button__link.btn-red:hover,
.wp-block-button.btn-red a:hover {
    background-color: #b71c1c !important; /* Crimson */
    box-shadow: 0 6px 12px rgba(211, 47, 47, 0.25) !important;
    transform: translateY(-2px) !important;
}

.btn-red:active,
.wp-block-button__link.btn-red:active,
.wp-block-button.btn-red a:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 4px rgba(211, 47, 47, 0.15) !important;
}

/* ==========================================================================
   Fix for Core WordPress Block Button Width Overrides
   ========================================================================== */

/* Overrides the core WP rule by stripping the 100% width condition */
.wp-block-buttons .wp-block-button.aligncenter,
.center-button-wrap,
.wp-block-button {
    width: auto !important; /* Force the button wrapper to shrink wrap text */
    max-width: max-content !important;
}

/* Formats your standard red button accurately */
.center-button-wrap a.btn-red {
    display: inline-block !important;
    width: auto !important; /* Forces layout to respect text footprint */
    background-color: #D32F2F !important; /* Your standard red accent */
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 10px 24px !important; /* Tighter padding for a small, neat footprint */
    border-radius: 4px !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
}

/* Centering engine safety rules */
.center-button-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 24px auto !important;
    clear: both !important;
}

/* Hover Adjustments */
.center-button-wrap a.btn-red:hover {
    background-color: #b71c1c !important;
    transform: translateY(-1px) !important;
}

/* ==========================================================================
   Continicare Custom Button Color Override
   ========================================================================== */

/* Overrides the core WP rule by stripping the 100% width condition */
.wp-block-buttons .wp-block-button.aligncenter,
.center-button-wrap,
.wp-block-button {
    width: auto !important;
    max-width: max-content !important;
}

/* Forces Red presentation onto both custom HTML buttons and native WP Button blocks */
.center-button-wrap a.btn-red,
.wp-block-button a.wp-block-button__link,
.wp-block-button__link {
    display: inline-block !important;
    width: auto !important;
    background-color: #D32F2F !important; /* Your explicit alert red brand color */
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 10px 24px !important; /* Preserves your preferred tight layout footprint */
    border-radius: 50px !important; /* Preserves the smooth oval capsule shape */
    border: none !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
}

/* Global Hover Controls */
.center-button-wrap a.btn-red:hover,
.wp-block-button a.wp-block-button__link:hover,
.wp-block-button__link:hover {
    background-color: #b71c1c !important; /* Crimson hover accent shift */
    transform: translateY(-1px) !important;
}

/* Centering engine constraints */
.center-button-wrap,
.wp-block-buttons.is-content-justification-center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 24px auto !important;
    clear: both !important;
}


/* Increase space globally for 66/33 WordPress core column blocks */
.wp-block-columns {
    gap: 4.5rem !important; /* Adjust this value up or down to fine-tune the gap */
}

/* Ensure column flex items shrink safely to accommodate the new gap width */
.wp-block-column {
    min-width: 0;
}


.wp-block-cover:has(.has-brand-green-background-color) .wp-block-cover__inner-container {
    padding: 40px !important;
}

