/* ═══════════════════════════════════════════════════
   Theme: Elegant Professional (Premium Editorial Redesign)
   A structured, high-end editorial digital profile.
   ═══════════════════════════════════════════════════ */

:root {
    /* Base Colors */
    --el-bg: #F6F5F2; /* Warm, sophisticated background */
    --el-surface: #FFFFFF;
    --el-surface-alt: #F9F9F9;
    
    /* Text Colors */
    --el-text-main: #1A1A1A;
    --el-text-secondary: #555555;
    --el-text-tertiary: #888888;
    
    /* Borders & Lines */
    --el-border: #E8E6E1;
    --el-border-light: #F0EFEA;
    
    /* Dynamic Accent */
    --el-accent: var(--accent, #111111);
    --el-accent-r: var(--accent-r, 17);
    --el-accent-g: var(--accent-g, 17);
    --el-accent-b: var(--accent-b, 17);
    --el-accent-soft: rgba(var(--accent-r, 17), var(--accent-g, 17), var(--accent-b, 17), 0.05);
    
    /* Typography */
    --el-font-display: 'Playfair Display', Georgia, serif;
    --el-font-body: 'Inter', -apple-system, sans-serif;
    
    /* Layout */
    --el-max-width: 1080px;
    --el-radius-sm: 6px;
    --el-radius: 12px;
    --el-radius-lg: 16px;
    
    /* Shadows */
    --el-shadow-subtle: 0 4px 20px rgba(0,0,0,0.03);
    --el-shadow-hover: 0 12px 32px rgba(0,0,0,0.06);
    
    /* Animation */
    --el-transition: 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ─── Reset ─── */
.el-page *, .el-page *::before, .el-page *::after { box-sizing: border-box; }
.el-page {
    margin: 0; padding: 0;
    font-family: var(--el-font-body);
    background: var(--el-bg);
    color: var(--el-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ─── Layout Container ─── */
.el-layout {
    max-width: var(--el-max-width);
    margin: 0 auto;
    background: var(--el-bg);
    min-height: 100vh;
    padding-bottom: 60px;
}

/* ═══════════════════════════
   HERO (Editorial Composition)
   ═══════════════════════════ */
.el-hero {
    background: var(--el-surface);
    border-bottom: 1px solid var(--el-border);
    margin-bottom: 24px;
}

.el-hero__cover-area {
    position: relative;
    width: 100%;
    height: 420px;
    background: var(--el-surface-alt);
}
.el-hero__cover-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
/* Subtle vignette for text readability if layered */
.el-hero__cover-area::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
}

.el-hero__content {
    display: flex;
    flex-direction: column;
    padding: 0 48px 48px;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.el-hero__avatar-wrap {
    margin-top: -65px; /* Overlap cover */
    margin-bottom: 24px;
    z-index: 2;
}
.el-hero__avatar {
    width: 130px; height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--el-surface);
    box-shadow: var(--el-shadow-subtle);
    background: var(--el-bg);
}
.el-hero__avatar-placeholder {
    width: 130px; height: 130px;
    border-radius: 50%;
    border: 4px solid var(--el-surface);
    background: var(--el-surface-alt);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: var(--el-text-tertiary);
}

.el-hero__meta {
    display: flex;
    flex-direction: column;
}
.el-hero__name {
    font-family: var(--el-font-display);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 8px;
    color: var(--el-text-main);
    letter-spacing: -0.5px;
}
.el-hero__role {
    font-size: 1.25rem;
    color: var(--el-accent);
    font-weight: 500;
    margin: 0 0 16px;
}
.el-hero__tagline {
    font-size: 1.1rem;
    color: var(--el-text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 0 32px;
}

.el-hero__actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* ═══════════════════════════
   BUTTONS
   ═══════════════════════════ */
.el-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--el-radius-sm);
    font-family: var(--el-font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: var(--el-transition);
    line-height: 1;
}
.el-btn--primary {
    background: var(--el-text-main);
    color: #FFF;
}
.el-btn--primary:hover {
    background: var(--el-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--accent-r),var(--accent-g),var(--accent-b),0.2);
}
.el-btn--secondary {
    background: var(--el-surface);
    border: 1px solid var(--el-border);
    color: var(--el-text-main);
}
.el-btn--secondary:hover {
    border-color: var(--el-accent);
    color: var(--el-accent);
}
.el-btn--tertiary {
    background: transparent;
    color: var(--el-text-main);
    padding: 10px 0;
}
.el-btn--tertiary:hover {
    color: var(--el-accent);
}
.el-btn--tertiary i { transition: transform 0.2s; }
.el-btn--tertiary:hover i { transform: translateX(4px); }

/* ═══════════════════════════
   QUICK ACTIONS
   ═══════════════════════════ */
.el-quick-actions {
    display: flex;
    gap: 12px;
    padding: 0 24px;
    margin: -12px auto 40px;
    max-width: var(--el-max-width);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.el-quick-actions::-webkit-scrollbar { display: none; }

.el-qa-item {
    flex: 1;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
    background: var(--el-surface);
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius);
    text-decoration: none;
    color: var(--el-text-main);
    transition: var(--el-transition);
    box-shadow: var(--el-shadow-subtle);
}
.el-qa-item i {
    font-size: 1.4rem;
    color: var(--el-text-secondary);
    transition: color var(--el-transition);
}
.el-qa-item span {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.el-qa-item:hover {
    border-color: var(--el-accent);
    transform: translateY(-4px);
    box-shadow: var(--el-shadow-hover);
}
.el-qa-item:hover i { color: var(--el-accent); }

/* ═══════════════════════════
   NAVIGATION
   ═══════════════════════════ */
.el-nav-wrap {
    position: sticky;
    top: 0; z-index: 40;
    background: rgba(246, 245, 242, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--el-border);
    padding: 0 24px;
    margin-bottom: 40px;
}
.el-nav {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 900px;
    margin: 0 auto;
}
.el-nav::-webkit-scrollbar { display: none; }
.el-nav__item {
    background: none; border: none;
    padding: 24px 0;
    font-family: var(--el-font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--el-text-tertiary);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color var(--el-transition);
}
.el-nav__item::after {
    content: ''; position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 3px; background: var(--el-accent);
    transform: scaleX(0);
    transition: transform var(--el-transition);
}
.el-nav__item:hover { color: var(--el-text-main); }
.el-nav__item[aria-selected="true"] { color: var(--el-text-main); }
.el-nav__item[aria-selected="true"]::after { transform: scaleX(1); }

/* ═══════════════════════════
   TAB PANELS & CONTENT
   ═══════════════════════════ */
.el-panel {
    display: none;
    padding: 0 24px;
    max-width: 948px; /* 900 + 24 + 24 */
    margin: 0 auto;
    animation: elFadeIn 0.3s ease;
}
.el-panel.is-active { display: block; }
@keyframes elFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Generic Section Header */
.el-section { margin-bottom: 64px; }
.el-section__hdr {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--el-border);
}
.el-section__title {
    font-family: var(--el-font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--el-text-main);
    margin: 0 0 8px;
}
.el-section__desc {
    font-size: 1.1rem;
    color: var(--el-text-secondary);
    margin: 0;
}

/* ═══════════════════════════
   CONNECT DASHBOARD
   ═══════════════════════════ */
.el-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.el-contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--el-surface);
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius);
    text-decoration: none;
    color: inherit;
    transition: var(--el-transition);
    box-shadow: var(--el-shadow-subtle);
}
.el-contact-card:hover {
    border-color: var(--el-accent);
    transform: translateY(-4px);
    box-shadow: var(--el-shadow-hover);
}
.el-contact-card__icon {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--el-surface-alt);
    color: var(--el-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: background var(--el-transition), color var(--el-transition);
}
.el-contact-card:hover .el-contact-card__icon {
    background: var(--el-accent); color: #FFF;
}
.el-contact-card__body { flex: 1; min-width: 0; }
.el-contact-card__label {
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--el-text-tertiary);
    margin-bottom: 4px;
}
.el-contact-card__val {
    font-size: 1.1rem; font-weight: 500;
    color: var(--el-text-main);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.el-contact-card__arrow {
    color: var(--el-border); font-size: 1.1rem;
    transition: color var(--el-transition), transform var(--el-transition);
}
.el-contact-card:hover .el-contact-card__arrow {
    color: var(--el-accent); transform: translateX(4px);
}

/* ═══════════════════════════
   LOCATION (Split Layout)
   ═══════════════════════════ */
.el-location-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
}
.el-address-card {
    background: var(--el-surface);
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius);
    padding: 32px;
    display: flex; flex-direction: column;
}
.el-address-card h3 {
    font-family: var(--el-font-display);
    font-size: 1.5rem; margin: 0 0 16px;
}
.el-address-card p {
    font-size: 1.05rem; color: var(--el-text-secondary);
    line-height: 1.7; margin: 0 0 24px; flex: 1;
}
.el-map-wrap {
    border-radius: var(--el-radius);
    overflow: hidden;
    border: 1px solid var(--el-border);
    height: 100%; min-height: 300px;
}

