/* ============================================
   XBODY PAGE STYLES
   ============================================ */

/* ============================================
   HERO SECTION - matches Sylfirm X exactly
   ============================================ */

.procedure-hero {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1600px;
    height: 100%;
    margin: 0 auto;
    padding: 3rem 5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.hero-brand-logo {
    position: absolute;
    top: 3rem;
    left: 5rem;
    max-width: 320px;
    animation: fadeInLeft 1s ease-out;
}

.hero-brand-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
}

.hero-device-image {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    max-width: 450px;
    animation: fadeInRight 1s ease-out;
}

.hero-device-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.4));
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateY(-50%) translateX(50px); }
    to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* ============================================
   TITLE SECTION - matches Sylfirm X exactly
   ============================================ */

.title-section {
    padding: 3rem 3rem;
    background: #fff;
    text-align: center;
}

.title-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

/* ============================================
   QUICK INFO SECTION - matches Sylfirm X exactly
   ============================================ */

.quick-info {
    background: linear-gradient(135deg, #c9a961 0%, #b4944d 100%);
    padding: 0.1rem;
    margin: 0 auto;
}

.quick-info .container {
    max-width: 1400px;
    margin: 0 auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem;
}

.info-card {
    background: transparent;
    padding: 1.5rem 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card img {
    width: 60px;
    height: auto;
    flex-shrink: 0;
}

.info-card h3 {
    font-size: 1rem;
    color: white;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    flex: 1;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    padding: 4rem 3rem;
    background: #fff;
}

.about-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: center;
}

.about-content .secondary-title {
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    object-fit: cover;
}

/* ============================================
   EMS APPLICATIONS SECTION

   Layout per reference image:
   Each row = image | text | image | text
   Images are tall body figures — NOT cropped,
   displayed in full with object-fit: contain
   ============================================ */

.ems-section {
    padding: 4rem 3rem;
    background: #f8f9fa;
}

.ems-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.ems-row {
    display: grid;
    grid-template-columns: 180px 1fr 180px 1fr;
    align-items: center;
    overflow: hidden;
    min-height: 260px;
}

.ems-row:last-child {
    margin-bottom: 0;
}

/* Images: full height, not cropped — use contain so the full figure shows */
.ems-image {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 1rem 0.5rem;
    height: 260px;
}

.ems-image img {
    width: 100%;
    height: 100%;
    max-height: 220px;
    object-fit: contain;
    display: block;
}

/* Text blocks */
.ems-text {
    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ems-text h3 {
    font-size: 1.15rem;
    color: #c9a961;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.ems-text p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   TECHNOLOGY SECTION
   ============================================ */

.technology-section {
    padding: 4rem 3rem;
    background: #fff;
}

.technology-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.tech-video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    position: relative;
    padding-top: 50.625%;
}

.tech-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   RESPONSIVE - TABLET (1024px)
   ============================================ */

@media (max-width: 1024px) {
    .procedure-hero { height: 70vh; max-height: 700px; }
    .hero-content-wrapper { padding: 2.5rem 3rem; }
    .hero-brand-logo { left: 3rem; max-width: 240px; }
    .hero-device-image { max-width: 320px; }

    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-image { max-width: 500px; margin: 0 auto; }

    /* Stack each pair vertically: image on top, text below, twice */
    .ems-row {
        grid-template-columns: 150px 1fr;
        grid-template-rows: auto auto;
        min-height: unset;
    }

    .ems-row .ems-image:nth-child(1) { grid-column: 1; grid-row: 1; }
    .ems-row .ems-text:nth-child(2)  { grid-column: 2; grid-row: 1; }
    .ems-row .ems-image:nth-child(3) { grid-column: 1; grid-row: 2; border-left: none; border-top: none; }
    .ems-row .ems-text:nth-child(4)  { grid-column: 2; grid-row: 2; border-top: none; }
}

/* ============================================
   RESPONSIVE - MOBILE (768px)
   ============================================ */

@media (max-width: 768px) {
    .procedure-hero { height: 60vh; min-height: 400px; max-height: 500px; }
    .hero-cover-image img { object-position: center 30%; }
    .hero-content-wrapper { padding: 2rem 1.5rem; }
    .hero-brand-logo { left: 1.5rem; top: 2rem; max-width: 140px; }
    .hero-device-image { right: 1.5rem; max-width: 160px; }

    .title-section { padding: 4rem 2rem; }

    .quick-info { padding: 3rem 1.5rem; }
    .info-grid { grid-template-columns: 1fr; gap: 1rem; }
    .info-card { padding: 1.2rem 1rem; }
    .info-card img { width: 60px; }
    .info-card h3 { font-size: 0.95rem; }

    .about-section { padding: 3rem 1.5rem; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }

    .ems-section { padding: 3rem 1.5rem; }

    /* Single column stack on mobile */
    .ems-row {
        grid-template-columns: 1fr;
        grid-template-rows: unset;
        min-height: unset;
    }

    .ems-row .ems-image:nth-child(1),
    .ems-row .ems-image:nth-child(3) {
        grid-column: unset;
        grid-row: unset;
        border-left: none;
        border-top: none;
        padding: 1.5rem;
        max-height: 200px;
    }

    .ems-row .ems-text:nth-child(2),
    .ems-row .ems-text:nth-child(4) {
        grid-column: unset;
        grid-row: unset;
        border-top: none;
    }

    .ems-row .ems-image:nth-child(3) {
        border-top: none;
    }

    .ems-image img { max-height: 180px; }
    .ems-text { padding: 1.5rem; }

    .technology-section { padding: 3rem 1.5rem; }
    .tech-video-wrapper { padding-top: 56.25%; }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (480px)
   ============================================ */

@media (max-width: 480px) {
    .procedure-hero { height: 50vh; min-height: 350px; max-height: 400px; }
    .hero-content-wrapper { padding: 1.5rem 1rem; }
    .hero-brand-logo { left: 1rem; top: 1.5rem; max-width: 110px; }
    .hero-device-image { right: 1rem; max-width: 120px; }

    .title-section { padding: 3rem 1.5rem; }
    .quick-info { padding: 2.5rem 1rem; }
    .info-card { padding: 1rem 0.8rem; gap: 1rem; }
    .info-card img { width: 50px; }
    .info-card h3 { font-size: 0.9rem; }

    .about-section { padding: 2.5rem 1rem; }
    .ems-section { padding: 2.5rem 1rem; }
    .technology-section { padding: 2.5rem 1rem; }

    .ems-text h3 { font-size: 1.05rem; }
    .ems-text p { font-size: 0.9rem; }
}

/* ============================================
   LANDSCAPE MOBILE FIX
   ============================================ */

@media (max-width: 968px) and (orientation: landscape) {
    .procedure-hero { height: 70vh; min-height: 400px; max-height: 500px; }
    .hero-content-wrapper { padding: 2rem; }
    .hero-brand-logo { left: 2rem; top: 2rem; max-width: 130px; }
    .hero-device-image { right: 2rem; max-width: 180px; }
}