/*
 Theme Name: Astra Child
 Template: astra
 Description: Child theme for Astra - ROGEEN for Integrated Solutions Co. Ltd.
 Version: 3.1.0
 Author: ROGEEN
 Text Domain: astra-child
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
	/* ===== Colors ===== */
	--rog-blue-950: #071e32;
	--rog-blue-900: #0b2c4a;
	--rog-blue-800: #0f3a5e;
	--rog-blue-700: #1a4971;
	--rog-blue-600: #1e5a8a;
	--rog-blue-500: #2d6da3;
	--rog-blue-400: #4a8bc4;
	--rog-blue-300: #7eb3dc;
	--rog-blue-200: #b3d4ed;
	--rog-blue-100: #e8f1f8;
	--rog-blue-50: #f4f8fc;
	
	--rog-red-800: #991b1b;
	--rog-red-700: #b91c1c;
	--rog-red-600: #dc2626;
	--rog-red-500: #ef4444;
	
	--rog-white: #ffffff;
	--rog-gray-50: #f9fafb;
	--rog-gray-100: #f3f4f6;
	--rog-gray-200: #e5e7eb;
	--rog-gray-300: #d1d5db;
	--rog-gray-400: #9ca3af;
	--rog-gray-500: #6b7280;
	--rog-gray-600: #4b5563;
	--rog-gray-700: #374151;
	--rog-gray-800: #1f2937;
	--rog-gray-900: #111827;
	
	/* ===== Gradients ===== */
	--rog-gradient-hero: linear-gradient(180deg, #0b2c4a 0%, #1a4971 100%);
	--rog-gradient-dark: linear-gradient(180deg, #071e32 0%, #0b2c4a 100%);
	
	/* ===== Shadows ===== */
	--rog-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
	--rog-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
	--rog-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--rog-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--rog-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	
	/* ===== Border Radius ===== */
	--rog-radius-sm: 4px;
	--rog-radius-md: 8px;
	--rog-radius-lg: 12px;
	--rog-radius-xl: 16px;
	--rog-radius-2xl: 24px;
	--rog-radius-full: 9999px;
	
	/* ===== Typography ===== */
	--rog-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--rog-font-arabic: "Cairo", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
	
	/* Type Scale (fluid typography with clamp) */
	--rog-text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
	--rog-text-sm: clamp(0.8125rem, 0.775rem + 0.19vw, 0.875rem);
	--rog-text-base: clamp(0.9375rem, 0.9rem + 0.19vw, 1rem);
	--rog-text-lg: clamp(1.0625rem, 1rem + 0.31vw, 1.125rem);
	--rog-text-xl: clamp(1.1875rem, 1.1rem + 0.44vw, 1.25rem);
	--rog-text-2xl: clamp(1.4375rem, 1.3rem + 0.69vw, 1.5rem);
	--rog-text-3xl: clamp(1.75rem, 1.55rem + 1vw, 1.875rem);
	--rog-text-4xl: clamp(2rem, 1.7rem + 1.5vw, 2.25rem);
	--rog-text-5xl: clamp(2.5rem, 2rem + 2.5vw, 3rem);
	--rog-text-6xl: clamp(3rem, 2.4rem + 3vw, 3.75rem);
	
	/* Line Heights */
	--rog-leading-none: 1;
	--rog-leading-tight: 1.15;
	--rog-leading-snug: 1.3;
	--rog-leading-normal: 1.5;
	--rog-leading-relaxed: 1.625;
	--rog-leading-loose: 1.75;
	
	/* Letter Spacing */
	--rog-tracking-tighter: -0.03em;
	--rog-tracking-tight: -0.015em;
	--rog-tracking-normal: 0;
	--rog-tracking-wide: 0.015em;
	
	/* ===== Spacing ===== */
	--rog-space-1: 0.25rem;
	--rog-space-2: 0.5rem;
	--rog-space-3: 0.75rem;
	--rog-space-4: 1rem;
	--rog-space-5: 1.25rem;
	--rog-space-6: 1.5rem;
	--rog-space-8: 2rem;
	--rog-space-10: 2.5rem;
	--rog-space-12: 3rem;
	--rog-space-16: 4rem;
	--rog-space-20: 5rem;
	--rog-space-24: 6rem;
	--rog-space-32: 8rem;
	
	/* ===== Layout ===== */
	--rog-container-sm: 640px;
	--rog-container-md: 768px;
	--rog-container-lg: 1024px;
	--rog-container-xl: 1200px;
	--rog-container-2xl: 1400px;
	--rog-container-padding: clamp(1rem, 4vw, 2rem);
	
	/* Section Spacing */
	--rog-section-py: clamp(3rem, 6vw, 5rem);
	--rog-section-py-lg: clamp(4rem, 8vw, 6rem);
}

/* ==========================================================================
   2. BASE TYPOGRAPHY
   ========================================================================== */
html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: var(--rog-font-sans);
	font-size: var(--rog-text-base);
	line-height: var(--rog-leading-relaxed);
	color: var(--rog-gray-700);
	background: var(--rog-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: "kern" 1, "liga" 1;
}

/* Arabic Font */
body.rtl,
body.lang-ar {
	font-family: var(--rog-font-arabic);
	letter-spacing: 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-weight: 700;
	color: var(--rog-gray-900);
	line-height: var(--rog-leading-tight);
	margin-top: 0;
	margin-bottom: var(--rog-space-4);
	letter-spacing: var(--rog-tracking-tight);
}

h1, .h1 {
	font-size: var(--rog-text-5xl);
	letter-spacing: var(--rog-tracking-tighter);
	line-height: 1.1;
}

h2, .h2 {
	font-size: var(--rog-text-4xl);
	letter-spacing: var(--rog-tracking-tighter);
	line-height: 1.15;
}

h3, .h3 {
	font-size: var(--rog-text-2xl);
	line-height: 1.25;
}

h4, .h4 {
	font-size: var(--rog-text-xl);
	font-weight: 600;
	line-height: 1.3;
}

h5, .h5 {
	font-size: var(--rog-text-lg);
	font-weight: 600;
}

h6, .h6 {
	font-size: var(--rog-text-base);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--rog-tracking-wide);
}

