/* =============================================
   SMARTMAR – Global Design System
   "Defining Maritime Excellence"
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Variables ─────────────────────────── */
:root {
  /* Brand Colors – Light Blue / Teal palette */
  --sky-50:   #EEF7FD;
  --sky-100:  #D6ECFB;
  --sky-200:  #B4D8F5;
  --sky-300:  #8ac5f2;          /* primary light blue */
  --sky-400:  #5AABEC;
  --sky-500:  #2A8FE0;
  --teal-300: #8af2eb;          /* primary light teal */
  --teal-400: #47DDD6;
  --teal-500: #00C2B8;
  --accent:   #009EA0;          /* deep teal – SMARTMAR brand */
  --accent-glow: rgba(0,158,160,0.22);

  /* Navy (kept for text / nav contrast) */
  --navy-900: #0C1C38;
  --navy-800: #122840;
  --navy-700: #1A3860;
  --navy-600: #22507E;

  /* Greys */
  --grey-900: #1E293B;
  --grey-700: #374151;
  --grey-500: #6B7280;
  --grey-400: #9CA3AF;
  --grey-200: #DDE8F4;
  --grey-50:  #F4F9FE;

  /* Text – dark-on-light for body; light aliases kept for nav/hero/footer */
  --text-primary:   #0C2040;
  --text-secondary: #2A4A6A;
  --text-muted:     #5A7A9A;
  --text-dark:      #0C1C38;

  /* Light text aliases (nav / hero / footer – dark backgrounds) */
  --text-light:       #F0F8FF;
  --text-light-sec:   #C8E4F8;
  --text-light-muted: #90BCDC;

  /* Section backgrounds – light & airy */
  --section-bg:       #EEF7FD;
  --section-bg-alt:   #E0F0FB;
  --section-bg-white: #FFFFFF;

  /* Surfaces – light glass */
  --surface-glass:  rgba(138,197,242,0.12);
  --surface-card:   rgba(255,255,255,0.75);
  --border-glass:   rgba(138,197,242,0.35);

  /* Typography */
  --font-display: 'Times New Roman', Times, serif;
  --font-body:    'Times New Roman', Times, serif;

  /* Spacing */
  --section-pad:  5rem 2rem;
  --card-radius:  1rem;
  --card-radius-lg: 1.5rem;

  /* Shadows */
  --shadow-card:  0 8px 32px rgba(10,60,120,0.10);
  --shadow-glow:  0 0 40px rgba(138,197,242,0.30);

  /* Transitions */
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--section-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* RTL support */
[dir="rtl"] {
  text-align: right;
}
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .dropdown-menu { left: auto; right: 0; }

/* ── Typography ────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { font-size: 1rem; color: var(--text-secondary); line-height: 1.75; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--sky-500); }

img { max-width: 100%; display: block; }

/* ── Utilities ─────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.75;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--sky-400), var(--accent));
  color: white;
  box-shadow: 0 4px 20px rgba(0,158,160,0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,158,160,0.45);
  color: white;
}

.btn-outline {
  background: rgba(255,255,255,0.6);
  border: 2px solid var(--border-glass);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── Glass Card ────────────────────────────── */
.glass-card {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--card-radius);
}

/* ── Section Divider ───────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
  margin: 0;
}

/* ── Scroll Reveal ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--grey-200); }
::-webkit-scrollbar-thumb { background: var(--sky-400); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Responsive breakpoints ────────────────── */
@media (max-width: 768px) {
  :root { --section-pad: 3rem 1.25rem; }
  .container { padding: 0 1.25rem; }
}

/* ── Page Footer ───────────────────────────── */
.site-footer {
  background: var(--navy-800);
  border-top: 1px solid rgba(138,197,242,0.20);
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-mark {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--sky-300), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: white;
}

.footer-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-light);
}

.footer-tagline-small {
  font-size: 0.75rem;
  color: var(--text-light-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-light-muted);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(148,163,184,0.65);
}

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
