/* =============================================================================
 * Regilyze — ABOUT PAGE STYLES
 * =============================================================================
 * EXTRACTED FROM about.php ON 2026-08-18 (SXO fix S1).
 *
 * WHY. This was 15.6 KB of CSS inlined into a <style> tag in the page body.
 * Inline CSS is never cached: the browser re-downloads and re-parses every byte
 * of it on each page view. Across the public pages the site was re-sending
 * ~92 KB of uncacheable CSS per homepage view (49.6 KB here, 24.7 KB from
 * includes/header.php, 18 KB from includes/footer.php).
 *
 * As an external file under /css/ it is fetched once and then served from cache
 * for a year — .htaccess already sets `Cache-Control: public, max-age=31536000,
 * immutable` for that directory. The ?v= cache-buster on the <link> means a
 * deploy still invalidates it immediately.
 *
 * ORDER IS LOAD-BEARING. The <link> that replaced the <style> sits at the exact
 * same position in the document, which keeps the cascade identical:
 *     styles.min.css → ux-enhancements.css → rgz-shell.css (all in <head>)
 *       → THIS FILE (page body, top)
 *         → rgz-footer.css (page body, bottom)
 * Do not hoist it into <head>: it must stay after rgz-shell.css, and it must
 * stay before rgz-footer.css. It depends on the :root custom properties that
 * rgz-shell.css defines.
 * =============================================================================
 */
/* Page-wide overflow guard — same fix as landing/services pages */
html { overflow-x: clip; max-width: 100%; }
body { overflow-x: clip; max-width: 100%; }
@supports not (overflow-x: clip) {
    html, body { overflow-x: hidden; }
}

/* ============================================================
   DESKTOP-SITE-MODE GRACEFUL DEGRADATION
   Same approach as landing page: when mobile/tablet users toggle
   "Desktop site" in their browser, the browser forces a wide
   viewport (~980-1024px) regardless of physical screen size.
   These styles ensure the layout still renders cleanly:

   1. No section can exceed its parent's width (prevents h-scroll)
   2. Container always has at minimum 16px side padding
   3. Long text breaks naturally instead of pushing the layout wider
   ============================================================ */
.about-header, .who-section, .why-section-about,
.expertise-section, .deliverables-section {
    max-width: 100%;
    overflow-x: clip;
}
@supports not (overflow-x: clip) {
    .about-header, .who-section, .why-section-about,
    .expertise-section, .deliverables-section {
        overflow-x: hidden;
    }
}

/* Containers always respect viewport width */
.about-header .container,
.who-section .container,
.why-section-about .container,
.expertise-section .container,
.deliverables-section .container {
    max-width: 100%;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
}

/* Long words / URLs can break to keep layout intact */
.about-header h1, .about-header p,
.who-content h2, .who-content p,
.who-features li,
.section-header h2, .section-header p,
.reason-card h3, .reason-card p,
.expertise-body h3, .expertise-body p,
.deliverable-card h3, .deliverable-card p {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* ============================================================
   ABOUT PAGE
   Structure: Who we are → Why us → Expertise → What you get
   ============================================================ */

/* ---------- Page Header ---------- */
.about-header {
    background: var(--bg-cream);
    padding: 4rem 0 3rem;
    text-align: center;
}
.about-header .breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}
.about-header .breadcrumb a { color: var(--accent-orange); text-decoration: none; }
.about-header .breadcrumb a:hover { text-decoration: underline; }
.about-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.about-header p {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}
.about-header .highlight-text { color: var(--accent-orange); font-weight: 600; }

