@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&family=Karla:wght@400;500;700&display=swap');

:root {
    --ahd-primary: #0d9488;
    --ahd-secondary: #0f766e;
    --ahd-accent: #f43f5e;
    --ahd-background: #f0fdfa;
    --ahd-text: #134e4a;
    --ahd-muted: #5eead4;

    --pg-heading-font: 'Manrope', sans-serif;
    --pg-body-font: 'Karla', sans-serif;

    --pg-border-radius: 8px;
    --pg-transition-speed: 0.3s;
    --pg-section-spacing-desktop: 100px;
    --pg-section-spacing-mobile: 60px;
}

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

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

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

::selection {
    background-color: var(--ahd-accent);
    color: var(--ahd-background);
}

a {
    color: var(--ahd-primary);
    text-decoration: none;
    transition: color var(--pg-transition-speed) ease;
}

a:hover {
    color: var(--ahd-accent);
}

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

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--pg-heading-font);
    color: var(--ahd-secondary);
    line-height: 1.2;
    margin-bottom: 0.8em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ahd-primary);
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
}

h5 {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 600;
}

h6 {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 600;
}

p {
    margin-bottom: 1em;
}

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

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

.pg-flex {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.pg-section-padding {
    padding-top: var(--pg-section-spacing-desktop);
    padding-bottom: var(--pg-section-spacing-desktop);
}

/* Section Backgrounds */
.pg-bg-light {
    background-color: var(--ahd-background);
}

.pg-bg-alt {
    background-color: rgba(var(--ahd-primary), 0.05);
}

/* Buttons */
.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--pg-border-radius);
    font-family: var(--pg-heading-font);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--pg-transition-speed) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.pg-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.0) 50%, rgba(255,255,255,0.3) 100%);
    transform: translateX(-100%) skewX(-30deg);
    transition: transform 0.8s ease;
    z-index: -1;
}

.pg-btn:hover::before {
    transform: translateX(100%) skewX(-30deg);
}

.pg-btn-primary {
    background-color: var(--ahd-primary);
    color: #fff;
    border-color: var(--ahd-primary);
}

.pg-btn-primary:hover {
    background-color: var(--ahd-secondary);
    border-color: var(--ahd-secondary);
    box-shadow: 0 8px 20px rgba(var(--ahd-primary), 0.3);
}

.pg-btn-secondary {
    background-color: var(--ahd-accent);
    color: #fff;
    border-color: var(--ahd-accent);
}

.pg-btn-secondary:hover {
    background-color: #e52e4d;
    border-color: #e52e4d;
    box-shadow: 0 8px 20px rgba(var(--ahd-accent), 0.3);
}

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

.pg-btn-outline:hover {
    background-color: var(--ahd-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(var(--ahd-primary), 0.2);
}

/* Header & Navigation */
.pg-header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.pg-logo {
    font-family: var(--pg-heading-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ahd-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pg-logo span {
    color: var(--ahd-secondary);
}

.pg-nav-list {
    display: flex;
    list-style: none;
}

.pg-nav-item {
    margin-left: 30px;
}

.pg-nav-link {
    font-family: var(--pg-heading-font);
    font-weight: 600;
    color: var(--ahd-text);
    position: relative;
    padding: 5px 0;
}

.pg-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: var(--ahd-accent);
    transition: width var(--pg-transition-speed) ease;
}

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

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

.pg-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--ahd-primary);
    border-radius: 2px;
    transition: all var(--pg-transition-speed) ease-in-out;
}

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

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

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

/* Hero Section */
.pg-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: var(--pg-section-spacing-desktop) 0;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.8) 0%, rgba(15, 118, 110, 0.8) 100%);
    color: #fff;
}

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

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

.pg-hero h1 {
    color: #fff;
    margin-bottom: 20px;
}

.pg-hero .pg-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 400;
}

.pg-hero .pg-btn {
    margin: 0 10px;
}

/* Section Layouts */
.pg-section {
    padding-top: var(--pg-section-spacing-desktop);
    padding-bottom: var(--pg-section-spacing-desktop);
    position: relative;
}

.pg-section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pg-section-header h2 {
    margin-bottom: 15px;
}

.pg-section-header p {
    font-size: 1.15rem;
    color: var(--ahd-text);
    opacity: 0.8;
}

/* Cards */
.pg-card {
    background-color: #fff;
    border-radius: var(--pg-border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: center;
    transition: transform var(--pg-transition-speed) ease, box-shadow var(--pg-transition-speed) ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.pg-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.pg-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
}

.pg-card-icon {
    font-size: 3rem;
    color: var(--ahd-primary);
    margin-bottom: 20px;
}

.pg-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--ahd-secondary);
}

.pg-card p {
    font-size: 0.95rem;
    flex-grow: 1;
}

.pg-card-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--ahd-accent);
    font-weight: 600;
}

.pg-card-link:hover {
    text-decoration: underline;
}

/* Form Styling */
.pg-form-group {
    margin-bottom: 20px;
}

.pg-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ahd-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: 12px 15px;
    border: 1px solid #ccc;
    border-radius: var(--pg-border-radius);
    font-family: var(--pg-body-font);
    font-size: 1rem;
    color: var(--ahd-text);
    background-color: #fff;
    transition: border-color var(--pg-transition-speed) ease, box-shadow var(--pg-transition-speed) ease;
}

