/* ============================================
   MEGAN PAGE STYLES
   ============================================ */

/* ============================================
   HERO
   ============================================ */

.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
   ============================================ */

.title-section {
    padding: 4rem 3rem;
    background: #fff;
    text-align: center;
}

.title-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.main-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.subtitle {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.9;
    max-width: 800px;
    margin: 0 auto;
}

.secondary-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* ============================================
   BENEFITS SECTION (shared wrapper)
   ============================================ */

.benefits-section {
    padding: 5rem 3rem;
    background: #f8f9fa;
}

.benefits-section:nth-of-type(even) {
    background: #fff;
}

.benefits-section .container {
    max-width: 1400px;
    margin: auto;
}

/* image + card two-col */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.benefits-grid > img {
    width: 90%; height: auto;
    min-height: 400px; max-height: 600px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.benefits-grid > img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

.benefit-card {
    background: linear-gradient(135deg, #c9a961 0%, #b4944d 100%);
    padding: 3.5rem 3rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    box-shadow: 0 8px 30px rgba(201,169,97,0.25);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    min-height: 400px; max-height: 600px;
}

.benefit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(201,169,97,0.35);
}

.benefit-text-block { position: relative; z-index: 1; }

.benefit-text-block p {
    font-size: 1.1rem;
    color: white;
    font-weight: 500;
    line-height: 1.8;
    margin: 0;
}

.benefit-text-block p:first-child {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ============================================
   TECHNOLOGY STEPS
   ============================================ */

.tech-step {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0 2rem;
    margin-top: 3rem;
}

.tech-step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.2rem;
}

.tech-step-number {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a961 0%, #b4944d 100%);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(201,169,97,0.35);
    flex-shrink: 0;
    z-index: 1;
}

.tech-step-line {
    flex: 1;
    width: 2px;
    background: linear-gradient(to bottom, #c9a961, rgba(201,169,97,0.08));
    margin-top: 0.75rem;
    min-height: 2rem;
}

.tech-step:last-of-type .tech-step-line {
    display: none;
}

.tech-step-body {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    margin-bottom: 0.5rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.tech-step-body:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.tech-step-tag {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #c9a961;
    margin-bottom: 0.6rem;
}

.tech-step-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.4rem;
}

.tech-step-lead {
    font-size: 1.05rem;
    font-weight: 600;
    color: #b4944d;
    margin-bottom: 0.85rem;
    font-style: italic;
}

.tech-step-body > p:not(.tech-step-lead) {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.85;
    margin: 0;
}

.tech-step-note {
    margin-top: 1.75rem;
    padding: 1.25rem 1.5rem;
    background: rgba(201,169,97,0.07);
    border-left: 3px solid #c9a961;
    border-radius: 0 12px 12px 0;
}

.tech-step-note strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.tech-step-note p {
    font-size: 0.97rem !important;
    color: #666 !important;
    line-height: 1.75 !important;
    margin: 0 !important;
}

/* ============================================
   PRODUCT GRID
   ============================================ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.13);
}

.product-card-image {
    height: auto;
    overflow: hidden;
}

.product-card-image img {
    width: 100%; height: auto;
    object-fit: contain;
    max-height: 450px;
    margin: auto;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.product-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #c9a961;
}

.product-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
    margin: 0;
}

.product-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.2rem 0;
}

.product-card-tags span {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #b4944d;
    background: rgba(201,169,97,0.1);
    padding: 0.2rem 0.65rem;
    border-radius: 10px;
}

.product-card-body > p:not(.product-card-tags) {
    font-size: 0.97rem;
    color: #666;
    line-height: 1.75;
    margin: 0;
    flex: 1;
}

/* ============================================
   TECHNOLOGY SECTION IMAGE
   ============================================ */

.tech-section-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    margin-top: 3rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tech-section-image:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

/* ============================================
   CLOSING + VIDEO
   ============================================ */

.closing-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.closing-brand {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #c9a961;
    margin-bottom: 1rem;
}

.closing-text .secondary-title {
    margin-bottom: 1.25rem;
}

.closing-text p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.9;
}

.closing-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: none;
}

.closing-video iframe:hover {
    box-shadow: 0 12px 42px rgba(201,169,97,0.28);
    transform: translateY(-4px);
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */

@media (max-width: 1024px) {
    .hero-content-wrapper { padding: 2rem 3rem; }
    .hero-brand-logo { left: 3rem; max-width: 240px; }
    .hero-device-image { max-width: 350px; }

    .benefits-section { padding: 4rem 2rem; }
    .benefits-grid { grid-template-columns: 1fr; gap: 2rem; }
    .benefit-card { padding: 3rem 2.5rem; }

    .tech-step { grid-template-columns: 60px 1fr; gap: 0 1.5rem; }

    .product-grid { gap: 1.5rem; }

    .closing-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */

@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: 3rem 2rem; }

    .info-grid { grid-template-columns: 1fr; gap: 1rem; }
    .info-card { padding: 1.2rem 1rem; }
    .info-card h3 { font-size: 0.95rem; }

    .benefits-section { padding: 3rem 1.5rem; }
    .benefits-grid > img { min-height: 250px; max-height: 350px; margin: auto; }
    .benefit-card { padding: 2.5rem 1.75rem; }

    .tech-step { grid-template-columns: 1fr; gap: 1rem; }
    .tech-step-marker { flex-direction: row; gap: 1rem; }
    .tech-step-line { display: none; }
    .tech-step-body { padding: 2rem 1.5rem; }
    .tech-step-title { font-size: 1.3rem; }

    .product-grid { grid-template-columns: 1fr; }

    .closing-grid { grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE
   ============================================ */

@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: 2.5rem 1.5rem; }
    .main-title { font-size: 1.6rem; }
    .subtitle { font-size: 1rem; }
    .secondary-title { font-size: 1.4rem; }

    .info-card { padding: 1rem 0.8rem; gap: 1rem; }
    .info-card img { width: 50px; }
    .info-card h3 { font-size: 0.9rem; }

    .benefits-section { padding: 2.5rem 1rem; }
    .benefit-card { padding: 2rem 1.5rem; gap: 1.5rem; }
    .benefit-text-block p { font-size: 1rem; }
    .benefit-text-block p:first-child { font-size: 1.1rem; }

    .tech-step-body { padding: 1.75rem 1.25rem; }
    .tech-step-title { font-size: 1.2rem; }
    .tech-step-note { padding: 1rem 1.1rem; }

    .product-card-body { padding: 1.5rem; }
    .product-card-body h3 { font-size: 1.05rem; }
}

/* ============================================
   LANDSCAPE MOBILE
   ============================================ */

@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; }
}