/* ==================================================
   2. CSS VARIABLES - GOOGLE COLORS (REQUIREMENT)
   ================================================== */
:root {
	/* Brand colors from Midad Inks logo */
	--brand-blue: #0B3C6E;     /* Deep ink/navy blue */
	--brand-magenta: #E30A8C;  /* Vivid magenta/pink */
	--brand-gold: #FDB913;     /* Warm golden yellow */
	--brand-grey: #5f6368;     /* Neutral grey */

    /* Google Colors (Primary Requirement) */
    --google-blue: #4285f4;
    --google-red: #ea4335;
    --google-yellow: #fbbc05;
    --google-green: #34a853;
    --google-grey: #9aa0a6;
    --google-dark-grey: #202124;
    
    /* Extended Google-based palette */
	--primary-color: var(--brand-blue);
	--accent-color: var(--brand-magenta);
    --warning-color: var(--google-yellow);
    --danger-color: var(--google-red);
    
    /* Neutral colors based on Google grey */
    --white: #ffffff;
    --background-light: #f8f9fa;
    --text-dark: var(--google-dark-grey);
    --text-light: #5f6368;
    --border-light: #e8eaed;
    
    /* Google Fonts (Requirement) */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Layout Variables */
    --container-padding: 20px;
    --section-padding: 80px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
}