.pg-form-group input[type='text']:focus,
.pg-form-group input[type='email']:focus,
.pg-form-group input[type='tel']:focus,
.pg-form-group textarea:focus {
    outline: none;
    border-color: var(--ahd-primary);
    box-shadow: 0 0 0 3px rgba(var(--ahd-primary), 0.2);
}

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

.pg-form-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: var(--pg-border-radius);
    font-weight: 600;
    display: none;
}

.pg-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pg-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Trust Elements */
.pg-trust-item {
    display: inline-flex;
    align-items: center;
    background-color: rgba(var(--ahd-muted), 0.1);
    border-radius: 50px;
    padding: 10px 20px;
    margin: 10px;
    font-weight: 600;
    color: var(--ahd-secondary);
    font-size: 0.95rem;
}

.pg-trust-item svg {
    margin-right: 10px;
    color: var(--ahd-primary);
    font-size: 1.5rem;
}

/* FAQ Accordion */
.pg-faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.pg-faq-item {
    background-color: #fff;
    border-radius: var(--pg-border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    overflow: hidden;
    transition: all var(--pg-transition-speed) ease;
}

.pg-faq-q {
    padding: 20px 25px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ahd-secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(var(--ahd-muted), 0.3);
    transition: background-color var(--pg-transition-speed) ease;
}

.pg-faq-q:hover {
    background-color: rgba(var(--ahd-muted), 0.05);
}

.pg-faq-q::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ahd-primary);
    transition: transform var(--pg-transition-speed) ease;
}

.pg-faq-item.active .pg-faq-q {
    border-bottom: none;
}

.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;
    padding: 0 25px;
}

.pg-faq-item.active .pg-faq-a {
    max-height: 500px; /* Adjust as needed */
    padding: 15px 25px 20px;
}

/* Testimonials */
.pg-testimonial-card {
    background-color: #fff;
    border-radius: var(--pg-border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 30px;
    margin: 20px 0;
    position: relative;
    font-style: italic;
    color: var(--ahd-text);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pg-testimonial-card::before {
    content: '“';
    font-size: 4rem;
    color: var(--ahd-primary);
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
    opacity: 0.2;
    z-index: 0;
}

.pg-testimonial-card p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    z-index: 1;
}

.pg-testimonial-author {
    font-weight: 700;
    color: var(--ahd-secondary);
    font-style: normal;
    margin-top: auto;
}

.pg-testimonial-author span {
    font-weight: 400;
    font-size: 0.9em;
    color: var(--ahd-text);
    opacity: 0.7;
}

/* Footer */
.pg-footer {
    background-color: var(--ahd-secondary);
    color: #fff;
    padding: var(--pg-section-spacing-desktop) 0 30px;
    font-size: 0.95rem;
}

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

.pg-footer-col h4 {
    color: var(--ahd-muted);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.pg-footer-col p,
.pg-footer-col address,
.pg-footer-col ul li {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.7);
}

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

.pg-footer-col a {
    color: rgba(255,255,255,0.7);
    transition: color var(--pg-transition-speed) ease;
}

.pg-footer-col a:hover {
    color: var(--ahd-muted);
}

.pg-footer-newsletter input[type='email'] {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--pg-border-radius);
    border: none;
    margin-bottom: 15px;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

.pg-footer-newsletter input[type='email']::placeholder {
    color: rgba(255,255,255,0.6);
}

.pg-footer-newsletter .pg-btn {
    width: 100%;
    background-color: var(--ahd-primary);
    border-color: var(--ahd-primary);
}

.pg-footer-newsletter .pg-btn:hover {
    background-color: var(--ahd-accent);
    border-color: var(--ahd-accent);
}

.pg-footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

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

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

.pg-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.pg-animate.pg-animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .pg-section-padding {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .pg-nav-list {
        margin-left: auto;
    }

    .pg-hero h1 {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }
}

@media (max-width: 768px) {
    .pg-hamburger {
        display: flex;
    }

    .pg-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--ahd-secondary);
        padding-top: 80px;
        transition: right var(--pg-transition-speed) ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        z-index: 999;
    }

    .pg-nav.active {
        right: 0;
    }

    .pg-nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        width: 100%;
    }

    .pg-nav-item {
        margin: 0;
        margin-bottom: 20px;
        width: 100%;
    }

    .pg-nav-link {
        color: #fff;
        font-size: 1.3rem;
        padding: 10px 0;
        display: block;
    }

    .pg-nav-link::after {
        background-color: var(--ahd-accent);
    }

    .pg-hero-content {
        padding: 0 20px;
    }

    .pg-hero .pg-btn {
        width: 100%;
        margin-bottom: 15px;
    }

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

    .pg-section-padding {
        padding-top: var(--pg-section-spacing-mobile);
        padding-bottom: var(--pg-section-spacing-mobile);
    }

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

    .pg-footer-col h4 {
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .pg-logo {
        font-size: 1.5rem;
    }

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

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

    .pg-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .pg-faq-q {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .pg-faq-item.active .pg-faq-a {
        padding: 10px 20px 15px;
    }

    .pg-footer {
        padding-top: var(--pg-section-spacing-mobile);
    }
}