@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

:root {
    --4c1-primary: #2563eb;
    --4c1-secondary: #1e40af;
    --4c1-accent: #f59e0b;
    --4c1-background: #ffffff;
    --4c1-text: #0f172a;
    --4c1-muted: #94a3b8;
    --4c1-dark-text: #0f172a;
    --4c1-darker-text: #1a202c;
    --4c1-light-text: #f8fafc;
    --4c1-border-color: rgba(0, 0, 0, 0.1);
    --4c1-shadow-light: rgba(0, 0, 0, 0.05);
    --4c1-shadow-medium: rgba(0, 0, 0, 0.1);
    --4c1-shadow-dark: rgba(0, 0, 0, 0.2);
    --4c1-gradient-start: #2563eb;
    --4c1-gradient-end: #1e40af;
    --4c1-heading-font: 'Playfair Display', serif;
    --4c1-body-font: 'Source Sans Pro', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--4c1-body-font);
    line-height: 1.6;
    color: var(--4c1-text);
    background-color: var(--4c1-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--4c1-primary);
    color: var(--4c1-light-text);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--4c1-heading-font);
    color: var(--4c1-dark-text);
    line-height: 1.2;
    margin-bottom: 0.8em;
}

h1 {
    font-size: 3.8rem; /* 60.8px */
    font-weight: 900;
    letter-spacing: -0.05em;
}

h2 {
    font-size: 2.8rem; /* 44.8px */
    font-weight: 700;
    letter-spacing: -0.03em;
}

h3 {
    font-size: 2.2rem; /* 35.2px */
    font-weight: 700;
}

h4 {
    font-size: 1.8rem; /* 28.8px */
    font-weight: 600;
}

h5 {
    font-size: 1.4rem; /* 22.4px */
    font-weight: 600;
}

h6 {
    font-size: 1.1rem; /* 17.6px */
    font-weight: 600;
}

p {
    margin-bottom: 1em;
    font-size: 1.1rem;
}

a {
    color: var(--4c1-primary);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: var(--4c1-accent);
    transform: translateY(-2px);
}

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

ul {
    list-style: none;
}

/* Utility Classes */
.pg-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.pg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

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

.pg-flex-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pg-text-center {
    text-align: center;
}

/* Section Spacing */
.pg-section {
    padding: 80px 0;
    position: relative;
}

.pg-section:nth-of-type(even) {
    background-color: #f8fafc; /* Lighter background for contrast */
}

.pg-section-dark .pg-section:nth-of-type(even) {
    background-color: #0f172a;
}

.pg-section-dark {
    background-color: var(--4c1-darker-text);
    color: var(--4c1-light-text);
}

.pg-section-dark h1, .pg-section-dark h2, .pg-section-dark h3, .pg-section-dark h4, .pg-section-dark h5, .pg-section-dark h6 {
    color: var(--4c1-light-text);
}

/* Buttons */
.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.pg-btn-primary {
    background-color: var(--4c1-primary);
    color: var(--4c1-light-text);
    box-shadow: 0 4px 15px var(--4c1-shadow-medium);
}

.pg-btn-primary:hover {
    background-color: var(--4c1-secondary);
    box-shadow: 0 6px 20px var(--4c1-shadow-dark);
    transform: translateY(-2px);
}

.pg-btn-secondary {
    background-color: var(--4c1-accent);
    color: var(--4c1-dark-text);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.pg-btn-secondary:hover {
    background-color: #e58d00; /* Slightly darker accent */
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
}

.pg-btn-outline {
    background-color: transparent;
    color: var(--4c1-primary);
    border: 2px solid var(--4c1-primary);
}

.pg-btn-outline:hover {
    background-color: var(--4c1-primary);
    color: var(--4c1-light-text);
    transform: translateY(-2px);
}

.pg-btn-gradient-shimmer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, var(--4c1-primary) 0%, var(--4c1-secondary) 100%);
    color: var(--4c1-light-text);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.pg-btn-gradient-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pg-btn-gradient-shimmer:hover::before {
    left: 100%;
}

/* Header & Navigation */
.pg-header {
    background-color: var(--4c1-darker-text);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pg-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pg-logo {
    font-family: var(--4c1-heading-font);
    font-size: 2rem;
    font-weight: 900;
    color: var(--4c1-light-text);
    text-decoration: none;
    position: relative;
    z-index: 1001;
}

.pg-logo span {
    color: var(--4c1-accent);
}

.pg-nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.pg-nav-menu a {
    color: var(--4c1-light-text);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

.pg-nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: var(--4c1-accent);
    transition: width 0.3s ease;
}

.pg-nav-menu a:hover::after {
    width: 100%;
}

.pg-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.pg-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--4c1-light-text);
    transition: all 0.3s ease;
}

.pg-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.pg-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.pg-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.pg-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--4c1-light-text);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.pg-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.7) 0%, rgba(30, 64, 175, 0.7) 100%);
    z-index: 1;
}

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

