/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

/* Root variables */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #f8f9fa;
  --accent-color: #c0a080;
  --text-color: #333333;
  --light-color: #ffffff;
  --dark-color: #1a1a1a;
  --gray-color: #6c757d;
  --border-radius: 8px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* Global Styles */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  line-height: 1.8;
  color: var(--text-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-color);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 15px;
  text-align: center;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 10px 0;
  transition: var(--transition);
}

header.scrolled {
  padding: 5px 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 1px;
}

.logo a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

.logo a:hover {
  color: var(--accent-color);
}

/* Desktop Navigation */
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav ul li a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 10px 0;
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--accent-color);
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  margin-left: 1.5rem;
}

.language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.75rem;
  transition: var(--transition);
  opacity: 0.7;
}

.language-switcher a:hover {
  opacity: 1;
}

.language-switcher img {
  width: 24px;
  height: auto;
}

/* Close menu button (hidden by default) */
.close-menu {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Responsive Nav */
@media (max-width: 1100px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--light-color);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: 0.4s ease;
    z-index: 1001;
    padding-top: 60px;
    overflow-y: auto;
  }

  nav.open {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  nav ul li a {
    display: block;
    padding: 15px 25px;
    font-size: 1rem;
  }

  .language-switcher {
    position: absolute;
    top: 25px;
    right: 85px;
  }
  
  .close-menu {
    display: block;
  }
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../assets/hero.jpg') center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-color);
  padding: 0 20px;
  margin-top: -80px;
}

.hero .container {
  position: relative;
  max-width: 800px;
}

.hero h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--light-color);
}

.hero h2::after {
  background-color: var(--light-color);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--light-color);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--light-color);
  padding: 12px 32px;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Sections */
section {
  padding: 100px 0;
  position: relative;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Why Us Grid - 3 columns on larger screens */
@media (min-width: 768px) {
  .why-us .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Cards */
.card {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Icons for Why Us and other sections */
.icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  display: inline-block;
  position: relative;
}

.icon::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  background-color: rgba(192, 160, 128, 0.1);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* Feature Cards Hover Effect */
.why-us .card,
.testimonials .testimonial-card {
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}

.why-us .card:hover,
.testimonials .testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

/* About Section */
.about {
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 1.5rem;
  color: var(--gray-color);
}

.about-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  background-color: var(--secondary-color);
  padding: 20px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.about-list li:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.about-list li i {
  margin-right: 1rem;
  color: var(--accent-color);
  font-size: 1.25rem;
  position: relative;
  top: 2px;
}

/* Practice Areas */
.practice-areas {
  background-color: var(--secondary-color);
}

.practice-areas .container {
  max-width: 1100px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
}

.service-card .service-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  display: inline-block;
  position: relative;
}

.service-card .service-icon::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  background-color: rgba(192, 160, 128, 0.1);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 600;
}

.service-card p {
  color: var(--gray-color);
  margin-bottom: 1rem;
}

.service-examples {
  list-style: none;
  padding: 0;
  margin-top: auto;
}

.service-examples li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.service-examples li::before {
  content: '\f054';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-size: 0.75rem;
}

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

@media (max-width: 576px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* Why Us Section */
.why-us {
  background-color: var(--light-color);
}

.why-us .card {
  padding: 40px 25px;
}

.why-us .card h3 {
  margin: 1rem 0;
  font-weight: 600;
}

/* Attorneys Section */
.attorneys {
  background-color: var(--secondary-color);
}

.profile {
  padding: 30px;
}

.profile img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 5px solid rgba(192, 160, 128, 0.3);
  transition: var(--transition);
}

.profile:hover img {
  border-color: var(--accent-color);
  transform: scale(1.05);
}

.profile h3 {
  margin-bottom: 0.5rem;
}

.profile p:first-of-type {
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.testimonial-card {
  background-color: var(--light-color);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  text-align: left;
  position: relative;
  box-shadow: var(--box-shadow);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 25px;
  font-size: 4rem;
  font-family: 'Cormorant Garamond', serif;
  color: rgba(192, 160, 128, 0.2);
  line-height: 1;
}

.testimonial-card p {
  font-style: italic;
  color: var(--gray-color);
  margin: 0 0 1.5rem 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.testimonial-card h4 {
  font-style: normal;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1rem;
}

/* Contact Section */
.contact {
  background-color: var(--secondary-color);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: start;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.contact-card {
  background-color: var(--light-color);
  padding: 35px 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

.contact-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
}

.contact-card .icon {
  font-size: 1.75rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.contact-card h3 {
  margin-bottom: 1rem;
}

.contact-card p {
  margin: 0;
  color: var(--gray-color);
  line-height: 1.8;
}

.contact-map {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 100%;
  min-height: 400px;
}

.mapouter {
  position: relative;
  text-align: right;
  height: 100%;
  width: 100%;
}

.gmap_canvas {
  overflow: hidden;
  background: none !important;
  height: 100%;
  width: 100%;
}

.gmap_canvas iframe {
  height: 100%;
  min-height: 400px;
}

/* Alternating Section Colors */
section.alt {
  background-color: var(--secondary-color);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  text-align: center;
  padding: 50px 0 20px;
}

footer .container {
  max-width: 800px;
}

.footer-logo {
  display: block;
  margin: 0 auto 2rem;
  max-width: 180px;
}

footer p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  h2 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  section {
    padding: 70px 0;
  }
  
  .grid {
    gap: 20px;
  }
  
  .profile img {
    width: 150px;
    height: 150px;
  }
  
  .contact-grid {
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 10px 25px;
  }
  
  .about-list {
    grid-template-columns: 1fr;
  }
  
  .practice-areas ul {
    grid-template-columns: 1fr;
  }
}

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

.animate {
  animation: fadeIn 1s ease-out;
}