/* ═══════════════════════════
   SOCIAL BLOCK
   ═══════════════════════════ */
.el-social-list {
    display: flex; flex-wrap: wrap; gap: 16px;
}
.el-social-btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 16px 24px;
    background: var(--el-surface);
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius);
    color: var(--el-text-main);
    text-decoration: none;
    font-weight: 600; font-size: 0.95rem;
    transition: var(--el-transition);
}
.el-social-btn i { font-size: 1.2rem; color: var(--el-text-secondary); transition: color var(--el-transition); }
.el-social-btn:hover {
    border-color: var(--el-accent);
    transform: translateY(-2px);
    box-shadow: var(--el-shadow-subtle);
}
.el-social-btn:hover i { color: var(--el-accent); }

/* ═══════════════════════════
   SERVICES & PRODUCTS (Editorial Cards)
   ═══════════════════════════ */
.el-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.el-editorial-card {
    background: var(--el-surface);
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius);
    overflow: hidden;
    text-decoration: none; color: inherit;
    display: flex; flex-direction: column;
    transition: var(--el-transition);
}
.el-editorial-card:hover {
    border-color: var(--el-accent);
    transform: translateY(-6px);
    box-shadow: var(--el-shadow-hover);
}
.el-editorial-card__img-wrap {
    width: 100%; height: 260px; overflow: hidden;
    background: var(--el-surface-alt);
    position: relative;
}
.el-editorial-card__img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.el-editorial-card:hover .el-editorial-card__img { transform: scale(1.04); }
.el-editorial-card__body {
    padding: 32px; flex: 1; display: flex; flex-direction: column;
}
.el-editorial-card__title {
    font-family: var(--el-font-display);
    font-size: 1.5rem; font-weight: 600;
    margin: 0 0 12px; line-height: 1.3;
}
.el-editorial-card__desc {
    font-size: 1rem; color: var(--el-text-secondary);
    line-height: 1.6; margin: 0 0 24px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.el-editorial-card__price {
    font-size: 1.15rem; font-weight: 700; color: var(--el-accent); margin-bottom: 24px;
}

/* ═══════════════════════════
   GALLERY (Featured Grid)
   ═══════════════════════════ */
.el-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.el-gallery-item {
    border-radius: var(--el-radius);
    overflow: hidden; display: block;
    border: 1px solid var(--el-border);
    position: relative;
    transition: transform var(--el-transition);
}
.el-gallery-item:hover { transform: translateY(-4px); box-shadow: var(--el-shadow-hover); }
.el-gallery-item img {
    width: 100%; height: 240px; object-fit: cover; display: block;
}
.el-gallery-item--featured {
    grid-column: span 2; grid-row: span 2;
}
.el-gallery-item--featured img { height: 500px; }
.el-gallery-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8), transparent);
    color: #FFF; padding: 24px 20px 16px;
    font-weight: 600; font-size: 1.1rem;
}