/* Paragraphs - FIXED: No faded/opacity text */
p {
	margin-top: 0;
	margin-bottom: var(--rog-space-4);
	color: var(--rog-gray-700);
	opacity: 1;
}

/* Lead text */
.lead,
p.has-large-font-size {
	font-size: var(--rog-text-lg);
	line-height: var(--rog-leading-relaxed);
	color: var(--rog-gray-600);
}

/* Small text */
small, .text-sm {
	font-size: var(--rog-text-sm);
}

/* Links */
a {
	color: var(--rog-blue-700);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--rog-blue-900);
}

/* Lists */
ul, ol {
	margin: 0 0 var(--rog-space-4) 0;
	padding-left: var(--rog-space-6);
}

li {
	margin-bottom: var(--rog-space-2);
	color: var(--rog-gray-700);
	line-height: var(--rog-leading-relaxed);
}

li::marker {
	color: var(--rog-blue-600);
}

/* ==========================================================================
   3. LAYOUT SYSTEM
   ========================================================================== */

/* Container */
.rog-container {
	width: 100%;
	max-width: var(--rog-container-xl);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--rog-container-padding);
	padding-right: var(--rog-container-padding);
}

.rog-container-sm { max-width: var(--rog-container-sm); }
.rog-container-md { max-width: var(--rog-container-md); }
.rog-container-lg { max-width: var(--rog-container-lg); }
.rog-container-xl { max-width: var(--rog-container-xl); }

/* Astra container override */
.ast-container,
.site-content .ast-container {
	max-width: var(--rog-container-xl);
	padding-left: var(--rog-container-padding);
	padding-right: var(--rog-container-padding);
	margin: 0 auto;
}

/* Section Wrapper */
.rog-section {
	padding-top: var(--rog-section-py);
	padding-bottom: var(--rog-section-py);
}

.rog-section-lg {
	padding-top: var(--rog-section-py-lg);
	padding-bottom: var(--rog-section-py-lg);
}

/* Section with gray background */
.rog-section-gray {
	background: var(--rog-gray-50);
}

/* Full-width sections inside content */
.rog-section.alignfull,
.alignfull.rog-section,
.rog-section-gray.alignfull,
.alignfull.rog-section-gray {
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	width: 100vw;
	max-width: 100vw;
	padding-left: var(--rog-container-padding);
	padding-right: var(--rog-container-padding);
}

/* Inner container for full-width sections */
.rog-section.alignfull > .rog-container,
.rog-section-gray.alignfull > .rog-container {
	max-width: var(--rog-container-xl);
	margin: 0 auto;
}

/* Grid Systems */
.rog-grid {
	display: grid;
	gap: var(--rog-space-6);
}

.rog-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--rog-space-8);
}

.rog-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--rog-space-6);
}

.rog-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--rog-space-6);
}

@media (max-width: 1024px) {
	.rog-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.rog-grid-2,
	.rog-grid-3,
	.rog-grid-4 {
		grid-template-columns: 1fr;
	}
}

/* Stack (vertical spacing) */
.rog-stack {
	display: flex;
	flex-direction: column;
}

.rog-stack > * + * {
	margin-top: var(--rog-space-4);
}

.rog-stack-sm > * + * { margin-top: var(--rog-space-2); }
.rog-stack-md > * + * { margin-top: var(--rog-space-6); }
.rog-stack-lg > * + * { margin-top: var(--rog-space-8); }
.rog-stack-xl > * + * { margin-top: var(--rog-space-12); }

/* Gap utilities */
.rog-gap-sm { gap: var(--rog-space-3); }
.rog-gap-md { gap: var(--rog-space-6); }
.rog-gap-lg { gap: var(--rog-space-8); }
.rog-gap-xl { gap: var(--rog-space-12); }

/* Section Header */
.rog-section-header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto var(--rog-space-12);
}

.rog-section-header h2 {
	margin-bottom: var(--rog-space-3);
}

