/*
Theme Name: Edinburgh Weight Clinic
Template: twentytwentyfive
Description: Custom child theme for Edinburgh Weight Clinic
Author: Edinburgh Weight Management
Version: 1.0.0
*/

/* Modern Minimal Design System */
:root {
    --ewc-primary: #00203E;
    --ewc-primary-dark: #001429;
    --ewc-accent: #10B981;
    --ewc-accent-dark: #059669;
    --ewc-bg: #FFFFFF;
    --ewc-bg-light: #F9FAFB;
    --ewc-bg-card: #FFFFFF;
    --ewc-text: #111827;
    --ewc-text-light: #6B7280;
    --ewc-border: #E5E7EB;
    --ewc-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --ewc-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --ewc-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --ewc-radius: 16px;
    --ewc-radius-lg: 24px;
    --ewc-radius-xl: 32px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    color: var(--ewc-text);
    line-height: 1.6;
    font-size: 16px;
    background: var(--ewc-bg-light);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--ewc-text);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Modern Header - Floaty Design */
.ewc-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: transparent;
}

.ewc-header-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.ewc-header::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 2rem;
    right: 2rem;
    bottom: 0;
    background: var(--ewc-primary);
    border-radius: var(--ewc-radius-lg);
    box-shadow: var(--ewc-shadow-lg);
    z-index: -1;
    max-width: 1400px;
    margin: 0 auto;
}

.ewc-header {
    position: relative;
}

.ewc-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
    flex-wrap: nowrap;
}

.ewc-header-content > .ewc-logo,
.ewc-header-content > .custom-logo-link {
    flex: 0 1 auto;
    min-width: 0;
}

.ewc-header-content > .ewc-desktop-nav,
.ewc-header-content > .ewc-hamburger {
    flex: 0 0 auto;
}

.ewc-logo {
    display: block;
    transition: opacity 0.2s;
}

.ewc-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

.ewc-logo:hover {
    opacity: 0.9;
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

.custom-logo-link img {
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
}

/* Desktop Navigation - Show by default */
.ewc-desktop-nav {
    display: flex !important;
}

/* Hamburger Menu - Hidden by default on desktop */
.ewc-hamburger {
    display: none !important;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.ewc-hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

/* Mobile Menu */
.ewc-mobile-menu {
    display: none;
    position: absolute;
    top: calc(100% - 1rem);
    left: 2rem;
    right: 2rem;
    padding: 1.5rem 2rem;
    background: white;
    border-radius: 0 0 var(--ewc-radius-lg) var(--ewc-radius-lg);
    box-shadow: var(--ewc-shadow-lg);
    z-index: 999;
    max-width: 1400px;
    margin: 0 auto;
}

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

.ewc-mobile-menu .ewc-btn-call {
    background: white;
    color: var(--ewc-primary);
    border: 2px solid var(--ewc-primary);
}

.ewc-mobile-menu .ewc-btn-book {
    background: var(--ewc-primary);
    color: white;
}

.ewc-cta-buttons {
    display: flex;
    gap: 1rem;
}

/* Modern Buttons */
.ewc-btn {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.ewc-btn-call {
    background: transparent;
    color: var(--ewc-text);
    border: 2px solid var(--ewc-border);
}

.ewc-btn-call:hover {
    background: var(--ewc-bg-light);
    border-color: var(--ewc-text-light);
}

.ewc-btn-book {
    background: var(--ewc-primary);
    color: white;
    box-shadow: var(--ewc-shadow);
}

.ewc-btn-book:hover {
    background: var(--ewc-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--ewc-shadow-lg);
}

/* Hero Section - Modern & Minimal */
.ewc-hero {
    background: linear-gradient(135deg, #0066FF 0%, #0052CC 100%);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.ewc-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?w=1600&q=80') center/cover;
    opacity: 0.1;
    mix-blend-mode: overlay;
}

.ewc-hero-content {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.ewc-hero h1 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.ewc-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.ewc-hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 3rem auto;
    max-width: 1000px;
}

.ewc-feature-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem 1.5rem;
    border-radius: var(--ewc-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s;
}

.ewc-feature-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.2);
}

/* Modern Card System */
.ewc-card {
    background: var(--ewc-bg-card);
    border-radius: var(--ewc-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--ewc-shadow);
    border: 1px solid var(--ewc-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Section Containers */
.ewc-section {
    padding: 5rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.ewc-section-alt {
    background: var(--ewc-bg-light);
}

/* Stats Section - Modern Cards */
.ewc-stats {
    padding: 5rem 2rem;
    background: var(--ewc-bg-light);
}

.ewc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.ewc-stat-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--ewc-radius-lg);
    box-shadow: var(--ewc-shadow);
    border: 1px solid var(--ewc-border);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ewc-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ewc-primary), var(--ewc-accent));
}

.ewc-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ewc-shadow-lg);
}

