html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* Prevents a side-scroll bar */
}

html {
  /* border-box box model allows us to add padding and border to our elements without increasing their size */
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  /*height: 100vh; default was 100vh*/
  background: #fef8f3;
}

/* Styles body top and bottom 20 px border*/
body:before, body:after {
  content: "";
  position: fixed;
  background: #bdaea1;
  left: 0;
  right: 0;
  height: 2px;
}
body:before {
    top: 0;
}
body:after {
    bottom: 0;
}

#top {
  background: #bdaea1;
  height: 2px;
  width: 100%;
  grid-area: t;
}/* END - styles body top and bottom 20 px border*/

#divider {
  position:fixed;
  /* z-index: 1; */
  width: 100%;
  /* height:26px; */
  height: 180px;
  background: #bdaea1;
  /* margin-top: 210px; */
  margin-top: 640px;
  opacity: 0.20;
  z-index: -1;
  transition: opacity 0.2s ease;
}

/* swirl background design -- Behind Image Slide */
img.bg {
  z-index: -1;
  position: absolute;
  left: 50%;
  width: 600px;
  height: 430px;
  margin: -60px 10px;
  pointer-events: none;
}/* END - swirl background design */

/* Side navigation start - Visible when scrolling */
.side-nav {
  grid-column: 1 / 3;
}
.sidenav {
	width: 165px;
	position: fixed;
	z-index: 1500; /* was 1 */
	top: 10px;
  margin-top: 60px;
	/* left: 0; */
  left: -185px; /* start hidden (just outside viewport) */
	background: #c0b6af;
	overflow-x: hidden;
	padding: 12px 0;
	border-top: 2px solid #ede2db;
	border-right: 2px solid #ede2db;
	border-bottom: 2px solid #ede2db;
	border-top-right-radius: 25px;
	border-bottom-right-radius: 25px;
	filter: drop-shadow(0 0 0.75rem lightgray);
  /* Added */
  transition: left 0.4s ease;}
/* Added */
/* Slide in from left */
.sidenav.open {
  left: 0;
}
/* Toggle Button Style */
.side-nav-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 2000;
  padding: 8px 12px;
  font-size: 18px;
  background-color: #c0b6af;
  border: 2px solid #ede2db;
  border-radius: 12px;
  cursor: pointer;
  display: none;
}
/* end Added */
.sidenav a {
	padding: 12px 0px 6px 10px;
	text-decoration: none;
	font-size: 18px;
	display: block;
	text-align: left;
}
.sidenav a:link {
	color: #180101;
}
.sidenav a:visited {
	color: #180101;
}
.sidenav a:hover {
	color: #064579;
}
.sidenav a.active {
  color: #591c14;
  cursor: default;
}/* Side navigation ends */
/* Image Slider is @CodingSnow */
/*swirl background design end*/
/* img.bg source is CSS Tricks :) */

/* Main Content */
.container {
  display: grid;
  position: relative;
  column-gap: 5px;
  row-gap: 10px;
  /*grid-template-columns: 300px 1fr 200px;*/
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 180px auto;
}

.header {
  display: grid;
  grid-column: 1 / -1;
  /* display: flex; */
  justify-content: center;
  grid-template-rows: 1fr auto;
  /* justify-content: space-around; */
  background-image: url(../img/AF-Site-bkgd-2018_fmt.png);
  height:fit-content;
}