.rog-section-header p {
	font-size: var(--rog-text-lg);
	color: var(--rog-gray-600);
	margin-bottom: 0;
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
.site-header,
.ast-primary-header-bar,
.main-header-bar {
	background: var(--rog-white) !important;
	border-bottom: 1px solid var(--rog-gray-200);
	box-shadow: none;
}

.main-header-bar {
	padding: 0;
}

.main-header-bar .ast-container {
	padding-top: var(--rog-space-4);
	padding-bottom: var(--rog-space-4);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Hide extra header rows */
.ast-above-header-bar,
.ast-above-header {
	display: none !important;
}

/* Logo */
.site-logo img,
.custom-logo,
.ast-site-identity .site-logo-img {
	max-height: 48px !important;
	width: auto;
}

/* Navigation Menu */
.main-header-menu,
.ast-nav-menu {
	display: flex;
	align-items: center;
	gap: var(--rog-space-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-header-menu > li > a,
.ast-nav-menu > li > a {
	display: block;
	font-size: var(--rog-text-sm);
	font-weight: 500;
	color: var(--rog-gray-700);
	padding: var(--rog-space-2) var(--rog-space-4);
	border-radius: var(--rog-radius-sm);
	transition: all 0.15s ease;
	position: relative;
}

.main-header-menu > li > a:hover {
	color: var(--rog-blue-700);
	background: var(--rog-blue-50);
}

.main-header-menu > li.current-menu-item > a,
.main-header-menu > li.current_page_item > a {
	color: var(--rog-blue-700);
}

/* Active underline */
.main-header-menu > li.current-menu-item > a::after,
.main-header-menu > li.current_page_item > a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: var(--rog-space-4);
	right: var(--rog-space-4);
	height: 2px;
	background: var(--rog-blue-600);
	border-radius: 1px;
}

/* Dropdown menus */
.main-header-menu .sub-menu {
	background: var(--rog-white);
	border: 1px solid var(--rog-gray-200);
	border-radius: var(--rog-radius-md);
	box-shadow: var(--rog-shadow-lg);
	padding: var(--rog-space-2) 0;
	min-width: 200px;
}

.main-header-menu .sub-menu li a {
	padding: var(--rog-space-2) var(--rog-space-4);
	font-size: var(--rog-text-sm);
	color: var(--rog-gray-700);
}

.main-header-menu .sub-menu li a:hover {
	background: var(--rog-blue-50);
	color: var(--rog-blue-700);
}

/* ==========================================================================
   5. LANGUAGE SWITCHER
   ========================================================================== */
#rog-lang-switcher,
.rog-lang-switcher {
	display: inline-flex;
	align-items: center;
	gap: var(--rog-space-2);
	position: fixed;
	top: var(--rog-space-4);
	right: var(--rog-space-5);
	z-index: 9999;
	background: var(--rog-white);
	padding: var(--rog-space-2) var(--rog-space-3);
	border-radius: var(--rog-radius-full);
	box-shadow: var(--rog-shadow-md);
	border: 1px solid var(--rog-gray-200);
}

.rog-lang-switcher .globe-icon {
	width: 16px;
	height: 16px;
	color: var(--rog-gray-500);
	flex-shrink: 0;
}

.rog-lang-switcher .lang-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	padding: var(--rog-space-1) var(--rog-space-3);
	font-size: var(--rog-text-xs);
	font-weight: 600;
	color: var(--rog-gray-600);
	border: 1px solid var(--rog-gray-300);
	border-radius: var(--rog-radius-full);
	background: transparent;
	text-decoration: none;
	transition: all 0.15s ease;
}

.rog-lang-switcher .lang-item:hover {
	border-color: var(--rog-blue-600);
	color: var(--rog-blue-700);
}

.rog-lang-switcher .lang-item.active {
	background: var(--rog-blue-900);
	color: var(--rog-white);
	border-color: var(--rog-blue-900);
}

/* Hide duplicate WPML switchers */
.wpml-ls-statics-shortcode_actions,
.wpml-ls-legacy-dropdown,
.wpml-ls-legacy-list-horizontal,
.wpml-ls-legacy-list-vertical,
.main-header-menu > li.wpml-ls-item,
.main-header-menu > li.menu-item-wpml-ls-item {
	display: none !important;
}

/* ==========================================================================
   6. CTA BUTTON IN MENU
   ========================================================================== */
.menu-item.rog-cta-button > a,
.main-header-menu > li.rog-cta-button > a {
	background: var(--rog-red-600) !important;
	color: var(--rog-white) !important;
	padding: var(--rog-space-2) var(--rog-space-5) !important;
	border-radius: var(--rog-radius-sm) !important;
	font-weight: 600 !important;
	font-size: var(--rog-text-sm) !important;
	margin-left: var(--rog-space-3);
	transition: all 0.15s ease !important;
}

.menu-item.rog-cta-button > a:hover,
.main-header-menu > li.rog-cta-button > a:hover {
	background: var(--rog-red-700) !important;
	transform: translateY(-1px);
}

.menu-item.rog-cta-button > a::after {
	display: none !important;
}

/* ==========================================================================
   7. HERO SECTIONS (Scoped - .rog-hero ONLY)
   ========================================================================== */
.rog-hero {
	background: var(--rog-gradient-hero);
	color: var(--rog-white);
	padding: var(--rog-section-py-lg) var(--rog-container-padding);
}

.rog-hero.alignfull,
.alignfull.rog-hero {
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	width: 100vw;
	max-width: 100vw;
}

.rog-hero > .rog-container,
.rog-hero > .wp-block-group__inner-container {
	max-width: var(--rog-container-xl);
	margin: 0 auto;
}

/* Hero Typography - Full readable white text (NO OPACITY) */
.rog-hero h1,
.rog-hero h2,
.rog-hero h3,
.rog-hero h4 {
	color: var(--rog-white) !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.rog-hero p {
	color: var(--rog-white) !important;
	font-size: var(--rog-text-lg);
}

.rog-hero li {
	color: var(--rog-white) !important;
}

.rog-hero li::marker {
	color: var(--rog-blue-300);
}

/* Hero for HOME page - first block */
.home .entry-content > .wp-block-group:first-child,
.page-id-12 .entry-content > .wp-block-group:first-child {
	background: var(--rog-gradient-hero) !important;
	color: var(--rog-white) !important;
	padding: var(--rog-section-py-lg) var(--rog-container-padding) !important;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	width: 100vw;
	max-width: 100vw;
}

.home .entry-content > .wp-block-group:first-child h1,
.home .entry-content > .wp-block-group:first-child h2,
.home .entry-content > .wp-block-group:first-child h3 {
	color: var(--rog-white) !important;
}

.home .entry-content > .wp-block-group:first-child p {
	color: var(--rog-white) !important;
}

.home .entry-content > .wp-block-group:first-child li {
	color: var(--rog-white) !important;
}

/* Inner page heroes */
.page:not(.home) .entry-content > .wp-block-group:first-child {
	background: var(--rog-gradient-hero) !important;
	color: var(--rog-white) !important;
	padding: var(--rog-space-16) var(--rog-container-padding) !important;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	width: 100vw;
	max-width: 100vw;
	text-align: center;
}

.page:not(.home) .entry-content > .wp-block-group:first-child h1,
.page:not(.home) .entry-content > .wp-block-group:first-child h2 {
	color: var(--rog-white) !important;
	margin-bottom: var(--rog-space-3);
}

.page:not(.home) .entry-content > .wp-block-group:first-child p {
	color: var(--rog-white) !important;
	max-width: 640px;
	margin: 0 auto;
	font-size: var(--rog-text-lg);
}

/* ==========================================================================
   8. BLUE SECTIONS (Scoped - .rog-section-blue ONLY)
   ========================================================================== */
.rog-section-blue {
	background: var(--rog-gradient-hero);
	color: var(--rog-white);
	padding: var(--rog-section-py) var(--rog-container-padding);
}

.rog-section-blue.alignfull,
.alignfull.rog-section-blue {
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	width: 100vw;
	max-width: 100vw;
}

.rog-section-blue h2,
.rog-section-blue h3,
.rog-section-blue h4 {
	color: var(--rog-white) !important;
}

/* FIXED: No opacity on text - full white for readability */
.rog-section-blue p,
.rog-section-blue li {
	color: var(--rog-white) !important;
}

.rog-section-blue .rog-section-header p {
	color: rgba(255, 255, 255, 0.9) !important;
}

/* ==========================================================================
   9. CTA BANNERS (Scoped - .rog-cta-banner ONLY)
   ========================================================================== */
.rog-cta-banner {
	background: var(--rog-gradient-hero);
	color: var(--rog-white);
	padding: var(--rog-space-12) var(--rog-space-10);
	border-radius: var(--rog-radius-xl);
	text-align: center;
	max-width: 900px;
	margin: var(--rog-space-12) auto;
}

.rog-cta-banner h2,
.rog-cta-banner h3 {
	color: var(--rog-white) !important;
	font-size: var(--rog-text-3xl);
	margin-bottom: var(--rog-space-3);
}

/* FIXED: No opacity on CTA text */
.rog-cta-banner p {
	color: var(--rog-white) !important;
	font-size: var(--rog-text-lg);
	margin-bottom: var(--rog-space-6);
}

/* ==========================================================================
   10. CARDS
   ========================================================================== */
.rog-card {
	background: var(--rog-white);
	border: 1px solid var(--rog-gray-200);
	border-radius: var(--rog-radius-lg);
	padding: var(--rog-space-6);
	transition: all 0.2s ease;
	height: 100%;
}

.rog-card:hover {
	box-shadow: var(--rog-shadow-lg);
	transform: translateY(-2px);
	border-color: var(--rog-gray-300);
}

.rog-card h3,
.rog-card h4 {
	font-size: var(--rog-text-lg);
	color: var(--rog-blue-800);
	margin-bottom: var(--rog-space-3);
}

.rog-card p {
	font-size: var(--rog-text-sm);
	color: var(--rog-gray-600);
	margin-bottom: 0;
	line-height: var(--rog-leading-relaxed);
}

/* Card icon */
.rog-card-icon {
	width: 48px;
	height: 48px;
	margin-bottom: var(--rog-space-4);
	color: var(--rog-blue-600);
}

/* Cards using Gutenberg columns */
.wp-block-columns.rog-cards-row {
	gap: var(--rog-space-6);
}

.wp-block-columns.rog-cards-row > .wp-block-column {
	background: var(--rog-white);
	border: 1px solid var(--rog-gray-200);
	border-radius: var(--rog-radius-lg);
	padding: var(--rog-space-6);
	transition: all 0.2s ease;
}

.wp-block-columns.rog-cards-row > .wp-block-column:hover {
	box-shadow: var(--rog-shadow-lg);
	transform: translateY(-2px);
}

.wp-block-columns.rog-cards-row > .wp-block-column h3 {
	font-size: var(--rog-text-lg);
	color: var(--rog-blue-800);
}

.wp-block-columns.rog-cards-row > .wp-block-column p {
	color: var(--rog-gray-600);
}

/* ==========================================================================
   11. BUTTONS
   ========================================================================== */
.wp-block-button__link,
.rog-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--rog-space-2);
	padding: var(--rog-space-3) var(--rog-space-6);
	font-size: var(--rog-text-sm);
	font-weight: 600;
	line-height: 1.4;
	border-radius: var(--rog-radius-sm);
	transition: all 0.15s ease;
	text-decoration: none;
	cursor: pointer;
	border: none;
}

/* Primary (Red) */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--rog-red-600) !important;
	color: var(--rog-white) !important;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: var(--rog-red-700) !important;
	transform: translateY(-1px);
}

