/* ✅ Mobile-First – Professional branding layout for Skukuza Law Chambers */

:root {
  --diamond-size: 40px;
  --charcoal-dark: #121212;
  --gold-muted: rgba(196, 160, 42, 0.07);
  --gold: #ffd700;
  --gold-muted-strong: #c0a062;
  --text-light: #ccc;
  --dark-bg: rgba(10, 10, 10, 0.9);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-light);
  background-color: var(--charcoal-dark);
  background-image:
    linear-gradient(45deg, var(--gold-muted) 25%, transparent 25%),
    linear-gradient(-45deg, var(--gold-muted) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--gold-muted) 75%),
    linear-gradient(-45deg, transparent 75%, var(--gold-muted) 75%);
  background-size: var(--diamond-size) var(--diamond-size);
  background-position:
    0 0,
    0 var(--diamond-size),
    var(--diamond-size) calc(var(--diamond-size) * -1),
    var(--diamond-size) 0;
  background-attachment: fixed;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ✅ NAVIGATION */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--dark-bg);
  border-bottom: 2px solid rgba(192, 160, 98, 0.3);
  padding: 1rem 1.2rem;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
}

.nav-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--gold);
  text-shadow: 0 0 4px var(--gold-muted-strong);
  margin-bottom: 0.8rem;
}

.nav-brand {
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.nav-links {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  align-items: center;
}

.nav-links.open {
  display: flex;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--gold);
}

.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
}

.bar {
  width: 28px;
  height: 3px;
  background-color: var(--gold);
  margin: 4px 0;
  border-radius: 3px;
  transition: 0.3s;
}

@media (min-width: 769px) {
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .menu-icon {
    display: none;
  }

  .nav-links {
    flex-direction: row;
    gap: 1.5rem;
    display: flex !important;
    align-items: center;
  }
}

/* ✅ MAIN */
.main-layout {
  width: 100%;
  padding-top: 140px;
  padding-bottom: 100px; /* leave space for sticky footer */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ✅ GLASS PANEL */
.glass-panel {
  margin-top: 2rem;
  padding: 1.8rem 1.2rem;
  width: 94%;
  max-width: 860px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid #c0a062;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  text-align: center;
  color: silver;
}

.glass-panel h1,
.glass-panel p {
  color: silver;
  text-shadow: 0 0 2px #c0a062, 0 0 4px rgba(192,160,98,0.6);
}

/* ✅ TYPOGRAPHY */
h1 {
  font-size: 1.8rem;
  text-align: center;
  color: #3a3a3a;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 12px;
}

h1::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, #c0a062, transparent);
}

/* ✅ BUTTON */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  background: linear-gradient(to bottom, #c0a062, #a78a54);
  color: white;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(192, 160, 98, 0.3),
              inset 0 1px 1px rgba(255,255,255,0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(192, 160, 98, 0.4),
              inset 0 1px 1px rgba(255,255,255,0.4);
}

/* ✅ ADVOCATES */
.page-title {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 2rem;
  text-shadow: 0 0 4px #d4af37;
  text-align: center;
}

.advocate-card {
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1rem auto;
  max-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.advocate-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.advocate-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 8px var(--gold);
  margin-bottom: 1rem;
}

.advocate-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.advocate-details {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.4;
}

/* ✅ PROFILE BIO */
.profile-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 10px var(--gold);
  margin-bottom: 1.5rem;
}

.subheading {
  font-size: 1.1rem;
  color: silver;
  margin-bottom: 1.5rem;
  text-align: center;
}

blockquote {
  font-style: italic;
  color: var(--gold);
  border-left: 4px solid var(--gold);
  margin: 2rem auto;
  padding-left: 1rem;
  font-size: 1.2rem;
  text-align: center;
}

blockquote small {
  display: block;
  margin-top: 0.5rem;
  color: #aaa;
  font-size: 0.9rem;
}

/* ✅ BLOGS */
.blog-title {
  font-size: 2rem;
  font-weight: 700;
  color: silver;
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 0 0 4px #c0a062, 0 0 6px rgba(192, 160, 98, 0.4);
}

.blog-empty {
  color: silver;
  text-align: center;
  font-style: italic;
  margin-bottom: 2rem;
}

