/* ═══════════════════════════════════════════════════
   Base44 → WordPress Converter — Frontend Styles
   Applied to every converted page's sections.
═══════════════════════════════════════════════════ */

/* ── Reset & base ── */
.b44-section * { box-sizing: border-box; }
.b44-section    { width: 100%; overflow: hidden; }

.b44-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── Typography defaults (overridden by app palette vars) ── */
.b44-heading {
    font-family: var(--b44-font-h, Georgia, serif);
    color: var(--b44-text, #111);
    line-height: 1.2;
    margin: 0 0 16px;
}
.b44-text {
    font-family: var(--b44-font-b, system-ui, sans-serif);
    color: var(--b44-text, #333);
    line-height: 1.7;
    margin: 0 0 16px;
}
.b44-section-title {
    text-align: center;
    font-size: clamp(26px, 3.5vw, 44px);
    margin-bottom: 48px;
}
.b44-accent { color: var(--b44-accent, #6366f1); }

/* ── Buttons ── */
.b44-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s, transform 0.15s;
    font-family: var(--b44-font-b, system-ui, sans-serif);
}
.b44-btn:hover { opacity: 0.88; transform: translateY(-2px); }
.b44-btn--primary {
    background: var(--b44-accent, #6366f1);
    color: #fff;
}
.b44-btn--outline {
    background: transparent;
    color: var(--b44-text, #333);
    border: 2px solid currentColor;
}
.b44-btn-submit {
    width: 100%;
    background: var(--b44-accent, #6366f1);
    color: #fff;
    padding: 14px;
    border-radius: 6px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: var(--b44-font-b, system-ui, sans-serif);
}
.b44-btn-submit:hover { opacity: 0.88; }

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.b44-section--navbar { background: var(--b44-bg, #fff); border-bottom: 1px solid rgba(0,0,0,0.08); }
.b44-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1160px;
    margin: 0 auto;
    padding: 16px 32px;
}
.b44-nav__brand { display: flex; align-items: center; gap: 10px; }
.b44-nav__logo  { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; }
.b44-nav__name  { font-family: var(--b44-font-h, Georgia, serif); font-size: 20px; font-weight: 700; color: var(--b44-text, #111); }
.b44-nav__links { display: flex; list-style: none; margin: 0; padding: 0; gap: 28px; }
.b44-nav__links a { font-size: 14px; color: var(--b44-text, #333); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.b44-nav__links a:hover { color: var(--b44-accent, #6366f1); }
.b44-nav__burger { display: none; background: none; border: 1px solid rgba(0,0,0,0.15); border-radius: 4px; padding: 6px 10px; cursor: pointer; font-size: 18px; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.b44-section--hero { background: var(--b44-bg, #0f0f1a); }
.b44-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-color: var(--b44-primary, #0f0f1a);
}
.b44-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 100%);
}
.b44-hero__content {
    position: relative; z-index: 2;
    text-align: center;
    max-width: 780px;
    padding: 0 32px;
}
.b44-hero__heading {
    font-size: clamp(36px, 6vw, 76px);
    color: #fff;
    margin-bottom: 20px;
}
.b44-hero__sub, .b44-hero__para {
    font-size: clamp(16px, 2vw, 22px);
    color: rgba(255,255,255,0.82);
    margin-bottom: 12px;
}
.b44-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.b44-hero__image-wrap { position: absolute; right: 0; top: 0; bottom: 0; width: 45%; overflow: hidden; }
.b44-hero__image { width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
.b44-section--about { background: var(--b44-bg, #fff); padding: 90px 0; }
.b44-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.b44-about__img-wrap { position: relative; }
.b44-about__img { width: 100%; border-radius: 8px; display: block; }
.b44-about__content .b44-heading { font-size: clamp(26px, 3vw, 40px); }

/* ══════════════════════════════════════
   PRODUCTS / FEATURES
══════════════════════════════════════ */
.b44-section--products,
.b44-section--features { background: var(--b44-bg, #f9fafb); padding: 90px 0; }
.b44-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.b44-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}
.b44-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.b44-card__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.b44-card__body { padding: 20px; }
.b44-card__title { font-family: var(--b44-font-h, Georgia, serif); font-size: 18px; font-weight: 600; margin: 0 0 8px; color: var(--b44-text,#111); }
.b44-card__text  { font-size: 14px; color: #6b7280; margin: 0 0 12px; }
.b44-card__price { font-size: 16px; font-weight: 700; }

/* ══════════════════════════════════════
   GALLERY
══════════════════════════════════════ */
.b44-section--gallery { background: var(--b44-bg, #fff); padding: 90px 0; }
.b44-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.b44-gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    cursor: pointer;
}
.b44-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; display: block; }
.b44-gallery__item:hover img { transform: scale(1.06); }
.b44-gallery__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 32px;
    opacity: 0; transition: opacity 0.3s;
}
.b44-gallery__item:hover .b44-gallery__overlay { opacity: 1; }

/* ══════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════ */
.b44-section--testimonials { background: var(--b44-bg, #f9fafb); padding: 90px 0; }
.b44-testi__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.b44-testi__card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 28px;
    display: flex; flex-direction: column; gap: 14px;
    transition: transform 0.2s;
}
.b44-testi__card:hover { transform: translateY(-4px); }
.b44-testi__stars { color: #f59e0b; font-size: 18px; letter-spacing: 2px; }
.b44-testi__text  { font-style: italic; font-size: 15px; line-height: 1.7; color: #374151; margin: 0; flex: 1; }
.b44-testi__author { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid #f3f4f6; }
.b44-testi__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.b44-testi__author strong { display: block; font-size: 14px; color: #111; }
.b44-testi__author span   { font-size: 12px; color: #9ca3af; }

/* ══════════════════════════════════════
   CTA
══════════════════════════════════════ */
.b44-section--cta { padding: 90px 0; }
.b44-cta {
    text-align: center;
    padding: 64px 48px;
    border-radius: 16px;
}
.b44-cta .b44-heading { font-size: clamp(28px, 3vw, 44px); color: #fff; }
.b44-cta .b44-text    { color: rgba(255,255,255,0.8); font-size: 18px; margin-bottom: 32px; }
.b44-cta .b44-btn     { font-size: 17px; padding: 16px 40px; }

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
.b44-section--contact { background: var(--b44-bg, #fff); padding: 90px 0; }
.b44-contact {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
    align-items: start;
}
.b44-contact__info .b44-heading { font-size: clamp(24px, 2.5vw, 36px); }
.b44-contact__info .b44-text a  { color: var(--b44-accent, #6366f1); text-decoration: none; }
.b44-contact__form {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 32px;
}

/* ── Form styles ── */
.b44-form { display: flex; flex-direction: column; gap: 14px; }
.b44-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.b44-form input,
.b44-form textarea,
.b44-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--b44-font-b, system-ui, sans-serif);
    color: #111;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}
.b44-form input:focus,
.b44-form textarea:focus { border-color: var(--b44-accent, #6366f1); }
.b44-form textarea { resize: vertical; min-height: 120px; }
.b44-form-msg { font-size: 13px; text-align: center; min-height: 18px; }
.b44-form-msg.success { color: #10b981; }
.b44-form-msg.error   { color: #ef4444; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.b44-section--footer { background: var(--b44-primary, #0f0f1a); border-top: 1px solid rgba(255,255,255,0.06); padding: 48px 0; }
.b44-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.b44-footer__logo  { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; }
.b44-footer__brand { font-size: 18px; font-weight: 700; color: #fff; font-family: var(--b44-font-h, Georgia, serif); }
.b44-footer__copy  { font-size: 13px; color: rgba(255,255,255,0.4); margin: 0; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
    .b44-grid           { grid-template-columns: repeat(2,1fr); }
    .b44-testi__grid    { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
    .b44-nav__links     { display: none; }
    .b44-nav__burger    { display: block; }
    .b44-nav__links.open {
        display: flex; flex-direction: column;
        position: fixed; inset: 0;
        background: var(--b44-bg, #fff);
        z-index: 999; justify-content: center; align-items: center; gap: 24px;
    }
    .b44-nav__links.open a { font-size: 22px; }
    .b44-hero           { min-height: 100svh; background-attachment: scroll; }
    .b44-hero__image-wrap { display: none; }
    .b44-about          { grid-template-columns: 1fr; }
    .b44-grid           { grid-template-columns: 1fr; }
    .b44-gallery__grid  { grid-template-columns: repeat(2,1fr); }
    .b44-testi__grid    { grid-template-columns: 1fr; }
    .b44-contact        { grid-template-columns: 1fr; }
    .b44-form-row       { grid-template-columns: 1fr; }
    .b44-container      { padding: 0 20px; }
    .b44-section--about,
    .b44-section--products,
    .b44-section--features,
    .b44-section--gallery,
    .b44-section--testimonials,
    .b44-section--cta,
    .b44-section--contact { padding: 60px 0; }
}
@media (max-width: 480px) {
    .b44-gallery__grid  { grid-template-columns: 1fr; }
}
