:root {
    --logo-teal: #0A5D62;
    --logo-orange: #FE9726;
/*	
    --primary-teal: #1F7A8C;
    --secondary-orange: #F7B500;
*/
    --primary-teal: #0A5D62;
    --secondary-orange: #FE9726;
    --light-grey: #F5F5F5;
    --dark-text: #333333;
    --white-text: #FFFFFF;
    --header-bg: #FFFFFF;
    --footer-bg: #1F7A8C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-grey);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--header-bg);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-teal);
    text-decoration: none;
}

.logo img {
    height: 65px;
}

.logo .hub {
    color: var(--secondary-orange);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
}

nav ul li a:hover {
	color: var(--secondary-orange);
}
nav ul li a.active {
    color: var(--primary-teal);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background-color: var(--dark-text);
    margin-bottom: 4px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background-color: var(--light-grey);
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding-bottom: 50px;
}
.hero-text {
    flex: 1;
    padding-right: 40px;
}

.hero-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4em;
    color: var(--primary-teal);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-text h1 .highlight {
    color: var(--secondary-orange);
}

.hero-text p {
    font-size: 1.3em;
    color: #555;
    margin-bottom: 40px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-orange);
    color: var(--white-text);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 5px 15px rgba(247, 181, 0, 0.3);
}

.btn:hover {
    background-color: #e0a300;
    transform: translateY(-3px);
}

.vision-mission {
    background-color: #fcfcfc;
    padding: 80px 0;
    text-align: center;
}

.vision-mission h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8em;
    color: var(--primary-teal);
    margin-bottom: 60px;
    position: relative;
}

.vision-mission h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-orange);
    margin: 15px auto 0;
    border-radius: 2px;
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.vm-item {
    background-color: var(--white-text);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vm-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.vm-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    color: var(--primary-teal);
    margin-bottom: 20px;
}

.vm-item p {
    font-size: 1.1em;
    color: #666;
}


/* Section General Styling */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    color: var(--primary-teal);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2em;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* About Us */
.about-us .content-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
}

.about-us .content-row:nth-child(even) {
    flex-direction: row-reverse;
}

.about-us .content-text {
    flex: 1;
    text-align: left;
}

.about-us .content-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2em;
    color: var(--primary-teal);
    margin-bottom: 20px;
}

.about-us .content-text p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 15px;
}

.about-us .content-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-us .content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Solutions Section */
.solutions {
    background-color: var(--white-text);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.solution-card {
    background-color: var(--light-grey);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.solution-card img {
    max-width: 100%;
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}

.solution-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    color: var(--primary-teal);
    margin-bottom: 15px;
    min-height: 2.5em;
}

.solution-card p {
    font-size: 1.1em;
    color: #666;
    flex-grow: 1;
}

/* Snap Order Section */
.snap-order {
    background-color: var(--light-grey);
    padding: 80px 0;
}

.snap-order .section-header {
    margin-bottom: 40px;
}

.snap-order-intro {
    text-align: center;
    margin-bottom: 60px;
}

.snap-order-intro img {
    max-height: 200px;
    margin-bottom: 20px;
}

.snap-order-intro h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    color: var(--primary-teal);
    margin-bottom: 15px;
}

.snap-order-intro p {
    font-size: 1.2em;
    color: #555;
    max-width: 900px;
    margin: 0 auto;
}

.challenge-solution {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.challenge-solution:nth-child(even) {
    flex-direction: row-reverse;
}

.cs-text {
    flex: 1;
}

.cs-text h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    color: var(--primary-teal);
    margin-bottom: 20px;
}

.cs-text p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 15px;
}

.cs-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cs-image img {
    max-width: 100%;
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-item {
    background-color: var(--white-text);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    color: var(--primary-teal);
    margin-bottom: 15px;
    min-height: 3em;
}

.feature-item p {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.feature-item img {
    max-width: 80%;
    width: 80%;
    height: 180px;
    /*object-fit: contain; */
	/*Edited by Abdallah, changed from "contain to inherit */
	object-fit: inherit;
    margin: auto auto 0 auto;
    border-radius: 8px;
}



.next-steps {
    background-color: var(--primary-teal);
    color: var(--white-text);
    padding: 60px 0;
    text-align: center;
    margin-top: 80px;
}

.next-steps h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8em;
    margin-bottom: 40px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.step-icon {
    font-size: 3em;
    margin-bottom: 15px;
    text-align: center;
}

.step-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6em;
    color: var(--secondary-orange);
    margin-bottom: 15px;
}

.step-card p {
    font-size: 1em;
    line-height: 1.6;
}

.next-steps .btn {
    background-color: var(--secondary-orange);
    color: var(--white-text);
    margin-top: 40px;
    box-shadow: none;
}
.next-steps .btn:hover {
    background-color: #e0a300;
}

/* Contact Us */
.contact {
    background-color: var(--white-text);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--light-grey);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--primary-teal);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    background-color: var(--primary-teal);
    color: var(--white-text);
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    width: 100%;
}