/* ===== Font metric overrides to eliminate text reflow ===== */
@font-face {
  font-family: "Inter Local Fallback";
  src: local("Arial");
  size-adjust: 107%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
  font-weight: 300 900;
  font-style: normal;
}
@font-face {
  font-family: "Roboto Local Fallback";
  src: local("Arial");
  size-adjust: 103%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
  font-weight: 300 900;
  font-style: normal;
}
@font-face{
  font-family:"Inter";
  src: local("Inter");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap; /* prevents FOIT */
}
/* Apply fallbacks right after your variables */
:root{
  --font-primary: 'Inter', "Inter Local Fallback", -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Inter', "Inter Local Fallback", -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-secondary: 'Roboto', "Roboto Local Fallback", -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}



/* ==================================================
   3. RESET & BASE STYLES - OPTIMIZED FOR CLS
   ================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    font-weight: 400;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* RTL/LTR Support — make the ROOT scroll container own the direction */
html { direction: ltr; } 
html[dir="rtl"] { direction: rtl; }          /* default */
body { text-align: left; }
body.rtl { text-align: right; }    /* keep text alignment switch */

/* Font metric stabilization to reduce CLS */
html { font-size-adjust: 0.52; }          /* tuned for Inter */
body { font-family: var(--font-primary); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-size-adjust: 0.52;                 /* Inter */
}

/* Where you explicitly use Roboto for UI text, stabilize to ~0.50 */
:root { --fs-adjust-roboto: 0.5; }
.form-label, .cta-button, nav a, .detail-list li, .metric-badge {
  font-size-adjust: 0.50;
}


/* ==================================================
   4. TYPOGRAPHY - SEO OPTIMIZED HIERARCHY
   ================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--brand-magenta);
}

a:focus {
    outline: 2px solid var(--google-blue);
    outline-offset: 2px;
}
.animate-in{ will-change: transform, opacity; }
/* ==================================================
   5. LAYOUT COMPONENTS
   ================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-alt {
    background: var(--background-light);
}

.section-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-dark);
    position: relative;
    font-weight: 600;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-magenta), var(--brand-gold));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ==================================================
   6. HEADER & NAVIGATION
   ================================================== */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.logo img {
    height: 60px;
    width: auto;
	aspect-ratio: 258 / 108;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.logo h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav a {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 25px;
    transition: var(--transition);
}

nav a:hover, 
nav a.active,
nav a:focus {
    background: var(--brand-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.lang-switcher {
    display: flex;
    gap: 5px;
}

.lang-switcher a {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 2px solid var(--border-light);
    background: var(--background-light);
}

.lang-switcher a.active {
    background: var(--brand-blue);
    color: var(--white);
    border-color: var(--brand-blue);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    color: var(--text-dark);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--google-blue);
    outline-offset: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] {
    background: var(--background-light);
}

/* ==================================================
   7. BREADCRUMB NAVIGATION
   ================================================== */
.breadcrumb-nav {
    background: var(--background-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 10px;
    color: var(--text-light);
    font-weight: bold;
}

.breadcrumb a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--google-red);
    text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
    color: var(--text-dark);
    font-weight: 500;
}

/* ==================================================
   HERO SECTIONS - محدث لاستخدام الصور المُحملة مسبقاً
   ================================================== */
.hero {
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
	min-height: clamp(420px, 60vh, 640px);  /* keeps hero height steady */
	background: linear-gradient(135deg, rgba(66,133,244,0.15) 0%, rgba(52,168,83,0.15) 100%); /* subtle fallback */
}
/* The responsive LCP image behaves like a CSS cover background */
.hero-picture,
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-bg {
  object-fit: cover;         /* key: cover like background-size: cover */
  object-position: center;
  z-index: 0;
}
/* Make hero height + action row stable from first paint */
.hero { min-height: clamp(420px, 60vh, 640px); }              /* already present in your newer file */
.hero-actions, .section-actions { min-height: 56px; }         /* 1 button row */
.hero h1 { margin-bottom: 24px; }
.hero h1 {
  font-family: var(--font-display);   /* uses 'Inter' + "Inter Local Fallback" */
  line-height: 1.1;
  /* Reserve space so the block height won’t change if metrics differ slightly */
  min-height: calc(2 * 1lh);          /* ~two lines at current line-height */
}

.hero p {
  font-family: var(--font-primary);
}

.product-hero h1 {
  font-family: var(--font-display);
}


/* نمط بديل: Hero بصورة خلفية فقط للصفحة الرئيسية */

/* الباقي يبقى كما هو */
.hero::before {
    content: '';
    position: absolute;
	inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><rect width="11" height="11" x="10" y="10" ry="1" fill="url(%23a)"/></svg>') repeat;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--white);
}

.hero p {
    font-size: 1.3rem;
    max-width: 100%;
    margin: 0 auto;
    opacity: 0.95;
    color: var(--white);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}
.hero-actions,
.section-actions {
  min-height: 56px;     /* one button row so JS append doesn’t push content */
}


/* ==================================================
   10. BUTTONS & CTAs
   ================================================== */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 25px;
    font-family: var(--font-primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.cta-button.primary {
    background: var(--white);
    color: var(--brand-blue);
}

.cta-button.primary:hover {
    background: var(--brand-blue);
    color: var(--white);
    border-color: var(--white);
}

.cta-button.secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.cta-button.secondary:hover {
    background: var(--white);
    color: var(--brand-blue);
}

/* ==================================================
   11. PRODUCT GRIDS & CARDS
   ================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--google-blue);
    padding: 25px;
    text-align: center;
	cursor: pointer;
    transform: translateZ(0);
    will-change: transform;
}
.product-card-button {
    background: none;
    border: none;
    padding: 0;
    width: 100%;
    text-align: inherit;
    font: inherit;
    color: inherit;
    cursor: pointer;
    display: block;
}

.product-card-button:focus {
    outline: 2px solid var(--google-blue);
    outline-offset: 2px;
}
/* Specific product card colors based on product type */
.product-card.packaging {
    border-top-color: #08A9CB;
}

.product-card.can-coating {
    border-top-color: #FDB913;
}

.product-card.radiation-curing {
    border-top-color: #E30A8C;
}

/* Fallback for generic product cards */
.product-card:nth-child(1) {
    border-top-color: #08A9CB; /* Packaging Inks */
}

.product-card:nth-child(2) {
    border-top-color: #FDB913; /* Can Coating */
}

.product-card:nth-child(3) {
    border-top-color: #E30A8C; /* Radiation Curing */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--brand-blue);
}

.product-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.product-card-link {
    color: var(--brand-blue);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.product-card-link:hover {
    color: var(--brand-magenta);
}

/* Share Button */
.share-button {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: 2px solid var(--white);
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-button:hover {
    background: var(--white);
    color: var(--brand-blue);
}

/* Download Section */
.download-section {
    text-align: center;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.05), rgba(52, 168, 83, 0.05));
    padding: 40px;
    border-radius: 15px;
    border: 2px solid rgba(66, 133, 244, 0.1);
}

.download-actions {
    margin-top: 30px;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-magenta));
    color: var(--white);
    padding: 18px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(66, 133, 244, 0.4);
}

.download-icon {
    font-size: 1.3rem;
}

.download-description {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.back-to-products {
    text-align: center;
}

.back-button {
    background: var(--brand-blue);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.back-button:hover {
    background: var(--brand-magenta);
    transform: translateY(-2px);
	color: var(--white);
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list li {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    padding-block: 8px;
  padding-inline-start: 20px;      /* logical, direction-aware */
  position: relative;
    color: var(--text-dark);
    font-weight: 400;
    border-bottom: 1px solid rgba(232, 234, 237, 0.3);
}



.detail-list li:last-child {
    border-bottom: none;
}

.detail-list li::before {
    content: '▸';
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 0; 
    color: var(--google-red);
    font-weight: bold;
    font-size: 1rem;
}

.rtl .detail-list li::before {
   
    content: '◂';
}
/* ==================================================
   12. CONTENT SECTIONS
   ================================================== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.product-content {
    padding: 60px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2,
.content-section h3 {
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    padding-left: 25px;
}

.features-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-magenta);
    font-weight: bold;
}

.technical-section {
    background: var(--background-light);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 30px;
}

/* ==================================================
   13. INDUSTRIES 
   ================================================== */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.industry-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    transform: translateZ(0);
    will-change: transform;
}

.industry-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.industry-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--brand-blue);
}

/* ==================================================
   SUSTAINABILITY SECTION STYLES - Replace Certifications Styles
   ================================================== */

.sustainability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.sustainability-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    transform: translateZ(0);
    will-change: transform;
    position: relative;
    overflow: hidden;
}