.blog-post {
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2rem;
}

.blog-post h2 {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.blog-post .meta {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 1rem;
}

.blog-post p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: silver;
  text-shadow: 0 0 2px #c0a062;
  text-align: justify;
}

/* ✅ FOOTER */
.arcta-branding {
  position: fixed;       /* <- always at bottom */
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(192, 160, 98, 0.15);
  backdrop-filter: blur(3px);
  z-index: 999;
}

.arcta-branding img {
  height: 38px;
  opacity: 0.9;
  transition: all 0.3s ease;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1)) sepia(20%) saturate(120%) hue-rotate(5deg);
}

.arcta-branding img:hover {
  opacity: 1;
  filter: drop-shadow(0 2px 4px rgba(192, 160, 98, 0.3)) sepia(30%) saturate(140%) hue-rotate(5deg);
}

.arcta-branding span {
  color: #555;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.4px;
}

/* ✅ MEDIA QUERIES */
@media (min-width: 769px) {
  .container { padding: 3.5rem 4rem; }
  h1 { font-size: 2.4rem; }
  .btn { font-size: 1rem; }
  .advocate-card { max-width: 400px; }
  .advocate-name { font-size: 1.6rem; }
  .advocate-details { font-size: 1.1rem; }
  .blog-title { font-size: 2.2rem; }
  .blog-post h2 { font-size: 1.6rem; }
  .blog-post p { font-size: 1.1rem; }
}

@media (min-width: 1024px) {
  .glass-panel { max-width: 1000px; }
  .advocate-name { font-size: 1.8rem; }
  .advocate-details { font-size: 1.2rem; }
  .subheading { font-size: 1.2rem; }
  blockquote { font-size: 1.3rem; }
  .blog-title { font-size: 2.6rem; }
  .blog-post h2 { font-size: 1.8rem; }
  .blog-post p { font-size: 1.2rem; }
}

/* ✅ GALLERY STYLING */
.chambers-panel {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  width: 100%;
  max-width: 1200px;
  margin-top: 2rem;
  border-left: 5px solid #8b0000;
  border-top: 5px solid #8b0000;
}

.gallery-title {
  font-size: 2rem;
  font-weight: 700;
  color: #8b0000;
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 2px solid #8b0000;
  padding-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.no-media-message {
  text-align: center;
  color: #444;
  font-style: italic;
  margin-top: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.25);
}

.gallery-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .chambers-panel {
    padding: 1rem;
  }

  .gallery-title {
    font-size: 1.6rem;
  }

  .gallery-image {
    height: 220px;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-image {
    height: 300px;
  }
}

/* ✅ POPI POLICY PAGE */
.policy-panel {
  width: 100%;
  max-width: 960px;
  background: rgba(0, 0, 0, 0.65);
  padding: 2rem;
  margin-top: 80px;
  margin-bottom: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.15);
  color: silver;
  line-height: 1.75;
  text-shadow: 0 0 3px #d4af37, 0 0 8px rgba(212, 175, 55, 0.2);
}

.policy-panel h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #ffd700;
  text-shadow: 0 0 5px #d4af37;
}

.policy-panel p {
  font-size: 1.05rem;
  text-align: justify;
  margin-bottom: 1.2rem;
  color: #ccc;
}

.policy-panel strong {
  color: #ffd700;
  font-weight: 600;
}

.policy-panel a {
  color: #25D366;
  text-decoration: none;
}

.policy-panel a:hover {
  text-decoration: underline;
}

