@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&display=swap');

/* ============================================
   SARAA Financial Services — Design System (Editorial)
   ============================================ */

:root {
  /* Color Palette */
  --primary: #0C1A30;       /* Deep Navy */
  --primary-light: #1A2E50;
  --accent: #C9A84C;        /* Muted Gold */
  --accent-light: #DFCD98;
  --accent-hover: #B5933C;
  --text-dark: #1E293B;
  --text-body: #475569;
  --text-muted: #64748B;
  --bg-white: #FFFFFF;
  --bg-offwhite: #F8FAFC;
  --border-light: #E2E8F0;
  --border-dark: #334155;
  --success: #22C55E;
  --danger: #EF4444;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  /* Layout */
  --container-max: 1280px;
  --section-pad-y: 100px;
  --section-pad-y-mobile: 60px;
  
  /* Transitions & Shadows */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ============================================
   CSS Reset & Base
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent horizontal scrollbar */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-dark);
  font-weight: 500;
}

h1 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); letter-spacing: -0.01em; line-height: 1.2; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; font-family: var(--font-sans); font-weight: 600; }

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Layout Utilities
   ============================================ */
.container {
  width: 90%;
  max-width: 1140px; /* Reduced width to match navbar in image */
  margin: 0 auto;
}

.section {
  padding: var(--section-pad-y) 0;
}

.bg-dark {
  background-color: var(--primary);
  color: var(--bg-offwhite);
}

.bg-dark h2, .bg-dark h3, .bg-dark p {
  color: var(--bg-white);
}

.bg-light {
  background-color: var(--bg-offwhite);
}

.text-accent {
  color: var(--accent);
}

.font-italic {
  font-style: italic;
}

/* ============================================
   Typography Utilities
   ============================================ */
.section-subtitle {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 3rem;
  max-width: 800px;
}

.section-title.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Buttons & Links
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--bg-white);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--bg-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--bg-white);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
}

.link-arrow i {
  transition: transform 0.2s;
  font-size: 0.8rem;
}

.link-arrow:hover {
  color: var(--accent);
}

.link-arrow:hover i {
  transform: translateX(4px);
}

.bg-dark .link-arrow {
  color: var(--bg-white);
}

.bg-dark .link-arrow:hover {
  color: var(--accent);
}

/* ============================================
   Header & Navbar (White, Clean)
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.75rem 0; /* Reduced height (white portion width) */
  background-color: var(--bg-white);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-light);
}

.navbar.scrolled {
  padding: 0.5rem 0; /* Reduced scrolled height */
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-badge {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-saraa {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-dark);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
}

.logo-desc {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* Reduced gap slightly to prevent squishing on smaller screens */
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.nav-links a.has-dropdown {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a.has-dropdown i {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap; /* Prevent phone number from wrapping to two lines */
}

.contact-phone i {
  color: var(--text-muted);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background-color: var(--bg-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(12, 26, 48, 0.05);
}

.form-control.error {
  border-color: var(--danger);
}

.form-error {
  display: none;
  color: var(--danger);
  font-size: 0.75rem;
  margin-top: 0.4rem;
}

/* ============================================
   Floating Elements
   ============================================ */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
  z-index: 99;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 4rem 0 2rem;
  background-color: var(--primary);
  color: var(--bg-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-desc {
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.footer-desc .font-italic {
  color: var(--accent);
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  margin-top: 1.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--bg-white);
  border-right: none;
  font-size: 0.85rem;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
  background-color: var(--accent);
  color: var(--primary);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: var(--accent-hover);
}

.footer h4 {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--bg-white);
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  transition: var(--transition);
}

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

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-contact-list i {
  color: var(--accent);
  margin-top: 4px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links a:hover {
  color: var(--bg-white);
}

/* ============================================
   Accessibility
   ============================================ */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary);
  color: var(--bg-white);
  padding: 0.75rem 1.5rem;
  z-index: 9999;
  font-size: 0.9rem;
  font-weight: 600;
  transition: top 0.3s;
}

.skip-to-content:focus {
  top: 0;
}

/* ============================================
   Toast Notification
   ============================================ */
.toast-notification {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-white);
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--success);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 3000;
  border-radius: 4px;
  max-width: 400px;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-notification i {
  font-size: 1.25rem;
  color: var(--success);
}

.toast-notification .toast-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.toast-notification .toast-text strong {
  color: var(--text-dark);
  font-size: 0.9rem;
}

.toast-notification .toast-text span {
  color: var(--text-body);
  font-size: 0.8rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .nav-links, .contact-phone {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .nav-actions {
    gap: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  /* Mobile Nav Slide-out Panel */
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: var(--bg-white);
    padding: 5rem 2rem 2rem;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 999;
    gap: 0;
    animation: slideIn 0.3s ease-out;
  }

  .nav-links.active li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-links.active li:last-child {
    border-bottom: none;
  }

  .nav-links.active a {
    font-size: 1rem;
    display: block;
  }

  @keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }

  /* Hamburger active state */
  .hamburger.active i::before {
    content: "\f00d"; /* fa-xmark */
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--section-pad-y-mobile) 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .toast-notification {
    right: 0.75rem;
    left: 0.75rem;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }
  .nav-actions .btn-primary {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
}

