/* 
   RESET & BASE
                       */

* {
  margin: 0;
  padding: 0;
}

html,
body {
  cursor: url('../images/cursor3.png'), auto;
  color: #ffffff;
  line-height: 1.6;
  scroll-behavior:smooth;
  scroll-snap-type: y proximity;
}

body.has-sidebar main {
  /* margin-left: 12px; */
  transition: margin-left 0.4s ease;
}

/* body.has-sidebar header.is-sidebar:hover ~ main {
  margin-left: 200px;
} */

h1,
h2,
h3 {
  font-family: 'DM Serif Display', serif;
}

body,
p,
a,
li {
  font-family: 'Lato', sans-serif;
}

strong {
  color: #000000;
}

a {
  color: black;
  text-decoration: none;
}

.hero,

.features-section,
.site-footer {
  scroll-snap-align: start;
}

.hero,
.company-profile,
.features-section {
  scroll-margin-top: 6rem;
}


/* 
   UTILITIES & GLOBAL CLASSES
                              */


::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(228, 179, 93, 0.35);
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(180, 180, 180, 0.35);
}


* {
  scrollbar-width: thin;
  scrollbar-color: rgba(228, 179, 93, 0.65) transparent;
}



.profession-title {
  color: #b30000;
}

.icon {
  height: 1.7rem;
  font-size: 2.5rem;
  color: #b30000;
  /* margin-bottom: 1rem; */
}

.btn {
  padding: 0.75rem 1.5rem;
  background-color: white;
  color: black;
  font-weight: bold;
  border-radius: 6px;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #ddd;
  color: chocolate;
}


/* 
   LAYOUT WRAPPER
                   */

.cover-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}


/* 
   HEADER & NAVIGATION
                       */

header {
  color: black;
  padding: 1rem 2rem;
  border-bottom: 4px solid #e4b35d;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition:
    width 0.35s ease,
    box-shadow 0.35s ease;
}

header.is-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;              
  height: 30vh;
  padding: 0;
  overflow: hidden;

  background-color: white;
  border-right: 3px solid #e4b35d;
  box-shadow: none;

  display: flex;
  flex-direction: column;
  align-items: stretch;
}

header.is-sidebar > * {
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  pointer-events: none;
}

header.is-sidebar:hover {
  width: 12rem;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.18);
  border-right-color: rgba(228, 179, 93, 0.8);
}

header.is-sidebar:hover > * {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  transition-delay: 0.2s;
}


header.is-sidebar .navbar {
  /* width: 100%; */
  padding: 2rem 1.5rem;
  flex-direction: column;
  align-items: flex-start;
}

header.is-sidebar .nav-links {
 flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
}

header.is-sidebar .logo {
  font-size: 1.2rem;
  padding-left:1rem ;
}

.navbar {
  width: 50%;
  position: fixed;
  z-index: 2;
  background-color: white;
  border-radius: 0 20px 20px 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.56rem 2rem;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 3px #e4b35d;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-weight: 500;
  opacity: 0.5;
  transition: all 0.3s ease-in-out;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  border-bottom: 2px solid #e4b35d;
}


/* 
   HERO / HOME SECTION
                       */

.home-container {
  margin-top: 5rem;
}

.hero {
  scroll-snap-align: start;
  background-image: url('../images/lawyer3.jpg');
  background-size: cover;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 600px;
  margin-bottom: 2rem;
  font-size: 1.2rem;
  line-height: 1.5;
  padding: 0 1rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 1);
}


/* 
   COMPANY PROFILE
                   */

.company-profile {
  padding: 8rem 0;
}

.profile-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background-color: whitesmoke;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-grid:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.company-description {
  flex: 2 1 500px;
  text-align: center;
  font-weight: 700;
}

.company-description h2,
.company-description h3 {
  color: #1b1f23;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.company-description p {
  margin-bottom: 1rem;
  color: #333;
}


/* 
   SERVICES / FEATURES
                       */
.features-section {
  background-color: #e4b35d;
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: 0 -7px 10px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #ffffff;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.service-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  padding: 2rem 1.5rem;
  width: 260px;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #b30000;
}

.service-description {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  color: #333;
  font-size: 0.9rem;
  text-align: left;
}

.service-card:hover .service-description {
  max-height: 200px;
}


/* 
   ADVANTAGES
               */

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.advantage-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.advantage-item:hover {
  transform: translateY(-10px);
}

.advantage-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #b30000;
}

.advantage-item p,
.advantage-item li {
  color: #333;
  font-size: 0.95rem;
}


/* 
   PERSONAL PROFILE SECTION
                           */

.profile-section {
  padding: 8rem 2rem;
  background: #fefefe;
  color:#1e1e1e;
}

.profile-left {
  flex: 1 1 300px;
  text-align: center;
}

.profile-img {
  width: 250px;
  border-radius: 3rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 0.9rem;
  color: gray;
}

.profile-right {
  flex: 2 1 500px;
}

.profile-right h2 {
  color: #1b1f23;
  font-size: 1.8rem;
}

.title-underline {
  width: 50%;
  border: 2px dashed orange;
}


/* 
   CONTACT INFO
                 */

.contact-info-section {
  padding: 3rem 2rem;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.5),
      rgba(255, 255, 255, 0.3),
      rgba(206, 206, 206, 0.5)
    ),
    url('../images/lawyer4.jpg');
  background-size: cover;
  background-repeat: no-repeat;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-info {
  background-color: #ddd;
  padding: 10px;
}


/* 
   FOOTER
          */

.site-footer {
  background-color: #1e1e1e;
  color: #cfcfcf;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.footer-column {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-about {
  flex: 2 1 320px;
}

.site-footer h4 {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.site-footer a {
  color: #bdbdbd;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.footer-about p {
  margin-bottom: 0.75rem;
}

.footer-contact address {
  font-style: normal;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: 13px;
  color: #9a9a9a;
}

@media (max-width: 768px) {
  header.is-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    border-right: none;
  }

  header.is-sidebar > * {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  body.has-sidebar main {
    margin-left: 0;
  }
}
  html,body {
    scroll-snap-type: none;
  }

  .hero {
    margin-top: 5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-column,
  .footer-about {
    flex: 1 1 100%;
  }


@media (max-width: 480px) {
  .navbar {
    width: 100%;
    border-radius: 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
  }

  .hero {
    padding-top: 8rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
