/* ============================================================================
   PPFAS WEALTH — GLOBAL CSS SYSTEM
   Consolidated from existing page styles - preserves all design specifications
   ============================================================================ */

/* ============================================================================
   1. ROOT VARIABLES — Brand Colors & Spacing
   ============================================================================ */

:root {
    /* Brand Colors */
    --color-primary: #6e1a84;
    --color-primary-dark: #58126b;
    --color-primary-alt: #6d1b7b;
    --color-secondary: purple;
    --color-secondary-dark: #6d2077;
    --color-secondary-alt: #6b238e;

    /* Text Colors */
    --color-text-dark: #333333;
    --color-text-light: #595959;
    --color-text-muted: #666666;
    --color-link: #1c1c9c;
    --color-link-dark: #0d0d6b;

    /* Backgrounds */
    --color-bg-white: #ffffff;
    --color-bg-light-purple: rgb(245, 240, 248);
    --color-bg-light-purple-2: #f7f3f8;
    --color-bg-light-purple-3: #f8f2f8;
    --color-bg-light-gray: #f8f8f8;
    --color-bg-light-overlay: rgba(0, 0, 0, 0.04);
    --color-bg-light-overlay-2: rgba(0, 0, 0, 0.1);

    /* Borders */
    --color-border-light: #ddd;
    --color-border-light-purple: #fbe5ff;
    --color-border-dark: #767676;

    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    --spacing-2xl: 50px;

    /* Border Radius */
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 12px;
    --radius-2xl: 20px;
    --radius-full: 50px;

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;

    /* Shadows */
    --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* ============================================================================
   2. BASE STYLES
   ============================================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Varela Round', sans-serif !important;
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
    line-height: 1.6;
}

body, h1, h2, h3, h4, h5, h6, p, a, button, input, textarea {
    font-family: 'Varela Round', sans-serif !important;
}

/* ============================================================================
   3. TYPOGRAPHY — Consistent Heading Hierarchy
   ============================================================================ */

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-text-dark);
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-text-dark);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text-dark);
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text-dark);
}

h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text-dark);
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text-dark);
}

h2.mb-0 {
    color: rgba(120, 34, 134, 1);
    margin-bottom: 0;
}

p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

small {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ============================================================================
   4. LINKS
   ============================================================================ */

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

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

/* ============================================================================
   5. NAVBAR & NAVIGATION (Global shared from header.php)
   ============================================================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 12px 20px;
    background-color: var(--color-bg-white);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.05);
}

main {
    padding-top: 60px;
}

/* Skip Links */
.skip-link {
    position: absolute;
    left: -9999px;
    top: -9999px;
    padding: 10px 20px;
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
    text-align: center;
    white-space: nowrap;
}

.skip-link:focus-visible {
    position: fixed;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    outline: 2px solid var(--color-bg-white) !important;
    outline-offset: 2px !important;
}

main#main-content:focus-within {
    outline: 4px solid var(--color-primary);
    outline-offset: 8px;
    border-radius: 4px;
    box-shadow: 0 0 0 8px rgba(110, 26, 132, 0.15);
}

/* Global Focus Indicators */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(110, 26, 132, 0.25);
}

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

/* ============================================================================
   6. BUTTONS
   ============================================================================ */

.btn {
    transition: var(--transition-normal);
    border-radius: var(--radius-2xl);
    font-weight: bold;
}

.btn:focus-visible {
    outline: 2px solid var(--color-primary) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px rgba(110, 26, 132, 0.2) !important;
}

.btn-custom {
    border-radius: var(--radius-2xl);
    padding: 8px 16px;
    transition: var(--transition-normal);
    background-color: var(--color-secondary);
    color: var(--color-bg-white);
    border: none;
}

.btn-custom:hover {
    transform: scale(1.05);
    background-color: var(--color-secondary);
    color: var(--color-bg-white);
}

.btn-custom:focus-visible {
    transform: scale(1.05);
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(110, 26, 132, 0.4) !important;
}

/* Hero Button (outlined style) */
#herobutton {
    border: 2px solid var(--color-secondary);
    background: var(--color-bg-white);
    color: var(--color-secondary);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-normal);
}

#herobutton:hover {
    border: 2px solid var(--color-secondary);
    background: var(--color-secondary);
    color: var(--color-bg-white);
}

.btn-submit1, .btn-submit {
    display: flex;
    align-items: center;
    height: 43px;
    justify-content: space-between !important;
    width: 100%;
    max-width: 560px;
    padding: 15px 30px;
    background: #6D1B7B !important;
    color: white !important;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-submit:hover {
    background: #58126B !important;
}

.btn-submit:hover .arrow {
    transform: translateX(8px);
}

.btn-submit .arrow {
    transition: var(--transition-normal);
    font-size: 20px;
    margin-left: 10px;
}

/* ============================================================================
   7. FORMS
   ============================================================================ */

.form-control {
    border: 1px solid var(--color-border-light) !important;
    background-color: var(--color-bg-white) !important;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all var(--transition-normal);
}

.form-control:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(110, 26, 132, 0.15) !important;
    outline: none;
    background-color: var(--color-bg-white) !important;
}

.form-control::placeholder {
    color: #aaa;
}

.contact-form label {
    font-weight: bold;
}

/* ============================================================================
   8. CARDS & CONTAINERS
   ============================================================================ */

