/* ===================================
   GBMG Healthcare - Custom Styles
   =================================== */

/* CSS Variables */
:root {
    --color-terracotta: #D97765;
    --color-terracotta-light: #E8A596;
    --color-terracotta-dark: #B85A48;
    --color-sand: #F5E6D3;
    --color-sand-light: #FAF3EB;
    --color-sand-dark: #E8D5C0;
    --color-cream: #FFFDF9;
    --color-text: #3D2B1F;
    --color-text-light: #6B5344;
    --color-white: #FFFFFF;
    --color-bg-dark: #2C1810;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(61, 43, 31, 0.08);
    --shadow-md: 0 4px 20px rgba(61, 43, 31, 0.12);
    --shadow-lg: 0 8px 40px rgba(61, 43, 31, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--color-text-light);
    font-size: 1.125rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--color-terracotta-dark);
    border-color: var(--color-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-terracotta);
    border-color: var(--color-terracotta);
}

.btn-secondary:hover {
    background-color: var(--color-terracotta);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--color-white);
    color: var(--color-terracotta);
    border-color: var(--color-white);
}

.btn-light:hover {
    background-color: var(--color-sand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline-light:hover {
    background-color: var(--color-white);
    color: var(--color-terracotta);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Section Styles */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-terracotta);
    margin-bottom: 12px;
}

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

.section-header p {
    font-size: 1.125rem;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 253, 249, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-sand-dark);
    transition: box-shadow 0.3s ease;
}

#header.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-terracotta);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 300;
}

.logo-text {
    color: var(--color-text);
}

.logo-text span {
    color: var(--color-terracotta);
    font-weight: 400;
}

#nav-menu ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

#nav-menu a {
    font-weight: 500;
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

#nav-menu a:hover {
    color: var(--color-terracotta);
}

/* Mobile Menu Button */
#mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

#mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--color-cream);
    border-bottom: 1px solid var(--color-sand-dark);
    padding: 24px;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    flex-direction: column;
    gap: 16px;
}

.mobile-menu a {
    font-size: 1.125rem;
    color: var(--color-text);
}

/* Hero Section */
.hero {
    padding: 120px 0 100px;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-sand-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(217, 119, 101, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content .badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(217, 119, 101, 0.1);
    color: var(--color-terracotta);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-content h1 {
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-terracotta);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-color: var(--color-terracotta-light);
    border-radius: var(--radius-md);
    z-index: -1;
}

.floating-card {
    position: absolute;
    bottom: 40px;
    left: -40px;
    background-color: var(--color-white);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 3s ease-in-out infinite;
}

.floating-card img {
    border-radius: var(--radius-sm);
}

.floating-card strong {
    display: block;
    color: var(--color-text);
    font-size: 0.875rem;
}

.floating-card span {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* About Section */
.about {
    background-color: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: auto;
}

.about-pattern {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(circle, var(--color-terracotta-light) 2px, transparent 2px);
    background-size: 16px 16px;
    opacity: 0.5;
    z-index: -1;
}

.about-content .section-label {
    margin-bottom: 12px;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-content > p {
    margin-bottom: 16px;
}

.features-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--color-text);
}

.features-list svg {
    color: var(--color-terracotta);
    flex-shrink: 0;
}

/* Services Section */
.services {
    background-color: var(--color-sand-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background-color: var(--color-white);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(217, 119, 101, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-terracotta);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-weight: 600;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--color-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background-color: var(--color-sand-light);
    padding: 32px;
    border-radius: var(--radius-md);
    position: relative;
}

.testimonial-content p {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
    color: var(--color-text);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    background-color: var(--color-terracotta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 600;
    font-size: 1.125rem;
}

.testimonial-author span {
    font-weight: 600;
    color: var(--color-text);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-dark) 100%);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    color: var(--color-white);
}

.cta-content h2 {
    color: var(--color-white);
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Section */
.contact {
    background-color: var(--color-sand-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info .section-label {
    margin-bottom: 12px;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info > p {
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(217, 119, 101, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-terracotta);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--color-text);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 1rem;
    margin: 0;
}

.contact-item a {
    color: var(--color-terracotta);
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form-wrapper {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid var(--color-sand-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background-color: var(--color-sand-light);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-terracotta);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(217, 119, 101, 0.1);
}

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

.form-success {
    padding: 16px;
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-icon {
    background-color: var(--color-terracotta);
}

.footer-brand .logo-text {
    color: var(--color-white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 1.125rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--color-terracotta-light);
}

.footer-contact p {
    font-size: 0.9375rem;
    margin-bottom: 8px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact a:hover {
    color: var(--color-terracotta-light);
}

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

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid,
    .about-grid,
    .contact-grid {
        gap: 40px;
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #nav-menu {
        display: none;
    }
    
    #mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content p {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .floating-card {
        left: 20px;
        bottom: 20px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image-wrapper {
        order: -1;
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
