/* Modern Bond Savings & Loans - Shared Styles */

/* Reset & Basic Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Light Mode Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-gradient-start: #ffffff;
  --bg-gradient-end: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #4a5568;
  --text-tertiary: #718096;
  --card-bg: #ffffff;
  --card-border: #f0f0f0;
  --header-bg: rgba(255, 255, 255, 0.95);
  --footer-bg-start: #1a1a1a;
  --footer-bg-end: #2d2d2d;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --shadow-hover: rgba(246, 127, 2, 0.15);
  --input-bg: #f8f9fa;
  --input-border: #f0f0f0;
}

body.dark-mode {
  /* Dark Mode Colors */
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --bg-gradient-start: #0f0f0f;
  --bg-gradient-end: #1a1a1a;
  --text-primary: #e8e8e8;
  --text-secondary: #b8b8b8;
  --text-tertiary: #8a8a8a;
  --card-bg: #1a1a1a;
  --card-border: #2d2d2d;
  --header-bg: rgba(26, 26, 26, 0.95);
  --footer-bg-start: #000000;
  --footer-bg-end: #0a0a0a;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --shadow-hover: rgba(246, 127, 2, 0.25);
  --input-bg: #2d2d2d;
  --input-border: #3a3a3a;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-primary);
  position: relative;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Modern gradient overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(246, 127, 2, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255, 145, 64, 0.05) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.dark-mode::before {
  opacity: 0.3;
}

html {
  scroll-behavior: smooth;
}

/* Header */
header {
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  padding: 20px 0;
  box-shadow: 0 2px 20px var(--shadow-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(246, 127, 2, 0.1);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

header .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header img {
  height: 55px;
  width: auto;
  transition: transform 0.3s ease;
}

header img:hover {
  transform: scale(1.05);
}

/* Dark Mode Toggle */
.theme-toggle {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 15px;
  color: var(--text-primary);
}

.theme-toggle:hover {
  background: linear-gradient(135deg, #f67f02, #ff9140);
  border-color: #f67f02;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(246, 127, 2, 0.3);
}

.theme-toggle i {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.theme-toggle:hover i {
  transform: rotate(20deg);
}

/* Navigation */
nav {
  background: transparent;
  padding: 15px 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

nav .nav-links {
  display: flex;
  gap: 5px;
  align-items: center;
}

nav a {
  color: var(--text-secondary);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95em;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 8px;
}

nav a:hover {
  color: #f67f02;
  background: rgba(246, 127, 2, 0.08);
}

.internet-banking {
  background: linear-gradient(135deg, #f67f02 0%, #ff9140 100%);
  color: #ffffff !important;
  padding: 12px 28px;
  border-radius: 25px;
  margin-left: 15px;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(246, 127, 2, 0.3);
  font-weight: 600;
}

.internet-banking:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(246, 127, 2, 0.4);
  background: linear-gradient(135deg, #f67f02 0%, #ff9140 100%) !important;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 20px 0;
}

/* Section Headings */
section h2 {
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.8em;
  font-weight: 700;
  position: relative;
  padding-bottom: 20px;
  transition: color 0.3s ease;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #f67f02, #ff9140);
  border-radius: 2px;
}

/* Cards */
.grid,
.products-grid,
.services-grid,
.directors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.grid-item,
.product-card,
.service-card,
.director-card {
  background: var(--card-bg);
  padding: 35px;
  border-radius: 20px;
  text-align: center;
  border: 2px solid var(--card-border);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.grid-item::before,
.product-card::before,
.service-card::before,
.director-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(246, 127, 2, 0.05), rgba(255, 145, 64, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.grid-item:hover::before,
.product-card:hover::before,
.service-card:hover::before,
.director-card:hover::before {
  opacity: 1;
}

.grid-item:hover,
.product-card:hover,
.service-card:hover,
.director-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-hover);
  border-color: #f67f02;
}

.grid-item h3,
.product-card h3,
.service-card h3,
.director-card h3 {
  margin-bottom: 15px;
  color: var(--text-primary);
  font-size: 1.5em;
  font-weight: 600;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.grid-item p,
.product-card p,
.service-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.director-card p {
  color: var(--text-secondary);
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  transition: color 0.3s ease;
}

/* Director Cards */
.director-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #f67f02;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(246, 127, 2, 0.2);
}

.director-card:hover img {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(246, 127, 2, 0.3);
}

/* Images in Cards */
.grid-item img,
.product-card img,
.service-card img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  margin: 20px 0;
  transition: transform 0.4s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.grid-item:hover img,
.product-card:hover img,
.service-card:hover img {
  transform: scale(1.05);
}

/* Buttons */
.hero-button,
.read-more {
  display: inline-block;
  background: linear-gradient(135deg, #f67f02 0%, #ff9140 100%);
  color: #ffffff;
  padding: 18px 45px;
  border-radius: 30px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(246, 127, 2, 0.3);
  border: none;
  cursor: pointer;
}

.hero-button:hover,
.read-more:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(246, 127, 2, 0.4);
}

.read-more {
  padding: 12px 30px;
  font-size: 1em;
  margin-top: 20px;
}

/* Footer Styles */
footer {
  background: linear-gradient(135deg, var(--footer-bg-start) 0%, var(--footer-bg-end) 100%);
  color: #ffffff;
  padding: 70px 0 30px;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
  transition: background 0.3s ease;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f67f02, #ff9140, #f67f02);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  margin-bottom: 50px;
}

.footer-column h3 {
  color: #ffffff;
  font-size: 1.3em;
  margin-bottom: 25px;
  font-weight: 600;
  position: relative;
  padding-bottom: 15px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #f67f02, #ff9140);
  border-radius: 2px;
}

.footer-column p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #f67f02;
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.social-links a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background: linear-gradient(135deg, #f67f02, #ff9140);
  border-color: #f67f02;
  transform: translateY(-3px);
}

.newsletter-form {
  margin-top: 25px;
}

.newsletter-form input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text-primary);
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #f67f02;
  background: var(--card-bg);
}

body.dark-mode .newsletter-form input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

body.dark-mode .newsletter-form input:focus {
  background: rgba(255, 255, 255, 0.08);
}

.newsletter-form button {
  width: 100%;
  background: linear-gradient(135deg, #f67f02, #ff9140);
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(246, 127, 2, 0.3);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-bottom p {
  margin-bottom: 10px;
}

.footer-bottom a {
  color: #f67f02;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #ff9140;
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  nav .nav-links {
    gap: 0;
  }
  
  nav a {
    padding: 8px 12px;
    font-size: 0.9em;
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 0;
  }
  
  header .header-content {
    flex-direction: column;
    gap: 20px;
  }
  
  header img {
    height: 40px;
  }
  
  header h1 {
    font-size: 1.1em;
  }
  
  nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  nav .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav a {
    padding: 8px 12px;
    font-size: 0.85em;
  }
  
  .internet-banking {
    padding: 10px 20px;
    font-size: 0.9em;
    margin-left: 0;
  }
  
  section h2 {
    font-size: 2.2em;
  }
  
  .grid,
  .products-grid,
  .services-grid,
  .directors {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-column {
    text-align: center;
  }

  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1em;
  }
  
  nav a {
    padding: 6px 10px;
    font-size: 0.8em;
  }
  
  section h2 {
    font-size: 1.8em;
    margin-bottom: 35px;
  }
  
  .grid-item,
  .product-card,
  .service-card,
  .director-card {
    padding: 25px;
  }
}