.ewc-stat-number {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ewc-primary), var(--ewc-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 1rem;
    line-height: 1;
}

.ewc-stat-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ewc-text);
    margin-bottom: 0.75rem;
}

.ewc-stat-description {
    font-size: 0.95rem;
    color: var(--ewc-text-light);
    line-height: 1.6;
}

/* Pricing Section - Modern Card */
.ewc-pricing {
    padding: 5rem 2rem;
    background: white;
}

.ewc-pricing h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.ewc-pricing-subtitle {
    text-align: center;
    color: var(--ewc-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

.ewc-pricing-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: var(--ewc-radius-xl);
    box-shadow: var(--ewc-shadow-lg);
    border: 1px solid var(--ewc-border);
}

.ewc-pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--ewc-border);
    gap: 2rem;
}

.ewc-pricing-item:last-of-type {
    border-bottom: 2px solid var(--ewc-border);
    margin-bottom: 2rem;
}

.ewc-pricing-old {
    text-decoration: line-through;
    color: var(--ewc-text-light);
    font-size: 1.125rem;
    display: block;
    margin-bottom: 0.25rem;
}

.ewc-pricing-new {
    color: var(--ewc-accent);
    font-weight: 700;
    font-size: 2rem;
}

/* Testimonials - Modern Grid */
.ewc-testimonials {
    padding: 5rem 2rem;
    background: var(--ewc-bg-light);
}

.ewc-testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.ewc-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.ewc-testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--ewc-radius-lg);
    box-shadow: var(--ewc-shadow);
    border: 1px solid var(--ewc-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ewc-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ewc-shadow-lg);
}

.ewc-testimonial-initial {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--ewc-primary), var(--ewc-accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.ewc-testimonial-name {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--ewc-text);
}

.ewc-testimonial-result {
    color: var(--ewc-accent);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.ewc-testimonial-card p:last-child {
    color: var(--ewc-text-light);
    line-height: 1.7;
}

/* Journey Timeline - Modern */
.ewc-journey {
    padding: 5rem 2rem;
    background: white;
}

.ewc-journey h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.ewc-journey-subtitle {
    text-align: center;
    color: var(--ewc-text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.ewc-journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.ewc-journey-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--ewc-radius-lg);
    border: 1px solid var(--ewc-border);
    box-shadow: var(--ewc-shadow);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ewc-journey-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ewc-shadow-lg);
}

.ewc-journey-number {
    position: absolute;
    top: -20px;
    left: 2rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--ewc-primary), var(--ewc-accent));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: var(--ewc-shadow);
}

.ewc-journey-title {
    margin-top: 2rem;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.ewc-journey-timeline {
    color: var(--ewc-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.ewc-journey-benefits {
    list-style: none;
    padding: 0;
}

.ewc-journey-benefits li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--ewc-text-light);
}

.ewc-journey-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--ewc-accent);
    font-weight: 700;
    font-size: 1.25rem;
}

/* Contact Cards */
.ewc-contact {
    padding: 5rem 2rem;
    background: var(--ewc-bg-light);
}

.ewc-contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.ewc-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.ewc-contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--ewc-radius-lg);
    box-shadow: var(--ewc-shadow);
    border: 1px solid var(--ewc-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ewc-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ewc-shadow-lg);
}

