:root {
  --navy-black: #05070f;
  --navy-dark: #151b3d;
  --navy-mid: #101733;
  --gold: #e8b44c;
  --gold-bright: #ffd27a;
  --cta-gold: #c9a24b;
  --cta-gold-hover: #ddb862;
  --text-light: #f5f6fa;
  --text-warm: #f0e6d2;
  --text-grey: #d0d0d0;
  --text-muted: #b7bdd1;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--navy-black);
  color: var(--text-light);
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

body.home {
  display: flex;
  flex-direction: column;
}

body.home .hero {
  min-height: 100vh;
  align-items: flex-start;
  padding-top: 8rem;
}

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

/* Navbar */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--navy-dark);
  border-bottom: 1px solid rgba(232, 180, 76, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
}

.logo {
  display: flex;
  direction: ltr;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-light);
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--text-light);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-flag {
  display: inline-block;
  background: none;
  border: 1px solid rgba(232, 180, 76, 0.3);
  border-radius: 4px;
  padding: 0.25rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.lang-flag .fi {
  display: block;
  font-size: 1rem;
  border-radius: 2px;
}

.lang-flag:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* Mobile nav menu */

.nav-toggle {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12vw;
  background-image: url('images/aldabaran_camilo_full_banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 0 5vw 0 1.5rem;
  text-align: left;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin: 0 0 1rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  font-size: 0.95rem;
  font-weight: 400;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-cta-line {
  position: absolute;
  bottom: 15vh;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.75);
  padding: 0 2rem;
  z-index: 2;
}

.cta-button {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 32px;
  background-color: var(--cta-gold);
  color: var(--navy-black);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-shadow: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  background-color: var(--cta-gold-hover);
  transform: scale(1.03);
}

/* Homepage — What We Do section */

.what-we-do {
  position: relative;
  background-image: linear-gradient(180deg, rgba(5, 7, 15, 0.86), rgba(5, 7, 15, 0.8)), url('images/aldabaran_camilo_full_banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4.5rem 1.5rem;
}

.what-we-do .section-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.what-we-do h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--gold);
  margin: 0 0 1.5rem;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.what-we-do p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-grey);
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.what-we-do p:last-child {
  margin-bottom: 0;
}

/* About page — reuses the hero/hero-content classes so the text sits in the
   exact same position (right of the star) and style as the homepage hero. */

.about-hero {
  min-height: 100vh;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.about-content p {
  line-height: 1.75;
}

.about-content p:not(:last-child) {
  margin-bottom: 1.25rem;
}

/* Contact page */

.contact-info {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-size: 1rem;
  transition: opacity 0.2s ease;
}

.contact-info a:hover,
.contact-info a:focus-visible {
  opacity: 0.8;
}

.contact-info .ti {
  font-size: 1.3rem;
  color: var(--gold);
}

.contact-form {
  margin: 2.5rem auto 0;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

.form-group label .required {
  color: #f87171;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 180, 76, 0.3);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background-color: rgba(255, 255, 255, 0.1);
}

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

.contact-form .cta-button {
  align-self: flex-start;
  font-family: inherit;
}

.contact-form input.input-error,
.contact-form textarea.input-error {
  border-color: #ff6b6b;
}

.field-error {
  display: block;
  min-height: 1rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #ff8a8a;
}

.form-banner {
  padding: 0.75rem 1rem;
  border: 1px solid #ff6b6b;
  border-radius: 6px;
  background-color: rgba(255, 107, 107, 0.12);
  color: #ff8a8a;
  font-size: 0.9rem;
}

.form-banner[hidden] {
  display: none;
}

/* Content pages (Privacy Policy, Terms of Use, etc.) */

.content-section {
  background-color: var(--navy-black);
  padding: 4rem 1.5rem 5rem;
}

.content-body {
  max-width: 760px;
  margin: 0 auto;
}

.content-body h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.5rem;
}

.content-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 3rem;
}

.content-body h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  margin: 2.5rem 0 0.65rem;
  letter-spacing: 0.2px;
}

.content-body p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-light);
  margin: 0;
}

/* Footer */

.site-footer {
  flex: 0 0 auto;
  background-color: var(--navy-dark);
  border-top: 1px solid rgba(232, 180, 76, 0.2);
  padding: 3rem 1.5rem 2rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-logo {
  display: inline-flex;
  direction: ltr;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-light);
}

.footer-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  object-fit: cover;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.footer-links,
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-contact-list a:hover {
  color: var(--gold);
}

.footer-contact-list .ti {
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
}

.footer-divider {
  max-width: 1200px;
  margin: 2.5rem auto 1.5rem;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* RTL (Arabic) layout overrides */

[dir="rtl"] .hero {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 12vw;
}

[dir="rtl"] .hero-content {
  padding: 0 1.5rem 0 5vw;
  text-align: right;
}

@media (max-width: 720px) {
  [dir="rtl"] .hero {
    justify-content: center;
    padding-left: 0;
  }

  [dir="rtl"] .hero-content {
    text-align: center;
    padding: 0 1.5rem;
  }
}

/* Responsive */

@media (max-width: 720px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-container {
    flex-wrap: wrap;
    row-gap: 0.6rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
  }

  .hero {
    justify-content: center;
    padding-right: 0;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    padding: 0 1.5rem;
  }
}

@media (max-width: 420px) {
  .nav-links {
    gap: 0.8rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }
}
