﻿/* AZWebCorp Base: layout primitives shared by every design. Colours and fonts come from theme.json. */

:root { --azw-radius: 14px; --azw-shadow: 0 10px 30px -12px rgb(15 23 42 / 0.18); --azw-shadow-lg: 0 24px 60px -20px rgb(15 23 42 / 0.35); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; }
:where(a, button, input, textarea, select, summary):focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; }
.screen-reader-text:focus { clip: auto !important; width: auto; height: auto; z-index: 100000; }

/* Full-width sections sit flush: no block gap between header, sections and footer. */
html, body { overflow-x: clip; }
.wp-site-blocks > main, .wp-site-blocks > footer, .wp-site-blocks > .wp-block-template-part + * { margin-block-start: 0 !important; }
.wp-block-post-content > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.is-layout-constrained > .azw-hero-bg, .is-layout-constrained > .azw-bleed { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }

/* Sections */
.azw-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.azw-section.is-tight { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.azw-surface { background: var(--wp--preset--color--surface); }
.azw-dark { background: var(--wp--preset--color--dark); color: #e6e9ef; }
.azw-dark :where(h1, h2, h3, h4) { color: #fff; }
.azw-dark a:not(.wp-element-button) { color: #fff; }
.azw-eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem !important; font-weight: 700; color: var(--wp--preset--color--accent-text, var(--wp--preset--color--accent)); margin-bottom: 0.4rem !important; }
.azw-dark .azw-eyebrow, .azw-cta .azw-eyebrow { color: var(--wp--preset--color--accent); }
.azw-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); max-width: 46rem; }
.azw-dark .azw-lead { color: #c4cad6; }
.azw-center { text-align: center; }
.azw-center .azw-lead { margin-left: auto; margin-right: auto; }

/* Header */
.azw-header { position: sticky; top: 0; z-index: 50; background: var(--wp--preset--color--base); transition: box-shadow 0.2s ease; }
.admin-bar .azw-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .azw-header { top: 46px; } }
.azw-header.is-scrolled { box-shadow: 0 6px 24px -14px rgb(15 23 42 / 0.4); }
.azw-topbar { font-size: 0.875rem; }
.azw-topbar p { margin: 0; }
.azw-topbar a { text-decoration: none; }

/* Cards */
.azw-card { background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--border); border-radius: var(--azw-radius); padding: clamp(1.25rem, 3vw, 2rem); height: 100%; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.azw-card:hover { transform: translateY(-4px); box-shadow: var(--azw-shadow); border-color: transparent; }
.azw-card h3 { margin-top: 0.75rem; margin-bottom: 0.5rem; }
.azw-card p { color: var(--wp--preset--color--muted); margin: 0; }
.azw-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--wp--preset--color--accent) 12%, transparent); color: var(--wp--preset--color--accent); }
.azw-icon svg { width: 26px; height: 26px; }

/* Grids (wrap the cards; collapse on small screens) */
.azw-grid { display: grid !important; gap: clamp(1rem, 2.5vw, 1.5rem); }
.azw-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.azw-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.azw-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .azw-grid-3, .azw-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .azw-grid-2, .azw-grid-3, .azw-grid-4 { grid-template-columns: 1fr; } }
.azw-grid > * { margin: 0 !important; }

/* Check list */
.azw-checks { list-style: none; padding-left: 0; }
.azw-checks li { position: relative; padding-left: 2rem; margin-bottom: 0.75rem; }
.azw-checks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.85rem no-repeat; }

/* Image placeholders: tinted panels the client replaces with real photos */
.azw-photo { position: relative; border-radius: var(--azw-radius); min-height: 320px; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--wp--preset--color--primary) 85%, #000) 0%, var(--wp--preset--color--primary) 55%, color-mix(in srgb, var(--wp--preset--color--accent) 70%, var(--wp--preset--color--primary)) 100%); color: rgb(255 255 255 / 0.85); display: flex; align-items: flex-end; padding: 1.25rem; }
.azw-photo::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / 0.10) 1px, transparent 1px); background-size: 18px 18px; }
.azw-photo span { position: relative; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; background: rgb(0 0 0 / 0.28); padding: 0.35rem 0.7rem; border-radius: 999px; backdrop-filter: blur(4px); }

.azw-photo.has-img { padding: 0; margin: 0; }
.azw-photo.has-img::before { display: none; }
.azw-photo.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* FAQ */
.azw-faq .wp-block-details { border: 1px solid var(--wp--preset--color--border); border-radius: 12px; padding: 1rem 1.25rem; background: var(--wp--preset--color--base); margin-bottom: 0.75rem; }
.azw-faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.azw-faq summary::-webkit-details-marker { display: none; }
.azw-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--wp--preset--color--accent); transition: transform 0.2s; }
.azw-faq details[open] summary::after { transform: rotate(45deg); }
.azw-faq details p { margin: 0.75rem 0 0; color: var(--wp--preset--color--muted); }

/* Forms */
.azw-form label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; }
.azw-form input, .azw-form textarea { width: 100%; font: inherit; padding: 0.8rem 0.95rem; border: 1px solid var(--wp--preset--color--border); border-radius: 10px; background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }
.azw-form input:focus, .azw-form textarea:focus { border-color: var(--wp--preset--color--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--accent) 25%, transparent); }
.azw-form p { margin: 0 0 1rem; }
.azw-form input, .azw-form textarea, .azw-form button { box-sizing: border-box; max-width: 100%; }
.azw-form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.azw-form-row > * { min-width: 0; }
@media (max-width: 600px) { .azw-form-row { grid-template-columns: 1fr; } }
.azw-form button { border: 0; cursor: pointer; width: 100%; }
.azw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.azw-form-notice, .azw-form-demo-note { padding: 0.85rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 600; }
.azw-form-notice.is-ok, .azw-form-demo-note { background: #ecfdf3; color: #05603a; }
.azw-form-notice.is-error { background: #fef3f2; color: #b42318; }

/* Reveal on scroll */
.azw-reveal { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
.azw-reveal.is-pending { opacity: 0; transform: translateY(18px); }
.azw-reveal.is-visible { opacity: 1; transform: none; }
.block-editor-page .azw-reveal, .editor-styles-wrapper .azw-reveal { opacity: 1; transform: none; }

.azw-demo-banner { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 9999; background: rgb(17 24 39 / 0.92); color: #fff; font-size: 0.82rem; font-weight: 600; padding: 0.55rem 1rem; border-radius: 999px; box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.5); max-width: calc(100% - 2rem); text-align: center; }
@media (max-width: 640px) { .azw-demo-banner { left: 0; right: 0; bottom: 0; transform: none; max-width: none; border-radius: 0; font-size: .7rem; font-weight: 500; padding: .4rem .75rem; line-height: 1.3; } }

/* Placeholders the client still has to fill in: visible to logged-in editors only */
.azw-todo { background: #fff4d6; border-radius: 4px; padding: 0 0.2em; }
