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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Header styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgb(24, 24, 27);
  z-index: 1000;
  height: 80px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 48px;
}

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

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #3b82f6;
}

.nav-links a.active {
  color: #3b82f6;
}

.client-portal-btn {
  background-color: #3b82f6;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.client-portal-btn:hover {
  background-color: #2563eb;
  color: white !important;
}

/* Hero section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background-image: url("assets/m1_1.jpg");
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  color: white;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.learn-more-btn {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.learn-more-btn:hover {
  background-color: #2563eb;
}

/* Who We Are section */
.who-we-are {
  padding: 4rem 0;
  background-color: #f3f4f6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.text-content h2 {
  font-size: 2.5rem;
  font-weight: 300;
  color: #111827;
  margin-bottom: 1.5rem;
}

.text-content p {
  color: #4b5563;
  line-height: 1.8;
}

.logo-section {
  display: flex;
  justify-content: center;
}

.rhn-logo {
  max-width: 100%;
  height: auto;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background-color: white;
  transition: 0.3s;
}

.dropdown {
  text-align: center;
}

/* Footer */

.footer {
  background-color: #333;
  color: #fff;
  padding: 20px 0;
  border-top: 1px solid #ccc;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-left,
.footer-right {
  width: 45%;
}

.footer-left h3 {
  margin-top: 0;
}

.footer-right ul {
  list-style: none;
  padding: 0;
}

.footer-right ul li {
  margin-bottom: 10px;
}

.footer-right ul li a {
  text-decoration: none;
  color: #fff;
}

.footer-right ul li a:hover {
  text-decoration: underline;
}

/* Media Queries */
@media (max-width: 1024px) {
  .nav-links {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(24, 24, 27, 0.95);
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
  }

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

  .nav-links a {
    padding: 0.5rem 0;
    text-align: center;
  }

  .hero {
    background-image: url("assets/m1_1_mobile.jpg");
  }

  .hero-content h1 {
    font-size: 2.5rem;
    margin: 200px auto 25px auto;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .logo-section {
    order: -1;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    text-align: center;
  }

  .footer-right ul {
    padding: 0;
  }

  .footer-right ul li {
    display: inline;
    margin-right: 15px;
  }

  .footer-right ul li:last-child {
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

.services {
  position: relative;
  padding: 4rem 0;
  margin-top: 80px;
  min-height: 100vh;
  color: white;
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  background-image: url("assets/servicesBG.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  z-index: -1;
}

.services::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

.services-intro {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.services-intro h1 {
  margin-bottom: 1.25rem;
  font-size: 2.5rem;
  font-weight: 300;
}

.services-intro p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  font-size: 1.1rem;
}

.services-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
  align-items: start;
}

.services-category h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #3b82f6;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-item dt {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
}

.service-item dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .services-categories {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .services-intro h1 {
    font-size: 2rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

@media (min-width: 769px) {
  .slide-from-left,
  .slide-from-right {
    opacity: 0;
    transition: all 0.8s ease-out;
  }

  .slide-from-left {
    transform: translateX(-100px);
  }

  .slide-from-right {
    transform: translateX(100px);
  }

  .slide-from-left.visible,
  .slide-from-right.visible {
    opacity: 1;
    transform: translateX(0);
  }
}

.about {
  padding: 4rem 0;
  margin-top: 80px;
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  color: white;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.firm-intro {
  margin-bottom: 60px;
  max-width: 900px;
}

.firm-intro h2 {
  margin-bottom: 20px;
  font-size: 2em;
  color: #333;
}

.firm-intro p {
  line-height: 1.6;
  color: #666;
  margin-bottom: 1rem;
}

.person-section {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  gap: 40px;
}

.person-section.reverse {
  flex-direction: row-reverse;
}

.person-image {
  flex: 1;
}

.person-image img {
  width: 100%;
  height: auto;
  max-width: 400px;
  display: block;
}

.person-info {
  flex: 2;
}

.person-info h2 {
  margin-bottom: 20px;
  font-size: 2em;
  color: #333;
}

.person-info p {
  line-height: 1.6;
  color: #666;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .person-section {
    flex-direction: column;
    text-align: center;
  }

  .person-section.reverse {
    flex-direction: column;
  }

  .person-image {
    margin-bottom: 20px;
  }

  .person-image img {
    margin: 0 auto;
  }
}

/* Contact page */
.contact {
  padding: 4rem 0;
  margin-top: 80px;
  min-height: calc(100vh - 80px);
  background-color: #f3f4f6;
}

.contact-intro {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.contact-intro h1 {
  font-size: 2.5rem;
  font-weight: 300;
  color: #111827;
  margin-bottom: 1rem;
}

.contact-intro p {
  color: #4b5563;
  line-height: 1.8;
  font-size: 1.1rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form-panel h2,
.contact-info-panel h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1.5rem;
}

.contact-form-panel {
  background: #fff;
  padding: 2rem;
  border-radius: 4px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: #333;
  font-weight: 600;
}

.form-group .optional {
  font-weight: 400;
  color: #666;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
  overflow: hidden;
}

.contact-submit-btn,
.directions-btn {
  display: inline-block;
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;
}

.contact-submit-btn:hover,
.directions-btn:hover {
  background-color: #2563eb;
  color: white;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  min-height: 1.5em;
}

.form-status.success {
  color: #047857;
}

.form-status.error {
  color: #b91c1c;
}

.contact-details {
  margin-bottom: 1.5rem;
}

.contact-detail {
  margin-bottom: 1.25rem;
}

.contact-detail h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #3b82f6;
  margin-bottom: 0.35rem;
}

.contact-detail p {
  color: #4b5563;
  line-height: 1.7;
}

.contact-detail a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-detail a:hover {
  color: #3b82f6;
}

.contact-map {
  margin-bottom: 1.25rem;
  border-radius: 4px;
  overflow: hidden;
  background: #e5e7eb;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-intro h1 {
    font-size: 2rem;
  }

  .contact-form-panel {
    padding: 1.5rem;
  }
}

/* Updates page */
.updates {
  padding: 4rem 0;
  margin-top: 80px;
  min-height: calc(100vh - 80px);
  background-color: #f3f4f6;
}

.updates-intro {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.updates-intro h1 {
  font-size: 2.5rem;
  font-weight: 300;
  color: #111827;
  margin-bottom: 1rem;
}

.updates-intro p {
  color: #4b5563;
  line-height: 1.8;
  font-size: 1.1rem;
}

.updates-widget {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  padding: 1.5rem;
  border-radius: 4px;
}

.updates-widget .hub-widget-host {
  width: 100%;
}

@media (max-width: 768px) {
  .updates-intro h1 {
    font-size: 2rem;
  }

  .updates-widget {
    padding: 1rem;
  }
}
