/* Landing Page Components Stylesheet */
/* Production-ready styles for GrapesJS landing page components */

:root {
    --onyx-primary: #4caf50;
    --onyx-primary-hover: #45a049;
    --onyx-secondary: #6c757d;
    --onyx-secondary-hover: #5a6268;
    --onyx-text: #333333;
    --onyx-text-light: #666666;
    --onyx-border: #ddd;
    --onyx-border-radius: 8px;
    --onyx-spacing: 1rem;
    --onyx-transition: all 0.3s ease;
    --onyx-empty-state-height: 80px;
}

/* Base Typography */
.onyx-heading {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    font-weight: 700;
    color: var(--onyx-text);
    margin: 2rem 0 1rem;
    line-height: 1.2;
}

.onyx-heading.onyx-h1,
h1.onyx-heading {
    font-size: 3rem;
    margin-top: 0;
}

.onyx-heading.onyx-h2,
h2.onyx-heading {
    font-size: 2.5rem;
}

.onyx-heading.onyx-h3,
h3.onyx-heading {
    font-size: 2rem;
}

.onyx-heading.onyx-h4,
h4.onyx-heading {
    font-size: 1.5rem;
}

.onyx-heading.onyx-h5,
h5.onyx-heading {
    font-size: 1.25rem;
}

.onyx-heading.onyx-h6,
h6.onyx-heading {
    font-size: 1rem;
}

/* Text Component */
.onyx-text {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--onyx-text-light);
    margin: 1rem 0;
}

.onyx-text p {
    margin-bottom: 1rem;
}

.onyx-text p:last-child {
    margin-bottom: 0;
}

/* Image Component */
.onyx-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--onyx-border-radius);
    display: block;
}

.onyx-image.onyx-image-full {
    width: 100%;
}

.onyx-image.onyx-image-75 {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
}