/* Outline */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	border: 2px solid var(--rog-gray-800) !important;
	color: var(--rog-gray-800) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--rog-gray-800) !important;
	color: var(--rog-white) !important;
}

/* Hero buttons - outline white */
.rog-hero .wp-block-button.is-style-outline .wp-block-button__link,
.home .entry-content > .wp-block-group:first-child .wp-block-button.is-style-outline .wp-block-button__link,
.page:not(.home) .entry-content > .wp-block-group:first-child .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: var(--rog-white) !important;
	color: var(--rog-white) !important;
}

.rog-hero .wp-block-button.is-style-outline .wp-block-button__link:hover,
.home .entry-content > .wp-block-group:first-child .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.15) !important;
}

/* Blue section buttons */
.rog-section-blue .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: var(--rog-white) !important;
	color: var(--rog-white) !important;
}

.rog-section-blue .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.15) !important;
}

/* ==========================================================================
   12. PROCESS STEPS
   ========================================================================== */
.rog-steps {
	display: flex;
	justify-content: center;
	gap: var(--rog-space-10);
	flex-wrap: wrap;
}

.rog-step {
	text-align: center;
	max-width: 220px;
}

.rog-step-number {
	width: 56px;
	height: 56px;
	background: var(--rog-blue-900);
	color: var(--rog-white);
	border-radius: var(--rog-radius-full);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: var(--rog-text-xl);
	font-weight: 700;
	margin: 0 auto var(--rog-space-4);
}

