/* ==========================================================================
   Rody Warshaw Bank - Core Stylesheet
   Design System: Premium Navy & Forest Green
   ========================================================================== */

:root {
  /* Brand Colors */
  --clr-primary: #0a1b3a; /* Deep Navy Blue */
  --clr-primary-light: #152b52;
  --clr-secondary: #0d5c3a; /* Premium Forest Green */
  --clr-secondary-light: #1b7a52;
  --clr-accent: #d4af37; /* Subtle Gold Accent */

  /* Neutrals */
  --clr-white: #ffffff;
  --clr-offwhite: #f8f9fa;
  --clr-gray-100: #e9ecef;
  --clr-gray-300: #dee2e6;
  --clr-gray-500: #6c757d;
  --clr-gray-800: #343a40;
  --clr-black: #111111;

  /* Semantic / Custom Colors */
  --clr-success: #28a745;
  --clr-warning: #ffc107;
  --clr-error: #dc3545;
  --clr-blue: #007bff;
  --clr-orange: #fd7e14;
  --clr-pink: #e83e8c;

  /* UI Tokens */
  --font-primary: "Inter", sans-serif;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --shadow-sm: 0 2px 4px rgba(10, 27, 58, 0.05);
  --shadow-md: 0 8px 16px rgba(10, 27, 58, 0.08);
  --shadow-lg: 0 16px 32px rgba(10, 27, 58, 0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Layout */
  --container-max: 1280px;
  --header-height: 80px;
}

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

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

body {
  font-family: var(--font-primary);
  color: var(--clr-gray-800);
  background-color: var(--clr-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--clr-primary);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  color: var(--clr-gray-500);
}

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

a:hover {
  color: var(--clr-secondary);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-md);
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.bg-light {
  background-color: var(--clr-offwhite);
}
.bg-dark {
  background-color: var(--clr-primary);
  color: var(--clr-white);
}
.bg-dark h2,
.bg-dark h3 {
  color: var(--clr-white);
}
.bg-dark p {
  color: var(--clr-gray-300);
}

/* Utility */
.text-center {
  text-align: center;
}
.badge {
  display: inline-block;
  background-color: rgba(13, 92, 58, 0.1);
  color: var(--clr-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.pl-large {
  padding-left: 3rem;
}
.pr-large {
  padding-right: 3rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-large {
  padding: 1.5rem 3rem;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 900;
}

.btn-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 4px;
  border-radius: 50%;
}

/* Glowing Animations */
@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 92, 58, 0.8);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(13, 92, 58, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(13, 92, 58, 0);
  }
}

@keyframes pulse-gold {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.8);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

.btn-primary {
  background-color: var(--clr-secondary);
  color: var(--clr-white) !important;
}

.btn-primary.btn-large {
  box-shadow: 0 0 15px rgba(13, 92, 58, 0.6);
  animation: pulse-green 2s infinite;
}

.btn-primary:hover {
  background-color: var(--clr-secondary-light);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(13, 92, 58, 0.8) !important;
  animation: none;
}

.btn-primary.outlined {
  background-color: transparent;
  border-color: var(--clr-secondary);
  color: var(--clr-secondary) !important;
  box-shadow: none;
  animation: none;
}

.btn-primary.outlined:hover {
  background-color: var(--clr-secondary);
  color: var(--clr-white) !important;
  box-shadow: var(--shadow-md) !important;
}

.btn-secondary {
  background-color: var(--clr-white);
  color: var(--clr-primary) !important;
}

.btn-secondary:hover {
  background-color: var(--clr-gray-100);
}

.btn-accent {
  background-color: var(--clr-accent);
  color: var(--clr-primary) !important;
}

.btn-accent.btn-large {
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
  animation: pulse-gold 2s infinite 1s; /* delayed start for contrast */
}

.btn-accent:hover {
  background-color: #e0be4d;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.8) !important;
  animation: none;
}

/* ==========================================================================
   Header & Nav
   ========================================================================== */
.header {
  position: fixed;
  top: 1.5rem;
  left: 5%;
  width: 90%;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 0;
  border: none;
  height: var(--header-height);
}

.header-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-primary);
}

.logo .logo-text {
  color: var(--clr-secondary);
}

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

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

.nav-link {
  font-weight: 500;
  color: var(--clr-primary);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--clr-secondary);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--clr-primary);
  margin-bottom: 5px;
  transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(10, 27, 58, 0.9) 0%,
    rgba(10, 27, 58, 0.4) 100%
  );
  z-index: -1;
}

.hero-content {
  max-width: 600px;
  color: var(--clr-white);
}

.hero-content h1 {
  color: var(--clr-white);
  margin-bottom: 1.5rem;
}