.last-updated {
  font-size: 0.9rem;
  color: #aaa;
  text-align: center;
  margin-bottom: 2rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .policy-panel {
    padding: 1.5rem;
  }

  .policy-panel h1 {
    font-size: 1.8rem;
  }

  .policy-panel p {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .policy-panel {
    padding: 2.5rem 3rem;
  }

  .policy-panel h1 {
    font-size: 2.6rem;
  }

  .policy-panel p {
    font-size: 1.1rem;
  }
}

/* ✅ LOGIN PAGE STYLING - MATCHING EXISTING THEME */

/* Login Box Styling */
.login-box {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2.5rem;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--gold-muted-strong);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-box h2 {
  font-size: 2rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
  position: relative;
  padding-bottom: 1rem;
}

.login-box h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Form Styling */
.login-box form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.login-box label {
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  text-shadow: 0 0 2px var(--gold-muted-strong);
}

.login-box input[type="text"],
.login-box input[type="password"] {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(192, 160, 98, 0.3);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.login-box input[type="text"]:focus,
.login-box input[type="password"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

/* Password Toggle Styling */
#togglePassword {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--gold-muted-strong);
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  text-decoration: underline;
}

#togglePassword:hover {
  color: var(--gold);
}

/* Login Button Styling */
.login-box button[type="submit"] {
  background: linear-gradient(135deg, var(--gold-muted-strong), #a78a54);
  color: #121212;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(192, 160, 98, 0.3);
}

.login-box button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 160, 98, 0.4);
  background: linear-gradient(135deg, #d4af37, var(--gold-muted-strong));
}

.login-box button[type="submit"]:active {
  transform: translateY(0);
}

/* Status Messages */
.status-msg {
  padding: 1rem 1.2rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: slideIn 0.3s ease-out;
}

.status-msg.success {
  background: rgba(40, 167, 69, 0.2);
  border: 1px solid rgba(40, 167, 69, 0.4);
  color: #28a745;
}

.status-msg.error {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: #dc3545;
}

/* Animation for status messages */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Form Layout */
.form-group {
  margin-bottom: 1.5rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-muted-strong);
  z-index: 1;
}

.input-with-icon input {
  padding-left: 3rem;
}

/* Remember Me & Forgot Password */
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
}

.remember-me input {
  margin: 0;
}

.forgot-password {
  color: var(--gold-muted-strong);
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-box {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }
  
  .login-box h2 {
    font-size: 1.8rem;
  }
  
  .login-options {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .login-box {
    padding: 1.5rem 1rem;
    margin: 0.5rem;
  }
  
  .login-box h2 {
    font-size: 1.6rem;
  }
  
  .login-box input[type="text"],
  .login-box input[type="password"] {
    padding: 0.8rem 1rem;
  }
}

/* Enhanced Security Notice */
.security-notice {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 8px;
  border-left: 4px solid var(--gold);
}

.security-notice p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
  text-shadow: 0 0 2px var(--gold-muted-strong);
}

/* Loading State */
.login-box button[type="submit"].loading {
  opacity: 0.7;
  pointer-events: none;
}

.login-box button[type="submit"].loading::after {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
  border: 2px solid transparent;
  border-top: 2px solid #121212;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ✅ Hero section */
.hero {
  width: 100%;
  height: 75vh; /* video as banner */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ✅ Glass card BELOW video */
.glass-hero-card {
  margin: -4rem auto 3rem; /* slight overlap upwards, adjust if needed */
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid #c0a062;
  border-radius: 14px;
  backdrop-filter: blur(8px);
  padding: 2rem 2.5rem;
  max-width: 720px;
  text-align: center;
  color: silver;
  box-shadow: 0 0 25px rgba(192, 160, 98, 0.25);
  z-index: 2;
  position: relative;
}

.glass-hero-card h1 {
  font-size: 2.4rem;
  color: var(--gold);
  text-shadow: 0 0 6px #c0a062;
  margin-bottom: 1rem;
}

.glass-hero-card p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #ddd;
}
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2cm; /* clears nav */
}

.hero-video {
  max-width: 75%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(212,175,55,0.3);
}

.hero-text {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.hero-text .glass-panel {
  max-width: 900px;
  padding: 2rem;
  background: rgba(0,0,0,0.65);
  border: 1px solid #c0a062;
  border-radius: 12px;
  text-align: center;
}

/* Ensure main content clears the navbar */
main,
.spw-section,
.hero {
  margin-top: 3cm;   /* fixed offset from top */
}

/* For pages with hero video */
.hero {
  height: calc(75vh - 3cm); /* shrink hero height slightly to compensate */
}
/* ───────────── Global Page Offset ───────────── */
.main-layout {
  margin-top:2cm; /* ensures content starts below navbar */
}

/* Specific adjustments for panels */
.policy-panel,
.glass-panel,
.chambers-panel {
  margin-top: 0; /* avoid double spacing (main-layout already pushes down) */
}