.rog-step h4 {
	font-size: var(--rog-text-base);
	margin-bottom: var(--rog-space-2);
}

.rog-step p {
	font-size: var(--rog-text-sm);
	color: var(--rog-gray-600);
}

/* ==========================================================================
   13. CONTACT PAGE
   ========================================================================== */
.rog-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: var(--rog-space-12);
	align-items: start;
}

@media (max-width: 768px) {
	.rog-contact-grid {
		grid-template-columns: 1fr;
	}
}

.rog-contact-info {
	background: var(--rog-gray-50);
	border-radius: var(--rog-radius-lg);
	padding: var(--rog-space-8);
}

.rog-contact-item {
	display: flex;
	gap: var(--rog-space-4);
	margin-bottom: var(--rog-space-6);
}

.rog-contact-item:last-child {
	margin-bottom: 0;
}

.rog-contact-item .icon {
	width: 44px;
	height: 44px;
	background: var(--rog-blue-100);
	border-radius: var(--rog-radius-full);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--rog-blue-700);
}

.rog-contact-item h4 {
	font-size: var(--rog-text-sm);
	font-weight: 600;
	margin-bottom: var(--rog-space-1);
}

.rog-contact-item p {
	font-size: var(--rog-text-sm);
	color: var(--rog-gray-600);
	margin: 0;
}

/* Contact Form */
.rog-contact-form {
	background: var(--rog-white);
	border: 1px solid var(--rog-gray-200);
	border-radius: var(--rog-radius-lg);
	padding: var(--rog-space-8);
}

.rog-contact-form h3 {
	font-size: var(--rog-text-xl);
	margin-bottom: var(--rog-space-6);
}

/* Contact sidebar (FIXED readability) */
.rog-contact-sidebar {
	background: var(--rog-gray-50);
	border-radius: var(--rog-radius-xl);
	padding: var(--rog-space-8);
}

.rog-contact-sidebar h3 {
	font-size: var(--rog-text-xl);
	margin-bottom: var(--rog-space-4);
	color: var(--rog-gray-900);
}

.rog-contact-sidebar h4 {
	font-size: var(--rog-text-base);
	margin-bottom: var(--rog-space-2);
	color: var(--rog-gray-800);
}

.rog-contact-sidebar p {
	font-size: var(--rog-text-sm);
	color: var(--rog-gray-700);
	margin-bottom: var(--rog-space-4);
}

.rog-contact-sidebar a {
	color: var(--rog-blue-700);
}

/* Contact form area (FIXED) */
.rog-contact-form-area {
	background: var(--rog-white);
	border: 1px solid var(--rog-gray-200);
	border-radius: var(--rog-radius-xl);
	padding: var(--rog-space-10);
}

.rog-contact-form-area h3 {
	font-size: var(--rog-text-2xl);
	margin-bottom: var(--rog-space-2);
	color: var(--rog-gray-900);
}

.rog-contact-form-area > p {
	color: var(--rog-gray-600);
	margin-bottom: var(--rog-space-8);
}

/* ==========================================================================
   14. FAQ
   ========================================================================== */
.rog-faq-list {
	max-width: 800px;
	margin: 0 auto;
}

.rog-faq-item {
	border: 1px solid var(--rog-gray-200);
	border-radius: var(--rog-radius-md);
	margin-bottom: var(--rog-space-3);
	background: var(--rog-white);
	overflow: hidden;
}

.rog-faq-item summary {
	padding: var(--rog-space-5) var(--rog-space-6);
	font-weight: 600;
	font-size: var(--rog-text-base);
	color: var(--rog-gray-800);
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	list-style: none;
	transition: background 0.15s ease;
}

.rog-faq-item summary:hover {
	background: var(--rog-gray-50);
}

.rog-faq-item summary::-webkit-details-marker {
	display: none;
}

.rog-faq-item summary::after {
	content: '+';
	font-size: var(--rog-text-xl);
	color: var(--rog-gray-400);
	font-weight: 300;
}

.rog-faq-item[open] summary::after {
	content: '−';
}