.hero-content p {
  color: var(--clr-gray-300);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Quick Actions Bar */
.quick-actions-section {
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.quick-actions {
  display: flex;
  justify-content: center;
  background-color: var(--clr-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem 3rem;
  gap: 4rem;
  transform: translateY(-50px);
  margin-top: -3rem;
}

.qa-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.qa-item:hover {
  transform: translateY(-5px);
}

.qa-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--clr-offwhite);
  box-shadow: var(--shadow-sm);
}

.qa-item span {
  font-weight: 700;
  font-size: 1rem;
  color: var(--clr-primary);
}

/* Custom Icon Colors */
.icon-blue {
  color: #007bff;
  background-color: rgba(0, 123, 255, 0.1) !important;
}
.icon-green {
  color: #28a745;
  background-color: rgba(40, 167, 69, 0.1) !important;
}
.icon-gold {
  color: #d4af37;
  background-color: rgba(212, 175, 55, 0.1) !important;
}
.icon-red {
  color: #dc3545;
  background-color: rgba(220, 53, 69, 0.1) !important;
}

/* ==========================================================================
   Product Sections (Checking, Auto, Mortgages)
   ========================================================================== */
.section-banking {
  margin-top: 0;
}

.section-container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.text-content,
.image-content {
  flex: 1;
}

.feature-list {
  margin: 2rem 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.feature-list svg {
  width: 24px;
  height: 24px;
  color: var(--clr-secondary);
  flex-shrink: 0;
}

/* Image Wrappers & Floating Elements */
.image-wrapper {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.image-wrapper img {
  transition: transform 0.6s ease;
}

.image-wrapper:hover img {
  transform: scale(1.03);
}

.floating-card {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--clr-secondary);
}

.floating-card .stat {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-primary);
}

.floating-card .label {
  font-size: 0.875rem;
  color: var(--clr-gray-500);
}

/* Rate Box */
.rate-box {
  background-color: var(--clr-white);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-gray-300);
  margin: 2rem 0;
  display: inline-block;
}

.rate-title {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.rate-value {
  font-size: 3rem;
  margin-bottom: 0;
  color: var(--clr-secondary);
}

.rate-value span {
  font-size: 1.5rem;
  color: var(--clr-gray-500);
}

.rate-disclaimer {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Products Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.product-card {
  background-color: var(--clr-offwhite);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  border-top: 4px solid var(--clr-primary);
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  background-color: var(--clr-white);
  transform: translateY(-5px);
}

.product-card h4 {
  margin-bottom: 0.5rem;
}

.product-card p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Support & Features
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.feat-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 3rem 2rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.feat-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.feat-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.feat-card h3 {
  margin-bottom: 1rem;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4rem;
  margin-bottom: 2rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--clr-white);
}

.footer-col h4 {
  color: var(--clr-white);
  margin-bottom: 1.5rem;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul a {
  color: var(--clr-gray-300);
}

.footer-col ul a:hover {
  color: var(--clr-white);
  padding-left: 5px;
}

.subscribe-form {
  display: flex;
  gap: 0.5rem;
}

.subscribe-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-primary);
}

.subscribe-form button {
  background-color: var(--clr-secondary);
  color: var(--clr-white);
  border: none;
  padding: 0 1.5rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.subscribe-form button:hover {
  background-color: var(--clr-secondary-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--clr-gray-500);
  font-size: 0.875rem;
}

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

.footer-links a {
  color: var(--clr-gray-500);
}

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
  /* Reset Header to Full Width on Tablet & Mobile */
  .header {
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    height: 70px;
    border: none;
    border-bottom: 1px solid var(--clr-gray-100);
    background-color: rgba(255, 255, 255, 0.98);
  }
  .header-container {
    padding: 0 1.5rem;
  }

  .quick-actions-section {
    padding: 4rem 1.5rem 2rem;
  }

  .quick-actions {
    transform: none;
    margin-top: 0;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
  }

  .qa-item {
    width: 40%;
  }

  .section-banking {
    margin-top: 6rem;
  }
  .pl-large,
  .pr-large {
    padding: 0;
  }

  .nav-list {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 1.25rem;
  }
  
  .header-actions {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .header-actions .btn {
    width: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .section-container {
    flex-direction: column;
    gap: 3rem;
  }

  .mobile-toggle {
    display: block;
    z-index: 1001;
  }

  .nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: max-height 0.4s ease, padding 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0 2rem;
    gap: 2rem;
  }

  .nav.active {
    max-height: 500px;
    padding: 2rem;
  }

  .reverse-mobile {
    flex-direction: column-reverse;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
