/* ==========================================================================
   SERVICES.CSS - Bilingual Canada-Wide Printing Landing Page
   Miromedia - Services Grid & Geographic Sections
   ========================================================================== */

/* CSS Custom Properties - Brand Colors */
:root {
    --primary-blue: #2C3E50;
    --primary-blue-dark: #2C3E50;
    --primary-blue-light: #52B2BF;
    --accent-red: #E74C3C;
    --accent-red-dark: #dc2626;
    --accent-red-light: #f87171;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================================================
   RATING SECTION - 3-Column Design (Override styles.min.css)
   ========================================================================== */

.rating-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    padding: 3rem 2rem !important;
    border-radius: 1.5rem !important;
    margin: 3rem 0 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
    display: block !important;
}

.rating-content {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    gap: 5rem !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
}

.rating-left {
    text-align: left;
}

.rating-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rating-right {
    text-align: left;
}

.rating-stars {
    margin-bottom: 0.5rem;
}

.stars {
    color: #fbbf24;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.rating-text {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
}

.client-count {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.count-number {
    color: #3fc1d6;
    font-weight: 800;
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.count-text {
    color: #475569;
    font-weight: 600;
    font-size: 1rem;
}

.logo-circle {
    width: 220px;
    height: auto;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem;
}

/* Shine effect removed */

.rating-logo {
    filter: none;
    z-index: 2;
    position: relative;
    width: 100%;
    height: auto;
    max-width: 200px;
}

.company-info {
    padding-left: 1rem;
}

.company-text {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.4;
    margin: 0;
    background: linear-gradient(135deg, #2C3E50, #52B2BF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile responsive for rating section */
@media (max-width: 768px) {
    .rating-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }

    .rating-left,
    .rating-right {
        text-align: center;
    }

    .client-count {
        align-items: center;
    }

    .company-info {
        padding-left: 0;
    }

    .company-text {
        font-size: 1.1rem;
    }

    .logo-circle {
        width: 200px;
        height: auto;
        margin: 0 auto;
    }

    .rating-logo {
        width: 100%;
        height: auto;
    }

    .count-number {
        font-size: 1.75rem;
    }

    .stars {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   BILINGUAL SECTION STYLING
   ========================================================================== */

.section-bilingual {
    padding: 5rem 0;
}

.lang-block {
    margin-bottom: 3rem;
}

.lang-block:last-child {
    margin-bottom: 0;
}

.lang-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-blue);
    background: rgba(31, 59, 140, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.lang-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
    margin: 3rem 0;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.services-section {
    background: var(--bg-light);
    padding: 5rem 0;
}

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

.services-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.services-subtitle {
    font-size: 1.125rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* Services Grid - 3 columns desktop, 2 tablet, 1 mobile */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* ==========================================================================
   SERVICE CARDS
   ========================================================================== */

.service-card {
    background: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-light);
    padding: 0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue-light);
}

.service-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-card-image img {
    transform: scale(1.08);
}

.service-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    box-shadow: var(--shadow-sm);
}

.service-card-content {
    padding: 1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.service-card-title-fr {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.service-card-description {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.service-card-description-fr {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--border-light);
}

.service-card-cta {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-service {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    text-align: center;
}

.btn-service-primary {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
    color: white;
    border: none;
}

.btn-service-primary:hover {
    background: linear-gradient(135deg, var(--accent-red-dark), #b91c1c);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.btn-service-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-service-secondary:hover {
    background: var(--primary-blue);
    color: white;
}

/* ==========================================================================
   GEOGRAPHIC SECTION - SERVICE AREAS
   ========================================================================== */

.geo-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.geo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.geo-content {
    position: relative;
    z-index: 2;
}

.geo-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3.5rem;
    color: white;
}

.geo-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.geo-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.7;
}

/* Provinces Grid */
.provinces-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .provinces-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .provinces-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.province-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    min-height: 80px;
}

.province-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.province-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: white !important;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.province-name-fr {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Map Container */
.map-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 40%;
    border-radius: 0.75rem;
    overflow: hidden;
}

@media (max-width: 768px) {
    .map-wrapper {
        padding-bottom: 60%;
    }
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    font-weight: 500;
}

/* ==========================================================================
   HERO BILINGUAL ENHANCEMENTS
   ========================================================================== */

.hero-bilingual-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-bilingual-title-fr {
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .hero-bilingual-title {
        font-size: 2rem;
    }

    .hero-bilingual-title-fr {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   CTA SECTION BILINGUAL
   ========================================================================== */

.cta-bilingual {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    border-radius: 1.5rem;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-bilingual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse-cta 4s ease-in-out infinite;
}

@keyframes pulse-cta {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.cta-bilingual-content {
    position: relative;
    z-index: 2;
}

.cta-bilingual h2 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.cta-bilingual h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-style: italic;
}

.cta-bilingual-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.btn-cta-white {
    background: white;
    color: var(--accent-red-dark);
}

.btn-cta-white:hover {
    background: var(--bg-light);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.btn-cta-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {

    .services-section,
    .geo-section {
        padding: 3.5rem 0;
    }

    .services-title,
    .geo-title {
        font-size: 1.75rem;
    }

    .services-subtitle,
    .geo-subtitle {
        font-size: 1rem;
    }

    .service-card-content {
        padding: 1.25rem;
    }

    .service-card-cta {
        flex-direction: column;
    }

    .cta-bilingual {
        padding: 2.5rem 1.5rem;
        margin: 2rem 0;
    }

    .cta-bilingual h2 {
        font-size: 1.5rem;
    }

    .cta-bilingual h3 {
        font-size: 1rem;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .service-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .geo-section {
        background: white !important;
        color: black !important;
    }

    .province-card {
        background: white !important;
        border: 1px solid #ccc !important;
    }

    .province-name,
    .province-name-fr {
        color: black !important;
    }
}