.rog-faq-answer {
	padding: 0 var(--rog-space-6) var(--rog-space-5);
	color: var(--rog-gray-600);
	font-size: var(--rog-text-sm);
	line-height: var(--rog-leading-relaxed);
}

/* Gutenberg details block FAQ styling */
.wp-block-details {
	border: 1px solid var(--rog-gray-200);
	border-radius: var(--rog-radius-md);
	margin-bottom: var(--rog-space-3);
	background: var(--rog-white);
	overflow: hidden;
}

.wp-block-details summary {
	padding: var(--rog-space-5) var(--rog-space-6);
	font-weight: 600;
	font-size: var(--rog-text-base);
	color: var(--rog-gray-800);
	cursor: pointer;
	list-style: none;
	transition: background 0.15s ease;
}

.wp-block-details summary:hover {
	background: var(--rog-gray-50);
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details[open] summary {
	border-bottom: 1px solid var(--rog-gray-100);
}

.wp-block-details > :not(summary) {
	padding: var(--rog-space-4) var(--rog-space-6);
	color: var(--rog-gray-700);
	font-size: var(--rog-text-sm);
	line-height: var(--rog-leading-relaxed);
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */
.site-footer,
footer.site-footer {
	background: var(--rog-blue-950) !important;
	color: rgba(255, 255, 255, 0.85);
}

.footer-adv,
.ast-footer-overlay,
.site-footer .ast-container {
	padding: var(--rog-space-16) 0 var(--rog-space-12);
}

/* Footer headings */
.site-footer .widget-title,
.rog-footer-col h4 {
	color: var(--rog-white) !important;
	font-size: var(--rog-text-base);
	font-weight: 600;
	margin-bottom: var(--rog-space-5);
}

.rog-footer-col ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.rog-footer-col li {
	margin-bottom: var(--rog-space-3);
}

.rog-footer-col a,
.site-footer .widget ul li a {
	color: rgba(255, 255, 255, 0.7);
	font-size: var(--rog-text-sm);
	transition: color 0.15s ease;
}

.rog-footer-col a:hover,
.site-footer .widget ul li a:hover {
	color: var(--rog-white);
}

/* Footer bottom */
.ast-small-footer,
.site-below-footer-wrap {
	background: rgba(0, 0, 0, 0.25) !important;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: var(--rog-space-4) 0;
	text-align: center;
	font-size: var(--rog-text-xs);
	color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   16. FORMS (WPForms)
   ========================================================================== */
.wpforms-container .wpforms-form {
	background: transparent;
}

.wpforms-field {
	margin-bottom: var(--rog-space-5);
}

.wpforms-field-label {
	font-weight: 600;
	color: var(--rog-gray-800);
	font-size: var(--rog-text-sm);
	margin-bottom: var(--rog-space-2);
	display: block;
}

.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field input[type="tel"],
.wpforms-field textarea,
.wpforms-field select {
	width: 100%;
	border: 1px solid var(--rog-gray-300) !important;
	border-radius: var(--rog-radius-md) !important;
	padding: var(--rog-space-3) var(--rog-space-4) !important;
	font-size: var(--rog-text-base) !important;
	color: var(--rog-gray-800) !important;
	background: var(--rog-white) !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wpforms-field input:focus,
.wpforms-field textarea:focus,
.wpforms-field select:focus {
	border-color: var(--rog-blue-500) !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(26, 73, 113, 0.1) !important;
}

.wpforms-field textarea {
	min-height: 120px;
	resize: vertical;
}

/* Two column form rows */
.wpforms-field-row {
	display: flex;
	gap: var(--rog-space-4);
}

.wpforms-field-row .wpforms-field {
	flex: 1;
}

.wpforms-submit-container {
	margin-top: var(--rog-space-6);
}

.wpforms-submit-container button {
	background: var(--rog-blue-700) !important;
	color: var(--rog-white) !important;
	padding: var(--rog-space-3) var(--rog-space-8) !important;
	border: none !important;
	border-radius: var(--rog-radius-md) !important;
	font-weight: 600 !important;
	font-size: var(--rog-text-base) !important;
	cursor: pointer;
	transition: background 0.15s ease;
}

.wpforms-submit-container button:hover {
	background: var(--rog-blue-900) !important;
}

/* ==========================================================================
   17. GUTENBERG BLOCK DEFAULTS
   ========================================================================== */
.wp-block-columns {
	gap: var(--rog-space-6);
	margin-bottom: 0;
}

.wp-block-column {
	margin-bottom: 0;
}

.wp-block-separator {
	border-color: var(--rog-gray-200);
	margin: var(--rog-space-8) 0;
}

.wp-block-image {
	margin-bottom: var(--rog-space-6);
}

.wp-block-image img {
	border-radius: var(--rog-radius-md);
}

.wp-block-buttons {
	gap: var(--rog-space-3);
}

/* Constrained layout max-widths */
.entry-content > .wp-block-group[class*="layout-constrained"],
.entry-content > .wp-block-group.wp-block-group {
	max-width: 100%;
}

.entry-content > .wp-block-group > .wp-block-columns {
	max-width: var(--rog-container-xl);
	margin-left: auto;
	margin-right: auto;
}

/* ==========================================================================
   18. UTILITY CLASSES
   ========================================================================== */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-white { color: var(--rog-white) !important; }
.text-muted { color: var(--rog-gray-600) !important; }

.bg-white { background: var(--rog-white) !important; }
.bg-gray { background: var(--rog-gray-50) !important; }

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: var(--rog-space-3) !important; }
.mb-md { margin-bottom: var(--rog-space-6) !important; }
.mb-lg { margin-bottom: var(--rog-space-10) !important; }

.p-0 { padding: 0 !important; }

/* Image utilities */
.rounded-lg img {
	border-radius: var(--rog-radius-lg);
}

/* ==========================================================================
   19. HIDE DEFAULT PAGE TITLES
   ========================================================================== */
.ast-page-builder-template .entry-header,
.page .entry-header {
	display: none;
}

/* ==========================================================================
   20. MOBILE RESPONSIVE
   ========================================================================== */
@media (max-width: 921px) {
	#rog-lang-switcher,
	.rog-lang-switcher {
		top: var(--rog-space-3);
		right: var(--rog-space-3);
		padding: var(--rog-space-1) var(--rog-space-2);
	}
	
	.rog-hero,
	.home .entry-content > .wp-block-group:first-child,
	.page:not(.home) .entry-content > .wp-block-group:first-child {
		padding: var(--rog-space-12) var(--rog-space-5) !important;
	}
	
	.rog-cta-banner {
		padding: var(--rog-space-8) var(--rog-space-6);
		margin: var(--rog-space-8) var(--rog-space-4);
		border-radius: var(--rog-radius-lg);
	}
}

/* Mobile menu */
.ast-mobile-popup-drawer .ast-mobile-popup-inner {
	background: var(--rog-white);
}

.ast-mobile-popup-drawer .menu-item > a {
	color: var(--rog-gray-800);
	padding: var(--rog-space-4) var(--rog-space-5);
	border-bottom: 1px solid var(--rog-gray-100);
	font-size: var(--rog-text-base);
}

.ast-mobile-popup-drawer .menu-item.current-menu-item > a {
	color: var(--rog-blue-700);
	background: var(--rog-blue-50);
}

.ast-mobile-popup-drawer .menu-item.rog-cta-button > a {
	background: var(--rog-red-600);
	color: var(--rog-white) !important;
	margin: var(--rog-space-4) var(--rog-space-5);
	border-radius: var(--rog-radius-md);
	text-align: center;
}

/* Mobile header adjustments */
@media (max-width: 921px) {
	.main-header-bar .ast-container {
		padding-top: var(--rog-space-3);
		padding-bottom: var(--rog-space-3);
	}
	
	.site-logo img,
	.custom-logo {
		max-height: 38px !important;
	}
}

/* Tablet breakpoint */
@media (max-width: 782px) {
	.wp-block-columns.are-vertically-aligned-center {
		gap: var(--rog-space-8);
	}
	
	.rog-section {
		padding-top: var(--rog-space-10);
		padding-bottom: var(--rog-space-10);
	}
	
	.rog-section-header {
		margin-bottom: var(--rog-space-8);
	}
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
	h1, .h1 {
		font-size: var(--rog-text-4xl);
	}
	
	h2, .h2 {
		font-size: var(--rog-text-3xl);
	}
	
	.rog-contact-form-area,
	.rog-contact-sidebar {
		padding: var(--rog-space-6);
	}
}

/* ==========================================================================
   CONTACT INJECTIONS & MAP
   ========================================================================== */
.rog-contact-extra {
	margin-top: var(--rog-space-8);
}

.rog-contact-extra-grid {
	gap: var(--rog-space-6);
	align-items: stretch;
}

.rog-contact-form-injected h3 {
	margin-bottom: var(--rog-space-4);
}

.rog-contact-form-injected .wpforms-field {
	margin-bottom: var(--rog-space-4);
}

.rog-contact-form-injected .wpforms-field input,
.rog-contact-form-injected .wpforms-field textarea,
.rog-contact-form-injected .wpforms-field select {
	width: 100%;
}

.rog-map-embed iframe {
	width: 100%;
	height: 380px;
	border: 0;
	border-radius: var(--rog-radius-lg);
}

@media (max-width: 782px) {
	.rog-map-embed iframe {
		height: 260px;
	}
}

.rog-map-injected {
	padding: var(--rog-space-4);
	border-radius: var(--rog-radius-lg);
	background: var(--rog-gray-50);
}

/* ==========================================================================
   CONTACT DETAILS BIDIRECTIONAL FIXES
   ========================================================================== */
.rog-contact-sidebar a[href^="mailto"],
.rog-contact-sidebar a[href^="tel"],
.rog-contact-sidebar .rog-contact-phone,
.rog-contact-form-area .rog-contact-phone {
	direction: ltr;
	unicode-bidi: isolate;
}

body.rtl .rog-contact-sidebar a[href^="mailto"],
body.rtl .rog-contact-sidebar a[href^="tel"],
body.rtl .rog-contact-sidebar .rog-contact-phone,
body.rtl .rog-contact-form-area .rog-contact-phone {
	text-align: left;
}

/* ==========================================================================
   LANGUAGE SWITCHER POSITION REFINEMENT
   ========================================================================== */
#rog-lang-switcher,
.rog-lang-switcher {
	position: fixed;
	top: auto;
	right: auto;
	left: 20px;
	bottom: 20px;
	z-index: 9999;
	background: rgba(255, 255, 255, 0.95);
	padding: var(--rog-space-2) var(--rog-space-3);
	border-radius: var(--rog-radius-full);
	box-shadow: var(--rog-shadow-md);
	border: 1px solid var(--rog-gray-200);
}

@media (max-width: 921px) {
	#rog-lang-switcher,
	.rog-lang-switcher {
		left: 16px;
		bottom: 16px;
		top: auto;
	}
}

/* ==========================================================================
   LOGO TEXT ADD-ON
   ========================================================================== */
.rog-identity-extra {
	display: inline-flex;
	align-items: center;
	font-size: var(--rog-text-xs);
	color: var(--rog-gray-600);
	margin-left: var(--rog-space-3);
	white-space: nowrap;
}

body.rtl .rog-identity-extra {
	margin-left: 0;
	margin-right: var(--rog-space-3);
}

@media (max-width: 768px) {
	.rog-identity-extra {
		display: none;
	}
}

/* ==========================================================================
   WPForms RTL (Arabic only)
   ========================================================================== */
body.rtl .wpforms-container {
	direction: rtl;
	text-align: right;
}

body.rtl .wpforms-container input[type="email"],
body.rtl .wpforms-container input[type="tel"],
body.rtl .wpforms-container input[type="url"] {
	direction: ltr;
	text-align: left;
	unicode-bidi: isolate;
}

/* ==========================================================================
   RTL phone display fixes
   ========================================================================== */
body.rtl a[href^="tel"],
body.rtl .rog-contact-phone,
body.rtl .wpforms-field-phone input,
body.rtl .rog-phone,
body.rtl .contact-phone {
	direction: ltr;
	unicode-bidi: plaintext;
	display: inline-block;
}

.rog-contact-sidebar a[href^="tel:"],
.rog-contact-sidebar .rog-phone,
.rog-contact-sidebar p:has(a[href^="tel:"]) {
	direction: ltr;
	unicode-bidi: plaintext;
	display: inline-block;
	text-align: left;
}

body.rtl a[href^="tel:"],
body.rtl a[href^="mailto:"] {
	direction: ltr;
	unicode-bidi: plaintext;
	display: inline-block;
}

/* RTL header layout: logo right, CTA left */
body.rtl .main-header-bar .ast-container,
body.rtl .ast-primary-header-bar .site-primary-header-wrap,
body.rtl .ast-primary-header-bar .ast-builder-grid-row {
	flex-direction: row-reverse;
}

body.rtl .ast-builder-menu-1 {
	justify-content: flex-start;
}

/* Product images */
.rog-product-img {
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 12px 0;
	display: block;
	object-fit: cover;
}

.rog-product-figure {
	text-align: center;
	margin: 0 0 var(--rog-space-3);
}

/* Product card spacing when image is inserted */
.entry-content h3.wp-block-heading + .rog-product-img {
	margin-top: 16px;
	margin-bottom: 16px;
}

/* Hide site title text (logo only) */
.site-title,
.site-title a {
	display: none !important;
}
/* ==========================================================================
   RTL Header Layout: Logo RIGHT, Menu CENTER, CTA LEFT
   ========================================================================== */

/* Reverse the main header grid so logo goes to the right */
body.rtl .main-header-bar .ast-container,
body.rtl .ast-primary-header-bar .site-primary-header-wrap {
	flex-direction: row-reverse;
	align-items: center;
	justify-content: space-between;
}

/* Reorder header sections: left becomes right, right becomes left */
body.rtl .ast-primary-header-bar .ast-builder-grid-row {
	flex-direction: row-reverse;
}

body.rtl .site-header-primary-section-left {
	order: 3;
	justify-content: flex-start;
}

body.rtl .site-header-primary-section-center {
	order: 2;
}

body.rtl .site-header-primary-section-right {
	order: 1;
	justify-content: flex-end;
}

/* Menu items flow naturally in RTL; CTA at the end (left visually) */
body.rtl .ast-builder-menu-1,
body.rtl .main-header-bar-navigation {
	justify-content: flex-start;
}

body.rtl .main-header-menu,
body.rtl .ast-nav-menu {
	flex-direction: row-reverse;
}

/* CTA button stays at the far left (end of RTL flow) */
body.rtl .main-header-menu > li.rog-cta-button,
body.rtl .ast-nav-menu > li.rog-cta-button {
	order: -1;
	margin-inline-end: auto;
	margin-inline-start: 0;
}

/* Ensure logo wrapper aligns right in RTL */
body.rtl .ast-site-identity,
body.rtl .site-branding {
	justify-content: flex-end;
	text-align: right;
}

/* RTL mobile header adjustments */
@media (max-width: 921px) {
	body.rtl .ast-mobile-header-wrap .ast-builder-grid-row {
		flex-direction: row-reverse;
	}
	
	body.rtl .ast-mobile-header-wrap .site-branding {
		justify-content: flex-end;
	}
}

/* ==========================================================================
   OpenStreetMap iframe sizing
   ========================================================================== */
iframe[src*="openstreetmap"] {
	width: 100%;
	height: 520px;
	border-radius: var(--rog-radius-lg);
	border: 0;
}

@media (max-width: 782px) {
	iframe[src*="openstreetmap"] {
		height: 420px;
	}
}

/* ==========================================================================
   Language switcher positioning (avoid logo overlap)
   ========================================================================== */
#rog-lang-switcher,
.rog-lang-switcher {
	position: fixed;
	top: auto;
	right: auto;
	left: 20px;
	bottom: 20px;
	z-index: 9999;
	background: rgba(255, 255, 255, 0.95);
	padding: var(--rog-space-2) var(--rog-space-3);
	border-radius: var(--rog-radius-full);
	box-shadow: var(--rog-shadow-md);
	border: 1px solid var(--rog-gray-200);
}

@media (max-width: 921px) {
	#rog-lang-switcher,
	.rog-lang-switcher {
		left: 16px;
		bottom: 16px;
		top: auto;
	}
}