/*
 * New Developments page (Elementor template elementor/templates/new-developments.json) and the
 * Development Cards widget. Layout follows the PDF design; colours are variables, to be finalised with the design.
 * Loaded on pages that use the Development Cards widget.
 */

/* Luxurious Script (Google Fonts, OFL), served from this site like the other fonts in assets/fonts. */
@font-face {
	font-family: 'Luxurious Script';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(fonts/luxurious-script-normal-latin-ext.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Luxurious Script';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(fonts/luxurious-script-normal-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Plus Jakarta Sans has no shekel sign (₪): take only that character from a system font. */
@font-face {
	font-family: 'RJ Shekel';
	src: local('Arial'), local('Helvetica'), local('Segoe UI'), local('Roboto');
	unicode-range: U+20AA;
}

/* Colours taken from the PDF file. */
:root {
	--rj-nd-accent: #ec3f1f;        /* buttons, dot, feature icons */
	--rj-nd-accent-text: #fff;
	--rj-nd-teal: #51aaba;          /* hero / CTA, taglines, card icons */
	--rj-nd-teal-dark: #326775;     /* open accordion title, eyebrow text */
	--rj-nd-tint: #f1f8f9;          /* panels, open accordion row */
	--rj-nd-card: #51aaba0d;        /* card bodies (#ebebeb at 28% opacity) */
	--rj-nd-pill: #51AABA4D;          /* eyebrow pills */
	--rj-nd-ink: #000;              /* headings */
	--rj-nd-muted: #565656;         /* body text */
	--rj-nd-line: #ebebeb;
	--rj-nd-radius: 24px;
	--rj-nd-radius-sm: 14px;
	/* Typography, as set in Elementor on the New Developments page: Fraunces for headings, Plus Jakarta Sans for text.
	   Both are self-hosted (assets/fonts/fonts.css). Widgets with their own Elementor typography override these. */
	--rj-nd-heading: "Fraunces", Georgia, serif;
	--rj-nd-heading-weight: 600;
	--rj-nd-heading-weight-strong: 700; /* feature titles */
	--rj-nd-body: "RJ Shekel", "Plus Jakarta Sans", sans-serif;
	--rj-nd-script: "Luxurious Script", cursive; /* "Coming Soon" */
	--rj-nd-apt-title: "Style Script", cursive; /* script font (self-hosted, assets/fonts/fonts.css); card taglines now use the heading font in italic */
}

/* ---------- Page sections ---------- */
.elementor .e-con.rj-nd-section { --padding-top: 32px; --padding-bottom: 32px; --gap: 24px; --row-gap: 24px; }
.elementor .e-con.rj-nd-section--hero { --padding-top: 16px; }

/* Section intros: eyebrow pill, heading, text. */
.elementor .e-con.rj-nd-intro { --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; --gap: 10px; --row-gap: 10px; }
.rj-nd-intro--center { text-align: center; align-items: center; }
.rj-nd-intro--center .elementor-widget-text-editor { max-width: 640px; margin-inline: auto; }
.rj-nd-section,
.rj-nd-section .elementor-widget-text-editor,
.rj-nd-section .elementor-heading-title,
.rj-nd-section .elementor-icon-box-description,
.rj-nd-section .elementor-button { font-family: var(--rj-nd-body); }
.rj-nd-section .elementor-heading-title { color: var(--rj-nd-ink); }
.rj-nd-section h1.elementor-heading-title,
.rj-nd-section h2.elementor-heading-title,
.rj-nd-feature .elementor-icon-box-title { font-family: var(--rj-nd-heading); font-weight: var(--rj-nd-heading-weight); letter-spacing: 0; }
.rj-nd-feature .elementor-icon-box-title { font-weight: var(--rj-nd-heading-weight-strong); }
.rj-nd-hero__text { font-weight: 300; }
.rj-nd-section h2.elementor-heading-title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; }
.rj-nd-section .elementor-widget-text-editor { color: var(--rj-nd-muted); }

.rj-nd-eyebrow .elementor-heading-title {
	display: inline-block; padding: 4px 12px; border-radius: 999px;
	background: var(--rj-nd-pill); color: #000000;
	font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
/* Hero pill: as in the PDF, normal case on a white pill. */
.rj-nd-eyebrow--light .elementor-heading-title { background: #FFFFFF2B; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; }
.rj-nd-eyebrow--dot .elementor-heading-title { padding: 0; background: none; letter-spacing: 0; text-transform: none; font-size: 13px; font-weight: 500; }
.rj-nd-eyebrow--dot .elementor-heading-title::before {
	/* Info icon: red circle with a white "i". */
	content: ""; display: inline-block; width: 16px; height: 16px; margin-inline-end: 8px; vertical-align: -3px;
	background: no-repeat center / 16px 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23EC3F1F'/%3E%3Crect x='7' y='3.5' width='2' height='6' rx='1' fill='%23fff'/%3E%3Ccircle cx='8' cy='11.75' r='1.1' fill='%23fff'/%3E%3C/svg%3E");
}

/* ---------- 1. Hero: rounded construction photo (people on the right), teal fade from the text side, text left ---------- */
/* Banner photos are set per container in Elementor (Style > Background > Image) and can be swapped there.
   These are only fallbacks for when that image is empty; Elementor's selector is more specific, so it always wins. */
.rj-nd-hero { background-image: url(images/new-developments/hero.jpg); }
.rj-nd-cta { background-image: url(images/new-developments/cta.jpg); }

/* As in the PDF: the photo starts ~1/3 in, so the workers stand just right of the headline; teal fills the left. */
.elementor .e-con.rj-nd-hero {
	--padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; --min-height: 470px;
	border-radius: var(--rj-nd-radius); overflow: hidden; background-color: var(--rj-nd-teal);
	background-size: auto 100%; background-position: left 400px center; background-repeat: no-repeat;
}
.elementor .e-con.rj-nd-hero__content {
	--padding-top: 56px; --padding-bottom: 56px; --padding-left: 56px; --padding-right: 56px; --gap: 16px; --row-gap: 16px;
	--justify-content: center; --min-height: 470px;
	/* Solid teal past the photo's left edge (400px), then fading over the photo. */
	background: linear-gradient(279.46deg, rgba(81, 170, 186, 0) 33.63%, rgb(81 170 186 / 33%) 49.41%, #51AABA 65.11%), linear-gradient(5.42deg, rgba(81, 170, 186, 0) 79.48%, rgba(81, 170, 186, 0.3) 86.9%);
}
/* Hebrew (RTL): mirror of the above. The photo fills the whole banner (no empty teal strip on wide screens),
   workers on the left; the teal fade (mirrored angles) sits behind the text on the right. */
[dir="rtl"] .elementor .e-con.rj-nd-hero__content { background: linear-gradient(80.54deg, rgba(81, 170, 186, 0) 33.63%, rgb(81 170 186 / 33%) 49.41%, #51AABA 65.11%), linear-gradient(354.58deg, rgba(81, 170, 186, 0) 79.48%, rgba(81, 170, 186, 0.3) 86.9%); }
[dir="rtl"] .elementor .elementor-element.e-con.rj-nd-hero,
[dir="rtl"] .elementor .elementor-element.e-con.rj-nd-hero > .elementor-motion-effects-container > .elementor-motion-effects-layer { background-size: cover !important; background-position: left center !important; }
.rj-nd-hero__title .elementor-heading-title { max-width: 540px; color: #fff; font-size: clamp(36px, 4.8vw, 60px); line-height: 1.05; }
.rj-nd-hero__text { max-width: 470px; color: #fff; }
.rj-nd-section .rj-nd-hero__text { color: #fff; }

/* ---------- 2. Development cards ---------- */
.rj-dev-cards,
.rj-dev-apts--cards { font-family: var(--rj-nd-body); }
.rj-dev-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.rj-dev-cards__card {
	display: flex; flex-direction: column; overflow: hidden;
	border: 1px solid var(--rj-nd-line); border-radius: var(--rj-nd-radius-sm); background: var(--rj-nd-card);
	border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0;
}
.rj-dev-cards__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
/* Absolute, so a tall photo never stretches the 16:9 box. */
.rj-dev-cards__media .rj-dev-cards__image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 23px; background-color: #ebebeb47; } /* square top corners, rounded bottom */
/* Listing photos: teal gradient over the image (badges stay on top). */
.rj-dev-apts--cards .rj-dev-cards__media::after {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: 23px;
	background: linear-gradient(173.38deg, #51AABA 8.08%, rgba(81, 170, 186, 0.7) 36.03%, rgba(81, 170, 186, 0.1) 49.68%);
}
.rj-dev-cards__media .rj-dev-cards__badge { z-index: 2; }
.rj-dev-cards__badge {
	position: absolute; top: 12px; inset-inline-end: 12px; display: inline-flex; align-items: center; gap: 4px;
	padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--rj-nd-ink);
	font-size: 12px; font-weight: 600; text-transform: uppercase;
}
.rj-dev-cards__badge .rj-dev-cards__icon { color: var(--rj-nd-accent); }
.rj-dev-cards__soon {
	position: absolute; top: 12px; inset-inline-start: 16px; color: #fff;
	font-family: var(--rj-nd-script); font-size: 34px; line-height: 1; text-shadow: 0 1px 6px rgba(0, 0, 0, .3);
}
.rj-dev-cards__body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 18px; flex: 1; }
/* Card title (the tagline; the project / apartment name is not shown): Fraunces italic 400, #326775, links to the page. */
.rj-dev-cards__tagline { margin: 0; color: #326775; font-family: var(--rj-nd-heading); font-size: 36px; font-style: italic; font-weight: 400; line-height: 1.1; overflow-wrap: anywhere; }
.rj-dev-cards__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; color: var(--rj-nd-teal); font-size: 13px; }
.rj-dev-cards__meta-item { display: inline-flex; align-items: center; gap: 6px; }
.rj-dev-cards__icon { display: block; height: 16px; width: auto; flex: none; }
.rj-dev-cards__meta-item .rj-dev-cards__icon { color: var(--rj-nd-teal); }
.rj-dev-cards__meta-item--ready .rj-dev-cards__meta-label::after { content: " -"; }
.rj-dev-cards__button,
.rj-nd-button .elementor-button {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
	padding: 10px 22px; border: 0; border-radius: 999px;
	background: var(--rj-nd-accent); color: var(--rj-nd-accent-text); font-size: 14px; font-weight: 600; text-decoration: none;
}
.rj-dev-cards__button { padding: 7px 22px; }
.rj-dev-cards__button:hover,
.rj-dev-cards__button:focus { color: var(--rj-nd-accent-text); filter: brightness(.95); }
.rj-dev-cards__button.is-unlinked { cursor: default; }

/* ---------- 2b. Apartment cards (Development Apartments widget, Layout: Cards) ---------- */
.rj-dev-apts--cards .rj-dev-apts__title {
	margin: 0 0 16px; color: var(--rj-nd-ink); font-family: var(--rj-nd-heading); font-weight: var(--rj-nd-heading-weight);
	font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; text-align: center;
}
.rj-dev-apts--cards .rj-dev-apts__empty { margin: 0; color: var(--rj-nd-muted); text-align: center; }
/* Reminder shown to editors while no agent is assigned (visitors never see it). */
.rj-dev-apts__notice {
	padding: 18px 20px; border: 1px dashed var(--rj-nd-teal); border-radius: var(--rj-nd-radius-sm);
	background: var(--rj-nd-tint); color: var(--rj-nd-teal-dark); font-family: var(--rj-nd-body); font-size: 14px; text-align: center;
}
.rj-dev-apts__notice strong { display: block; margin-bottom: 4px; font-size: 16px; }
.rj-dev-apts__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.rj-dev-apts--cards .rj-dev-apts__chips { margin: 0; }
.rj-dev-apts--cards .rj-dev-apts__chips-label { color: var(--rj-nd-muted); font-size: 13px; }
.rj-dev-apts--cards .rj-dev-apts__chip {
	padding: 6px 14px; border: 1px solid var(--rj-nd-line); border-radius: 999px; background: #fff;
	color: var(--rj-nd-teal-dark); font-size: 13px; font-weight: 600;
}
.rj-dev-apts--cards .rj-dev-apts__chip.is-active { border-color: var(--rj-nd-teal-dark); background: var(--rj-nd-teal-dark); color: #fff; }
.rj-dev-apts--cards .rj-dev-apts__count { margin: 0; color: var(--rj-nd-muted); font-size: 13px; }
/* Clickable photo and name. */
a.rj-dev-cards__media { display: block; }
.rj-dev-cards__tagline a { color: inherit; text-decoration: none; }
.rj-dev-cards__tagline a:hover,
.rj-dev-cards__tagline a:focus { text-decoration: none; }
.rj-dev-apts__status {
	position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 10px; border-radius: 999px;
	background: var(--rj-nd-accent); color: var(--rj-nd-accent-text); font-size: 12px; font-weight: 600; text-transform: uppercase;
}
.rj-dev-cards__meta-item--rooms .rj-dev-cards__meta-label,
.rj-dev-cards__meta-item--floor .rj-dev-cards__meta-label { color: var(--rj-nd-teal); font-weight: 500; }
.rj-dev-cards__meta-value{font-weight: 500;}
.rj-dev-cards__meta-item--floor .rj-dev-cards__icon { color: var(--rj-nd-teal); }
.rj-dev-apts__price { margin: 0; color: var(--rj-nd-teal-dark); font-size: 20px; font-weight: 700; line-height: 1.2; }
.rj-dev-apts--cards .rj-dev-apts__row[hidden] { display: none; }

/* ---------- 3. Why buy new: tinted panel ---------- */
/* Panel is 97% of the page width, centred (equal space left and right). */
.elementor .e-con.rj-nd-section--why > .e-con-inner { width: 100%; max-width: 100%; margin-inline: auto; }
/* Light-blue rounded panel. Set here (not in Elementor) so re-saving the page keeps it. */
.elementor .elementor-element.e-con.rj-nd-why {
	--padding-top: 44px;
	--padding-bottom: 36px;
	--padding-left: 60px;
	--padding-right: 60px;
	--gap: 36px;
	--row-gap: 36px;
	background-color: #DCEEF178;
	border-radius: 34px;
}
/* Right-hand intro text: narrow column, starts at the middle. */
.rj-nd-why__text .elementor-widget-text-editor,
.rj-nd-section .rj-nd-why__text .elementor-widget-text-editor p { max-width: 430px; }
.elementor .rj-nd-section .rj-nd-why__heading h2.elementor-heading-title { font-weight: 700; }
.rj-nd-section .rj-nd-why__text .elementor-widget-text-editor,
.rj-nd-section .rj-nd-why__text .elementor-widget-text-editor p { font-size: 15px; line-height: 1.5; color: #565656; }
.rj-nd-why__text .elementor-widget-text-editor div:first-child { display: none; } /* empty line typed above the text */
/* Feature descriptions: tighter lines, narrower like the design. */
.rj-nd-section .rj-nd-feature .elementor-icon-box-description { max-width: 290px; font-size: 14px; line-height: 1.5; color: #565656; }
.elementor .e-con.rj-nd-why__top,
.elementor .e-con.rj-nd-why__features { --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; --gap: 32px; --column-gap: 32px; --row-gap: 24px; --flex-wrap: nowrap; }
.elementor .e-con.rj-nd-why__heading,
.elementor .e-con.rj-nd-why__text { --width: 50%; --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; --gap: 10px; --row-gap: 10px; flex: 1 1 0; }
.rj-nd-why__features > .elementor-widget { flex: 1 1 0; }
.rj-nd-feature .elementor-icon-box-wrapper { display: flex; align-items: flex-start; gap: 12px; text-align: start; }
.rj-nd-feature .elementor-icon-box-icon { margin: 0; }
.rj-nd-feature .elementor-icon { color: var(--rj-nd-accent); font-size: 22px; }
.rj-nd-feature .elementor-icon-box-title { margin: 0 0 6px; color: var(--rj-nd-ink); font-size: 22px; line-height: 1.15; }
.rj-nd-feature .elementor-icon-box-description { margin: 0; color: var(--rj-nd-muted); font-size: 13px; }

/* ---------- 4 & 5. Accordions: one bordered box, light header on the open row ---------- */
.elementor .rj-nd-accordion .elementor-accordion { border: 1px solid #EBEBEB; border-radius: var(--rj-nd-radius-sm); overflow: hidden; background: #fff; }
.elementor .rj-nd-accordion .elementor-accordion .elementor-accordion-item { border: 1px solid #d5d8dc; border-left: 0; border-right: 0; }
/* No double line between two rows. */
.elementor .rj-nd-accordion .elementor-accordion .elementor-accordion-item + .elementor-accordion-item { border-top: 0; }
/* The outer box already has a border: no extra line above the first row or below the last. */
.elementor .rj-nd-accordion .elementor-accordion .elementor-accordion-item:first-child { border-top: 0; }
.elementor .rj-nd-accordion .elementor-accordion .elementor-accordion-item:last-child { border-bottom: 0; }
.rj-nd-accordion .elementor-tab-title { padding: 14px 18px; border: 0; font-size: 15px; font-weight: 600; }
.rj-nd-accordion .elementor-tab-title.elementor-active { background: var(--rj-nd-tint); color: var(--rj-nd-teal-dark); }
.rj-nd-accordion .elementor-tab-title.elementor-active a,
.rj-nd-accordion .elementor-tab-title.elementor-active .elementor-accordion-icon { color: var(--rj-nd-teal-dark); }
.rj-nd-accordion .elementor-tab-title a,
.rj-nd-accordion .elementor-accordion-icon { color: var(--rj-nd-ink); }
/* Expand / collapse icons: chevron-down while closed, minus while open (replaces the widget's icon font). */
.rj-nd-accordion .elementor-accordion-icon-closed > *,
.rj-nd-accordion .elementor-accordion-icon-opened > * { display: none !important; }
.rj-nd-accordion .elementor-accordion-icon-closed,
.rj-nd-accordion .elementor-accordion-icon-opened { width: 20px; height: 20px; vertical-align: middle; background: no-repeat center / 20px 20px; }
.rj-nd-accordion .elementor-tab-title:not(.elementor-active) .elementor-accordion-icon-closed,
.rj-nd-accordion .elementor-tab-title.elementor-active .elementor-accordion-icon-opened { display: inline-block; }
.rj-nd-accordion .elementor-accordion-icon-closed {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke-width='2' stroke-linecap='round' stroke='%23326775'/%3E%3C/svg%3E");
}
.rj-nd-accordion .elementor-accordion-icon-opened {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4.16406 10H15.8321' stroke-width='2' stroke-linecap='round' stroke='%23EC3F1F'/%3E%3C/svg%3E");
}
.rj-nd-accordion .elementor-tab-content { padding: 14px 18px; border: 0; border-top: 1px solid var(--rj-nd-line); color: var(--rj-nd-muted); font-size: 14px; }

/* ---------- 6. CTA banner: rounded photo, teal fade at the top, centered ---------- */
.elementor .e-con.rj-nd-cta {
	--padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0;
	border-radius: var(--rj-nd-radius); overflow: hidden; background-color: var(--rj-nd-teal);
	background-size: cover; background-position: center bottom; background-repeat: no-repeat;
}
.elementor .e-con.rj-nd-cta__content {
	--padding-top: 44px; --padding-bottom: 96px; --padding-left: 24px; --padding-right: 24px; --gap: 12px; --row-gap: 12px;
	--align-items: center; --min-height: 320px; text-align: center;
	background: linear-gradient(180deg, rgba(81, 170, 186, .97) 0%, rgba(81, 170, 186, .85) 35%, rgba(81, 170, 186, .3) 70%, rgba(81, 170, 186, 0) 100%);
}
.rj-nd-cta__title .elementor-heading-title { color: #fff; }
.rj-nd-section .rj-nd-cta__text { max-width: 560px; color: #fff; }
/* CTA text breaks into two lines like the PDF (same width as the section intro text). */
.rj-nd-section .rj-nd-cta__content .elementor-widget-text-editor p { max-width: 555px; margin-inline: auto; }
/* "Why buy new?" heading: PDF size, so it breaks as "A New Home, With Room / To Make It Yours". */
.elementor .rj-nd-section .rj-nd-why__heading .elementor-widget-heading h2.elementor-heading-title { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.2; }
.rj-nd-button .elementor-button { margin-top: 8px; }

/* ---------- Tablet / phone ---------- */
@media (max-width: 1024px) {
	.elementor .e-con.rj-nd-hero { background-position: left 220px center; }
	[dir="rtl"] .elementor .e-con.rj-nd-hero { background-position: right 220px center; }
	.elementor .e-con.rj-nd-hero__content { background: linear-gradient(90deg, var(--rj-nd-teal) 0, var(--rj-nd-teal) 240px, rgba(81, 170, 186, .6) 380px, rgba(81, 170, 186, 0) 680px); }
	[dir="rtl"] .elementor .e-con.rj-nd-hero__content { background: linear-gradient(270deg, var(--rj-nd-teal) 0, var(--rj-nd-teal) 240px, rgba(81, 170, 186, .6) 380px, rgba(81, 170, 186, 0) 680px); }
	.elementor .e-con.rj-nd-why__features { --flex-wrap: wrap; }
	.rj-nd-why__features > .elementor-widget { flex: 1 1 45%; }
}
@media (max-width: 767px) {
	.rj-dev-cards { grid-template-columns: minmax(0, 1fr); }
	.elementor .elementor-element.e-con.rj-nd-why__top,
	.elementor .elementor-element.e-con.rj-nd-why__features { --flex-direction: column; flex-direction: column; }
	.elementor .e-con.rj-nd-why__heading,
	.elementor .e-con.rj-nd-why__text { --width: 100%; }
	.elementor .e-con.rj-nd-why { --padding-top: 28px; --padding-bottom: 28px; --padding-left: 20px; --padding-right: 20px; }
	/* ----- Hero on phones (mobile design): edge to edge, square corners, teal fading left to right,
	   workers visible on the right, 3-line heading. !important beats the sizes / positions set in Elementor. ----- */
	.elementor .e-con.rj-nd-section--hero { --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; }
	.elementor .e-con.rj-nd-section--hero > .e-con-inner { width: 100%; max-width: 100%; padding: 0; }
	.elementor .e-con.rj-nd-hero,
	.elementor .e-con.rj-nd-hero__content { --min-height: 395px; }
	.elementor .elementor-element.e-con.rj-nd-hero,
	[dir="rtl"] .elementor .elementor-element.e-con.rj-nd-hero {
		border-radius: 0; background-size: auto 170% !important; background-position: -60px -40px !important;
	}
	.elementor .elementor-element.e-con.rj-nd-hero > .elementor-motion-effects-container > .elementor-motion-effects-layer { background-size: auto 170% !important; background-position: -60px -40px !important; }
	/* Hebrew (RTL): text and teal fade are on the right, so show the workers on the left. */
	[dir="rtl"] .elementor .elementor-element.e-con.rj-nd-hero,
	[dir="rtl"] .elementor .elementor-element.e-con.rj-nd-hero > .elementor-motion-effects-container > .elementor-motion-effects-layer { background-position: -140px -40px !important; }
	/* A custom width set on the text in Elementor makes a narrow column on phones: use the full width there. */
	.elementor .elementor-element.elementor-widget.rj-nd-hero__text { --container-widget-width: 100%; width: 100%; max-width: 100%; }
	.elementor .e-con.rj-nd-hero__content {
		--padding-top: 50px; --padding-bottom: 32px; --padding-left: 20px; --padding-right: 20px; --gap: 14px; --row-gap: 14px;
		--justify-content: flex-start;
		background: linear-gradient(90deg, var(--rj-nd-teal) 0%, rgba(81, 170, 186, .95) 35%, rgba(81, 170, 186, .7) 60%, rgba(81, 170, 186, .25) 85%, rgba(81, 170, 186, .1) 100%);
	}
	[dir="rtl"] .elementor .e-con.rj-nd-hero__content {
		background: linear-gradient(270deg, var(--rj-nd-teal) 0%, rgba(81, 170, 186, .95) 35%, rgba(81, 170, 186, .7) 60%, rgba(81, 170, 186, .25) 85%, rgba(81, 170, 186, .1) 100%);
	}
	/* Pill: uppercase, letter-spaced, white text on a see-through white pill. */
	.rj-nd-hero .rj-nd-eyebrow--light .elementor-heading-title {
		padding: 5px 12px; background: rgba(255, 255, 255, .22); color: #fff;
		font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
	}
	/* Heading: 3 lines like the design. */
	.elementor .rj-nd-hero__title .elementor-heading-title { font-size: 38px !important; line-height: 1.12; max-width: 100%; }
	.rj-nd-section .rj-nd-hero__text,
	.rj-nd-section .rj-nd-hero__text p { font-size: 13px; line-height: 1.55; }
	.rj-dev-cards__tagline { font-size: 40px; } /* 53px is too large for long taglines on phones */
}


/* =====================================================================
   Phones: whole page as in the mobile design (393px).
   !important is used where Elementor sets its own size / width / margin per element.
   ===================================================================== */
@media (max-width: 767px) {
	/* Side gutters: 20px for content sections, 8px for the two tinted panels. */
	.elementor .e-con.rj-nd-section:not(.rj-nd-section--hero) { --padding-left: 20px; --padding-right: 20px; --padding-top: 28px; --padding-bottom: 28px; }
	.elementor .elementor-element.e-con.rj-nd-section.rj-nd-section--why,
	.elementor .elementor-element.e-con.rj-nd-section.rj-nd-section--cta { --padding-left: 8px; --padding-right: 8px; }
	.elementor .e-con.rj-nd-section--why > .e-con-inner { width: 100%; max-width: 100%; }

	/* Section headings: 30px, centred (except inside the "Why" panel). */
	.elementor .rj-nd-section h2.elementor-heading-title { font-size: 28px !important; line-height: 1.2 !important; }
	.rj-nd-section--projects .rj-nd-intro,
	.rj-nd-section--steps .rj-nd-intro,
	.rj-nd-section--faq .rj-nd-intro { align-items: center; text-align: center; }
	.elementor .rj-nd-section--steps .rj-nd-intro,
	.elementor .rj-nd-section--faq .rj-nd-intro { --align-items: center; }
	.rj-nd-section--steps .elementor-heading-title,
	.rj-nd-section--faq .elementor-heading-title { text-align: center; }
	.rj-nd-eyebrow .elementor-heading-title { font-size: 10px; }
	.rj-nd-eyebrow--dot .elementor-heading-title { font-size: 12px; }

	/* "A Closer Look" intro text: full width (Elementor sets ~50%). */
	.elementor .rj-nd-section--projects .rj-nd-intro .elementor-widget-text-editor { --container-widget-width: 100% !important; width: 100% !important; max-width: 100% !important; }
	.rj-nd-section--projects .rj-nd-intro .elementor-widget-text-editor,
	.rj-nd-section--projects .rj-nd-intro .elementor-widget-text-editor p { font-size: 14px; line-height: 1.45; }

	/* Cards. */
	.rj-dev-cards { gap: 16px; }
	.rj-dev-cards__body { gap: 8px; padding: 12px 12px 14px; }
	.rj-dev-cards__tagline { font-size: 23px; line-height: 1.15; }
	.rj-dev-cards__meta { gap: 4px 10px; font-size: 11px; }
	.rj-dev-cards__meta-item { gap: 4px; }
	.rj-dev-cards__icon { height: 14px; }
	.rj-dev-cards__button { margin-top: 2px; padding: 8px 16px; font-size: 13px; }
	.rj-dev-cards__badge { top: 10px; inset-inline-end: 10px; font-size: 11px; }
	.rj-dev-cards__soon { font-size: 30px; }

	/* "Why buy new?" panel. */
	.elementor .elementor-element.e-con.rj-nd-why { --padding-top: 28px; --padding-bottom: 28px; --padding-left: 12px; --padding-right: 12px; --gap: 24px; --row-gap: 24px; border-radius: 24px; }
	.elementor .elementor-element.e-con.rj-nd-why__top { --gap: 10px; --row-gap: 10px; }
	.elementor .elementor-element.e-con.rj-nd-why__heading,
	.elementor .elementor-element.e-con.rj-nd-why__text { --width: 100% !important; width: 100% !important; --margin-left: 0px !important; --margin-right: 0px !important; margin: 0 !important; --align-items: flex-start !important; align-items: flex-start !important; }
	.rj-nd-why__heading h2 br { display: none; } /* wraps naturally: "A New Home, With / Room To Make It Yours" */
	.rj-nd-why__text .elementor-widget-text-editor,
	.rj-nd-section .rj-nd-why__text .elementor-widget-text-editor p { max-width: 100%; font-size: 14px; }
	.elementor .elementor-element.e-con.rj-nd-why__features {
		display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px;
	}
	.rj-nd-why__features > .elementor-widget { width: auto !important; max-width: none !important; }
	.rj-nd-feature .elementor-icon-box-wrapper { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 8px; text-align: start !important; }
	.rj-nd-feature .elementor-icon-box-icon { margin: 0 !important; }
	.elementor .rj-nd-feature .elementor-icon { font-size: 18px !important; }
	.elementor .rj-nd-feature .elementor-icon-box-title,
	.elementor .rj-nd-feature .elementor-icon-box-title a { font-size: 17px !important; line-height: 1.2; }
	.rj-nd-section .rj-nd-feature .elementor-icon-box-description { max-width: none; font-size: 11px; line-height: 1.45; }

	/* Accordions: rounded box with a soft shadow; step titles numbered "1." to "4.". */
	.elementor .rj-nd-accordion .elementor-accordion { box-shadow: 0 2px 12px rgba(0, 0, 0, .06); border-radius: 14px; }
	.rj-nd-accordion .elementor-tab-title { padding: 18px 20px; font-size: 16px; line-height: 1.35; }
	.rj-nd-accordion .elementor-tab-content { padding: 16px 20px; font-size: 15px; line-height: 1.45; }
	.rj-nd-section--steps .elementor-accordion { counter-reset: rj-step; }
	.rj-nd-section--steps .elementor-accordion-title::before { counter-increment: rj-step; content: counter(rj-step) ". "; }

	/* Bottom banner: plant / sky photo, rounded, centred text. */
	.elementor .elementor-element.e-con.rj-nd-cta,
	.elementor .elementor-element.e-con.rj-nd-cta:not(.elementor-motion-effects-element-type-background) {
		border-radius: 24px;
		background: #51aaba url(images/new-developments/cta-mobile.png) center / cover no-repeat !important;
	}
	.elementor .e-con.rj-nd-cta__content {
		--padding-top: 32px; --padding-bottom: 28px; --padding-left: 24px; --padding-right: 24px; --gap: 10px; --row-gap: 10px;
		--min-height: 230px; background: none;
	}
	.elementor .rj-nd-cta__title .elementor-heading-title { font-size: 28px !important; line-height: 1.2; max-width: 290px; margin-inline: auto; } /* "A Closer Look At / Your Next Address" */
	.rj-nd-section .rj-nd-cta__content .elementor-widget-text-editor p { max-width: 290px; font-size: 13px; line-height: 1.4; }
	.elementor .rj-nd-cta .rj-nd-button .elementor-button { padding: 12px 24px !important; font-size: 14px; }
}