.ewc-contact-card h3 {
    color: var(--ewc-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.ewc-contact-card p {
    line-height: 1.8;
    color: var(--ewc-text-light);
}

/* Footer - Modern Floaty Design */
.ewc-footer {
    padding: 0 2rem 1rem 2rem;
    margin-top: 2rem;
    background: var(--ewc-bg-light);
}

.ewc-footer-content {
    background: var(--ewc-text);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--ewc-radius-lg);
    box-shadow: var(--ewc-shadow-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.ewc-footer-content p {
    opacity: 0.8;
    margin: 0.5rem 0;
}

/* Image Styles */
.ewc-image-container {
    border-radius: var(--ewc-radius-lg);
    overflow: hidden;
    box-shadow: var(--ewc-shadow);
}

.ewc-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Masonry Reviews Layout */
.ewc-reviews-masonry {
    column-count: 3;
    column-gap: 2rem;
}

/* Contact Layout */
.ewc-contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* FAQ Grid */
.ewc-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .ewc-reviews-masonry {
        column-count: 2;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ewc-hero {
        padding: 4rem 1.5rem;
    }

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

    .ewc-header {
        padding: 0.5rem 1rem;
    }

    .ewc-header::before {
        top: 0.5rem;
        left: 1rem;
        right: 1rem;
        border-radius: var(--ewc-radius);
    }

    .ewc-header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem 1rem;
    }

    .ewc-footer {
        padding: 0 1rem 0.5rem 1rem;
    }

    .ewc-footer-content {
        padding: 2rem 1.5rem;
        border-radius: var(--ewc-radius);
    }

    .ewc-stat-number {
        font-size: 3rem;
    }

    .ewc-pricing-card {
        padding: 2rem 1.5rem;
    }

    .ewc-pricing-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .ewc-section {
        padding: 3rem 1.5rem;
    }

    .ewc-cta-buttons {
        width: 100%;
        flex-direction: column;
    }

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

    .ewc-reviews-masonry {
        column-count: 1;
        column-gap: 0;
    }

    .ewc-contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ewc-faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Smooth Animations */
@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}

/* Focus States for Accessibility */
.ewc-btn:focus,
a:focus {
    outline: 2px solid var(--ewc-primary);
    outline-offset: 2px;
}
/* === Discount Banner (force red text) === */
.ewc-discount{
  position: sticky; top: 0; z-index: 1100;
  background: linear-gradient(90deg, var(--ewc-primary), var(--ewc-primary-dark));
  color: #fff; font-weight: 600; font-size: .95rem;
}
.ewc-discount__wrap{
  max-width: 1200px; margin: 0 auto; padding: .55rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.ewc-discount__text{
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.ewc-discount__text span:last-child{
  color: #DC2626 !important; /* يفرض اللون الأحمر حتى مع أي تعارض */
}
.ewc-discount__badge{
  background: #fff; color: var(--ewc-primary);
  border-radius: 999px; padding: .15rem .6rem;
  font-weight: 800; font-size: .85rem;
}
.ewc-discount__cta{
  display: flex; gap: .5rem; flex-wrap: wrap;
}
.ewc-discount__cta a{
  background: #fff; color: var(--ewc-primary);
  text-decoration: none; border-radius: 999px;
  padding: .35rem .9rem; font-weight: 700;
  box-shadow: var(--ewc-shadow);
}
.ewc-discount__cta a:hover{
  background: var(--ewc-accent); color: #fff;
  transform: translateY(-1px); box-shadow: var(--ewc-shadow-lg);
}
@media (max-width: 600px){
  .ewc-discount__wrap{ flex-direction: column; align-items: stretch; gap: .45rem }
  .ewc-discount__cta{ width: 100% }
  .ewc-discount__cta a{ text-align: center; flex: 1 }
}
/* Fix mobile readability + enforce white text */
.ewc-discount, .ewc-discount * { color:#fff !important; text-shadow:0 1px 0 rgba(0,0,0,.15); }
.ewc-discount__badge { background:#fff !important; color:#B91C1C !important; text-shadow:none !important; }

/* Mobile layout */
@media (max-width:600px){
  .ewc-discount__wrap{ flex-direction:column; align-items:center; text-align:center; gap:.5rem; }
  .ewc-discount__text{ justify-content:center; }
  .ewc-discount__cta{ width:100%; }
  .ewc-discount__cta a{ display:block; width:100%; }
}