/* ---------- WHO WE ARE ---------- */
.who-section {
    padding: 5rem 0;
    background: var(--bg-white);
}
.who-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}
.who-content .section-label {
    display: inline-block;
    background: var(--accent-orange-light);
    color: var(--accent-orange);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.who-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.who-content p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.who-content p strong { color: var(--text-primary); font-weight: 700; }

.who-quote {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border-left: 3px solid var(--accent-orange);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 1.5rem 0;
}
.who-quote p {
    margin: 0;
    color: var(--text-primary);
    font-style: italic;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Visual side */
.who-visual {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 1px solid #FFE0CC;
    border-radius: var(--radius-xl);
    padding: 2rem;
    position: relative;
}
.who-visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid var(--border-light);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 1.25rem;
}
.who-visual-badge svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }
.who-visual h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}
.who-features { list-style: none; padding: 0; margin: 0; }
.who-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.625rem 0;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,107,53,0.12);
}
.who-features li:last-child { border-bottom: none; }
.who-features svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
    stroke: var(--accent-orange);
    fill: none;
}

@media (max-width: 1024px) {
    .who-grid { grid-template-columns: 1fr; gap: 2.5rem; max-width: 640px; }
    .who-section { padding: 4rem 0; }

    /* Center all content on mobile/tablet */
    .who-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .who-content .section-label {
        align-self: center;
    }
    .who-quote {
        border-left: none;
        border-top: 3px solid var(--accent-orange);
        border-radius: var(--radius-md);
        text-align: center;
        max-width: 560px;
    }
    .who-quote p { text-align: center; }

    /* Center the visual side card features */
    .who-visual {
        text-align: center;
    }
    .who-features li {
        justify-content: center;
        text-align: left; /* keep text wrap natural while item itself is centered */
        max-width: 360px;
        margin: 0 auto;
    }
}
@media (max-width: 640px) {
    .who-section { padding: 3rem 0; }
    .who-visual { padding: 1.75rem 1.5rem; }
    .who-content p, .who-quote p { font-size: 0.9375rem; }
}

/* ---------- WHY US (3 reasons) ---------- */
.why-section-about {
    padding: 5rem 0;
    background: var(--bg-cream);
}
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}
.section-header .section-label {
    display: inline-block;
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}
.reason-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem 1.75rem;
    text-align: center;
    transition: all 0.3s var(--ease);
}
.reason-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--accent-orange);
}
.reason-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 18px var(--ri-shadow, rgba(255,107,53,0.3)), inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
}
.reason-icon svg {
    width: 26px;
    height: 26px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}
.ri-orange { background: linear-gradient(135deg, #FF8E53 0%, #FF6B35 100%); --ri-shadow: rgba(255,107,53,0.35); }
.ri-blue   { background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%); --ri-shadow: rgba(37,99,235,0.35); }
.ri-green  { background: linear-gradient(135deg, #10B981 0%, #059669 100%); --ri-shadow: rgba(16,185,129,0.35); }

.reason-card h3 {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.reason-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1024px) {
    .reasons-grid { grid-template-columns: 1fr; max-width: 520px; }
    .why-section-about { padding: 4rem 0; }
}
@media (max-width: 640px) {
    .why-section-about { padding: 3rem 0; }
    .reason-card { padding: 1.75rem 1.5rem; }
}

/* ---------- OUR EXPERTISE ---------- */
.expertise-section {
    padding: 5rem 0;
    background: var(--bg-white);
}
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}
.expertise-card {
    background: var(--bg-cream);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all 0.3s var(--ease);
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--accent-orange);
}
.expertise-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.expertise-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }
.expertise-body h3 {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.expertise-body p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .expertise-grid { grid-template-columns: 1fr; max-width: 520px; }
    .expertise-section { padding: 4rem 0; }
    /* Switch from horizontal (icon+text row) to centered column */
    .expertise-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    .expertise-body { width: 100%; }
}
@media (max-width: 640px) {
    .expertise-section { padding: 3rem 0; }
    .expertise-card { padding: 1.5rem 1.25rem; }
}

