:root {
    /* Color Palette - Intense, Professional, Calm */
    --color-bg: #FCFAF9;
    /* Creamy white background */
    --color-text: #2D3142;
    /* Soft dark for text */
    --color-primary: #2C7A7B;
    /* Deep Teal - professional, healing, stability */
    --color-secondary: #C88C52;
    /* Rich Bronze - warmth, groundedness */
    --color-accent: #E6F0EF;
    /* Very light teal tint for backgrounds */
    --color-white: #FFFFFF;
    --color-light-gray: #F2F4F8;

    /* Typography */
    --font-main: 'Outfit', sans-serif;
    /* Friendly & Geometry */
    --font-heading: 'Fraunces', serif;
    /* Elegant & Human */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.08);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

/* Typography Helpers */
.text-center {
    text-align: center;
}

.text-justify {
    text-align: justify;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
    text-align: center;
}

.lead {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
    color: #555;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #6e8677;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Header & Nav */
header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.copsi-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3)), url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: #666;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-hero-secondary {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.btn-hero-secondary:hover {
    background-color: #fff;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Services Preview */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--color-secondary);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.service-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

/* About Preview on Home */
.about-preview {
    background-color: var(--color-accent);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-image {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-md);
    /* Placeholder background removed */
    object-fit: cover;
}

/* Quote Section */
.quote-section {
    text-align: center;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-lg) 0;
}

.quote-section blockquote {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
}

.quote-section cite {
    display: block;
    margin-top: var(--spacing-sm);
    font-size: 1rem;
    opacity: 0.9;
}



/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: #55595c;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-stars {
    color: #FFC107;
    /* Gold color for stars */
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial-text {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
}

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

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

    .testimonial-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
        /* Add spacing between vertical cards */
    }
}

/* Footer Redesign */
footer {
    background-color: #1a1d1f;
    color: #fff;
    padding: 1.5rem 0;
    /* Reduced from 3rem */
    margin-top: auto;
    border-top: 5px solid #2D3142;
    /* Dark blue stripe as seen in image */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    /* Reduced from 2rem */
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 0.8rem;
    /* Reduced from 1.5rem */
    font-size: 0.95rem;
    /* Slightly smaller */
    font-weight: 400;
    opacity: 0.9;
}

.footer-map-container {
    width: 100%;
    max-width: 200px;
    /* Smaller map */
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.footer-map-container img {
    width: 100%;
    display: block;
    filter: brightness(0.8);
    transition: filter 0.3s;
}

.footer-map-container:hover img {
    filter: brightness(1);
}

.footer-contact-info {
    font-size: 1rem;
    /* Slightly smaller */
    line-height: 1.4;
    /* Tighter line height */
}

.footer-contact-info p {
    margin-bottom: 0.5rem;
    /* Reduced from 1rem */
}

.footer-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    /* Reduced from 1rem */
}

.footer-btn {
    padding: 0.6rem 1.5rem;
    /* Smaller buttons */
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    /* Smaller font */
    transition: transform 0.2s, background-color 0.2s;
    text-align: center;
    width: 100%;
    max-width: 200px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    font-weight: 500;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-faq-blue {
    background-color: #1a4a7a;
    color: white;
}

.btn-faq-blue:hover {
    background-color: #2d60a3;
    transform: translateY(-2px);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
    margin: 0.2rem 0;
}

.footer-socials a {
    color: #fff;
    font-size: 1.5rem;
    /* Smaller from 2rem */
    transition: opacity 0.2s;
}

.footer-socials a:hover {
    opacity: 0.8;
}

.copyright {
    text-align: center;
    padding-top: 1rem;
    /* Reduced from 2rem */
    margin-top: 1rem;
    /* Reduced from 2rem */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 0.8rem;
}

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

/* Custom Check List */
.check-list {
    list-style: none;
    padding-left: 0;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
}

.check-list li::before {
    content: '\f00c';
    /* FontAwesome Check */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.service-note {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-top: 0.2rem;
    font-weight: 400;
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-map-container {
        margin: 0 auto;
    }

    .footer-actions {
        align-items: center;
    }

    .footer-socials {
        justify-content: center;
    }
}



/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        text-align: center;
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        margin-left: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

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

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-left: 0.5rem;
        /* Ensure visual safety zone */
        padding-right: 0.5rem;
    }
}

/* Article Cards Alignment */
.article-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    height: 250px;
    /* Fixed height for alignment */
    overflow: hidden;
}

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

.article-card:hover .article-image img {
    transform: scale(1.05);
    /* Subtle zoom on hover */
}

.article-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--color-text);
    line-height: 1.4;
}

.article-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1;
    /* Pushes button to bottom if needed */
}



/* Service Images - Full Visibility */
.service-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 2-Column Services Layout */
.services-layout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card-vertical {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card-vertical .service-img {
    height: 250px;
    /* Specific height for vertical cards to keep alignment */
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.service-card-vertical .service-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

/* Articles Grid - Dedicated to avoid layout shifts */
.articles-layout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.articles-layout-grid .article-card {
    height: auto;
}

@media (max-width: 768px) {
    .articles-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* Specific styles for single article page */
.article-hero {
    height: 60vh;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
    margin-bottom: 4rem;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.article-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.article-hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 800px;
}

.article-hero-title {
    font-size: 3rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #f8f9fa;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    padding: 0 1.5rem 4rem;
}

.article-body h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-size: 1.5rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

/* Pricing Table Responsive Styles */
.pricing-section {
    margin-top: 4rem;
    background: #fff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.pricing-table th {
    background-color: var(--color-light-gray);
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 1.5rem;
    }

    .pricing-table thead {
        display: none;
    }

    .pricing-table,
    .pricing-table tbody,
    .pricing-table tr,
    .pricing-table td {
        display: block;
        width: 100%;
    }

    .pricing-table tr {
        margin-bottom: 1.5rem;
        border: 1px solid #eee;
        border-radius: 12px;
        padding: 1rem;
        background: var(--color-bg);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    }

    .pricing-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        text-align: right;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-size: 0.95rem;
    }

    .pricing-table td:last-child {
        border-bottom: none;
    }

    .pricing-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--color-primary);
        text-align: left;
        margin-right: 2rem;
        flex-shrink: 0;
        max-width: 40%;
    }
}