/*
Theme Name: Fama Peiming Redesign
Theme URI: https://famapeiming.com/
Author: Antigravity
Description: Redesigned premium pharmaceutical consulting theme for Fama Peiming.
Version: 1.0.0
Text Domain: famapeiming-redesign
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   DESIGN SYSTEM & CSS VARIABLES
   ========================================================================== */
:root {
    /* Colors */
    --color-primary: #0a2540;        /* Deep Trust Navy */
    --color-primary-rgb: 10, 37, 64;
    --color-primary-light: #163d63;  
    --color-secondary: #008080;      /* Medical Teal */
    --color-secondary-rgb: 0, 128, 128;
    --color-accent: #00d2c4;         /* Biotech Cyan */
    --color-accent-rgb: 0, 210, 196;
    --color-accent-blue: #0099ff;
    
    /* Backgrounds & Text */
    --bg-main: #f5f8fa;
    --bg-card: #ffffff;
    --bg-dark: #071728;
    --text-main: #2b3a4a;
    --text-muted: #5e6e7f;
    --text-light: #ffffff;
    --border-color: #e2e8f0;
    
    /* Font Families */
    --font-heading: 'Outfit', 'Noto Sans SC', sans-serif;
    --font-body: 'Inter', 'Noto Sans SC', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(10, 37, 64, 0.04);
    --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.06);
    --shadow-lg: 0 12px 30px rgba(10, 37, 64, 0.08);
    --shadow-glow: 0 0 20px rgba(0, 210, 196, 0.35);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; position: relative; padding-bottom: 15px; margin-bottom: 30px; }
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    border-radius: 2px;
}
h2.center::after {
    left: 50%;
    transform: translateX(-50%);
}
h3 { font-size: 1.5rem; margin-bottom: 15px; }
h4 { font-size: 1.2rem; }

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.section-dark h2, .section-dark h3 {
    color: var(--text-light);
}

/* ==========================================================================
   BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 37, 64, 0.15);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.2);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 196, 0.4);
}

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

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

.btn-text {
    padding: 0;
    background: transparent;
    color: var(--color-secondary);
    font-weight: 600;
    gap: 4px;
}

.btn-text::after {
    content: '→';
    transition: var(--transition-fast);
}

.btn-text:hover {
    color: var(--color-accent);
}

.btn-text:hover::after {
    transform: translateX(4px);
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
.header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
}

.header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.95);
}

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

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

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    border-radius: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-glow);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--color-secondary);
}

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

.nav-link.active {
    color: var(--color-secondary);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
    width: 24px;
    height: 24px;
    justify-content: center;
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* ==========================================================================
   DYNAMIC HERO SECTION
   ========================================================================== */
.hero {
    height: 90vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 70% 30%, #15385c, #071728);
    color: var(--text-light);
    margin-top: 0;
    padding-top: var(--header-height);
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: all;
}

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

.hero-tag {
    display: inline-flex;
    align-items: center;
    background-color: rgba(0, 210, 196, 0.15);
    border: 1px solid rgba(0, 210, 196, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-title {
    color: var(--text-light);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-title span {
    background: linear-gradient(135deg, #ffffff, var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

/* ==========================================================================
   METRICS SECTION (GLASSMORPHISM)
   ========================================================================== */
.metrics {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    padding-bottom: 60px;
}

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

.metric-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    position: relative;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-glow);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: -1;
}

.metric-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 210, 196, 0.4);
}

.metric-card:hover::before {
    opacity: 0.15;
}

.metric-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}

.metric-title {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.metric-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   SERVICES SUMMARY
   ========================================================================== */
.service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 24px;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

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

.service-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 128, 128, 0.1);
    color: var(--color-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    background-color: var(--color-secondary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 128, 128, 0.3);
}

.service-title {
    margin-bottom: 16px;
    font-size: 1.25rem;
    color: var(--color-primary);
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ==========================================================================
   ABOUT BRIEF (FOUNDER MESSAGE)
   ========================================================================== */
.about-brief {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: calc(100% + 30px);
    height: calc(100% + 30px);
    border: 2px solid rgba(0, 128, 128, 0.15);
    border-radius: 12px;
    z-index: 1;
    pointer-events: none;
}

.about-img-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.philosophy-quote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-primary);
    border-left: 4px solid var(--color-secondary);
    padding-left: 20px;
    margin: 15px 0;
    line-height: 1.4;
}

.signature {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.sig-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.sig-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   ARTICLE / NEWS LIST
   ========================================================================== */
.articles-brief {
    background-color: var(--bg-main);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.article-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.article-img-wrapper {
    height: 180px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
}

.article-img-wrapper i {
    font-size: 3rem;
}

.article-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--color-primary);
    font-weight: 700;
}

.article-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
    flex-grow: 1;
}

/* ==========================================================================
   SUBPAGE: HERO & PAGE HEADERS
   ========================================================================== */