.pg-hero h1 {
    color: var(--4c1-light-text);
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.pg-hero p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Cards */
.pg-card {
    background-color: var(--4c1-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--4c1-shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pg-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px var(--4c1-shadow-medium);
}

.pg-card-img {
    height: 200px;
    overflow: hidden;
}

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

.pg-card:hover .pg-card-img img {
    transform: scale(1.05);
}

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

.pg-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    flex-grow: 1;
}

.pg-card-content p {
    font-size: 1rem;
    color: var(--4c1-muted);
    margin-bottom: 1rem;
}

.pg-card-content .pg-btn {
    margin-top: auto;
}

/* Forms */
.pg-form-group {
    margin-bottom: 1.5rem;
}

.pg-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--4c1-dark-text);
}

.pg-form-group input[type="text"],
.pg-form-group input[type="email"],
.pg-form-group input[type="tel"],
.pg-form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--4c1-border-color);
    border-radius: 8px;
    font-family: var(--4c1-body-font);
    font-size: 1rem;
    color: var(--4c1-dark-text);
    background-color: #fcfcfc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.pg-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.pg-form-message-success {
    background-color: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

.pg-form-message-error {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

/* Trust Badges / Indicators */
.pg-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background-color: #e0f2fe; /* Light blue background */
    border-radius: 6px;
    font-weight: 600;
    color: var(--4c1-secondary);
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Footer */
.pg-footer {
    background-color: var(--4c1-darker-text);
    color: var(--4c1-muted);
    padding: 60px 0 30px;
    font-size: 0.95rem;
}

.pg-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pg-footer-col h3 {
    color: var(--4c1-light-text);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.pg-footer-col ul {
    list-style: none;
}

.pg-footer-col ul li {
    margin-bottom: 0.75rem;
}

.pg-footer-col ul li a {
    color: var(--4c1-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.pg-footer-col ul li a:hover {
    color: var(--4c1-accent);
    transform: translateX(5px);
}

.pg-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--4c1-muted);
}

.pg-newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.pg-newsletter-form input {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--4c1-light-text);
}

.pg-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.pg-newsletter-form button {
    background-color: var(--4c1-accent);
    color: var(--4c1-dark-text);
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.pg-newsletter-form button:hover {
    background-color: #e58d00; /* Slightly darker accent */
}

/* FAQ Accordion */
.pg-faq-item {
    background-color: var(--4c1-background);
    border: 1px solid var(--4c1-border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--4c1-shadow-light);
}

.pg-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--4c1-dark-text);
    font-size: 1.15rem;
    background-color: #fbfbfb;
    transition: background-color 0.3s ease;
}

.pg-faq-q:hover {
    background-color: #f0f8ff;
}

.pg-faq-q::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.pg-faq-item.active .pg-faq-q::after {
    transform: rotate(45deg);
}

.pg-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
    color: var(--4c1-text);
}

.pg-faq-item.active .pg-faq-a {
    max-height: 500px; /* Adjust as needed for content */
    padding: 1rem 1.5rem 1.5rem;
    transition: max-height 0.5s ease-in;
}

/* Testimonials */
.pg-testimonial-card {
    background-color: var(--4c1-background);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--4c1-shadow-light);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pg-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--4c1-shadow-medium);
}

.pg-testimonial-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--4c1-dark-text);
    line-height: 1.7;
}

.pg-testimonial-author {
    font-weight: 700;
    color: var(--4c1-primary);
    margin-top: 0.5rem;
}

.pg-testimonial-source {
    font-size: 0.9rem;
    color: var(--4c1-muted);
}

/* Animations */
@keyframes pg-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pg-slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pg-animate {
    opacity: 0;
    animation-fill-mode: both;
    animation-duration: 0.8s;
}

.pg-animate.pg-fade-in-up {
    animation-name: pg-fadeInUp;
    animation-delay: var(--pg-animation-delay, 0s);
}

.pg-animate.pg-slide-in-left {
    animation-name: pg-slideInLeft;
    animation-delay: var(--pg-animation-delay, 0s);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pg-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .pg-hero h1 {
        font-size: 3.5rem;
    }

    .pg-hero p {
        font-size: 1.4rem;
    }

    h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .pg-nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: var(--4c1-darker-text);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }

    .pg-nav-menu.active {
        max-height: 500px; /* Sufficient height for menu items */
    }

    .pg-nav-menu li {
        text-align: center;
        margin: 0.5rem 0;
    }

    .pg-nav-menu a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
        color: var(--4c1-light-text);
    }

    .pg-nav-menu a::after {
        height: 1px;
        background-color: var(--4c1-accent);
    }

    .pg-hamburger {
        display: flex;
    }

    .pg-hero {
        min-height: 60vh;
    }

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

    .pg-hero p {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .pg-section {
        padding: 48px 0;
    }

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

    .pg-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pg-newsletter-form {
        justify-content: center;
    }

    .pg-newsletter-form input {
        border-radius: 8px 0 0 8px;
    }

    .pg-newsletter-form button {
        border-radius: 0 8px 8px 0;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .pg-hero h1 {
        font-size: 2rem;
    }

    .pg-hero p {
        font-size: 1rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .pg-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .pg-card-content h3 {
        font-size: 1.3rem;
    }

    .pg-faq-q {
        font-size: 1rem;
        padding: 1rem 1.2rem;
    }

    .pg-faq-item.active .pg-faq-a {
     padding: 0.8rem 1.2rem 1.2rem;
    }
}
