/*
  Custom stylesheet for the revamped Aureliya Holdings website.
  
  This file defines a modern, minimal design with a focus on clean layouts,
  generous whitespace and an elegant colour palette. A consistent navigation
  bar appears on every page. Buttons, forms and cards share a unified
  aesthetic and the owner dashboard remains hidden until the correct
  password is entered via JavaScript. A simple chat widget is also styled
  here.  
*/

/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  background-color: #fafafa;
  color: #2c2e4a;
}

/* Global navigation */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

nav .logo {
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: #4a4aff;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}

nav ul li a {
  text-decoration: none;
  color: #2c2e4a;
  font-weight: 500;
  transition: color 0.2s;
}

nav ul li a:hover {
  color: #4a4aff;
}

/* Responsive nav toggle */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 60px;
    right: 40px;
    background-color: #ffffff;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
  }
  nav ul.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

/* Generic sections */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

footer {
  background-color: #f0f0ff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #666;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(135deg, #dfe0ff, #f6f6ff);
  color: #2c2e4a;
}

.hero h1 {
  margin: 0;
  font-size: 3rem;
  letter-spacing: 1px;
}

.hero p {
  margin: 20px auto 30px;
  max-width: 700px;
  font-size: 1.1rem;
  color: #555;
}

.hero .cta {
  display: inline-block;
  padding: 12px 24px;
  background-color: #4a4aff;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.hero .cta:hover {
  background-color: #3333cc;
}

/* Card grid */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 30px;
  flex: 1 1 300px;
  max-width: 350px;
  text-align: left;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #4a4aff;
}

.card p {
  margin-bottom: 20px;
  color: #555;
}

.card .btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4a4aff;
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.card .btn:hover {
  background-color: #3333cc;
}

/* Form styles */
.form-section {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.form-group label {
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.btn-submit {
  display: inline-block;
  padding: 12px 24px;
  background-color: #4a4aff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.btn-submit:hover {
  background-color: #3333cc;
}

/* Dashboard styles */
.dashboard {
  display: none;
}

.dashboard-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-container h1 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 30px;
}

.stat-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.stat-card {
  flex: 1 1 200px;
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.stat-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.deposits-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.deposits-table th,
.deposits-table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.deposits-table th {
  background-color: #f5f5f5;
}

/* Chat widget styles */
.chat-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #4a4aff;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.chat-window {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
}

.chat-window header {
  background-color: #4a4aff;
  color: #ffffff;
  padding: 10px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.chat-window .chat-messages {
  padding: 10px;
  flex-grow: 1;
  overflow-y: auto;
  max-height: 250px;
}

.chat-window .chat-input {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid #eee;
}

.chat-window .chat-input input {
  flex-grow: 1;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
}

.chat-window .chat-input button {
  padding: 8px 14px;
  background-color: #4a4aff;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.chat-window .chat-input button:hover {
  background-color: #3333cc;
}

/* Blog page */
.post {
  margin-bottom: 40px;
}

.post h4 {
  margin: 0;
  color: #4a4aff;
}

.post .date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 10px;
}

.post p {
  color: #444;
}