/* =============================================================================
   Contact Page Styles
   Uses centralized color scheme from theme.css (--theme-* variables)
   All styles are scoped to .contact-page to prevent conflicts
   ============================================================================= */

/* =============================================================================
   Page Layout
   ============================================================================= */

.contact-page {
    padding: 0;
    background-color: #ffffff;
    min-height: 100vh;
    font-size: 1rem;
}

.contact-page > .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* =============================================================================
   Page Header
   ============================================================================= */

.contact-header {
    padding: 2.5rem 0 2rem;
    text-align: center;
}

.contact-title {
    font-family: var(--font-family-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--theme-text-primary, #1f2937);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.contact-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--theme-text-muted, #6b7280);
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================================================
   Section Styles
   ============================================================================= */

.buy-online-section,
.head-office-section,
.showrooms-section {
    padding: 2rem 0;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--theme-primary, #e43131);
    margin-bottom: 0.5rem;
}

.section-heading {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--theme-text-primary, #1f2937);
    margin: 0 0 0.5rem;
}

/* Normal case heading (no uppercase transform) */
.section-heading--normal {
    text-transform: none;
}

.section-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--theme-text-muted, #6b7280);
    margin: 0 0 1.5rem;
    max-width: 600px;
}

/* =============================================================================
   Buy Online Section - Clean design without border
   ============================================================================= */

.buy-online-section {
    padding-bottom: 2.5rem;
}

.buy-online-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

/* Buy online icon - simple gray, no background */
.buy-online-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.buy-online-icon svg {
    width: 28px;
    height: 28px;
    color: #6b7280;
}

.buy-online-titles .section-label {
    margin-bottom: 0.125rem;
}

.buy-online-titles .section-heading {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.buy-online-section .section-description {
    max-width: none;
    margin-bottom: 1.25rem;
}

.buy-online-cta {
    margin-top: 1.5rem;
}

/* =============================================================================
   Online Sales Contact Grid
   ============================================================================= */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
    background: #fef2f2;
    border-radius: 0.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

/* Contact icons - simple gray, no background/border */
.contact-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.contact-info h3 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.05em;
    color: var(--theme-text-muted, #6b7280);
    margin: 0 0 0.375rem;
}

.contact-info p {
    font-size: 1rem;
    color: var(--theme-text-primary, #1f2937);
    margin: 0;
    line-height: 1.5;
}

.contact-info .text-muted {
    color: var(--theme-text-muted, #6b7280);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--theme-text-primary, #1f2937);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-links a:hover {
    color: var(--theme-primary, #e43131);
}

.contact-links a span {
    font-weight: 400;
    color: var(--theme-text-muted, #6b7280);
}

/* =============================================================================
   Head Office Section - Prominent display
   ============================================================================= */

.head-office-section {
    padding-top: 0;
    padding-bottom: 2.5rem;
}

/* Head office card wrapper - displays showroom card at full width */
.head-office-card {
    max-width: 600px;
}

.head-office-card .showroom-card {
    transition: box-shadow 0.2s ease;
}

.head-office-card .showroom-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.head-office-header {
    padding: 1.5rem 1.5rem 0;
}

.head-office-header .section-label {
    margin-bottom: 0.25rem;
}

.head-office-header .section-heading {
    margin-bottom: 0.5rem;
}

.head-office-header .section-description {
    margin-bottom: 0;
}

.head-office-body {
    padding: 1.5rem;
}

.head-office-info {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--theme-border-light, #e5e7eb);
}

.head-office-name {
    font-family: var(--font-family-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--theme-text-primary, #1f2937);
    margin: 0 0 0.25rem;
}

.head-office-tagline {
    font-size: 1rem;
    color: var(--theme-text-muted, #6b7280);
    margin: 0;
}

.head-office-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* =============================================================================
   Showrooms Section
   ============================================================================= */

.showrooms-section {
    border-top: 1px solid var(--theme-border-light, #e5e7eb);
    padding-top: 2.5rem;
}

/* Visibility notice for users outside India */
.showrooms-visibility-notice {
    background: #fef2f2;
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1.5rem;
}

.showrooms-visibility-notice p {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--theme-text-muted, #6b7280);
    margin: 0;
}

.showrooms-visibility-notice svg {
    width: 18px;
    height: 18px;
    color: #6b7280;
    flex-shrink: 0;
}

.btn-hide-showrooms {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--theme-primary, #e43131);
    cursor: pointer;
    text-decoration: underline;
    margin-left: auto;
}

.btn-hide-showrooms:hover {
    color: var(--theme-primary-dark, #c52a2a);
}

/* =============================================================================
   Showrooms Grid
   ============================================================================= */

.showrooms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.showroom-card {
    background: #ffffff;
    border: 1px solid var(--theme-border-light, #e5e7eb);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.showroom-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* =============================================================================
   Showroom Card Image
   ============================================================================= */

.showroom-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #fef2f2;
    overflow: hidden;
}

.showroom-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.showroom-card:hover .showroom-image img {
    transform: scale(1.03);
}

/* Image placeholder when no image available */
.showroom-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef2f2;
}

.showroom-image-placeholder svg {
    width: 48px;
    height: 48px;
    color: #d1d5db;
}

/* Head Office badge on image */
.showroom-image-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    background: var(--theme-primary, #e43131);
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
}

.showroom-header {
    padding: 1rem 1.25rem 0.5rem;
}

.showroom-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--theme-text-muted, #6b7280);
    background: var(--theme-bg-secondary, #f3f4f6);
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.showroom-badge--primary {
    color: var(--theme-primary, #e43131);
    background: var(--theme-primary-lighter, #fee2e2);
}

.showroom-header h3 {
    font-family: var(--font-family-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--theme-text-primary, #1f2937);
    margin: 0 0 0.25rem;
}

.showroom-location {
    font-size: 1rem;
    color: var(--theme-text-muted, #6b7280);
    margin: 0;
}

.showroom-body {
    padding: 1rem 1.25rem 1.25rem;
}

.showroom-detail {
    margin-bottom: 1rem;
}

.showroom-detail:last-of-type {
    margin-bottom: 1.25rem;
}

/* Detail with icon layout */
.showroom-detail--with-icon {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

/* Detail icons - simple gray, no background/border */
.detail-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.detail-icon svg {
    width: 18px;
    height: 18px;
    color: #6b7280;
}

.detail-content {
    flex: 1;
    min-width: 0;
}

.detail-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--theme-text-muted, #6b7280);
    margin-bottom: 0.25rem;
}

.showroom-detail p,
.detail-content p {
    font-size: 1rem;
    color: var(--theme-text-primary, #1f2937);
    line-height: 1.5;
    margin: 0;
}

.showroom-detail > a,
.detail-content > a {
    font-size: 1rem;
    color: var(--theme-primary, #e43131);
    text-decoration: none;
    transition: color 0.2s ease;
}

.showroom-detail > a:hover,
.detail-content > a:hover {
    color: var(--theme-primary-dark, #c52a2a);
    text-decoration: underline;
}

.detail-content .phone-numbers {
    margin-top: 0;
}

.phone-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 1rem;
}

.phone-numbers a {
    font-size: 1rem;
    color: var(--theme-text-primary, #1f2937);
    text-decoration: none;
    transition: color 0.2s ease;
}

.phone-numbers a:hover {
    color: var(--theme-primary, #e43131);
}

/* =============================================================================
   Showrooms CTA
   ============================================================================= */

.showrooms-cta {
    text-align: center;
    padding: 1.5rem;
    background: #fef2f2;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.showrooms-cta p {
    font-size: 1rem;
    color: var(--theme-text-primary, #1f2937);
    margin: 0 0 1rem;
}

.showrooms-cta strong {
    color: var(--theme-primary, #e43131);
    font-weight: 600;
}

/* =============================================================================
   Responsive Styles
   ============================================================================= */

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid .contact-item:last-child {
        grid-column: span 2;
    }

    .head-office-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-header {
        padding: 2rem 0 1.5rem;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-description {
        font-size: 1rem;
    }

    .buy-online-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .buy-online-titles .section-heading {
        font-size: 1.25rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .contact-grid .contact-item:last-child {
        grid-column: auto;
    }

    .showrooms-grid {
        grid-template-columns: 1fr;
    }

    .showroom-image {
        aspect-ratio: 16 / 10;
    }

    .section-heading {
        font-size: 1.25rem;
    }

    .head-office-header,
    .head-office-body {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 1.75rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .phone-numbers {
        flex-direction: column;
        gap: 0.25rem;
    }

    .showroom-header,
    .showroom-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .showrooms-visibility-notice p {
        flex-direction: column;
        text-align: center;
    }

    .btn-hide-showrooms {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* =============================================================================
   Store Section — local showroom card + map
   ============================================================================= */

.store-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

/* Store card */
.store-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.store-card__header {
    padding: 1.5rem 1.5rem 1.25rem;
}

.store-card__name {
    font-family: var(--font-family-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--theme-text-primary, #1f2937);
    margin: 0.25rem 0 0.375rem;
    line-height: 1.3;
}

.store-card__tagline {
    font-size: 0.9375rem;
    color: var(--theme-text-muted, #6b7280);
    margin: 0;
}

/* Store details list */
.store-card__body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.store-detail {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.store-detail__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-detail__icon svg {
    width: 20px;
    height: 20px;
}

.store-detail__content {
    flex: 1;
    min-width: 0;
}

.store-detail__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--theme-text-muted, #9ca3af);
    margin-bottom: 0.2rem;
}

.store-detail__value {
    font-size: 0.9375rem;
    color: var(--theme-text-primary, #1f2937);
    margin: 0;
    line-height: 1.55;
    font-style: normal;
}

.store-detail__muted {
    font-size: 0.875rem;
    color: var(--theme-text-muted, #6b7280);
    margin: 0.1rem 0 0;
}

.store-detail__phone {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-text-primary, #1f2937);
    text-decoration: none;
    transition: color 0.15s ease;
}

.store-detail__phone:hover {
    color: var(--theme-primary, #e43131);
}

.store-detail__link {
    font-size: 0.9375rem;
    color: var(--theme-primary, #e43131);
    text-decoration: none;
    transition: color 0.15s ease;
}

.store-detail__link:hover {
    color: var(--theme-primary-dark, #c52a2a);
    text-decoration: underline;
}

.store-detail__map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--theme-primary, #e43131);
    text-decoration: none;
    transition: color 0.15s ease;
}

.store-detail__map-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.store-detail__map-link:hover {
    color: var(--theme-primary-dark, #c52a2a);
    text-decoration: underline;
}

/* Action buttons */
.store-card__actions {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #f3f4f6;
    flex-wrap: wrap;
}

.store-card__actions .btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
}

/* Map embed */
.store-map {
    border-radius: 1rem;
    overflow: hidden;
    height: 420px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 5.5rem;
}

/* Pricing Notice */
.pricing-notice {
    display: flex;
    gap: 1rem;
    background: #fff9f9;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.pricing-notice__icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--theme-primary, #e43131);
    margin-top: 0.125rem;
}

.pricing-notice__icon svg {
    width: 100%;
    height: 100%;
}

.pricing-notice__content {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.pricing-notice__heading {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.pricing-notice__body {
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.6;
}

.pricing-notice__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Areas served strip */
.areas-strip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    color: var(--theme-text-muted, #6b7280);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.areas-strip svg {
    width: 18px;
    height: 18px;
    color: var(--theme-primary, #e43131);
    flex-shrink: 0;
}

.areas-strip strong {
    color: var(--theme-text-primary, #1f2937);
    font-weight: 600;
}

/* =============================================================================
   Responsive — Store Section
   ============================================================================= */

@media (max-width: 900px) {
    .store-section {
        grid-template-columns: 1fr;
    }

    .store-map {
        height: 300px;
        position: static;
        order: -1;
    }

    .store-card__actions {
        gap: 0.625rem;
    }
}

@media (max-width: 480px) {
    .store-card__header {
        padding: 1.25rem 1.25rem 1rem;
    }

    .store-card__body {
        padding: 1rem 1.25rem;
    }

    .store-card__name {
        font-size: 1.125rem;
    }

    .store-card__actions {
        padding: 1rem 1.25rem;
    }

    /* Full-width Call + WhatsApp, directions below */
    .store-card__actions .btn--primary,
    .store-card__actions .btn--whatsapp {
        flex: 1;
    }

    .store-card__actions .btn--outline {
        flex: 1 0 100%;
    }

    .areas-strip {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .store-map {
        height: 240px;
    }
}