.content {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slide-container{
display: grid;
grid-template-columns: auto;
grid-template-rows: 350px auto;
}
/* Hide the slide-continer for mobile. hmm.. Doesn't change anything */
/* @media (max-width: 768px) {
  .slide-container {
    display:none;
  }
} */

.main_content-text {
  margin: 5px auto;
  padding-top: 25px;
}

.main_content-text h1{
  font: 1.85em 'Averia Sans Libre', sans-serif;
  font-style: italic;
  color: #591c14;
  text-align: center;
}

.main_content-text h3, p {
  color:dimgrey;
  margin: 5px 20px 10px;
}

.main_content-text h3 {
  font: 1.15em 'Averia Sans Libre', sans-serif;
  position: relative;
  padding-left: 1.1em;
  padding-right: 1.1em;
  border-left: 2px solid #b19777;
  border-right: 2px solid #b19777;
  font-weight: normal;
  color:dimgrey;
  margin: 5px 20px 10px;
  line-height: 1.5;
  text-align: justify;
}

.main_content-text h1, h3, p {
  margin: 20px auto;
  padding-top: 0px;
}

.main_content-text_divider {
  width: 1100px;
  height: 140px;
}

/* main_content description for mobile query */
@media (max-width: 768px) {
  .main_content-text {
    /* Adjust margins and padding for mobile */
    margin:50px 10px;
    padding-top: 15px;
  }

  .main_content-text h1 {
    /* Reduce the font size for the main heading */
    font-size: 1.25em;
    margin: 0.5em 0;
  }

  .main_content-text_divider {
    /* Set width to auto to adapt to screen size */
    width: auto; 
    height: auto;
  }

  .main_content-text h3 {
    /* Reduce font size, and simplify decorative borders */
    font-size: 1em;
    padding-left: 0;
    padding-right: 0;
    border-left: none;
    border-right: none;
    text-align: left; /* Change alignment for readability */
    line-height: 1.4;
  }

  /* Reduce margin on all content for a more compact look */
  .main_content-text h1,
  .main_content-text h3,
  .main_content-text p {
    margin: 10px auto;
  }
  #divider {
    display:none;
  }
}

.background_text {
  padding-left: 80px;
  margin-top: 35px;
  display: grid;
  width: 100%;
  color:#fef8f3;
  background: linear-gradient(#c0b6af, #c0b6aa);
  border-top: 1.75rem solid #f7f0ea;
  border-bottom: 1.75rem solid #f7f0ea;
}

/* test section1 and section2 */
.next-screen p {
  font-size: 1.25em;
  width: 100%;
  height: 100%;
  overflow-y: auto; /* Enable vertical scrolling */
  line-height: 1.4em;
  padding: 10px;
}

.next-screen {
  margin: 0 400px;
}

.tenor-sans-regular {
  color: #975b5b;
}

/* About Section */
#about {
  padding-top: 100px;
  font-size: 1.95em;
}

#about i {
  margin-right: 0.25em; /* spacing between icon and About text */
  margin-bottom: 8px;
  vertical-align: middle;
}

/* Finishes Section */
#finishes{
  padding-top: 100px;
  font-size: 1.95em;
  margin-top: 50px;
}

#finishes i {
  margin-right: 0.25em; /* spacing between icon and About text */
  margin-bottom: 8px;
  vertical-align: middle;
}

/* Gallery Section */
#gallery_{
  padding-top: 100px;
  font-size: 1.95em;
}

#gallery_ i {
  margin-right: 0.25em; /* spacing between icon and About text */
  margin-bottom: 8px;
  vertical-align: middle;
}

/* Contact Section */
#contact {
  padding-top: 100px;
  font-size: 1.95em;
}

#contact i {
  margin-right: 0.25em; /* spacing between icon and About text */
  margin-bottom: 8px;
  vertical-align: middle;
}

.montserrat-aside {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 32px;
  letter-spacing: 1px;
  color:dimgrey;
}

.fa-circle-info {
  font-size: 36px;
  color:dimgrey;
}

aside h2, p {
  margin: 1.1em 0;
  max-width: 800px;
  justify-content: center;
}

aside h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1.60rem;
  line-height: 1.45em;
}

