/* =======================================
   Izumi America — Modern Light Redesign
   Keeps existing HTML/PHP, updates visuals
   ======================================= */

/* ---------- Base Reset ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    background: #eef2ff;
    color: #0f172a;
    text-align: left;
}

/* Prevent unexpected center text from legacy CSS */
body, .page-container {
    text-align: left;
}

/* Links */

a {
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease,
        background-color 0.2s ease, box-shadow 0.2s ease,
        transform 0.15s ease;
}

a:hover {
    color: #3730a3;
}

/* Layout utility */

.padding-side {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

@media (min-width: 1024px) {
    .padding-side {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* ---------- Page Container ---------- */

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    border-radius: 1.75rem;
    box-shadow:
        0 25px 60px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(148, 163, 184, 0.25);
    overflow: hidden;
}

/* ---------- Top Navigation ---------- */

.menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(249, 250, 251, 0.98);
    border-bottom: 1px solid rgba(209, 213, 219, 0.7);
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
    border-radius: 0.4rem;
}

.menu-button-container {
    display: block;
    margin-left: auto;
}

.menu-button-container .menu img {
    width: 30px;
    height: 30px;
}

/* Main nav */

.menu-container {
    position: fixed;
    inset: 0;
    left: auto;
    width: 260px;
    background: #f9fafb;
    display: none;
    flex-direction: column;
    padding: 1.75rem 1.5rem;
    gap: 0.75rem;
    box-shadow: -24px 0 60px rgba(15, 23, 42, 0.35);
}

.menu-container a {
    display: block;
    font-size: 0.95rem;
    color: #111827;
    opacity: 0.85;
}

.menu-container a.close {
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.menu-container a.selected,
.menu-container a.bold {
    opacity: 1;
    color: #4f46e5;
}

/* Desktop nav behaviour */

@media (min-width: 900px) {
    .menu-button-container {
        display: none;
    }

    .menu-container {
        position: static;
        inset: auto;
        width: auto;
        background: transparent;
        box-shadow: none;
        display: flex !important;
        flex-direction: row;
        align-items: center;
        padding: 0;
        gap: 2rem;
    }

    .menu-container a.close {
        display: none !important;
    }

    .menu-container a {
        font-size: 0.94rem;
        font-weight: 500;
        opacity: 0.75;
        position: relative;
    }

    .menu-container a:hover {
        opacity: 1;
    }

    .menu-container a.selected,
    .menu-container a.bold {
        opacity: 1;
        color: #111827;
    }

    .menu-container a.selected::after,
    .menu-container a.bold::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -0.45rem;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(90deg, #4f46e5, #ec4899);
    }
}

/* ---------- Hero Section ---------- */

.hero {
    position: relative;
    padding: 3.5rem 1.75rem 3.25rem;
    background: radial-gradient(circle at top left, #e0e7ff 0, #eef2ff 45%, #f9fafb 100%);
    border-bottom: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr);
    gap: 2rem;
}

@media (min-width: 960px) {
    .hero {
        padding: 4.25rem 3rem 3.5rem;
        grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.4fr);
    }
}

/* Hide legacy image overlays so the layout is clean & solid */
.hero-overlay,
.hero-background {
    display: none !important;
}

.hero-content {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2.1rem 2rem;
    box-shadow:
        0 18px 45px rgba(148, 163, 184, 0.35),
        0 0 0 1px rgba(229, 231, 235, 0.95);
}

.hero-content h1 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.9rem;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.hero-content h1.classicLogo,
.classicLogo {
    text-transform: uppercase;
    font-style: normal;
    letter-spacing: 0.16em;
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
}

.hero-content p {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.7;
}

.hero-content p.light,
.light {
    color: #6b7280;
}

/* Layout for specific hero cards (index page) */

.hero-content[data-rel="hero1"] {
    background: linear-gradient(135deg, #ffffff 0%, #eef2ff 30%, #fde6ff 100%);
}

.hero-content[data-rel="hero2"] {
    background: #ffffff;
}

.hero-content[data-rel="hero3"] {
    background: #f9fafb;
}

/* On desktop, top two hero cards side by side, third full width below */

@media (min-width: 960px) {
    .hero-content[data-rel="hero1"],
    .hero-content[data-rel="hero2"] {
        align-self: stretch;
    }

    .hero-content[data-rel="hero3"] {
        grid-column: 1 / -1;
    }
}

/* ---------- CTA Buttons ---------- */

.text-content-right {
    text-align: right;
    margin-top: 1rem;
}

a.cta,
input.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.8rem;
    border-radius: 999px;
    background: linear-gradient(120deg, #4f46e5, #ec4899);
    color: #ffffff;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.35);
}

a.cta:hover,
input.cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 45px rgba(79, 70, 229, 0.45);
    background: linear-gradient(120deg, #4338ca, #db2777);
}

a.cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    font-size: 0.9rem;
    color: #374151;
    background: rgba(255, 255, 255, 0.8);
}

a.cta-secondary:hover {
    background: #111827;
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

/* ---------- Content Sections (Divisions, inner pages) ---------- */

.content {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

/* Info blocks used on home & other pages */

.info-block {
    display: flex;
    align-items: stretch;
    gap: 1.75rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px dashed #e5e7eb;
}

.info-block:last-child {
    border-bottom: none;
}

.info-block .icon {
    max-width: 320px;
    min-width: 260px;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.25),
        0 0 0 1px rgba(148, 163, 184, 0.4);
    background: #111827;
}

.info-block .icon img {
    width: 100%;
    display: block;
}

.info-block .text-content {
    flex: 1;
}

.info-block .text-content h2 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-size: 1.4rem;
    color: #0f172a;
}

.info-block .text-content p {
    margin-top: 0;
    margin-bottom: 0.6rem;
    color: #4b5563;
    font-size: 0.96rem;
    line-height: 1.7;
}

/* Mobile stacking */

@media (max-width: 768px) {
    .info-block {
        flex-direction: column;
    }
    .info-block .icon {
        max-width: 100%;
        min-width: 0;
    }
}

/* ---------- Footer / Contact ---------- */

.footer {
    margin-top: auto;
    padding: 2.75rem 1.75rem 2.5rem;
    background: radial-gradient(circle at top left, #e0e7ff 0, #eef2ff 40%, #f9fafb 100%);
    border-top: 1px solid #e5e7eb;
}

@media (min-width: 1024px) {
    .footer {
        padding-left: 3rem;
        padding-right: 3rem;
        display: grid;
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: 2.5rem;
        align-items: flex-start;
    }
}

.footer h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.35rem;
    color: #0f172a;
}

.footer p {
    margin: 0.35rem 0;
    font-size: 0.94rem;
    color: #4b5563;
}

.footer p.light {
    color: #6b7280;
}

/* Contact form */

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.9rem;
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    border-radius: 0.9rem;
    border: 1px solid #d1d5db;
    padding: 0.65rem 0.85rem;
    font-size: 0.94rem;
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
    color: #9ca3af;
}

