/* ===================================
   WG Holdings - Reusable Components
   =================================== */

/* ===================================
   Form Components
   =================================== */

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-color);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-color);
    background-color: white;
    transition: var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

.form-success {
    color: #16a34a;
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

/* ===================================
   Cards
   =================================== */

.card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-base);
}

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

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

.card-content {
    padding: var(--spacing-md);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
}

.card-text {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.card-footer {
    padding: var(--spacing-sm) var(--spacing-md);
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

/* ===================================
   Badges
   =================================== */

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background-color: var(--primary-color);
    color: white;
}

.badge-success {
    background-color: #16a34a;
    color: white;
}

.badge-warning {
    background-color: #ea580c;
    color: white;
}

.badge-info {
    background-color: #0284c7;
    color: white;
}

/* ===================================
   Alerts
   =================================== */

.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    border-left: 4px solid;
}

.alert-success {
    background-color: #dcfce7;
    border-color: #16a34a;
    color: #166534;
}

.alert-error {
    background-color: #fee2e2;
    border-color: #dc2626;
    color: #991b1b;
}

.alert-warning {
    background-color: #ffedd5;
    border-color: #ea580c;
    color: #9a3412;
}

.alert-info {
    background-color: #dbeafe;
    border-color: #0284c7;
    color: #075985;
}

/* ===================================
   Modal/Dialog
   =================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background-color: white;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-base);
}

.modal-close:hover {
    background-color: var(--bg-light);
    color: var(--text-color);
}

.modal-body {
    padding: var(--spacing-md);
}

.modal-footer {
    padding: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
}

/* ===================================
   Loading Spinner
   =================================== */

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
}

/* ===================================
   Breadcrumbs
   =================================== */

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) 0;
    font-size: 0.875rem;
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs-separator {
    color: var(--text-light);
}

.breadcrumbs .active {
    color: var(--text-color);
    font-weight: 500;
}

/* ===================================
   Tabs
   =================================== */

.tabs {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: var(--spacing-md);
}

.tabs-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
    margin: 0;
    padding: 0;
}

.tabs-item {
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition-base);
    color: var(--text-light);
    font-weight: 500;
}

.tabs-item:hover {
    color: var(--primary-color);
}

.tabs-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===================================
   Accordion
   =================================== */

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
}

.accordion-header {
    padding: var(--spacing-md);
    background-color: var(--bg-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-base);
}

.accordion-header:hover {
    background-color: var(--border-color);
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.accordion-body {
    padding: var(--spacing-md);
}

/* ===================================
   Utility Classes
   =================================== */

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flex Utilities */
.flex-column { flex-direction: column; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

/* Spacing Utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

/* Width */
.w-100 { width: 100%; }
.w-50 { width: 50%; }
.w-auto { width: auto; }

/* ===================================
   About Page Styles
   =================================== */

/* About Hero Section */
.about-hero-section {
    background-color: var(--primary-color);
    padding: 8rem 0 4rem;
    text-align: center;
}

.about-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.about-hero-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-color);
    max-width: 900px;
    margin: 1rem auto;
}