/* horizontal scroll awareness */
.scroll-cue {
  color: #b58952; 
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

.cue-wrapper i {
  color: #b58952;
  margin-left: 10px;
  /* Keeps the arrow slightly more vibrant than the text */
  filter: brightness(1.1); 
}

/* Add a soft glow on hover to invite the click/scroll */
.cue-wrapper:hover .scroll-cue {
  color: #333;
  /* transition: color 0.3s ease; */
}

@keyframes shimmer {
  0% { opacity: 0.7; }
  50% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0.7; }
}

.cue-wrapper.visible {
  animation: shimmer 2s infinite ease-in-out;
}/*-------------- */

/* fonts */
aside .scroll-section{
  display: grid;
  grid-template-columns: repeat(1, 900px);
  min-width: 700px;
  font-family: "Tenor Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: 0.1em;
  color:dimgrey;
}

/* CHARACTER highlight - turn off grid to get this work */
.highlight {
  font-size: 1.75rem;
  color: #591c14;
}

section .montserrat-aside {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}
section .pt-sans-regular {
  font-family: "PT Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}
section .pt-sans-bold {
  font-family: "PT Sans", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.topFrm {
  width: 100%;
  background-color: #bdaea1;
  height: 10px;
}

h1.page-description {
  font-family: "Lobster Two", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.75em;
  color: #561B14;
  opacity: 0.7;
  margin: 5px auto 10px;
}

/* Styles for visually hiding an element */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Hide the main heading on mobile and let the visually-hidden span be read */
@media (max-width: 768px) {
  h1.page-description {
    /* Set the font size to 0 to make it visually invisible */
    font-size: 0; 
  }
}

/* Header description for accessibility*/
.visually-hidden1 {
  clip-path: inset(100%);
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* Finishes by Andreas Logo */  /* Resize Image*****/
.af_logo {
  max-width: 170px;
  margin: 15px;
}

.af_LogoPatch {
  background-color: #591c14;
  width: 202px;
  height: 170px;
  border-bottom-left-radius: 17px;
  border-bottom-right-radius: 17px;
  position: absolute;
  margin: 50px auto;
  transition: opacity 0.5s ease;
  opacity: 1;
  pointer-events: auto;
}

.af_LogoPatch.hidden {
  opacity: 0;
  pointer-events: none;
}/* END - Finishes by Andreas Logo */

/* Top Navigation */
.header nav {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 40px;
  grid-template-rows: 110px 1fr;
  font: 1.6em 'Montserrat', sans-serif;
  color: #dfdfdf;
}

nav .areaA, nav .areaB a, nav a:hover:not(.active) {
  background-color: #fef8f3;
    /* transition */
    transition: 0s;
    -webkit-transition: 0.6s;
}

.header nav a {
  text-decoration: none;
  line-height: 5.9;
  padding: 0 8px 0 8px;
}

.header nav a:link {
  color: #dfdfdf;
}

.header nav a:visited {
  color: #dfdfdf;
}

.header nav a:hover:not(.active) {
  /* background-color: #b9ada4; */
  color: #1f1f1f;
  opacity: 0.75;
  line-height: 5.0;
}

.header nav a.active {
  color: #c0b6af;
  cursor: default;
}

/* Header for mobile */
@media (max-width: 768px) {
  .header nav {
    display: flex;
    gap: 20px;
    align-items: center;
    /* Remove grid-specific styles */
    grid-template-columns: none;
    grid-template-rows: none;
    font-size: 1.2em;
    height: auto;
    text-decoration: none;
  }

  .header nav a {
    width: 100%;
    padding: 14px 6px;
    text-align: center;
    text-decoration: none;
    /* Ensure the color is visible */
    color: #444; 
    line-height: normal;
  }

  /* Reset hover styles on mobile to avoid issues with touch */
  .header nav a:hover:not(.active) {
    color: #444;
    opacity: 1;
    line-height: normal;
  }

    /* .af_LogoPatch {
    display: none;
  } */
  .af_LogoPatch {
    background-color: #591c14;
    width: 202px;
    height: 170px;
    border-bottom-left-radius: 17px;
    border-bottom-right-radius: 17px;
    position: absolute;
    margin: -147px;
    transition: opacity 0.5s ease;
    opacity: 1;
    pointer-events: auto;
  }
} /* End mobile */

/* content section */
.alignment {
  grid-column: 3 / -3;
  display:flex;
  flex-direction:column;
  align-items: center;
}

@media (max-width: 768px) {
  .alignment {
    grid-column: 1 / -1;
  }
}

/*Image cards*/
.faux_cards {
  margin: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  grid-gap: 3rem;
  max-width: 1400px;
  position: relative;
}

.faux_art {
  cursor: pointer;
}

.faux_cards h2 {
  font-family: "Tenor Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: 0.1em;
  color:dimgrey;
}

.faux_cards p {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-size: 1rem;
  color:dimgrey;
}

@media (max-width: 768px) {
  .faux_cards {
    margin: 1rem;
    grid-template-columns: 1fr;
    grid-gap: 1rem;
  }
  .faux_art {
    pointer-events: none; /* Disables the click event */
    cursor: default; /* Ensures the mouse doesn't look like a pointer */
  }
}

.faux_card{
  display: grid;
  background: rgba(79, 70, 52, 0.214);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: grid;
  color: gray;
  font-weight: 100;
  position: relative;
  overflow: hidden;
}

.faux_art {
  width: 100%;
  border: 2px solid whitesmoke;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/*End Image cards*/

/* faux crds samples overlay */
.overlay {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 998;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
}

.overlay.active {
  visibility: visible;
  opacity: 1;
}

.hover-img {
  max-width: 100%;
  max-height: 100%;
  width: 1200px;
  height: 800px;
  object-fit:fill;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 999;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: scale(0.95);
  opacity: 0;
  /* border: solid 4px #591c14; */
  /* border: solid 4px #bdaea1; */
  border: solid 5px #343434;
}

.overlay.active .hover-img {
  transform: scale(1);
  opacity: 1;
}

.close-btn {
  position: absolute;
  top: 240px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding-top: 3px;
  background-color: #f7f0ea;
  color: black;
  border: none;
  font-size: 24px;
  padding: 0 0 3px 0;
  line-height: 20px;
  cursor: pointer;
  z-index: 1000;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.close-btn:hover {
  background-color: #e2d6cb;
  transform: scale(1.1);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

/* scroll container shift for attention*/
.scroll-container.fade-in-section.visible img {
  animation: peekScroll 2.2s ease-out;
}

@keyframes peekScroll {
  0% { transform: translateX(0); }
  30% { transform: translateX(-90px); } /* Pull slightly left to show more */
  100% { transform: translateX(0); }    /* Snap back */
}
 /* Manual Scroll for horizontal samples */
.scroll-container {
  grid-column: 3;
  float: right;
  border-left: 2.75rem solid #f7f0ea;
  border-right: 2.75rem solid #f7f0ea;
  max-width: 720px;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: rgb(85, 7, 7) rgba(75, 67, 52, 0.447);
  scrollbar-width: thin;
  position: relative;
  /* ... your existing code ... */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
}

.scroll-container:hover {
  overflow-x: auto;
}

.scroll-container img {
  max-height: 406px;
  padding: 5px 10px;
  display: inline-block;
  /* ... your existing code ... */
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Adds highlight on right side */
.scroll-container::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 100%;
  background: linear-gradient(to left, white, transparent);
  pointer-events: none;
}

hr.solid {
  border-top: 1px solid #bbb;
  margin-top: 50px;
}

/* testing */
.main_content-text {
  transition: opacity 0.5s ease;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(300px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Base state: invisible and slightly lower */
.fade-in-section.text-block {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 2.2s ease-out, transform 0.8s ease-out;
}

/* Active state: triggered by your existing script */
.fade-in-section.text-block.visible {
  opacity: 1;
  transform: translateY(0);
}

/* photo to the right cue */
/* Base state for the cue wrapper */
.cue-wrapper.fade-in-section {
  opacity: 0;
  transform: translateX(-20px); /* Slide in from the left */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: 0.5s; /* Wait half a second after the paragraph starts */
}

/* Active state triggered by your IntersectionObserver */
.cue-wrapper.fade-in-section.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Optional: Make the arrow pulse to signal action */
.cue-wrapper.visible i {
  animation: pointRight 1.5s infinite;
}

@keyframes pointRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

@media (max-width: 768px) {
  .fade-in-section {
    display: none; /* The div is hidden on mobile devices */
  }
}

/* Initial State (Invisible) */
.faux-finishes-list li.fade-in-section {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Active State (Visible) */
.faux-finishes-list li.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* test Services Heading paragraph */
.section-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  border-bottom: 1px solid rgba(181, 137, 82, 0.2);
  padding-bottom: 30px;
  margin-bottom: 40px;
}
.finish-intro, .finish-description {
  /* font-family: "Open Sans", sans-serif; */
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.finish-description {
  color: #b58952;
}

.accent-text {
  color: #591c14; /* Your brand Oxblood */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block; /* Puts the intro on its own line for impact */
  margin-bottom: 10px;
}
/* Subtle fade for the text itself */
.alignment.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.alignment.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.faux-finishes-list {
  list-style: none;
  padding: 0;
  margin-left: 30px;
  font-family: "Open Sans", sans-serif;
  font-size: .95rem;
  line-height: 1.6;
  color: #333;
}

.faux-finishes-heading {
  list-style: none;
  padding: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #b58952;
}

.faux-finishes-list li {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
  position: relative;
  border-left: 3px solid #591c14;
  margin-bottom: 30px;
}

.finish-name {
  display: block;
  font-weight: 600;
  color: #591c14;
  /* margin-bottom: 0.15em; */
  text-transform: uppercase;
}

.finish-keyword {
  font-style: italic;
  color: #b58952;
  display: block;
  padding-bottom: 5px;
}

/* Container setup for side-by-side layout */
.services-consult {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* Space between images and text */
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  border-top: 1px solid rgba(89, 28, 20, 0.3);
}

/* Side Images Styling */
.services-consult {
  display: flex;
  align-items: center;
  /* This pushes images to the absolute edges of the container */
  justify-content: space-between; 
  gap: 30px; 
  margin-top: 50px;
  padding: 40px 0; /* Increased vertical padding */
  border-top: 1px solid rgba(89, 28, 20, 0.3);
  width: 100%; /* Ensure it takes up the full width of the parent section */
}

.consult-side-img {
  width: 200px;
  height: 250px; /* Fixed height helps keep the layout consistent */
  object-fit: cover;
  opacity: 0.6;
  border-radius: 4px;
  /* Prevents the images from shrinking if the screen gets tight */
  flex-shrink: 0;
  /* Add this for a smooth transition */
  transition: opacity 0.4s ease-in-out;
}

/* Hover Effect: Images become 100% opaque when hovering over the container */
.services-consult:hover .consult-side-img {
  opacity: 1;
}

.consult-content p{
  flex-grow: 1; /* Allows text area to take up all remaining space */
  /* margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.4;
  min-width: 200px; */
}

/* Mobile Media Query: Remove accent images on screens smaller than 768px */
@media (max-width: 768px) {
  .consult-side-img {
    display: none;
  }
  
  .services-consult {
    /* Optional: adjust padding for mobile since images are gone */
    padding: 20px 0;
  }
}

.services-consult-button {
    display: inline-block;
    background-color: #591c14;
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.services-consult-button:hover {
    background-color: #802c22;
    transform: translateY(-2px);
}

/* About Us Portrait & Video */
.about-media-container {
  display: flex;
  justify-content: center; 
  align-items: center; /* Vertical centering looks more premium */
  flex-wrap: wrap; 
  gap: 30px; 
  margin-top: 20px;
  padding-bottom: 100px;
  border-bottom: 1px solid rgba(89, 28, 20, 0.3);
}

.about-media-container h1 {
  font: 1.45em 'Averia Sans Libre', sans-serif;
  font-style: italic;
  color: #591c14;
  text-align: center;
}

/* 2. Portrait Styling */
.about_us-portrait {
    flex: 1 1 350px; /* Grow, shrink, and start at 350px */
    max-width: 450px; /* Keep it from getting too giant on ultra-wide screens */
    height: auto;
    border: solid 1px #975b5b;
    background: linear-gradient(to bottom, #fafafa, #eaeaea);
    padding: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 3. Video Styling */
.about-video {
    flex: 1 1 450px; /* Video gets a bit more "base" room than the portrait */
    max-width: 650px; 
    max-height: 589px;
    height: auto;
    border: solid 1px #975b5b;
    background: linear-gradient(to bottom, #fafafa, #eaeaea);
    padding: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Remove the margin-top: 50px; it causes misalignment on desktop */
}

/* 4. The 768px Breakpoint Fix */
@media (max-width: 850px) { /* Breaking slightly earlier is safer */
  .about-media-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .about_us-portrait,
  .about-video {
    max-width: 95%; /* Prevents edges from touching the phone screen */
    width: 100%;
    flex: none; /* Disables the flex-basis growth */
  }
  
  .about-video {
    margin-top: 0; /* Ensures consistent spacing when stacked */
  }
}/* About Us video */

/* new gallery Section */
.gallery-section {
  background: linear-gradient(#c0b6af, #c0b6aa);
}

.galleries-container {
  display: grid;
  /* This creates a 2x2 grid */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px; /* Space between each gallery wrapper */
  padding-bottom: 200px;
}

/* For responsive adjustment */
@media (max-width: 768px) {
  .galleries-container {
      grid-template-columns: 1fr; /* Stack galleries on smaller screens */
  }
}

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

/* animation */
   .single-gallery-wrapper {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
   }

.single-gallery-wrapper:hover {
  /* Hover effect */
  transform: translateY(-2px); /* Moves the wrapper up slightly */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Increases the shadow */
}

.single-gallery-wrapper h2 {
  /* Title styling */
  text-align: center;
  background-color: rgba(0, 0, 0, 0.04);
  padding: 5px;
  margin-bottom: 15px;
  font-size: 1.5em;
  /* color:dimgray; */
  color: #b58952;
  font-family: "Corinthia", cursive;
  font-weight: 400;
  font-style: normal;
 }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Responsive grid */
  gap: 20px;
  margin-bottom: 20px;
  /* Add a min-height to prevent collapsing */
  min-height: 250px; 
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  animation: fadeIn 0.5s ease-out forwards;
  opacity: 0; /* Ensures the item starts hidden */
}

.gallery-item:nth-child(2) {
  animation-delay: 0.1s;
}
.gallery-item:nth-child(3) {
  animation-delay: 0.2s;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 5px;
  font-size: 0.95em;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .caption {
  opacity: 1;
}

.loadMore {
  margin: 2rem auto;
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  /* background-color: #444; */
  background-color: #591c14;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.loadMore:hover {
  background-color: #802c22;
}

/* animated Load more button */
@keyframes pulse {
  0% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.05);
  }
  100% {
      transform: scale(1);
  }
}

#loadMoreBtn1, #loadMoreBtn2, #loadMoreBtn3, #loadMoreBtn4 {
  animation: pulse 1.5s infinite;
  transition: all 0.3s ease;
}/* animated Load more button */

/* Pause the animation on hover */
#loadMoreBtn1:hover, #loadMoreBtn2:hover, #loadMoreBtn3:hover, #loadMoreBtn4:hover {
  animation-play-state: paused;
}

.gallery-controls {
  display: flex;
  /* justify-content: center; */
  /* align-items: center; */
  /* gap: 10px; */
  /* margin-top: 15px; */
}

.revertBtn {
  /* Style for the revert button */
  background-color: transparent;
  border: none;
  color: #878686;
  font-size: 1.2em;
  cursor: pointer;
  transition: color 0.3s ease;
}

.revertBtn:hover {
  color: #333;
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border: 2px solid white;
}

.lightbox p {
  position: absolute;
  bottom: 5%;
  color: white;
  font-size: 1.2em;
  text-align: center;
  width: 100%;
}

.lightbox .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2em;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}/* gallery-end */

.footer-heading {
  color: #ffffff;
  text-align: center;
}

.footer-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.gold-text {
  color: #b58952; /* Your Aged Gold */
  font-weight: 600;
}

.footer-intro h3 {
  font-size: 2.4rem;
  line-height: 1.35;
  padding: 30px;
}

.footer-intro p {
  color: #bdaea1;
  font-style: italic;
  opacity: 0.9;
  font-size: 1.5rem;
  line-height: 1.25;
}

.contact-transition-wrapper {
  padding-top: 100px;
}
.fa-circle-info {
  color: #b58952;
}

@media (max-width: 768px) {
  .contactUsInfo {
    padding: 20px;
  }
  .footer-intro h3 {
    font-size: 1.8rem;
  }
  .footer-intro p {
    font-size: 1.15rem;
  }
}
.contact-section {
  width: 100%;
  /* max-width: 1920px; */
  /* margin: 0 auto; */
  background: url('../img/AF-Site-bkgd-2018_fmt.png') no-repeat center center / cover;
  padding: 80px 0;
  /* display: flex; */
  display: grid;
  justify-content: center;
  border-left: 1px solid #ddd; /* Optional: adds definition on huge screens */
  border-right: 1px solid #ddd;
  box-sizing: border-box;
  color: #ffffff;
}
.contact-section img{
  opacity: 0.8;
}

.contact-content {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping on mobile */
  justify-content: center;
  align-items: center;
  gap: 50px;
  width: 90%;
  max-width: 1100px; /* Limits how wide the form/logo spread apart */
}
.contact-form {
  background-color: rgba(255, 255, 255, 0.75); /* Slightly more solid for readability */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  flex: 1;                /* Allows form to grow */
  min-width: 320px;       /* Keeps it from getting too narrow */
  max-width: 500px;       /* Keeps it from getting too wide */
  display: flex;
  flex-direction: column; /* FORCES inputs to stack vertically */
}

.contact-form h2 {
  margin-top: 0;
  text-align: center;
  color: #333;
  font-size: .80em;
}

/* FORM FIELDS - Ensures they take full width of the card */
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #b0a8a8;
  border-radius: 6px;
  box-sizing: border-box; /* Crucial: includes padding in width */
  background-color: #fcf9f5;
  outline: none;
}
.contact-form textarea:focus,
.contact-form input:focus {
  background-color: #e4e1e1a5;
}

.contact-form button {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box; /* Crucial: includes padding in width */
  background-color: #591c14;
  color: white;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #802c22;
}

/* LOGO */
.contact-logo {
  flex: 0 1 auto;
  max-height: 250px;
  width: auto;
  object-fit: contain;
}

#form-status {
  margin-top: 15px;
  padding: 10px;
  text-align: center;
  font-weight: 500;
  color: #591c14; /* Your brand brown */
  background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
  border-radius: 8px;
  transition: opacity 0.5s ease;
}

/* Helper class to toggle visibility */
.contact-form .status-hidden {
  display: none;
  opacity: 0;
}

.contact-form .status-visible {
  display: block !important;
  opacity: 1 !important;
  color: #591c14;
  padding: 10px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}

/* This container holds the contact phone-n */
.missed-field {
  position: absolute;
  left: -5000px;
  top: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  z-index: -1;
}
/* Contact US End */

.footer-nav {
  grid-column: 1 / span 2; 
  margin-top: 40px;
  width: 100%;
  /* LAYOUT */
  padding: 15px 0; 
  display: flex;
  justify-content: space-evenly; 
  align-items: center;
  flex-wrap: wrap;
  box-sizing: border-box;
  font-size: 18px;
  font-weight: 500;
  /* RECTANGLE BACKGROUND */
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white to show texture */
  backdrop-filter: blur(5px); /* Frosts the faux finish behind it */
  border-radius: 8px; /* Softens the corners of the rectangle */
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* PRE-HOVER STATE */
.footer-nav a {
  /* Add your color here - #591c14 (your brand brown) or #ffffff (white) */
  color: #dbc5c2; 
  text-decoration: none;
  padding: 8px 12px; /* Adds clickable area without changing color */
  transition: color 0.3s ease, text-shadow 0.2s ease;
  /* Ensure there is no background color on the link itself */
  background-color: transparent !important; 
}

/* HOVER STATE */
.footer-nav a:hover {
  color: #802c22; 
  /* Keep background transparent to prevent the 'white block' effect */
  background-color: transparent; 
  /* Optional: subtle glow instead of a block color */
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.300);
}

.footer-nav a:active, 
.footer-nav a:focus {
  background-color: transparent;
  outline: none;
}
/* MOBILE FIX */
@media (max-width: 850px) {
  .footer-nav {
    grid-column: 1; /* Match the single-column form layout */
    padding: 10px;
  }
}

@media (max-width: 600px) {
  .footer-nav {
    flex-direction: column;
  }
  .footer-nav a, .footer-brand {
    margin: 8px 0;
  }
}

/* MOBILE OVERRIDES */
@media (max-width: 768px) {
  .contact-section {
    padding: 40px 0;
  }
  .contact-content {
    flex-direction: column; /* Stack logo under form on phones */
  }
  .contact-form {
    width: 100%;
    padding: 25px;
  }
  .contact-logo {
    max-height: 150px;
  }
}

@media (max-width: 500px) {
  .contact-section {
    padding: 40px 0;
  }
  .contact-content {
    flex-direction: column; /* Stack logo under form on phones */
  }
  .contact-form {
    width: 100%;
    padding: 25px;
  }
  .contact-logo {
    max-height: 150px;
  }
} /* ContactUs end */

/* footer section */
footer {
  grid-column: 3 / -3;
  display:flex;
  flex-direction:column;
  align-items: center;
}

@media (max-width: 768px) {
  .footer {
    grid-column: 1 / -1;
  }
}

.service-area-list {
  text-align: center;
  padding: 20px 20px;
  border-bottom: 1px solid rgba(89, 28, 20, 0.1);
}

.service-area-list h3 {
  font-family: "Tenor Sans", sans-serif;
  color: #591c14;
  font-size: 1.2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.service-area-list p {
  font-size: 0.9rem;
  color: #726f6f;
  max-width: 800px;
  margin: 0 auto;
  line-height: 2;
}

.footer-brand {
margin-bottom: 30px;
font-weight: bold;
font-size: 18px;
margin: 10px 15px;
color: #604331;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #6043317c;
  margin-bottom: 20;
}

.brochure-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.brochure-thumb {
  width: 120px;
  height: auto;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 8px;
}

.brochure-link span {
  font-family: "Tenor Sans", sans-serif;
  font-size: 0.8rem;
  color: #591c14;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brochure-link:hover {
  transform: translateY(-3px); /
}

.footer-social-links {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  justify-content: center;
}

.footer-social-links a {
  color: #604331;
  font-size: 1.2rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.footer-social-links a:hover {
  color: #1877F2; /* facebook blue */
  /* opacity: 0.7; */
  transform: scale(1.1);
}

/* Archive icon styling */
.archive-link {
  font-size: 1.1rem !important; 
  color: #6043317c !important;
}/* footer section End */

html {
  scroll-behavior: smooth;
}