.page-header {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
    background: radial-gradient(circle at 80% 20%, #112d4a, #071728);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.page-header-content h1 {
    color: var(--text-light);
    font-size: 2.75rem;
    margin-bottom: 12px;
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

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

.breadcrumbs span::before {
    content: '/';
    margin-right: 8px;
}

/* ==========================================================================
   SUBPAGE: SERVICES PAGE (FLOW & DETAIL)
   ========================================================================== */
.service-detail-section {
    border-bottom: 1px solid var(--border-color);
}

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

.service-detail-grid.reverse {
    direction: rtl;
}

.service-detail-grid.reverse .service-detail-content {
    direction: ltr;
}

.service-detail-image {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.feature-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
}

.feature-list li i {
    color: var(--color-secondary);
    margin-top: 4px;
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.flow-step {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px;
    position: relative;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.flow-step::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: -16px;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-secondary);
    z-index: 5;
}

.flow-step:last-child::after {
    display: none;
}

.flow-num {
    width: 36px;
    height: 36px;
    background-color: var(--color-secondary);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 4px 10px rgba(0, 128, 128, 0.25);
}

.flow-step h4 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

.flow-step p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   SUBPAGE: ABOUT US (PROFILE & TEAM)
   ========================================================================== */
.profile-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.profile-table tr {
    border-bottom: 1px solid var(--border-color);
}

.profile-table th, .profile-table td {
    padding: 16px 20px;
    text-align: left;
}

.profile-table th {
    width: 25%;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    background-color: rgba(10, 37, 64, 0.02);
}

.profile-table td {
    color: var(--text-main);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

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

.team-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 24px;
}

.team-name {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: var(--color-primary);
}

.team-role {
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-bio {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   SUBPAGE: ARTICLES PAGE
   ========================================================================== */
.articles-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.search-bar {
    display: flex;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 16px;
    width: 320px;
    box-shadow: var(--shadow-sm);
}

.search-bar input {
    background: transparent;
    width: 100%;
    color: var(--text-main);
}

.search-bar i {
    color: var(--text-muted);
    align-self: center;
    margin-left: 8px;
}

.categories {
    display: flex;
    gap: 12px;
}

.category-tag {
    padding: 8px 20px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-heading);
    font-weight: 600;
}

.category-tag:hover, .category-tag.active {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: white;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
}

.page-num:hover, .page-num.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* ==========================================================================
   SUBPAGE: CONTACT US PAGE
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
}

.contact-form-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--color-secondary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* Style form elements output by plugins like MW WP Form / WPForms */
.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card input[type="tel"],
.contact-form-card select,
.contact-form-card textarea {
    width: 100%;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-main);
    transition: var(--transition-fast);
    margin-bottom: 20px;
}
.contact-form-card input[type="text"]:focus,
.contact-form-card input[type="email"]:focus,
.contact-form-card input[type="tel"]:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
    border-color: var(--color-secondary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}
.contact-form-card input[type="submit"],
.contact-form-card button[type="submit"],
.contact-form-card .mwform-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-normal);
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.2);
    border: none;
}
.contact-form-card input[type="submit"]:hover,
.contact-form-card button[type="submit"]:hover,
.contact-form-card .mwform-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 196, 0.4);
}

.contact-info-card {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 128, 128, 0.1);
    color: var(--color-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-details h4 {
    margin-bottom: 6px;
    color: var(--color-primary);
}

.info-details p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.map-wrapper {
    height: 250px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
}

.map-placeholder {
    padding: 20px;
    text-align: center;
}

.map-placeholder i {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 12px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.footer-brand .logo-subtitle {
    color: rgba(255, 255, 255, 0.4);
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.footer-social-link:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
}

.footer-column h4 {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-link {
    font-size: 0.875rem;
}

.footer-link:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* ==========================================================================
   SCROLL ANIMATIONS (INTERSECTION OBSERVER)
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid, .service-detail-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .service-detail-grid.reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .metrics {
        margin-top: -30px;
    }
    
    .articles-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    
    .flow-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .flow-step::after {
        content: '↓';
        top: auto;
        bottom: -20px;
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .header-container {
        padding: 0 16px;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        padding-top: 60px;
        gap: 40px;
        transition: var(--transition-normal);
        border-top: 1px solid var(--border-color);
        z-index: 999;
    }
    
    .nav.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================================================
   WORDPRESS POST CONTENT STYLING (entry-content)
   ========================================================================== */
.entry-content h2 {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 700;
}
.entry-content h3 {
    font-size: 1.35rem;
    color: var(--color-primary-light);
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 700;
}
.entry-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}
.entry-content ul, .entry-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}
.entry-content li {
    margin-bottom: 10px;
    list-style: inherit;
}
.entry-content blockquote {
    background-color: var(--bg-main);
    border-left: 4px solid var(--color-secondary);
    padding: 20px 24px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    color: var(--text-muted);
    font-style: normal;
}
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin: 30px 0;
}