.contact-form button:hover {
    background-color: #1a6b7a;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--white-text);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

footer p {
    margin-bottom: 10px;
}

footer .social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

footer .social-links a {
    color: var(--white-text);
    font-size: 1.5em;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

footer .social-links a:hover {
    color: var(--secondary-orange);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}


.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-left { 
    opacity: 0;
    transform: translateX(-50px);
}
.animate-left.is-visible {
    animation: slideInLeft 0.8s ease-out forwards;
}
.animate-right { 
    opacity: 0;
    transform: translateX(50px);
}
.animate-right.is-visible {
    animation: slideInRight 0.8s ease-out forwards;
}



/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }
    .hero-text h1 {
        font-size: 3.5em;
    }
    .about-us .content-row,
    .about-us .content-row:nth-child(even),
    .challenge-solution,
    .challenge-solution:nth-child(even) {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 24px;
    }
    
    .logo img {
        height: 45px;
    }
    
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: var(--header-bg);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    nav.active {
        display: flex;
    }
    nav ul {
        flex-direction: column;
        padding: 20px;
    }
    nav ul li {
        margin: 10px 0;
        text-align: center;
    }
    .menu-toggle {
        display: flex;
    }
    .hero-text h1 {
        font-size: 2.8em;
    }
    .hero-text p {
        font-size: 1.1em;
    }
    .section-header h2 {
        font-size: 2.2em;
    }
    .section-header p {
        font-size: 1em;
    }
    .vm-item, .solution-card, .feature-item, .step-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2em;
    }
    .btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .logo img {
        height: 35px;
    }
    .logo {
        font-size: 20px;
    }
}



/* ChatGPT */
/* --- Scroll-in base states --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: transform 600ms ease, opacity 600ms ease;
  will-change: transform, opacity;
}

.animate-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: transform 600ms ease, opacity 600ms ease;
  will-change: transform, opacity;
}

.animate-right {
  opacity: 0;
  transform: translateX(30px);
  transition: transform 600ms ease, opacity 600ms ease;
  will-change: transform, opacity;
}

/* --- Activated on view --- */
.in-view.animate-on-scroll,
.in-view.animate-left,
.in-view.animate-right {
  opacity: 1;
  transform: translate(0,0);
}

/* prefer-reduced-motion: be polite */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .animate-left,
  .animate-right {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* Make the solutions grid equal-height nicely */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.solution-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.solution-card .card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.solution-card .card-body {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.solution-card .card-title {
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.solution-card .card-text {
  margin-top: auto;
}

.solution-card .card-cta {
  margin-top: 16px;
}

.introducing-snaporder {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}
.introducing-snaporder .intro-text { order: 1; }
.introducing-snaporder .intro-logo { order: 2; text-align: center; }

.introducing-snaporder .intro-logo img {
  max-width: 260px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .introducing-snaporder {
    grid-template-columns: 1fr;
  }
  .introducing-snaporder .intro-logo {
    margin-top: 8px;
  }
  .introducing-snaporder .intro-logo img {
    max-width: 200px;
  }
}

.key-features .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: start;
}

.key-features .feature-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.key-features .feature-card .feature-media {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 112px;
}

.key-features .feature-card .feature-media img {
  max-height: 112px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* added by Abdallah */
.send-email-info{
	color: var(--primary-teal); 
	font-weight: 600; 
	text-decoration: none;
}

.text-highlight {
    color: var(--secondary-orange);
}


/* Added by ChatGPT & Abdallah*/
/* === SnapOrder Enhancements === */
.snaporder-deep-info,
.snaporder-impact,
.drive-thru-metrics {
  background-color: var(--white-text);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin: 40px 0;
}

.snaporder-deep-info h3,
.snaporder-impact h3,
.drive-thru-metrics h3 {
  color: var(--primary-teal);
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
}

.snaporder-impact ul,
.drive-thru-metrics ul {
  list-style: none;
  padding: 0;
}

.snaporder-impact li,
.drive-thru-metrics li {
  font-size: 1.0em;
  margin: 10px 0;
  color: #444;
}

.metrics-comparison {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  text-align: left;
  margin-top: 20px;
}

.metric {
  flex: 1 1 300px;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.metric.before h4 { color: #b30000; }
.metric.after h4 { color: #006600; }

.placeholder-img {
  max-width: 400px;
  opacity: 0.5;
  display: block;
  margin: 20px auto;
}

@media (max-width: 768px) {
  .metrics-comparison { flex-direction: column; }
}

.text-center {
  text-align: center;
}

.placeholder-img2 {
  max-width: 400px;
  opacity: 0.5;
  display: block;
  margin: 20px auto;
  max-width:800px;width:100%;height:auto;border-radius:12px;box-shadow:0 4px 16px rgba(0,0,0,0.1);
}

.figureClass {
	text-align: center;
	margin-top:20px;
}

.figcaptionClass {
	font-size:0.9em;margin-top:8px;color:#444;
}

.section-header2 {
	margin-top: 50px;
}

.contact-email-p {
	margin-top: 15px;
}



/* === AI Arabic Market Image Fix === */
/*
.about-us .content-image img[alt*="Arabic Market"] {
  max-width: 80%;     
  height: auto;
  display: block;
  margin: 0 auto;      
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/
@media (max-width: 992px) {
  .about-us .content-image img[alt*="Arabic Market"] {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .about-us .content-image img[alt*="Arabic Market"] {
    max-width: 90%;
  }
}
*/

.feature-item:not(:has(img)){
	min-height: 200px;
}