/*
Theme Name: AMS Final Theme
Theme URI: https://aeromarine.sa
Author: AMS
Author URI: https://aeromarine.sa
Description: A bespoke, bilingual (AR/EN) WordPress theme for AeroMarine Solutions. This theme features a modern dark interface with full support for right‑to‑left languages, responsive layouts for mobile, tablet and desktop and uses only the official AeroMarine and AMS logos. It contains a hero section, services overview, about section and a simple call to action.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ams-final
*/

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #021a38;
  color: #ffffff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #021c42;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Remove default image sizes as we now use a text-based logo */

/* Custom text-based logo styles */
.custom-logo-link {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-weight: 700;
  text-decoration: none;
}
.logo-main {
  font-size: 1.8rem;
  color: #5ab0db;
  font-weight: 700;
}
.logo-sub {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Simple arrow icon for the custom logo */
.logo-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #5ab0db;
  margin-right: 0.4rem;
}

/* Burger menu styles */
.nav-toggle {
  display: none;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  padding: 0.5rem;
}
.burger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 4px 0;
  background-color: #ffffff;
  transition: transform 0.2s ease;
}

/* Active language highlight */
.language-toggle a.active-lang {
  font-weight: bold;
  text-decoration: underline;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: #ffffff;
  font-weight: 600;
  transition: color 0.2s ease-in-out;
}

nav a:hover {
  color: #5ab0db;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #ffffff;
}

.language-toggle a {
  color: #ffffff;
  text-decoration: underline;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 6rem 1rem 4rem;
  /* Add top padding to offset the sticky header height */
  padding-top: 7rem;
  background: linear-gradient(180deg, #021c42 0%, #031e40 100%);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero h2 {
  font-size: 1.5rem;
  color: #5ab0db;
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.hero .cta-button {
  display: inline-block;
  background-color: #0066cc;
  color: #ffffff;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: background-color 0.2s ease-in-out;
}

.hero .cta-button:hover {
  background-color: #0055aa;
}

/* Services section */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 4rem 1rem;
  background-color: #01213f;
}

.service-card {
  background-color: #032b56;
  border-radius: 12px;
  padding: 2rem;
  flex: 1 1 calc(33% - 1rem);
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.service-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
  color: #5ab0db;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* About section */
.about {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding: 4rem 1rem;
  background-color: #021c42;
}

.about .column {
  flex: 1 1 45%;
}

.about h2 {
  margin-bottom: 1rem;
  color: #5ab0db;
}

.about p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Contact section */
.contact {
  padding: 4rem 1rem;
  background-color: #01213f;
  text-align: center;
}
.contact h2 {
  margin-bottom: 1rem;
  color: #5ab0db;
  font-size: 1.8rem;
}
.contact p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #ffffff;
}
.contact a {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #021c42;
  color: #ffffff;
  text-align: center;
  padding: 1rem;
}

/* RTL adjustments */
body.rtl {
  direction: rtl;
}

body.rtl header {
  flex-direction: row-reverse;
}

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

body.rtl .service-card,
body.rtl .about .column {
  text-align: right;
}

@media (max-width: 1024px) {
  .service-card {
    flex: 1 1 calc(50% - 1rem);
  }
  .about .column {
    flex: 1 1 100%;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero h2 {
    font-size: 1.2rem;
  }
  .hero .subtitle {
    font-size: 1.6rem;
  }
  nav ul {
    gap: 1rem;
  }
  .service-card {
    flex: 1 1 100%;
  }
  .hero {
    padding-top: 8rem;
  }
}

/* Responsive header adjustments */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  .logo-container {
    margin-bottom: 0.5rem;
  }
  /* Show burger menu and hide nav by default on mobile */
  .burger {
    display: flex;
  }
  nav.static-nav {
    display: none;
    width: 100%;
    margin-top: 0.5rem;
  }
  nav.static-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  nav.static-nav ul li a {
    font-size: 1rem;
  }
  .language-toggle {
    margin-top: 0.5rem;
  }
  /* When nav toggle is checked, show the nav */
  .nav-toggle:checked ~ nav.static-nav {
    display: block;
  }
}