#contactForm input:focus,
#contactForm textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.4);
    background: #ffffff;
}

#contactForm textarea {
    min-height: 120px;
    resize: vertical;
}

.email_error {
    color: #b91c1c;
    font-size: 0.8rem;
    margin: 0;
    display: none;
}

/* Contact success panel */

.footer-success {
    margin-top: 1.25rem;
    padding: 1.4rem 1.2rem;
    border-radius: 1.2rem;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
}

.footer-success h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

/* Social links */

.footer-social-links {
    margin-top: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-social-links img {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.4);
}

.footer-social-links a:hover img {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(79, 70, 229, 0.55);
}

/* Copyright */

.footer-copyright {
    margin-top: 1.75rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    font-size: 0.82rem;
    color: #9ca3af;
}

.footer-copyright p {
    margin: 0.15rem 0;
}

/* ---------- Images & Misc ---------- */

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

/* Hide any legacy ALT icon placeholders */
.info-block .icon.alt-icon {
    display: none;
}

/* Carousel (if used on other pages) */

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.4),
        0 0 0 1px rgba(148, 163, 184, 0.5);
    background: #020617;
}

.carousel img {
    width: 100%;
}

/* Generic typography helpers */

h1, h2, h3, h4 {
    font-family: inherit;
}

.light {
    font-weight: 400;
}

/* Privacy Policy generator styles (leave readable on light BG) */

[data-custom-class='body_text'],
[data-custom-class='body_text'] * {
    color: #374151 !important;
    font-size: 0.94rem !important;
    font-family: inherit !important;
}

[data-custom-class='heading_1'],
[data-custom-class='heading_1'] * {
    color: #0f172a !important;
    font-size: 1.5rem !important;
    font-family: inherit !important;
}

[data-custom-class='heading_2'],
[data-custom-class='heading_2'] * {
    color: #111827 !important;
    font-size: 1.2rem !important;
    font-family: inherit !important;
}

[data-custom-class='link'],
[data-custom-class='link'] * {
    color: #4f46e5 !important;
    font-size: inherit !important;
    font-family: inherit !important;
}