.hero-tagline {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Mission Section */
.about-mission-section {
    background-color: #ffffff;
    padding: 5rem 0 3rem;
    position: relative;
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mission-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.mission-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.mission-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Founder Section */
.founder-section {
    background-color: #ffffff;
    padding: 3rem 0 5rem;
}

.founder-wrapper {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    align-items: center;
}

.founder-image {
    max-width: 380px;
    margin: 0 auto;
}

.founder-image img {
    width: 100%;
    height: auto;
    max-height: 480px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 2/3;
    object-fit: cover;
}

.founder-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.founder-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.founder-subtitle {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.founder-bio {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Values Section */
.values-section {
    background-color: var(--primary-color);
    padding: 6rem 0;
}

.values-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.values-section .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0;
    color: var(--text-color);
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.values-grid .value-card {
    width: calc(33.333% - 1.5rem);
    min-width: 280px;
}

.value-card {
    background-color: #f5e6d3;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-base);
}

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

.value-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(0deg, #ffffff, #ffffff);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
    .value-icon-wrapper {
        width: 90px;
        height: 90px;
        border-radius: var(--radius-xl);
        padding: 1rem;
    }
}

.value-icon-wrapper i {
    font-size: 2rem;
    color: var(--text-color);
}

.value-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.value-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 0;
}

/* Services Overview Section */
.services-overview-section {
    background-color: #ffffff;
    padding: 6rem 0;
}

.services-overview-section .section-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.services-overview-section .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.services-overview-section .section-header p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
}

.services-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.service-overview-card {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-overview-card:hover {
    background-color: #e8e8e8;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.service-overview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-overview-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 0;
}

/* Center the last item when there's an odd number of cards (only on larger screens) */
@media (min-width: 993px) {
    .services-overview-grid > .service-overview-card:nth-child(5):last-child {
        grid-column: 1 / -1;
        max-width: 550px;
        margin: 0 auto;
        width: 100%;
    }
}

/* Approach Section */
.approach-section {
    background-color: var(--bg-light);
    padding: 6rem 0;
    position: relative;
}

.approach-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch; /* both columns take equal row height */
}

.approach-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.approach-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.approach-principles {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-top: 2rem;
    border-left: 4px solid var(--primary-color);
}

.approach-principles p {
    margin-bottom: 0.75rem;
}

.approach-principles p:last-child {
    margin-bottom: 0;
}

.approach-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%; /* fill the grid row height */
}

.approach-image img {
    width: 100% !important;
    height: 100% !important; /* match section height */
    display: block;
    object-fit: cover;
    max-width: none !important; /* override inline max-width if any */
    border-radius: 0 !important; /* rely on wrapper radius to avoid inner edge artifacts */
}

/* When stacked on smaller screens, let the image size naturally */
@media (max-width: 992px) {
    .approach-image {
        height: auto;
    }
    .approach-image img {
        height: auto !important;
    }
}

.approach-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* About Page Responsive */
@media (max-width: 992px) {
    .about-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.25rem;
    }
    
    .founder-wrapper,
    .approach-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .founder-image {
        max-width: 300px;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-hero-section {
        padding: 6rem 0 3rem;
    }
    
    .about-hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1.125rem;
    }
    
    .mission-content h2,
    .founder-content h2,
    .values-section .section-header h2,
    .services-overview-section .section-header h2,
    .approach-content h2 {
        font-size: 1.875rem;
    }
    
    .about-mission-section,
    .founder-section,
    .values-section,
    .services-overview-section,
    .approach-section {
        padding: 4rem 0;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ===================================
   Contact Page Styles
   =================================== */

.contact-options-section {
    background-color: white;
    padding: 5rem 0 6rem;
}

.contact-block {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-block:first-child {
    padding-top: 2rem;
    padding-bottom: 5rem;
}

.contact-block:last-child {
    padding-top: 5rem;
}

.contact-block h2 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
}

.contact-block p {
    font-size: 1.125rem;
    color: #1a1a1a;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-block p a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
}

.contact-block p a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.contact-cta {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.calendar-widget-container {
    margin-top: 3rem;
    padding: 3rem 2rem;
    background-color: #f9fafb;
    border-radius: 12px;
    min-height: 500px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.calendar-placeholder p {
    margin: 0.5rem 0;
}

/* Contact Page - Responsive */
@media (max-width: 768px) {
    .contact-block h2 {
        font-size: 1.875rem;
    }
    
    .contact-block p {
        font-size: 1rem;
    }
    
    .contact-block {
        padding: 3rem 1.5rem;
    }
    
    .contact-block:first-child {
        padding-bottom: 3rem;
    }
    
    .contact-block:last-child {
        padding-top: 3rem;
    }
    
    .calendar-widget-container {
        padding: 2rem 1.5rem;
        min-height: 400px;
    }
    
    .contact-options-section {
        padding: 3rem 0 4rem;
    }
}

/* ===================================
   FAQ Page Styles
   =================================== */

/* FAQ Section */
.faq-section {
    padding: 3rem 0 6rem;
    background-color: #ffffff;
}

/* Add top margin when FAQ follows CTA */
.cta-section + .faq-section {
    margin-top: 3rem;
}

.faq-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.faq-section .section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0;
    color: var(--text-color);
    font-weight: 400;
    line-height: 1.3;
}

.faq-wrapper {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 1rem;
}

.faq-item {
    background: white;
    margin-bottom: 0;
    overflow: hidden;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #d0d0d0;
}

.faq-item:first-child {
    border-top: 1px solid #d0d0d0;
}

.faq-item:hover {
    background-color: transparent;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.75rem 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 400;
    color: #1a1a1a;
    transition: background-color 0.2s ease;
    gap: 2rem;
    line-height: 1.5;
}

.faq-question:hover {
    background-color: transparent;
}

.faq-question span {
    flex: 1;
    line-height: 1.6;
}

.faq-icon {
    flex-shrink: 0;
    font-size: 0.7rem;
    color: #999;
    transition: transform 0.3s ease;
    margin-top: 0.25rem;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: white;
}

.faq-answer-content {
    padding: 0 1.5rem 1.75rem 1.5rem;
}

.faq-answer-content p {
    margin: 0;
    line-height: 1.7;
    color: #555;
    font-size: 0.9375rem;
}

.faq-answer-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* FAQ CTA Section */
.faq-section + .cta-section {
    background-color: var(--bg-tan, #d8aa6d);
    padding: 5rem 0;
    text-align: center;
}

.faq-section + .cta-section .cta-content {
    max-width: 100%;
}

.faq-section + .cta-section h2 {
    font-size: 2.25rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.2;
}

.faq-section + .cta-section p {
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.faq-section + .cta-section a:not(.btn) {
    color: #1a1a1a;
    text-decoration: underline;
}

/* FAQ Responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: 2rem 0 3rem;
    }

    .faq-wrapper {
        padding: 0 0.5rem;
    }

    .faq-question {
        padding: 1.5rem 1rem;
        font-size: 0.9375rem;
        gap: 1rem;
    }

    .faq-answer-content {
        padding: 0 1rem 1.5rem 1rem;
    }

    .faq-answer-content p {
        font-size: 0.875rem;
    }

    .faq-section + .cta-section {
        padding: 3.5rem 1.5rem;
    }

    .faq-section + .cta-section h2 {
        font-size: 1.75rem;
    }

    .faq-section + .cta-section p {
        font-size: 0.9375rem;
    }
}