.sustainability-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-magenta));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.sustainability-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.sustainability-item:hover::before {
    transform: scaleX(1);
}

.sustainability-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.sustainability-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--brand-blue);
    font-weight: 600;
    line-height: 1.3;
}

.sustainability-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.sustainability-metrics {
    margin-top: 20px;
}

.metric-badge {
    display: inline-block;
    /*background: linear-gradient(135deg, var(--brand-blue), var(--brand-magenta));*/
    color: var(--brand-magenta);
    padding: 6px 16px;
    /*border-radius: 20px;*/
    font-size: 1rem;
    font-weight: 600;
    /*box-shadow: 0 2px 8px rgba(52, 168, 83, 0.3);*/
}

/* Sustainability CTA */
.sustainability-cta {
    background: linear-gradient(135deg, var(--brand-magenta) 0%, var(--brand-blue) 100%);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    margin-top: 50px;
    color: var(--white);
}

.sustainability-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.sustainability-cta p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.sustainability-cta .cta-button {
    background: var(--white);
    color: var(--brand-blue);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sustainability-cta .cta-button:hover {
    background: var(--background-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Section subtitle styling */
.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 10px;
    margin-bottom: 20px;
    font-style: italic;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sustainability-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sustainability-item {
        padding: 25px 20px;
    }
    
    .sustainability-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .sustainability-item h3 {
        font-size: 1.2rem;
    }
    
    .sustainability-cta {
        padding: 30px 20px;
        margin-top: 40px;
    }
    
    .sustainability-cta h3 {
        font-size: 1.5rem;
    }
    
    .sustainability-cta p {
        font-size: 1rem;
    }
}

/* RTL Support */
.rtl .sustainability-item::before {
    transform-origin: right;
}

.rtl .metric-badge {
    font-family: var(--font-primary);
}

/* Accessibility Enhancements
.sustainability-item:focus {
    outline: 3px solid var(--google-blue);
    outline-offset: 2px;
} */

.sustainability-item:focus-visible {
    outline: 3px solid var(--google-blue);
    outline-offset: 2px;
}

/* Animation for scroll reveal */
@keyframes sustainabilityFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sustainability-item.animate-in {
    animation: sustainabilityFadeIn 0.6s ease-out forwards;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .sustainability-item {
        border: 2px solid var(--text-dark);
    }
    
    .metric-badge {
        background: var(--text-dark);
        border: 2px solid var(--white);
    }
}
/* ==================================================
   14. QUOTE SECTIONS
   ================================================== */
.quote-section {
    background: linear-gradient(135deg, var(--brand-magenta) 0%, var(--brand-blue) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.quote-section blockquote {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-style: italic;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.5;
    font-weight: 500;
}

/* ==================================================
   15. CONTACT FORMS
   ================================================== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
	
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    background: var(--brand-blue);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.form-submit:hover {
    background: var(--brand-magenta);
    transform: translateY(-2px);
}

.form-help {
    color: #3c4043; /* Changed from light grey to dark grey for better contrast */
    font-size: 0.875rem;
    margin-top: 4px;
    display: block;
    font-weight: 400;
    line-height: 1.4;
}

* Form Error States */
.form-input.error,
.form-textarea.error {
    border-color: #c5221f; /* Darker red for better contrast */
    box-shadow: 0 0 0 2px rgba(197, 34, 31, 0.2);
}

/* Form Error Text - High Contrast Red */
.form-error {
    color: #c5221f; /* Darker red for better contrast */
    font-size: 0.875rem;
    margin-top: 4px;
    min-height: 1.2rem;
    display: block;
    font-weight: 500;;
}

/* Character Counter - Improved Contrast */
.char-counter {
    color: #3c4043; /* Darker grey for better contrast */
    font-size: 0.8rem;
    margin-top: 4px;
    text-align: right;
    display: block;
    font-family: var(--font-secondary);
}

[dir="rtl"] .char-counter {
    text-align: left;
}

/* Form Submit Button States */
.form-submit {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 48px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.form-submit:disabled {
    background: var(--google-grey);
    color: var(--white);
    cursor: not-allowed;
    transform: none;
}

.form-submit:disabled:hover {
    background: var(--google-grey);
    transform: none;
}

/* Loading State */
.form-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Add this to your style.css file */
.honeypot-field {
    position: absolute !important;
    clip: rect(0 0 0 0) !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    border: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Alert Styling */
.alert-success,
.alert-error {
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: var(--border-radius);
    font-weight: 500;
    border-left: 4px solid;
}

/* Success/Error Alerts - Improved Contrast */
.alert-success {
    background: rgba(27, 94, 32, 0.1); /* Darker green background */
    color: #1b5e20; /* Dark green text for better contrast */
    border-color: #2e7d32;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: var(--border-radius);
    font-weight: 500;
    border-left: 4px solid #2e7d32;
}

.alert-error {
    background: rgba(197, 34, 31, 0.1); /* Darker red background */
    color: #c5221f; /* Dark red text for better contrast */
    border-color: #c5221f;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: var(--border-radius);
    font-weight: 500;
    border-left: 4px solid #c5221f;
}

[dir="rtl"] .alert-success,
[dir="rtl"] .alert-error {
    border-left: none;
    border-right: 4px solid;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .form-help {
        color: #000000; /* Pure black in high contrast mode */
        font-weight: 600;
    }
}

/* Mobile Form Optimizations */
@media (max-width: 768px) {
    .char-counter {
        font-size: 0.75rem;
    }
	
  .rtl,
  .rtl body,
  .rtl header,
  .rtl .container,
  .rtl section,
  .rtl footer {
    overflow-x: clip;
	max-width: 100%;
    box-sizing: border-box;
  }

/* Fix container positioning in RTL */
    .rtl .container {
        margin-left: auto;
        margin-right: auto;
        padding-left: var(--container-padding);
        padding-right: var(--container-padding);
    }
	
	 /* Ensure hero section doesn't overflow */
    .rtl .hero-content {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Fix mobile menu positioning */
    .rtl nav ul {
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .form-submit {
        transition: none;
    }
    
    .form-submit.loading::after {
        animation: none;
        border: 2px solid var(--white);
        border-radius: 50%;
    }
}

/* Ensure Text Selection is Visible */
.form-help::selection {
    background: #1565c0;
    color: #ffffff;
}

/* Print Styles - High Contrast */
@media print {
    .form-help {
        color: #000000 !important;
        background: transparent !important;
    }
}

/* ==================================================
   16. FOOTER
   ================================================== */
footer {
    background: var(--google-dark-grey);
    color: var(--white);
    padding: 50px 0 20px;
    text-align: center;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

footer h3 {
    color: var(--white);
    margin-bottom: 20px;
	font-size: 1.4rem;
    font-weight: 600;
}

footer p, 
footer a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
	line-height: 1.6;
    margin-bottom: 10px;
}

footer a {
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--white);
	text-decoration: underline;
}

footer strong {
    color: var(--white);
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}
/* RTL Support for Footer */
[dir="rtl"] footer {
    text-align: center; /* Keep centered for RTL */
}

[dir="rtl"] footer .container {
    direction: rtl;
}
/* Responsive Design */
@media (max-width: 768px) {
    footer {
        padding: 40px 0 20px;
        text-align: center;
    }
    
    footer .container {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 20px;
    }
    
    footer h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .footer-bottom {
        padding-top: 15px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 30px 0 15px;
    }
    
    footer h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    footer p {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
    }
}

/* Ensure proper spacing and alignment consistent with style.css */
footer div:first-child {
    /* Company info section */
}

footer div:nth-child(2) {
    /* Contact info section */
}

footer div:last-child {
    /* Markets section */
}
/* ==================================================
   17. RTL SUPPORT
   ================================================== */
.rtl .header-content {
    flex-direction: row-reverse;
}

.rtl nav ul {
    flex-direction: row-reverse;
}

.rtl .breadcrumb {
    flex-direction: row-reverse;
}

.rtl .breadcrumb li:not(:last-child)::after {
    content: '‹';
    margin-left: 0;
    margin-right: 10px;
}

.rtl .product-actions {
    flex-direction: row-reverse;
}

.rtl .hero-actions {
    flex-direction: row-reverse;
}

.rtl .form-group input,
.rtl .form-group textarea {
    text-align: right;
}

.rtl .lang-switcher {
    margin-right: 20px;
}

.ltr .lang-switcher {
    margin-left: 20px;
}

/* ==================================================
   18. UTILITY CLASSES
   ================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden { display: none; }
.visible { display: block; }

.google-blue { color: var(--brand-blue); }
.google-red { color: var(--google-red); }
.google-yellow { color: var(--google-yellow); }
.google-green { color: var(--brand-magenta); }

.bg-google-blue { background-color: var(--brand-blue); }
.bg-google-red { background-color: var(--google-red); }
.bg-google-yellow { background-color: var(--google-yellow); }
.bg-google-green { background-color: var(--brand-magenta); }

/* ==================================================
   19. PERFORMANCE OPTIMIZATIONS
   ================================================== */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

.hero img,
.logo img,
.product-image img:first-child {
    loading: eager;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==================================================
   20. ANIMATION CLASSES
   ================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide {
    animation: slideInFromLeft 0.6s ease-out;
}

/* ==================================================
   21. RESPONSIVE DESIGN
   ================================================== */
/* Update the mobile responsive section in style.css */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --container-padding: 15px;
    }
    
    /* Mobile Header Layout - Logo on top, menu button below */
    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }
    
    .logo {
        width: 100%;
        justify-content: center;
        order: 1;
    }
    
    nav {
        width: 100%;
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .mobile-menu-toggle {
        display: block;
        margin: 0 auto;
        padding: 12px 20px;
        background: var(--background-light);
        border: 2px solid var(--border-light);
        border-radius: 25px;
        font-size: 1.2rem;
        color: var(--text-dark);
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .mobile-menu-toggle:hover {
        background: var(--brand-blue);
        color: var(--white);
        border-color: var(--brand-blue);
    }
    
    .mobile-menu-toggle:focus {
        outline: 2px solid var(--google-blue);
        outline-offset: 2px;
    }
    
    .mobile-menu-toggle[aria-expanded="true"] {
        background: var(--brand-blue);
        color: var(--white);
        border-color: var(--brand-blue);
    }
    
    nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    inset-inline: 0;                 /* replaces left/right to respect RTL/LTR */
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 20px;
    z-index: 1000;
    gap: 10px;
    max-width: 100%;                 /* avoid 100vw math and prevent overflow */
    box-sizing: border-box;
  }

  .rtl nav ul {
    inset-inline: 0;                 /* keep symmetry in RTL */
    width: auto;
    text-align: right;
  }

  nav ul.mobile-menu-open { display: flex; }
  nav ul li { width: 100%; text-align: center; }
    
    
    
    nav ul li a {
        display: block;
        width: 100%;
        padding: 12px 20px;
        border-radius: 25px;
        transition: all 0.3s ease;
    }
    
    /* Language switcher adjustments for mobile */
    .lang-switcher {
        justify-content: center;
        width: 100%;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--border-light);
    }
    
    /* Other mobile adjustments remain the same */
    .hero {
        padding: 60px 0;
    }

	.hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .industries-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .certifications-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .hero-actions,
    .product-actions {
        flex-direction: column;
        align-items: center;
    }
    
    footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Additional mobile refinements for smaller screens */
@media (max-width: 480px) {
    .header-content {
        gap: 10px;
    }
    
    .logo img {
    height: auto;        /* don’t force both sides */
    max-height: 50px;    /* cap height */
    width: auto;
    max-width: 180px;    /* cap width (no distortion) */
    aspect-ratio: 258 / 108;
    }
    
    .mobile-menu-toggle {
        padding: 10px 18px;
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .contact-form {
        padding: 25px;
    }
}

/* RTL support for mobile layout */
.rtl .header-content {
    flex-direction: column;
}

.rtl nav ul {
    flex-direction: column;
}
/* ==================================================
   22. PRINT STYLES
   ================================================== */
@media print {
    .hero,
    .quote-section,
    nav,
    .mobile-menu-toggle,
    .product-actions,
    .hero-actions {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .product-card,
    .industry-item {
        page-break-inside: avoid;
        border: 1px solid #000;
        margin-bottom: 10pt;
    }
}

/* ==================================================
   23. DARK MODE SUPPORT (MANUAL TOGGLE)
   ================================================== */
body.dark-mode {
    --background-light: #1f1f1f;
    --text-dark: #e8eaed;
    --text-light: #9aa0a6;
    --border-light: #3c4043;
    --white: #202124;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #0B3C6E 0%, #E30A8C 100%);
}

body.dark-mode .product-hero {
    background: linear-gradient(135deg, #0B3C6E 0%, #E30A8C 100%);
}

body.dark-mode .quote-section {
    background: linear-gradient(135deg, #137333 0%, #1a73e8 100%);
}
/* ==================================================
   DESKTOP RTL NAVIGATION - ENSURE HORIZONTAL
   ================================================== */

/* Ensure desktop RTL navigation stays horizontal */
@media (min-width: 769px) {
    .rtl .header-content {
        flex-direction: row !important; /* Force row on desktop for RTL */
        justify-content: space-between;
    }
    
    .rtl .logo {
        order: 0;
        width: auto !important; /* Normal width on desktop for RTL */
        justify-content: flex-start;
    }
    
    .rtl nav {
        order: 0;
        width: auto !important; /* Normal width on desktop for RTL */
        flex-direction: row !important; /* Force row on desktop for RTL */
    }
    
    .rtl nav ul {
        flex-direction: row !important; /* Force row on desktop for RTL */
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 30px;
        margin: 0;
		width: auto;
    }
    
    .rtl nav ul li {
        width: auto;
        text-align: inherit;
    }
    
    .rtl nav ul li a {
        width: auto;
        padding: 8px 16px;
    }
    
    /* Hide mobile menu toggle on desktop */
    .mobile-menu-toggle {
        display: none !important;
    }
}
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.fonts-loaded body {
    font-family: var(--font-primary);
}
.share-notification {
    font-family: var(--font-primary);
    font-weight: 500;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.share-button::before {
    content: "↗";
    font-size: 1.1em;
}

.share-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}



/* Additional RTL mobile safety rules */
@media (max-width: 768px) {
    html[dir="rtl"] body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    html[dir="rtl"] .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding-left: var(--container-padding);
        padding-right: var(--container-padding);
        box-sizing: border-box;
    }
}

/* ===== CLS hardening for hero and section titles ===== */
.hero h1{
  /* already uses Inter + fallback; reserve constant block height */
  min-height: calc(2 * 1lh); /* ~2 text lines */
}
.hero p{
  min-height: 1lh;           /* ~1 line */
}

.section-title{
  /* keep decorative underline but reserve block height even before font swap */
  min-height: calc(1lh + 24px); /* title line + underline spacing */
}

/* Make the actions row truly fixed-height even before JS injects buttons */
.hero-actions,
.section-actions{
  min-height: 56px; /* 1 row of buttons */
}

/* Images in cards: lock aspect to avoid reflow while loading */
.product-card img{
  aspect-ratio: 16 / 9;      /* stable box; you already set height:200px */
  object-fit: cover;
}
