/* =========================
   GLOBAL RESET
========================= */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%; 
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* =========================
   CSS VARIABLES
========================= */
:root {
  --text-main: #49524c;
  --accent: #f15a22;
  --bg-light: #f7f7f6;
  --border-soft: #d7dad7;
}

/* =========================
   BASE TYPOGRAPHY
========================= */
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden; 
  overflow-y: auto; 
}

/* =========================
   LAYOUT
========================= */
main {
  background-color: var(--bg-light);
  padding: 80px 20px;
  margin-bottom: 0; 
}

.content-wrap {
  max-width: 900px;
  margin: 0 auto;
}

/* =========================
   HEADINGS
========================= */
h1, h2, h3 {
  font-family: 'Averia Serif Libre', serif;
  color: var(--text-main);
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 24px;
}

h2 {
  font-size: 2rem;
  margin-top: 64px;
}

h3 {
  font-size: 1.4rem;
  margin-top: 40px;
}

/* =========================
   BODY TEXT
========================= */
p {
  font-size: 1rem;
  margin: 0 0 20px;
}

.lead {
  font-size: 1.15rem;
  font-weight: 500;
  max-width: 720px;
}

/* =========================
   LISTS
========================= */
ul, ol {
  margin: 0 0 24px 20px;
  padding: 0;
}

li {
  margin-bottom: 8px;
}

/* =========================
   PRIMARY BUTTON
========================= */
.btn-primary {
  font-family: 'Averia Serif Libre', serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  background-color: #f26722; 
  color: #ffffff;

  border: none; 
  border-radius: 4px;

  padding: 12px 26px;
  cursor: pointer;

  box-shadow: 0 2px 0 #d4571c; 
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-primary:hover {
  background-color: #e85f1f;
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #d4571c;
}

/* =========================
   TABLES
========================= */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.95rem;
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

th {
  font-weight: 600;
  background-color: #ffffff;
}

/* =========================
   CALLOUT BLOCKS
========================= */
.callout {
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  background-color: #ffffff;
  margin: 40px 0;
}

.callout strong {
  font-weight: 600;
}

/* =========================
   DIVIDERS
========================= */
hr {
  border: none;
  height: 1px;
  background-color: var(--border-soft);
  margin: 64px 0;
}

/* =========================
   OBJECTS (HEADER & FOOTER) 
========================= */
object {
  display: block;
  width: 100%; 
  height: auto; 
  border: none; 
  overflow: hidden; 
  min-height: 0; 
}

/* =========================
   RESPONSIVE STYLES FOR OBJECTS
========================= */
@media screen and (max-width: 768px) {
  .content-wrap {
    padding: 20px;
  }

  .btn-primary {
    padding: 12px 24px;
  }
}

/* =========================
   CONTACT FORM
========================= */
.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
}

.contact-form textarea {
  resize: vertical;
}

/* =========================
   SUCCESS MESSAGE BAR
========================= */
.form-success-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background-color: #e6f6ec;
  color: #1f7a4d;
  border: 1px solid #bfe6d3;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-weight: 500;
}

.form-success-bar.visible {
  display: flex;
}

.form-success-close {
  background: none;
  border: none;
  color: #c0392b;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.form-success-close:hover {
  opacity: 0.75;
}

/* =========================
   HERO & CAROUSEL
========================= */
.hero-bg-wrapper {
  width: 100%;
  background: linear-gradient(to bottom, #49524c 0%, #ffffff 100%);
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.hero-wrap {
  width: 100%;
  max-width: 1920px;
  position: relative;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 660px; 
  overflow: hidden;
  background-color: #49524c; 
}

.carousel-inner {
  display: grid;
  grid-template-areas: "slide";
  width: 100%;
  height: 100%;
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.25); }
}

.carousel-slide {
  grid-area: slide;
  position: relative; 
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center;
  opacity: 0;
  z-index: 1; 
  transition: opacity 2s ease-in-out;
}

.carousel-slide.active {
  opacity: 1 !important; 
  z-index: 5;
  animation: kenBurns 12s linear forwards;
}

.carousel-slide.z-top {
  z-index: 10 !important; 
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: rgba(73, 82, 76, 0.35); 
}

.hero-overlay h1 {
  color: #ffffff;
  font-size: 3.5rem;
  margin-bottom: 24px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.hero-overlay .lead {
  color: #f7f7f6;
  font-size: 1.1rem;
  max-width: 800px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  font-weight: 500;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%); 
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.4);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 50; 
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control.prev { left: 20px; }
.carousel-control.next { right: 20px; }


.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: top 0.4s ease, transform 0.4s ease;
}

@media screen and (max-width: 800px) {
  .carousel-control {
    top: 80%;
    transform: translateY(-50%);
  }
}

@media screen and (max-width: 800px) {
  .carousel-control.prev { left: 30px; }
  .carousel-control.next { right: 30px; }
}




/* =========================
   BRAND WALL STYLES
========================= */
.brand-showcase {
  text-align: center;
  padding-bottom: 100px; 
  padding-top: 40px;     
}

.brand-fader-container {
  display: flex;
  justify-content: center;
  gap: 80px;      
  margin-top: 50px; 
  margin-bottom: 30px;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.brand-col {
  width: 220px; 
  height: 120px; 
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 2500ms ease-in-out;
}

.brand-logo.active {
  opacity: 1 !important; 
  z-index: 2;
}

@media screen and (max-width: 768px) {
  .brand-fader-container {
    flex-direction: column; 
    align-items: center;
    gap: 50px;    
  }
}

/* =========================
   HEADER Z-INDEX FIX
========================= */
header, .navbar, .site-header {
  position: relative;
  z-index: 1000;
}

/* =========================
   SERVICES PAGE STYLES
========================= */

.service-list {
  margin-top: 60px;
}

.service-item {
  margin-bottom: 120px; /* Space between different service groups */
}

.service-item h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.service-image {
  width: 100%;
  height: 400px; /* Taller frame (~30% taller than 300px) */
  border-radius: 4px;
  margin-bottom: 24px;
  display: block;
  object-fit: cover; 
  
  /* Starting position for the parallax */
  object-position: 50% 0%; 
}


.home-hero-image {
  /* Ensures the image never exceeds the width of its container */
  max-width: 100%;
  /* Maintains aspect ratio while scaling */
  height: auto;
  /* Optional: centers the image if it's smaller than the container */
  display: block;
  margin: 0 auto;
}


/* DEEP PARALLAX EFFECT 
   Pans from the very top to the very bottom to reveal more photography */
@supports (animation-timeline: view()) {
  .service-image {
    animation: pan-image-deep linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }
  
  @keyframes pan-image-deep {
    from { object-position: 50% 0%; }
    to   { object-position: 50% 100%; }
  }
}

/* Adjust callout layout to match service-item behavior */
.callout .service-image {
  margin-top: 0;
}

