/* wecom — main stylesheet (HTML preview)
 * Pulls tokens from tokens.css. RTL via logical properties.
 * Aims for 1:1 visual match against inventory/screenshots/he/329-1440.png.
 */

@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800&display=swap&subset=hebrew");

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

html[dir="rtl"] body,
html[dir="rtl"] .wpcf7-form {
    direction: rtl;
}

body {
    margin: 0;
}

img, svg {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
    cursor: pointer;
    border: 0;
    background: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Visually-hidden, screen-reader-only (used for nested form labels). */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === Base === */
html {
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background: var(--color-bg);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--color-text-heading);
    margin: 0;
}

p {
    margin: 0;
}

/* === Layout primitives === */
.container {
    max-width: 1400px;                    /* source uses 1400px container */
    margin-inline: auto;
    padding-inline: 32px;
}

@media (max-width: 1024px) {
    .container {
        padding-inline: 16px;
    }
}

/* Targeting 1920×1080 as primary. Mid-screen responsive deferred —
 * see plans/deferred-responsive.md
 */

/* === Section + main layout === */

/* Sections with their own background still need internal vertical padding so
   the bg shows around the content (between-section spacing is handled by
   .site-main gap). */
.home-quick-actions-section {
    padding-block: 64px;
    background: var(--color-bg-alt);
}

.site-main {
    display: flex;
    flex-direction: column;
    gap: 96px;
}

/* All direct child sections of main span the full viewport width — inner
   content carries its own max-width where needed. */
.site-main > * {
    width: 100%;
    max-width: none;
    padding-inline: 0;
    margin-inline: 0;
}

/* When a <section class="container"> is a direct child of main, restore the
   container max-width + side padding so its content matches the side spacing
   used everywhere else on the page (tier-grid, services, quick-actions etc.). */
.site-main > .container {
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: 32px;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 5px;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-sm);
    text-align: center;
    transition: background 0.2s;
    line-height: 1.2;
    min-height: 44px;
}

.btn:hover {
    background: var(--color-primary-hover);
}

.btn--full {
    width: 100%;
}

.btn--lg {
    font-size: var(--font-size-md);
    padding: 14px 36px;
    min-height: 50px;
}

.btn--ghost-on-orange {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn--ghost-on-orange:hover {
    background: rgba(255,255,255,0.12);
}

.btn--white-on-orange {
    background: var(--color-white);
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
}

.btn--white-on-orange:hover {
    background: var(--color-bg-alt);
}

/* Generic tail padding for the last section in main — keeps the footer
   gap consistent regardless of which section closes the page. */
.site-main > section:last-child {
    padding-block-end: 60px;
}

@media (max-width: 1024px) {
    .container {
        padding-inline: 16px;
    }

    .site-main > .container {
        padding-inline: 16px;
    }

    .site-main {
        gap: 60px;
    }
}

@media (max-width: 1024px) {
    /* Leave room above the floating call bar (39px tall) so content
       isn't covered. */
    body {
        padding-block-end: 39px;
    }

    .site-main > section:last-child {
        padding-block-end: 32px;
    }
}

/* Contact Form 7 — always hide the spinner. Show the response message but
   strip CF7's default chrome (border / margin / padding / icon). When the
   form redirects on success (wrapped in .cf7-redirect-wrap) suppress the
   message since we navigate away. Inline field errors are unaffected. */
.wpcf7-spinner {
    display: none !important;
}

.wpcf7-response-output.wpcf7-mail-sent-ok {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-weight: 600 !important;
    color: var(--color-primary) !important;
}

.wpcf7-response-output:not(.wpcf7-mail-sent-ok) {
    display: none !important;
}

.wpcf7-response-output::before {
    display: none;
}

.cf7-redirect-wrap .wpcf7-response-output {
    display: none !important;
}
