/* ALTOTANJI & ASSOCIATES — WordPress layer on top of site.css (the approved design system).
   site.css is layered (Tailwind @layer base/components/utilities); Elementor's own CSS is unlayered and would
   win over it, so the few Elementor rules that collide are neutralised here. */

/* Latin fonts (Arabic @font-face rules are in site.css). Same files as the reference build. */
@font-face { font-family: "newsreader"; src: url(../fonts/newsreader-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "newsreader"; src: url(../fonts/newsreader-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "plex"; src: url(../fonts/plex-sans-latin.woff2) format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; }
:root {
  --font-newsreader: "newsreader", Georgia, "Times New Roman", serif;
  --font-plex: "plex", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.alt { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Elementor containers: full width, no padding or gaps (every ALTOTANJI widget manages its own layout). */
.alt .e-con.e-parent, .alt .e-con {
  --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0;
  --padding-block-start: 0; --padding-block-end: 0; --padding-inline-start: 0; --padding-inline-end: 0;
  --gap: 0; --row-gap: 0; --column-gap: 0; --content-width: 100%; --container-max-width: 100%;
  --margin-top: 0; --margin-bottom: 0;
}
.alt .e-con > .e-con-inner { max-width: none; padding: 0; gap: 0; }
.alt .elementor-widget, .alt .elementor-widget:not(:last-child) { margin: 0; margin-block-end: 0; }
.alt .elementor-element.elementor-widget { width: 100%; }
.alt .elementor a { box-shadow: none; }
.alt .elementor a.underline { text-decoration-line: underline; }
.alt .elementor img { border-radius: 0; box-shadow: none; }
/* Elementor sets img { height:auto; max-width:100% } unlayered, which beat the portrait's fill classes */
.alt .elementor img.object-cover { height: 100%; width: 100%; max-width: none; }

/* Elementor editor: show every animated element immediately while editing. */
.elementor-editor-active .reveal { opacity: 1 !important; transform: none !important; }
.elementor-editor-active .draw-x { transform: none !important; }

/* WordPress screen-reader text (core, plugins) */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Admin bar must not cover the sticky header */
.admin-bar .sticky.top-0 { top: 32px; }
@media (max-width: 782px) { .admin-bar .sticky.top-0 { top: 46px; } }

/* Enquiry form (WordPress version of the reference ContactForm) */
.alt-form { display: grid; gap: 1.5rem; }
.alt-form label { display: block; font-weight: 500; color: var(--color-navy); }
.alt-form .alt-hint { margin-top: .25rem; font-size: .875rem; color: var(--color-sec); }
.alt-form input[type=text], .alt-form input[type=email], .alt-form input[type=tel], .alt-form select, .alt-form textarea {
  display: block; width: 100%; margin-top: .5rem; min-height: 3rem; padding: .75rem 1rem; background: var(--color-paper);
  border: 1px solid var(--color-control); color: var(--color-char); font: inherit; border-radius: 0; }
.alt-form textarea { min-height: 9rem; resize: vertical; }
.alt-form input:focus-visible, .alt-form select:focus-visible, .alt-form textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.alt-form .alt-check { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400; color: var(--color-char); }
.alt-form .alt-check input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; accent-color: var(--color-navy); }
.alt-form fieldset { border: 0; padding: 0; margin: 0; }
.alt-form legend { font-weight: 500; color: var(--color-navy); }
.alt-form .alt-radios { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: .5rem; }
.alt-form .alt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alt-status { padding: 1.25rem 1.5rem; border: 1px solid var(--color-lime); background: var(--color-paper); }
.alt-status.is-ok { border-color: var(--color-success); color: var(--color-success); }
.alt-status.is-err { border-color: var(--color-error); color: var(--color-error); }

/* Plain (non-Elementor) page content fallback */
.alt-prose > * + * { margin-top: 1.25rem; }
.alt-prose h2 { font-size: var(--text-h3); margin-top: 2.5rem; }
.alt-prose a { text-decoration: underline; text-decoration-color: var(--color-lime); text-underline-offset: 4px; }

/* ---- Header & footer templates (inc/layout.php) ---- */
.alt-layout-header:has(.alt-sticky) { position: sticky; top: 0; z-index: 40; }
.admin-bar .alt-layout-header:has(.alt-sticky) { top: 32px; }
@media (max-width: 782px) { .admin-bar .alt-layout-header:has(.alt-sticky) { top: 46px; } }
.alt-site-header.alt-hdr-paper { background-color: rgb(251 248 242 / .95); }
.alt-site-header.alt-hdr-white { background-color: rgb(255 255 255 / .95); }
.alt-layout-footer { margin-top: auto; }
/* Inside an Elementor template, Elementor's img rules (height:auto; max-width:100%) would collapse the
   logos to 0px in the shrink-wrapped link: give the design's own sizes back. */
.alt :is(.alt-layout, .elementor-widget-alt_site_header, .elementor-widget-alt_site_footer) img { max-width: none; height: revert-layer; }
.alt :is(.alt-layout, .elementor-widget-alt_site_footer) footer img.max-w-full { max-width: 100%; }

/* ---- Brand-safe design options on ALTOTANJI widgets (Style → ALTOTANJI design) ---- */
.alt .alt-surface-ivory { background-color: var(--color-ivory); }
.alt .alt-surface-paper { background-color: var(--color-paper); }
.alt .alt-surface-white { background-color: #fff; }
.alt :is(.alt-surface-ivory, .alt-surface-paper, .alt-surface-white) > .elementor-widget-container > :not(.on-dark),
.alt :is(.alt-surface-ivory, .alt-surface-paper, .alt-surface-white) > .elementor-widget-container > :not(.on-dark) > .alt-pad { background-color: transparent; }
.alt .alt-space-compact .alt-pad { padding-block: 3rem; }
.alt .alt-space-spacious .alt-pad { padding-block: 6rem; }
.alt .alt-space-none .alt-pad { padding-block: 0; }
@media (min-width: 768px) {
  .alt .alt-space-compact .alt-pad { padding-block: 4rem; }
  .alt .alt-space-spacious .alt-pad { padding-block: 9rem; }
}
.alt .alt-divider-yes { border-top: 1px solid var(--color-lime); }
.alt .alt-static-yes :is(.reveal, .draw-x) { opacity: 1 !important; transform: none !important; transition: none !important; }
.alt .alt-static-yes :is(.ink, .spin-slow, .spin-slower, .marquee-track) { animation: none !important; }
.alt .alt-static-yes .ink { background: none !important; -webkit-text-fill-color: currentColor !important; }
