/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

:root {
  --hero-top: 40%;             /* default for big screens: sit a bit higher */
  --hero-font-size: 2.5rem;
  --con-btn-size: 20px;
}
/* Body Styling */
body {
  color: #333;
  line-height: 1.6;
}
/* First Section (Hero Section) */
#first-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* changed from flex-start */
  text-align: center; /* was left */
  aspect-ratio: 16 / 8; /* ≈1.454 < 1.4916 */
  color: white;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.6);
}
#first-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, /* darkest at the very top   */ rgba(0, 0, 0, .45) 120px, /* fade out by ~120-200 px   */ rgba(0, 0, 0, 0) 200px);
  z-index: 1; /* same layer as ::after overlay */
  pointer-events: none;
}
#first-section h1, #first-section p, .header-contact-btn {
  position: relative;
  z-index: 2;
}
/* Hero Section Header */
#first-section-header {
  font-size: clamp(0.95rem, 2.5vw, 10rem);
  text-align: center;
  font-weight: bold;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  max-width: 700px;
  color: white;
}
/* Wrapper fills the hero */
.hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
/* Always give the <img> its own positioning context */
/* nudge farther down on very wide screens */
/* ► NEW: universal darkening film */
.hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25); /* 0.25 = 25 % black         */
  z-index: 1; /* same layer as ::before    */
}
/* Call-to-Action Button */
.header-contact-btn {
  background-color: #D4A017;
  color: #fff;
  border-radius: 6px;
  border: 2px solid #D4A017;
  letter-spacing: .8px;
  font-size: var(--con-btn-size);
  padding: calc(var(--con-btn-size) * 0.6) calc(var(--con-btn-size) * 1.2);
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw; 
  white-space: nowrap;
  cursor: pointer;
  transition: color .3s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, .3);
  margin-top: 20px;
}

#first-section p {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}
.hero-content {
  position: absolute;
  left: 50%;
  bottom: var(--hero-top);
  transform: translateX(-50%);
  text-align: center;
  width: 60%;
  max-width: 700px;
  z-index: 2;
  transition: top .25s ease;   /* smoothen shifts across breakpoints */
}
/* when the hero gets shorter we nudge the heading up slightly */
/* Second Section */
#second-section {}
#second-section h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 26px;
}
/* Grid Layout */
.second-section-row {
  display: grid;
  /* Adjust columns as needed */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  /* Ensure the grid stays within a max width and centers horizontally */
  /* Center grid items within that container */
  justify-content: center;
  justify-items: center; /* centers the actual items within each track */
  align-items: start;
}
/* Service Box Styling */
.second-section-box {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 400px;
  min-height: 220px;
  text-align: left;
}
.second-section-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
/* Icons */
.second-section-box li {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333333;
}
/* Box Titles */
.second-section-box h6 {
  font-size: 18px;
  margin: 10px 0;
  color: #222;
}
/* Description */
.second-section-box p {
  font-size: 14px;
  color: #333333;
  margin-bottom: 30px;
}
/* Learn More Links */
.second-section-box a {
  font-size: 14px;
  color: #2E7369;
  text-decoration: none;
  position: absolute;
  bottom: 15px;
  left: 15px;
  display: inline-flex;
  align-items: center;
}
.second-section-box a::after {
  content: "›";
  margin-left: 5px;
  font-size: 20px;
  color: #2E7369;
}
.second-section-box a:hover {
  text-decoration: underline;
  cursor: pointer;
}
/* Third Section */
#third-section {
  text-align: center;
}
#third-section h1 {
  font-size: 2.5rem;
  color: #333E48;
  margin-bottom: 15px;
}
#third-section p {
  font-size: 1.2rem;
  color: #black;
  line-height: 1.6;
  padding-bottom: 10px;
}
#third-section {
  background: linear-gradient(180deg, white 50%, #f8f8f8 50%);
}


.contact-container {
	text-align: center;
    display: flex;
	flex-direction: row;
	align-items: center;
    width: 90%;
    height: auto;
    gap: 30px;
	padding: 0px 0px;
	margin: 0 auto;


}/* CSS Document */
/* Text Column */
.text-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 18px;
    text-align: left;
    padding: 30px;
}

/* Right Column: Image */
.map-column {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-column img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .contact-container {
        max-width: 100%;
        width: 100%;
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        height: auto;
        text-align: left;
        gap: 10px;
    }

    .text-column, 
    .map-column {
        width: 100%;
        height: auto;
    }
}


/* Call-To-Action Button */

.practice-areas {
  padding: 20px 20px;
  background: #f8f8f8;
  text-align: center;
}
.practice-areas h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333E48;
  text-align: center
}
.practice-viewport {
  margin: 0 auto;
}
.practice-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.practice-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 280px;
  max-width: 320px;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.practice-card:hover {
  transform: translateY(-4px);
}
.practice-card h3 {
  color: #2E7369;
  margin: 12px 0 10px;
  text-align: center;
}
.practice-card p {
  color: #555;
  margin: 0 0 14px;
  font-size: 0.95rem;
  text-align: center;
}
.practice-card .card-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
}
.practice-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



@media (max-width: 1400px) {
  :root { 
    --hero-top: 40%;
    --con-btn-size: 20px; 
  }
}
@media (max-width: 1100px) {
  :root { 
    --hero-top: 40%; 
    --con-btn-size: 15px; 
  }
}
@media (max-width: 900px) {
  :root { 
    --hero-top: 40%;
    --con-btn-size: 14px; 
  }
}
@media (max-width: 768px) {
  :root { 
    --hero-top: 40%;
    --con-btn-size: 13px; 
  }
}
@media (max-width: 600px) {
  :root { 
    --hero-top: 40%;
    --con-btn-size: 12px; 
  }
}
@media (max-width: 300px) {
  :root { 
    --hero-top: 0%;
    --con-btn-size: 12px; 
  }
}


/* Responsive width tweak for small screens */
@media (max-width: 480px) {
  .practice-card {
    flex-basis: 260px;
  }
}
/* Responsive Design */
@media (max-width: 768px) {
  #first-section {
    height: auto;
    text-align: center;
    align-items: center;
  }
  #first-section-header {
    font-size: 1.2rem;
  }
  .second-section-row {
    grid-template-columns: 1fr;
  }
  .second-section-box {
    text-align: center;
  }
  #footer-section-row {
    flex-direction: column;
    text-align: center;
  }
  .prev-btn, .next-btn {
    font-size: 20px;
  }
}

@media (max-width:800px) {

  #home-page #main-page {
    padding-top: 0 !important;
  }
}