/* ═══════════════════════════
   ACCORDIONS (Editorial Style)
   ═══════════════════════════ */
.el-accordion {
    border-bottom: 1px solid var(--el-border);
}
.el-accordion__header {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 24px 0; background: none; border: none; cursor: pointer;
    font-family: var(--el-font-body); font-size: 1.15rem; font-weight: 600;
    color: var(--el-text-main); text-align: left;
}
.el-accordion__icon {
    font-size: 1.2rem; color: var(--el-text-tertiary);
    transition: transform 0.3s ease;
}
.el-accordion__header[aria-expanded="true"] .el-accordion__icon {
    transform: rotate(45deg); color: var(--el-accent);
}
.el-accordion__content {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.el-accordion__content-inner {
    padding-bottom: 32px; color: var(--el-text-secondary); font-size: 1.05rem; line-height: 1.7;
}

/* ═══════════════════════════
   TESTIMONIALS
   ═══════════════════════════ */
.el-test-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.el-test-card {
    background: var(--el-surface); border: 1px solid var(--el-border);
    padding: 32px; border-radius: var(--el-radius);
    box-shadow: var(--el-shadow-subtle);
}
.el-test-stars { color: #f59e0b; margin-bottom: 16px; font-size: 0.9rem; }
.el-test-quote { font-family: var(--el-font-display); font-size: 1.2rem; font-style: italic; line-height: 1.6; margin: 0 0 24px; }
.el-test-author { display: flex; align-items: center; gap: 16px; }
.el-test-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.el-test-name { font-weight: 600; font-size: 1rem; color: var(--el-text-main); }
.el-test-role { font-size: 0.85rem; color: var(--el-text-tertiary); }

/* ═══════════════════════════
   UTILITIES & COMPONENTS
   ═══════════════════════════ */
.el-view-all { text-align: center; margin-top: 40px; }
.el-qr-block {
    text-align: center; padding: 40px; background: var(--el-surface);
    border: 1px solid var(--el-border); border-radius: var(--el-radius);
}
.el-form {
    display: grid; gap: 24px; max-width: 600px;
}
.el-form label { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; color: var(--el-text-tertiary); display: block; margin-bottom: 8px; }
.el-form input, .el-form textarea {
    width: 100%; padding: 16px; border: 1px solid var(--el-border);
    border-radius: var(--el-radius-sm); font-family: inherit; font-size: 1rem;
    background: var(--el-surface-alt); transition: border-color 0.2s;
}
.el-form input:focus, .el-form textarea:focus { outline: none; border-color: var(--el-accent); background: var(--el-surface); }

/* ═══════════════════════════
   RESPONSIVE LAYOUT
   ═══════════════════════════ */
@media (max-width: 1024px) {
    .el-hero__cover-area { height: 340px; }
    .el-location-layout { grid-template-columns: 1fr; }
    .el-gallery-item--featured { grid-column: span 1; grid-row: span 1; }
    .el-gallery-item--featured img { height: 240px; }
    .el-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .el-hero__cover-area { height: 280px; }
    .el-hero__content { padding: 0 24px 32px; }
    .el-hero__avatar { width: 110px; height: 110px; }
    .el-hero__name { font-size: 2.5rem; }
    .el-hero__actions { flex-direction: column; width: 100%; align-items: stretch; }
    
    .el-quick-actions { padding: 0 16px; }
    .el-nav-wrap { padding: 0 16px; margin-bottom: 32px; }
    .el-nav { gap: 24px; }
    
    .el-panel { padding: 0 16px; }
    .el-section { margin-bottom: 48px; }
    .el-section__title { font-size: 1.7rem; }
    
    .el-contact-grid { grid-template-columns: 1fr; }
    .el-card-grid { grid-template-columns: 1fr; gap: 24px; }
    .el-editorial-card__img-wrap { height: 220px; }
    .el-test-grid { grid-template-columns: 1fr; }
    .el-gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .el-hero__cover-area { height: 220px; }
    .el-hero__avatar { width: 90px; height: 90px; margin-top: -45px; border-width: 3px; }
    .el-hero__name { font-size: 2.2rem; }
    
    .el-qa-item { min-width: 110px; padding: 16px 12px; }
    .el-qa-item i { font-size: 1.2rem; }
    .el-qa-item span { font-size: 0.75rem; }
    
    .el-contact-card { padding: 16px; gap: 16px; }
    .el-contact-card__icon { width: 44px; height: 44px; font-size: 1.1rem; }
    .el-contact-card__val { font-size: 1rem; }
    
    .el-social-btn { padding: 12px 16px; font-size: 0.9rem; }
    
    .el-address-card { padding: 24px; }
    .el-map-wrap { min-height: 250px; }
}

/* Modals & Utils */
.el-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; opacity: 0; visibility: hidden; transition: 0.3s;
}
.el-modal-overlay.is-active { opacity: 1; visibility: visible; }
.el-modal {
    background: var(--el-surface); padding: 40px; border-radius: var(--el-radius-lg);
    width: 90%; max-width: 420px; transform: translateY(20px); transition: 0.3s;
}
.el-modal-overlay.is-active .el-modal { transform: translateY(0); }
.el-modal-grid { display: grid; gap: 12px; margin-top: 24px; }

/* Slideshow */
.el-hero__slideshow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}
.el-hero__slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.el-hero__slide.active {
    opacity: 1;
}