.card {
    width: auto;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    background: var(--color-bg-white);
    text-align: left;
    display: flex;
    flex-direction: column;
    padding: 20px;
    min-height: 365px;
}

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

.card-icon {
    width: 50px;
    height: auto;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.card-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.card-content {
    flex-grow: 1;
}

.card-footer {
    margin-top: auto;
    padding-top: 10px;
}

.info-box {
    background-color: var(--color-bg-white);
    padding: 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

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

.info-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.info-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.info-box h5 {
    margin: 0;
    font-size: 16px;
}

.info-text {
    font-size: 14px;
    color: var(--color-text-dark);
    line-height: 1.5;
    text-align: start;
    margin-top: 20px;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.contact-info {
    flex: 1;
    background: var(--color-bg-light-purple-3);
    padding: 20px 20px 0px 20px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-border-light-purple);
    font-size: 16px;
}

.contact-info h3 {
    color: var(--color-secondary);
}

.contact-info a {
    color: var(--color-link);
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    color: var(--color-link-dark);
    text-decoration: underline;
}

.contact-form {
    flex: 1;
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
}

/* ============================================================================
   9. LISTS
   ============================================================================ */

.consider-list {
    list-style: none;
    padding-left: 0;
}

.consider-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 15px;
}

.consider-list li::before {
    content: "●";
    color: var(--color-primary);
    font-size: 14px;
    position: absolute;
    left: 0;
    top: 3px;
}

.consider-box {
    border: 1px dashed var(--color-primary);
    padding: 20px;
    border-radius: 5px;
}

.consider-title {
    color: var(--color-primary);
    font-weight: bold;
}

/* ============================================================================
   10. SECTIONS & BACKGROUNDS
   ============================================================================ */

#vision {
    background-color: var(--color-bg-light-overlay);
    padding: 10px 0px 20px 0px;
}

/* ============ PAGE HEADER SECTION (#hd) ============ */
#hd {
    background-color: #00658F05;
    padding: 0.5rem 0;
    position: relative;
    z-index: 10;
    margin-top: 100px;
}

/* Row - flex layout, logo always at top and pushed to right edge */
#hd .row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
}

/* Left column - title on own line, extra content on same line */
#hd .col-md-6:first-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    flex: 1 1 auto;
    gap: 0.5rem 1rem;
}

/* Title takes full width to force onto its own line */
#hd .col-md-6:first-child h1,
#hd .col-md-6:first-child h2,
#hd .col-md-6:first-child .page-title {
    flex-basis: 100%;
}

/* Right column - logo at right edge */
#hd .col-md-6:last-child {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    flex: 0 0 auto;
}

/* Heading styles in header */
#hd h1,
#hd h2 {
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0;
    padding: 0;
}

#hd h1 {
    font-size: 1.5rem;
}

#hd h2.mb-0 {
    color: rgba(120, 34, 134, 1);
    margin-bottom: 0;
}

/* Page title styling */
.page-title {
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0;
    padding: 0;
}

/* Logo - responsive sizing */
#logo {
    height: auto;
    display: block;
}

.logo-img-global {
    max-width: 207px;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    display: block;
}

/* Index chart image - centered with fixed height */
.index-chart-image {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: 350px;
    object-fit: contain;
}

.logo-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.equal-height {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
}

.ourpartners {
    padding: 50px 0;
    background: var(--color-bg-light-gray);
    text-align: center;
}

.ourpartners h3 {
    color: var(--color-secondary-dark);
    font-size: 24px;
    margin-bottom: 20px;
}

.category {
    margin-bottom: 30px;
}

.category h5 {
    font-size: 18px;
    color: var(--color-secondary-dark);
    margin-bottom: 15px;
}

.feestructure {
    padding: 15px 0;
    text-align: left;
}

.title {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-secondary-alt);
    margin-bottom: 10px;
}

.quote-img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    align-items: center;
}

.registered-office {
    text-align: left;
    margin-top: 40px;
}

iframe {
    width: 100%;
    height: 350px;
    border-radius: var(--radius-lg);
}

/* ============================================================================
   11. RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    /* Header responsive adjustments */
    #hd .row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }

    #hd h1,
    #hd h2,
    #hd .page-title {
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    #hd .logo-img-global {
        max-width: 140px;
    }

    #logo {
        width: 140px;
        height: auto;
        display: block;
    }

    .col-md-6 {
        flex: 1;
        max-width: 50%;
    }

    .contact-container {
        flex-direction: column;
    }

    .btn-submit {
        width: 100%;
        max-width: 100%;
        font-size: 14px;
        padding: 10px 16px;
    }

    .herocard {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    .herocontainer {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 1px;
    }

    .skip-link:focus-visible {
        top: 15px;
        padding: 12px 20px;
    }
}

@media (min-width: 769px) {
    .herocontainer {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .navbar-toggler {
        order: -1;
    }

    .navbar-brand {
        position: absolute;
        right: 1rem;
        top: 0.5rem;
        order: 1;
    }

    .navbar-collapse {
        display: none;
    }

    .mobile-actions {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .desktop-menu {
        display: none;
    }
}

@media (max-width: 390px) {
    #hd h1,
    #hd h2,
    #hd .page-title {
        font-size: 1.1rem;
    }

    #hd .logo-img-global {
        max-width: 100px;
    }
}

@media (min-width: 768px) {
    .mobile-actions {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }

    .navbar-collapse {
        display: flex !important;
    }

    .desktop-menu {
        display: flex !important;
    }
}
