/*
Theme Name:   on365 Astra Child
Theme URI:    https://on365.co.za
Description:  Child theme of Astra used by every on365 client website. Design comes from Elementor and UAE; this theme holds small shared styles.
Author:       Havealot Design Corp
Template:     astra
Version:      0.2.2
Text Domain:  on365-astra-child
*/

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.elementor h1, .elementor h2 { letter-spacing: -0.3px; line-height: 1.18; }

/* Every image: 6px corners (also covers images clients add later). */
.elementor img, .gallery img { border-radius: 6px; }

/* ---------- Header: stays at the top while scrolling ---------- */
.o365-hf #masthead, .ehf-header #masthead { position: sticky; top: 0; z-index: 999; }
.admin-bar.o365-hf #masthead, .admin-bar.ehf-header #masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar.o365-hf #masthead, .admin-bar.ehf-header #masthead { top: 0; } }

/* ---------- Buttons ---------- */
.o365-btn .elementor-button {
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
	letter-spacing: 0.2px;
}
.o365-btn .elementor-button:hover,
.o365-btn .elementor-button:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
	filter: brightness(1.05);
}
.o365-btn .elementor-button-icon svg { width: 1.15em; height: 1.15em; }
.o365-btn--whatsapp .elementor-button-icon svg { fill: #fff; }
/* White WhatsApp button on dark backgrounds: green icon */
.o365-btn--whatsapp-light .elementor-button-icon svg { fill: #25D366; }
.o365-btn--whatsapp-light .elementor-button-icon i { color: #25D366; }

/* ---------- Cards: gentle lift on hover ---------- */
.o365-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.o365-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12) !important; }
.o365-card .elementor-widget-image { margin-bottom: 4px; }

/* ---------- Hero ---------- */
.o365-hero h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25); }
.o365-hero .elementor-icon-list-items.elementor-inline-items { row-gap: 8px; }
.o365-hero .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item { margin-right: 18px; }
.o365-crumbs { font-size: 14px; }

/* ---------- FAQ toggles ---------- */
.elementor-toggle .elementor-toggle-item { border-radius: 6px; overflow: hidden; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05); }
.elementor-toggle .elementor-tab-title { padding: 18px 22px; }
.elementor-toggle .elementor-tab-content { padding: 4px 22px 18px; }

/* ---------- Contact form (shortcode [on365_contact_form]) ---------- */
.o365-form label { font-weight: 600; }
.o365-form input, .o365-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfd8e3; border-radius: 6px; transition: border-color 0.2s, box-shadow 0.2s; }
.o365-form input:focus, .o365-form textarea:focus { outline: none; border-color: #94a3b8; box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25); }
.o365-form .elementor-button { cursor: pointer; border: 0; border-radius: 8px; padding: 15px 26px; }

/* Elementor icon boxes: equal height cards */
.e-con-inner > .e-con .elementor-widget-icon-box { height: 100%; }

/* Remove link underlines site-wide */
a,
a:link,
a:visited,
a:hover,
a:focus,
a:active,
.entry-content a,
.wp-block-post-content a,
.wp-block-navigation a,
.wp-block-button__link,
.elementor a,
p a,
li a {
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background-image: none;
}

/* Keep a visible outline for keyboard users */
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