/* ---------- WHAT YOU GET ---------- */
.deliverables-section {
    padding: 5rem 0;
    background: var(--bg-cream);
}
.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}
.deliverable-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: all 0.3s var(--ease);
}
.deliverable-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(26,26,27,0.08);
    border-color: var(--accent-orange);
}
.deliverable-tick {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 6px 14px rgba(16,185,129,0.3);
}
.deliverable-tick svg { width: 20px; height: 20px; stroke: white; fill: none; }
.deliverable-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.deliverable-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 1024px) {
    .deliverables-grid { grid-template-columns: repeat(2, 1fr); }
    .deliverables-section { padding: 4rem 0; }
}
@media (max-width: 640px) {
    .deliverables-section { padding: 3rem 0; }
    .deliverables-grid { grid-template-columns: 1fr; max-width: 420px; gap: 1rem; }
    .deliverable-card { padding: 1.5rem 1.25rem; }
}

/* ============================================================
   SMALL-SCREEN POLISH (matches landing page breakpoint coverage)
   Tightens spacing on phones so content doesn't feel cramped.
   On phones, EVERYTHING is centered — content alignment, icons,
   list items, headings, paragraphs.
   ============================================================ */
@media (max-width: 480px) {
    .about-header { padding: 3rem 0 2.25rem; }
    .about-header h1 { font-size: 1.875rem; }
    .about-header p { font-size: 0.9375rem; }

    .who-section { padding: 2.5rem 0; }
    .why-section-about { padding: 2.5rem 0; }
    .expertise-section { padding: 2.5rem 0; }
    .deliverables-section { padding: 2.5rem 0; }

    .section-header { margin-bottom: 2rem; }
    .section-header h2 { font-size: 1.5rem; }
    .section-header p { font-size: 0.875rem; }

    /* Who section — all centered */
    .who-content h2 { font-size: 1.5rem; }
    .who-content p { font-size: 0.9375rem; }
    .who-quote { padding: 1rem 1.25rem; margin: 1.25rem auto; }
    .who-visual { padding: 1.5rem 1.25rem; }
    .who-visual h3 { font-size: 1.125rem; }
    .who-features li {
        font-size: 0.875rem;
        max-width: 300px;
        padding: 0.5rem 0;
    }

    /* Reason cards */
    .reason-card { padding: 1.5rem 1.25rem; }
    .reason-card h3 { font-size: 1rem; }
    .reason-card p { font-size: 0.875rem; }

    /* Expertise cards */
    .expertise-card { padding: 1.5rem 1.25rem; }
    .expertise-body h3 { font-size: 1rem; }
    .expertise-body p { font-size: 0.875rem; }

    /* Deliverable cards */
    .deliverable-card h3 { font-size: 0.9375rem; }
    .deliverable-card p { font-size: 0.8125rem; }
}

@media (max-width: 360px) {
    .about-header { padding: 2.5rem 0 2rem; }
    .about-header h1 { font-size: 1.5rem; }
    .about-header p { font-size: 0.875rem; }

    .who-content h2 { font-size: 1.375rem; }
    .who-content p, .who-quote p { font-size: 0.875rem; line-height: 1.65; }
    .who-visual h3 { font-size: 1rem; }
    .who-features li { font-size: 0.8125rem; max-width: 260px; }

    .section-header h2 { font-size: 1.25rem; }
    .section-header p { font-size: 0.8125rem; }

    .reason-icon, .expertise-icon { width: 44px; height: 44px; }
    .reason-icon svg { width: 22px; height: 22px; }
    .expertise-icon svg { width: 20px; height: 20px; }
    .deliverable-tick { width: 36px; height: 36px; }
    .deliverable-tick svg { width: 18px; height: 18px; }
    .who-visual-badge { font-size: 0.6875rem; }

    .reason-card, .expertise-card, .deliverable-card { padding: 1.25rem 1rem; }
}

/* Tap-friendly hit targets on touch devices */
@media (hover: none) and (pointer: coarse) {
    .reason-card:hover,
    .expertise-card:hover,
    .deliverable-card:hover {
        transform: none;
    }
}
