/*
 Theme Name:   Attorna Child
 Theme URI:    https://afa-law.co.il
 Description:  אשר פרננד ושות' – תבנית בת ל-Attorna
 Template:     attorna
 Version:      1.2.0
 Text Domain:  attorna-child
*/

/* Only functional tweaks live here: Hebrew font, right-to-left fixes and the calculator.
   All design comes from the Attorna theme itself. */

/* ---------- Hebrew font (Open Sans, same as the RNA site) ---------- */
body, input, textarea, select, button, h1, h2, h3, h4, h5, h6,
rs-layer, .rs-layer, sr7-txt, sr7-btn, .sf-menu > li > a, .attorna-page-title, .attorna-page-caption,
.gdlr-core-title-item-title, .gdlr-core-title-item-caption, .gdlr-core-button,
.gdlr-core-column-service-title, .gdlr-core-counter-item-number, .gdlr-core-counter-item-bottom-text,
.gdlr-core-accordion-item-title, .gdlr-core-text-box-item-content {
	font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif !important;
}
/* Hebrew has no capitals; wide letter spacing breaks words apart */
.gdlr-core-title-item-title, .gdlr-core-column-service-title, .gdlr-core-button,
.sf-menu > li > a, .attorna-page-title, .gdlr-core-title-item-caption, rs-layer, sr7-txt, sr7-btn {
	letter-spacing: 0 !important;
	text-transform: none !important;
}
.gdlr-core-title-item-caption { font-style: normal !important; }

/* ---------- Right-to-left fixes ---------- */
/* Header: links on the right, logo on the left (Elad's choice) */
.rtl .attorna-header-container-inner > .attorna-logo { float: left !important; }
.rtl .attorna-header-container-inner > .attorna-navigation { float: right !important; }
.rtl .gdlr-core-left-align, .rtl .gdlr-core-left-align .gdlr-core-title-item-title-wrap { text-align: right; }
.rtl .gdlr-core-column-service-item.gdlr-core-left-icon .gdlr-core-column-service-media { float: right; margin-right: 0; margin-left: 30px; }
.rtl .gdlr-core-column-service-item.gdlr-core-left-icon .gdlr-core-column-service-content-wrapper { overflow: hidden; }

/* Hebrew: no letter spacing anywhere (the demo spaces out English capitals) */
body.rtl, body.rtl * { letter-spacing: 0 !important; }
/* Icons next to text: the gap belongs on the other side in right-to-left */
.rtl .gdlr-core-button i.gdlr-core-pos-right { margin-left: 0 !important; margin-right: 10px !important; }
.rtl .gdlr-core-button i.gdlr-core-pos-left { margin-right: 0 !important; margin-left: 10px !important; }
.rtl .attorna-top-bar-right-button i { margin-right: 0 !important; margin-left: 10px !important; }
/* Practice-area icons have different heights; give them one row height so titles line up */
.afa-svc-icon .gdlr-core-image-item-wrap { height: 58px; display: inline-flex !important; align-items: flex-end; justify-content: center; }

/* Desktop menu: page links next to each other from the right, search and side-menu buttons at the far left */
.rtl .attorna-navigation .attorna-main-menu { float: right; }
.rtl .attorna-navigation .attorna-main-menu-right-wrap { float: left; margin-left: 0 !important; margin-right: 34px !important; }
.rtl .attorna-main-menu-right-wrap > * { float: right !important; }
.rtl .attorna-main-menu-search { margin-left: 0 !important; margin-right: 0 !important; }
.rtl .attorna-main-menu-right { margin-right: 24px !important; margin-left: 0 !important; }

/* Mobile header: same as desktop, logo on the left, menu buttons on the right (the theme's own layout) */
.rtl .attorna-mobile-header .attorna-logo-inner { margin-left: 0; margin-right: 80px; float: left; }
.rtl .attorna-mobile-header .attorna-logo:after { content: ""; display: block; clear: both; }

/* Contact form: Hebrew placeholders and the dropdown arrow on the left */
.rtl .wpcf7 input[type="tel"], .rtl .wpcf7 input[type="email"] { text-align: right; }
.rtl .wpcf7 input::placeholder { direction: rtl; }
.rtl .wpcf7 select { -webkit-appearance: none; appearance: none; }
.rtl .wpcf7-form-control-wrap .wpcf7-form-indicator { right: auto; left: 20px; }

/* footer lists */
.afa-footer-list { list-style: none; margin: 0; padding: 0; }
.afa-footer-list li { margin-bottom: 9px; }

/* ---------- Calculator (the theme has no such element) ---------- */
.afa-calc { text-align: right; }
.afa-calc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; margin-bottom: 26px; }
.afa-calc label { display: flex; flex-direction: column; gap: 8px; font-weight: 500; }
.afa-calc label[hidden] { display: none; }
.afa-calc select { width: 100%; }
.afa-calc input { width: 100%; direction: rtl; text-align: right; }
.afa-btn { display: inline-block; border: 0; cursor: pointer; text-decoration: none !important; }
.afa-calc-error { color: #b42318; margin-top: 12px; }
.afa-calc-result { margin-top: 34px; padding-top: 30px; border-top: 1px solid #e3e3e3; }
.afa-calc-figure { text-align: center; margin-bottom: 14px; }
.afa-calc-label, .afa-calc-unit { display: block; }
.afa-calc-amount { display: block; font-size: 52px; font-weight: 700; line-height: 1.2; color: #b1976b; }
.afa-calc-tips { margin: 0 20px 20px 0; }
.afa-calc-wa { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.afa-calc-wa label { flex: 1 1 240px; }
.afa-btn-wa { background: #25d366 !important; }
.afa-calc-note { font-size: 13px; opacity: .75; margin-top: 26px; }

@media (max-width: 767px) {
	.afa-calc-grid { grid-template-columns: 1fr; }
	.afa-calc-amount { font-size: 42px; }
}

/* Practice areas: theme Sync Height gives equal boxes; keep the "לפרטים" button on the same line */
.afa-svc-col > .gdlr-core-pbf-column-content { height: 100%; display: flex; flex-direction: column; }
.afa-svc-col > .gdlr-core-pbf-column-content > .gdlr-core-pbf-element:last-child { margin-top: auto; }