.onyx-image.onyx-image-50 {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.onyx-image.onyx-image-25 {
    width: 25%;
    margin-left: auto;
    margin-right: auto;
}

/* Button Component */
.onyx-button {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    border-radius: var(--onyx-border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--onyx-transition);
    line-height: 1.5;
}

/* Button Variants */
.onyx-button-primary {
    background-color: var(--onyx-primary);
    color: white;
    border-color: var(--onyx-primary);
}

.onyx-button-primary:hover {
    background-color: var(--onyx-primary-hover);
    border-color: var(--onyx-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.onyx-button-secondary {
    background-color: var(--onyx-secondary);
    color: white;
    border-color: var(--onyx-secondary);
}

.onyx-button-secondary:hover {
    background-color: var(--onyx-secondary-hover);
    border-color: var(--onyx-secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.onyx-button-outline {
    background-color: transparent;
    color: var(--onyx-primary);
    border-color: var(--onyx-primary);
}

.onyx-button-outline:hover {
    background-color: var(--onyx-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Button Sizes */
.onyx-button-small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.onyx-button-medium {
    padding: 12px 28px;
    font-size: 1rem;
}

.onyx-button-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

/* Form Component */
.onyx-form {
    max-width: 600px;
    margin: 2rem 0;
}

.onyx-form-group {
    margin-bottom: 1.5rem;
}

.onyx-form-label {
    display: block;
    font-weight: 600;
    color: var(--onyx-text);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.onyx-form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    line-height: 1.5;
    color: var(--onyx-text);
    border: 2px solid var(--onyx-border);
    border-radius: var(--onyx-border-radius);
    transition: var(--onyx-transition);
    box-sizing: border-box;
    background-color: transparent;
}

.onyx-form-control:focus {
    outline: none;
    border-color: var(--onyx-primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.onyx-form-control::placeholder {
    color: #999;
}

textarea.onyx-form-control {
    min-height: 120px;
    resize: vertical;
}

.onyx-form-submit {
    color: white;
    border: 2px solid var(--onyx-primary);
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--onyx-border-radius);
    cursor: pointer;
    transition: var(--onyx-transition);
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    background-color: transparent;
    background-repeat: repeat;
    background-position: left top;
    background-attachment: scroll;
    background-size: auto;
    background-image: linear-gradient(#4caf50 0%, #4caf50 100%);
}

.onyx-form-submit:hover {
    background-color: var(--onyx-primary-hover);
    border-color: var(--onyx-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.onyx-form-submit:active {
    transform: translateY(0);
}

.onyx-form-inline .onyx-form-group {
    margin-bottom: 0;
}

/* Subscription Form — wrapper & states */
.onyx-subscription-wrapper {
    position: relative;
    width: 100%;
}

.onyx-sub-success,
.onyx-sub-error {
    padding: 2rem;
    border-radius: var(--onyx-border-radius);
    text-align: center;
}

.onyx-sub-success {
    background-color: #f0fdf4;
    border: 2px solid #86efac;
}

.onyx-sub-success-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #166534;
    margin: 0 0 0.5rem;
}

.onyx-sub-success-text {
    color: #15803d;
    margin: 0;
    line-height: 1.6;
}

.onyx-sub-error {
    background-color: #fef2f2;
    border: 2px solid #fca5a5;
}

.onyx-sub-error-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #991b1b;
    margin: 0 0 0.5rem;
}

.onyx-sub-error-text {
    color: #b91c1c;
    margin: 0 0 1rem;
    line-height: 1.6;
}

.onyx-sub-error-reset {
    background-color: #ef4444;
    border-color: #ef4444;
}

.onyx-sub-error-reset:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Divider Component */
.onyx-divider {
    border: none;
    border-top: 2px solid var(--onyx-border);
    margin: 1.5rem 0;
}

.onyx-divider-dashed {
    border-top-style: dashed;
}

.onyx-divider-dotted {
    border-top-style: dotted;
}

/* Responsive Design */
@media (max-width: 768px) {
    .onyx-heading.onyx-h1,
    h1.onyx-heading {
        font-size: 2rem;
    }

    .onyx-heading.onyx-h2,
    h2.onyx-heading {
        font-size: 1.75rem;
    }

    .onyx-heading.onyx-h3,
    h3.onyx-heading {
        font-size: 1.5rem;
    }

    .onyx-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .onyx-button-large {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .onyx-form {
        max-width: 100%;
    }
}

/* Utility */
.onyx-hidden {
    display: none !important;
}

/* Testimonial */
.onyx-testimonial {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: var(--onyx-border-radius);
    text-align: center;
}

.onyx-testimonial-avatar {
    margin: 0 auto 1rem;
    display: block;
}

.onyx-testimonial-quote {
    font-style: italic;
    color: var(--onyx-text-light);
    margin: 1rem 0;
}

.onyx-testimonial-author {
    font-weight: 600;
    color: var(--onyx-text);
}

.onyx-testimonial-role {
    font-size: 0.9rem;
    color: var(--onyx-text-light);
}

/* Pricing */
.onyx-pricing {
    padding: 1.5rem;
    border: 2px solid var(--onyx-border);
    border-radius: var(--onyx-border-radius);
    text-align: center;
}

.onyx-pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.onyx-pricing-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--onyx-primary);
    margin-bottom: 1rem;
}

.onyx-pricing-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
}

.onyx-pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--onyx-border);
}

/* Social Icons */
.onyx-social-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.onyx-social-icon {
    color: var(--onyx-text);
    transition: var(--onyx-transition);
}

.onyx-social-icon:hover {
    color: var(--onyx-primary);
}

/* Utility Classes */
.onyx-text-center {
    text-align: center;
}

.onyx-text-left {
    text-align: left;
}

.onyx-text-right {
    text-align: right;
}

.onyx-mt-0 {
    margin-top: 0 !important;
}

.onyx-mt-1 {
    margin-top: 0.5rem !important;
}

.onyx-mt-2 {
    margin-top: 1rem !important;
}

.onyx-mt-3 {
    margin-top: 1.5rem !important;
}

.onyx-mt-4 {
    margin-top: 2rem !important;
}

.onyx-mt-5 {
    margin-top: 3rem !important;
}

.onyx-mb-0 {
    margin-bottom: 0 !important;
}

.onyx-mb-1 {
    margin-bottom: 0.5rem !important;
}

.onyx-mb-2 {
    margin-bottom: 1rem !important;
}

.onyx-mb-3 {
    margin-bottom: 1.5rem !important;
}

.onyx-mb-4 {
    margin-bottom: 2rem !important;
}

.onyx-mb-5 {
    margin-bottom: 3rem !important;
}

.onyx-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.onyx-container-sm {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.onyx-section {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    .onyx-section {
        padding: 2rem 0;
    }
}

.onyx-sub-success,
.onyx-sub-error {
    display: none;
}

.onyx-sub-success.onyx-show,
.onyx-sub-error.onyx-show {
    display: block;
}

/* =================================================================
   FLEX & GRID CONTAINER SYSTEM
   ================================================================= */

/* NOTE: Most flex/grid utilities have been removed as they are now
   generated dynamically via GrapesJS Style Manager with responsive
   media queries. Only base container classes remain for identification. */

/* Flex Container Base - Default responsive flexbox layout */
.onyx-flex-container {
    display: flex;
    width: 100%;
    flex-direction: row;
    gap: 16px;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: nowrap;
}

/* Grid Container Base - Default responsive grid layout */
.onyx-grid-container {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Flex and Grid Items */
.onyx-flex-item {
    flex: 1;
    min-height: 50px;
}

.onyx-grid-item {
    min-height: 50px;
}

.onyx-flex-item:empty,
.onyx-grid-item:empty {
    border: 1px dashed var(--onyx-border);
    height: var(--onyx-empty-state-height);
}

/* Responsive Flex Container - Tablet */
@media (max-width: 1024px) {
    .onyx-flex-container {
        gap: 12px;
    }

    .onyx-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Responsive Flex Container - Mobile */
@media (max-width: 768px) {
    .onyx-flex-container {
        flex-direction: column;
        gap: 16px;
    }

    .onyx-grid-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/*
===============================================================================
LEGACY FLEX/GRID UTILITIES (COMMENTED OUT)
===============================================================================
These utility classes are no longer used. The Flex/Grid Container component
now uses GrapesJS Style Manager to generate page-specific CSS with responsive
media queries automatically.

If you need these utilities for manual use, uncomment the sections below.
===============================================================================

/* Flex Direction *
.onyx-flex-row {
  flex-direction: row;
}

.onyx-flex-column {
  flex-direction: column;
}

.onyx-flex-row-reverse {
  flex-direction: row-reverse;
}

.onyx-flex-column-reverse {
  flex-direction: column-reverse;
}

.onyx-flex-row {
  flex-direction: row;
}

.onyx-flex-column {
  flex-direction: column;
}

.onyx-flex-row-reverse {
  flex-direction: row-reverse;
}

.onyx-flex-column-reverse {
  flex-direction: column-reverse;
}

/* Flex Wrap *
.onyx-flex-wrap {
  flex-wrap: wrap;
}

.onyx-flex-nowrap {
  flex-wrap: nowrap;
}

.onyx-flex-wrap-reverse {
  flex-wrap: wrap-reverse;
}

/* Justify Content (Main Axis Alignment) *
.onyx-justify-start {
  justify-content: flex-start;
}

.onyx-justify-center {
  justify-content: center;
}

.onyx-justify-end {
  justify-content: flex-end;
}

.onyx-justify-between {
  justify-content: space-between;
}

.onyx-justify-around {
  justify-content: space-around;
}

.onyx-justify-evenly {
  justify-content: space-evenly;
}

/* Align Items (Cross Axis Alignment) *
.onyx-align-start {
  align-items: flex-start;
}

.onyx-align-center {
  align-items: center;
}

.onyx-align-end {
  align-items: flex-end;
}

.onyx-align-stretch {
  align-items: stretch;
}

.onyx-align-baseline {
  align-items: baseline;
}

/* Align Content (Multi-line Flex Containers) *
.onyx-align-content-start {
  align-content: flex-start;
}

.onyx-align-content-center {
  align-content: center;
}

.onyx-align-content-end {
  align-content: flex-end;
}

.onyx-align-content-between {
  align-content: space-between;
}

.onyx-align-content-around {
  align-content: space-around;
}

.onyx-align-content-stretch {
  align-content: stretch;
}

/* Grid Template Columns *
.onyx-grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.onyx-grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.onyx-grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.onyx-grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.onyx-grid-cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

.onyx-grid-cols-6 {
  grid-template-columns: repeat(6, 1fr);
}

/* Grid Auto Columns *
.onyx-grid-auto-cols-auto {
  grid-auto-columns: auto;
}

.onyx-grid-auto-cols-min {
  grid-auto-columns: min-content;
}

.onyx-grid-auto-cols-max {
  grid-auto-columns: max-content;
}

.onyx-grid-auto-cols-fr {
  grid-auto-columns: 1fr;
}

/* Grid Template Rows *
.onyx-grid-rows-1 {
  grid-template-rows: repeat(1, 1fr);
}

.onyx-grid-rows-2 {
  grid-template-rows: repeat(2, 1fr);
}

.onyx-grid-rows-3 {
  grid-template-rows: repeat(3, 1fr);
}

.onyx-grid-rows-4 {
  grid-template-rows: repeat(4, 1fr);
}

/* Gap Utilities *
.onyx-gap-0 {
  gap: 0;
}

.onyx-gap-1 {
  gap: 0.25rem;
}

.onyx-gap-2 {
  gap: 0.5rem;
}

.onyx-gap-3 {
  gap: 1rem;
}

.onyx-gap-4 {
  gap: 1.5rem;
}

.onyx-gap-5 {
  gap: 2rem;
}

.onyx-gap-6 {
  gap: 2.5rem;
}

===============================================================================
END OF COMMENTED LEGACY UTILITIES
===============================================================================
*/

/*
.onyx-gap-7 {
  gap: 3rem;
}

.onyx-gap-8 {
  gap: 4rem;
}

.onyx-gap-y-0, .onyx-gap-y-1, .onyx-gap-y-2, .onyx-gap-y-3, .onyx-gap-y-4, .onyx-gap-y-5,
.onyx-gap-x-0, .onyx-gap-x-1, .onyx-gap-x-2, .onyx-gap-x-3, .onyx-gap-x-4, .onyx-gap-x-5,
.onyx-flex-1, .onyx-flex-auto, .onyx-flex-initial, .onyx-flex-none,
.onyx-flex-grow-0, .onyx-flex-grow-1, .onyx-flex-shrink-0, .onyx-flex-shrink-1,
.onyx-order-first, .onyx-order-last, .onyx-order-none,
.onyx-self-auto, .onyx-self-start, .onyx-self-center, .onyx-self-end, .onyx-self-stretch
{ ... all commented out ... }

Responsive media queries (@media max-width: 1024px and 768px):
.onyx-md-flex-row, .onyx-md-flex-column, .onyx-md-flex-wrap,
.onyx-md-justify-start, .onyx-md-justify-center, .onyx-md-justify-between,
.onyx-md-align-start, .onyx-md-align-center, .onyx-md-align-stretch,
.onyx-md-grid-cols-1, .onyx-md-grid-cols-2, .onyx-md-grid-cols-3,
.onyx-md-gap-2, .onyx-md-gap-3,
.onyx-sm-flex-row, .onyx-sm-flex-column, .onyx-sm-flex-wrap, .onyx-sm-flex-nowrap,
.onyx-sm-justify-start, .onyx-sm-justify-center, .onyx-sm-justify-between,
.onyx-sm-align-start, .onyx-sm-align-center, .onyx-sm-align-stretch,
.onyx-sm-grid-cols-1, .onyx-sm-grid-cols-2,
.onyx-sm-gap-1, .onyx-sm-gap-2, .onyx-sm-gap-3,
.onyx-sm-auto-stack
{ ... all commented out ... }

===============================================================================
END OF COMMENTED LEGACY UTILITIES
===============================================================================
*/

/* ============================================================================
   GrapesJS Studio SDK Parity — Layout Base Classes  (§0.1)
   Loaded in the canvas iframe AND on the public page so exported pages render
   correctly even for components that only carry a class (no inline style).
   ============================================================================ */

.gjs-section {
    display: flex;
    flex-direction: column;
    padding: 80px 0;
    position: relative;
}

.gjs-container {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gjs-plg-flex-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 30px;
    flex-wrap: nowrap;
}

/* Tablet and below: rows wrap so columns stack.
   NOTE: The authoritative rule lives in editor.Css.setRule() inside
   grapesjs-onyx-layout.js. This fallback is here for the public page
   in case the GrapesJS-exported <style> block is absent. */
@media (max-width: 1024px) {
    .gjs-plg-flex-row {
        flex-wrap: wrap;
    }
}

.gjs-plg-flex-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gjs-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gjs-divider {
    height: 3px;
    width: 100%;
    margin: 10px 0;
    background-color: rgba(0, 0, 0, 0.05);
    border: none;
}

.gjs-image-box {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.navbar {
    display: flex;
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.nav-links {
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gjs-plg-accordion {
    border: 1px solid #333;
    border-radius: 10px;
    padding: 25px;
}

.gjs-plg-accordion-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    list-style: none;
}

.gjs-plg-accordion-content {
    padding-top: 15px;
    border-top: 1px solid #333;
}

.gjs-plg-accordion-marker {
    min-width: 24px;
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease-in-out;
}

.gjs-plg-accordion-marker-open {
    transform: rotate(180deg);
}
