/*
 Theme Name:   Woostify Child
 Theme URI:    https://7adigitalsolutions.com/woostify-child
 Description:  A child theme for Woostify, customized for Dr. Irfan Mulla Clinic
 Author:       ABDUL JALIL MULLA
 Author URI:   https://7adigitalsolutions.com
 Template:     woostify
 Version:      1.0.7
 Text Domain:  woostify-child
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

:root {
    --primary-green: #2D7D32;
    --secondary-green: #4CAF50;
    --accent-green: #81C784;
    --light-green: #E8F5E8;
    --cream: #FEFEFE;
    --warm-white: #FAFAFA;
    --text-dark: #2E2E2E;
    --text-light: #666666;
    --gold-accent: #FFB300;
    --shadow-soft: 0 10px 30px rgba(45, 125, 50, 0.08);
    --shadow-medium: 0 15px 45px rgba(45, 125, 50, 0.12);
    --shadow-strong: 0 25px 60px rgba(45, 125, 50, 0.15);
    --gradient-primary: linear-gradient(135deg, #2D7D32 0%, #4CAF50 100%);
    --gradient-secondary: linear-gradient(135deg, #E8F5E8 0%, #F1F8E9 100%);
    --gradient-gold: linear-gradient(135deg, #FFB300 0%, #FF8F00 100%);
    --gradient-whatsapp: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    --border-radius: 20px;
    --border-radius-small: 12px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    margin-top: 0 !important; /* Admin bar space fix */
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--cream);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    font-size: 16px;
}

#view, #content, .woostify-container {
    margin: 0;
    padding: 0;
    visibility: visible;
}

.site-header {
    margin-top: 0;
    padding-top: 0;
    background: var(--cream);
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 100;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(32px, 5vw, 48px); }
h3 { font-size: clamp(24px, 4vw, 32px); }
h4 { font-size: clamp(20px, 3vw, 28px); }
h5 { font-size: clamp(18px, 2.5vw, 24px); }
h6 { font-size: clamp(16px, 2vw, 20px); }

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-green);
}

button, .cta-button {
    display: inline-flex;
    align-items: center;
    padding: 14px 30px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    gap: 10px;
}

button:hover, .cta-button:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

button::before, .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

button:hover::before, .cta-button:hover::before {
    left: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    animation: imageLoad 0.6s ease-out 0.2s forwards;
}

ul {
    list-style: none;
    padding: 0;
}

.success-message, .error-message {
    margin-bottom: 20px;
    padding: 15px 20px;
    border-radius: var(--border-radius-small);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.6s ease-out;
    border: 2px solid transparent;
}

.success-message {
    background: var(--light-green);
    color: var(--primary-green);
    border-color: var(--secondary-green);
}

.success-message::before {
    content: '\f058'; /* Font Awesome check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 20px;
    color: var(--secondary-green);
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.error-message::before {
    content: '\f057'; /* Font Awesome times-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 20px;
    color: #721c24;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    padding: 15px 30px;
}

.header-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
}

.header-contact a i {
    font-size: 20px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    text-align: center;
}

.header-contact a.whatsapp i {
    background: var(--gradient-whatsapp);
}

.header-contact a:hover {
    color: var(--secondary-green);
}

.header-contact a:hover i {
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(50px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes imageLoad {
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    body { font-size: 15px; }
    h1 { font-size: clamp(32px, 5vw, 56px); }
    h2 { font-size: clamp(28px, 4.5vw, 40px); }
    h3 { font-size: clamp(22px, 3.5vw, 28px); }
    button, .cta-button { padding: 12px 25px; font-size: 16px; }
    .header-contact { padding: 10px 20px; }
    .header-contact a { font-size: 15px; }
    .header-contact a i { width: 36px; height: 36px; line-height: 36px; font-size: 18px; }
}

@media (max-width: 768px) {
    body { font-size: 14px; }
    h1 { font-size: clamp(28px, 5vw, 48px); }
    h2 { font-size: clamp(24px, 4vw, 36px); }
    h3 { font-size: clamp(20px, 3vw, 24px); }
    button, .cta-button { padding: 10px 20px; font-size: 15px; width: 100%; }
    .header-contact { flex-direction: column; align-items: flex-start; gap: 15px; padding: 10px 15px; }
    .header-contact a { font-size: 14px; }
    .success-message, .error-message { font-size: 14px; padding: 12px 15px; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.4);
        --shadow-medium: 0 15px 50px rgba(0, 0, 0, 0.5);
        --shadow-strong: 0 25px 60px rgba(0, 0, 0, 0.6);
    }

    h1, h2, h3, h4, h5, h6, a, .header-contact a {
        color: #000;
    }

    button, .cta-button {
        border: 2px solid #000;
        color: #fff;
    }

    .success-message, .error-message {
        border-color: #000;
        color: #000;
    }
}