
:root{
  --primary-red:#C62828;
  --black:#000000;
  --white:#FFFFFF;
  --light-gray:rgba(0, 0, 0, 0.6);
  --transition-timing: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Add improved styling to handle body content correctly */
body {
  font-family: "Inter", sans-serif;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background-color: var(--white);
  margin: 0;
  padding: 0;
}

/* Panel body with improved padding */
.panel-body {
  padding: 30px;
  margin: 0;
  height: auto;
  width: 100%;
  box-sizing: border-box;
}

/* Make panels cover everything fully */
.content-panel.active {
  height: 100vh;
  width: 100vw;
  left: 0;
  right: 0;
  transform: translate(0, 0); /* Reset any transforms */
}

/* Ensure that content doesn't scroll horizontally */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Base z-index hierarchy to solve conflicts */
:root {
  --z-background: 1;  
  --z-corner-lines: 15;
  --z-logo: 20;
  --z-home-content: 25;
  --z-panels: 200; /* Significantly increased */
  --z-panel-header: 205; /* Significantly increased */
}

/* Panel active state needs to handle all visual elements */
.content-panel.active {
  z-index: var(--z-panels); /* Apply higher z-index when active */
}

/* Enhanced panel header for better visibility */
.panel-header {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background-color: white; /* Fully opaque */
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: var(--z-panel-header);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}



/* Add responsive adjustments for the pencil image */


/* Logo */
.logo{
  position:absolute;
  top:30px;
  left:50px;
  font-weight:700;
  font-size:1.2rem;
  color:var(--black);
  z-index:20;
  padding: 8px 12px;
  border-radius: 3px;
}

.logo span{
  color:var(--primary-red);
}
.logo img {
  height: auto;
  max-height: 20px;
  width: auto;
}
@media (max-width: 768px) {
  .logo {
    left: 50% !important;          /* centre horizontally               */
    transform: translateX(-50%);   /* because we use absolute positioning*/
    top: 20px !important;          /* pull it up a bit on mobiles        */
  }
}

/* Corner lines styling - subtle refinements */
.corner-line {
  position: absolute;
  background-color: rgba(255, 0, 0, 0.8);
  z-index: 15;
  border-radius: 1.5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Horizontal lines */
.top-left-h, .top-right-h, .bottom-left-h, .bottom-right-h {
  height: 3px;
  width: 60px;
}

/* Vertical lines */
.top-left-v, .top-right-v, .bottom-left-v, .bottom-right-v {
  width: 3px;
  height: 60px;
}

/* Positioning corner lines */
.top-left-h { top: 20px; left: 20px; }
.top-left-v { top: 20px; left: 20px; }
.top-right-h { top: 20px; right: 20px; }
.top-right-v { top: 20px; right: 20px; }
.bottom-left-h { bottom: 20px; left: 20px; }
.bottom-left-v { bottom: 20px; left: 20px; }
.bottom-right-h { bottom: 20px; right: 20px; }
.bottom-right-v { bottom: 20px; right: 20px; }

/*---------------------------*
 *  PANEL TRANSITION SYSTEM  *
 *---------------------------*/

/* Main content container */
.view-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Panel wrapper */
.panel-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-panels);
}

/* Home panel (Main Screen) */
.home-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 80px 0 40px 0;
  align-items: center;
  transition: transform var(--transition-timing), opacity var(--transition-timing);
  transform-origin: center;
}

/* Home panel with a panel active */
.home-panel.panel-active {
  transform: scale(0.85) translateX(-10%);
  filter: blur(2px);
}

/* Title styling */
.brand-title{
  font-family:"Merriweather",sans-serif;
  font-weight:700;
  font-size:clamp(25px,6vw,120px); 
  
  letter-spacing:1px;
  color: #2c2c2c;
  line-height:1.2;
  text-align:left;
  margin-bottom: 15px;
  text-shadow: 0 4px 4px rgba(0,0,0,0.1);
}

/* Tagline styling */
.tagline{
  font-family: "Rubik", sans-serif;
  font-weight: 300;
  font-size: 1.2rem;
  text-align: center;
  color: var(--black);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Container for middle content */
.middle-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px;
  gap: 30px;
}

/* Adjust spacing for mobile view */


/* Button styling */
.contact-btn{
  background-color: var(--primary-red);
  color: var(--white);
  border: none;
  padding: 14px 45px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: .3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  margin-bottom: 20px;
}

.contact-btn:hover{
  transform: translateY(-1px);

  background-color: #6c1515;
  color: var(--white);
}

/* Navigation menu */
.bottom-menu-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 100;
}

.bottom-menu {
  display: flex;
  justify-content: space-between;
  width: 80%;
  max-width: 800px;
  position: relative;
  padding: 15px 0;
}

/* Menu item styling */
.menu-item {
  color: var(--black);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 10px 0;
  width: 140px;
  text-align: center;
  position: relative;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: inline-block;
}

.menu-item:hover, 
.menu-item.active {
  color: var(--primary-red);
  background-color: var(--white);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Footer message */
.footer-message {
  font-size: 0.5rem;
  color: var(--light-gray);
  text-align: center;
  margin-top: 5px;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0;
  background: var(--white);
}

/* Content Panels */
.content-panel {
  position: absolute;
  width: 100%; /* Changed from 90% to 100% for full width */
  height: 100%;
  background-color: white;
  z-index: 20;
  transition: transform var(--transition-timing);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

/* Panel positions */
.panel-right {
  right: 0;
  transform: translateX(100%);
}

.panel-left {
  left: 0;
  transform: translateX(-100%);
}

.panel-top {
  top: 0;
  width: 100%;
  height: 100%; /* Changed from 90% to 100% */
  transform: translateY(-100%);
}

.panel-bottom {
  bottom: 0;
  width: 100%;
  height: 100%; /* Changed from 90% to 100% */
  transform: translateY(100%);
}

/* Active panels */
.panel-right.active {
  transform: translateX(0);
}

.panel-left.active {
  transform: translateX(0);
}

.panel-top.active {
  transform: translateY(0);
}

.panel-bottom.active {
  transform: translateY(0);
}

/* Panel header */
.panel-header {
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 30; /* Increased z-index to ensure it stays above content */
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.panel-header h2 {
  margin: 0;
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--black);
  position: relative;
}

.panel-header h2:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 40px;
  height: 3px;
  background-color: var(--primary-red);
}

.panel-body {
  padding: 40px;
}

/* Close button */
.panel-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: none;
  color: var(--black);
  font-size: 1.2rem;
  outline: none;
}

.panel-close:hover {
  background-color: var(--primary-red);
  color: white;
  transform: rotate(90deg);
}

/* Mobile talk button */
.mobile-talk-btn {
  display: none;
}

/* Keep all your original styles for content inside panels */

/* Form styling */
.contact-form .form-control {
  border: none;
  border-radius: 8px;
  padding: 12px 15px;
  background-color: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.01) inset;
}

.contact-form .form-control:focus {
  background-color: white;
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
  border-color: rgba(255, 0, 0, 0.2);
}

.contact-form label {
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
  color: rgba(0, 0, 0, 0.7);
}

.contact-form .btn {
  display: block;
  margin: 0 auto;
  white-space: nowrap;  /* prevent line breaks */
  /* optional: max-width if you really want one, but ≥ text width */
}

/* Team cards */
.team-intro {
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.team-intro h3 {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

.team-intro h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-red);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.team-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-card:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background-color: var(--primary-red);
  border-bottom-left-radius: 50px;
  z-index: -1;
  opacity: 0.2;
  transition: all 0.3s ease;
}

.team-card:hover:before {
  width: 70px;
  height: 70px;
  opacity: 0.3;
}

.team-img {
  width: 100%;
  height: 250px;
  background-color: #f0f0f0;
  position: relative;
  overflow: hidden;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.team-card:hover .team-img img {
  transform: scale(1.05);
}

.team-info {
  padding: 25px;
}

.team-name {
  font-weight: 700;
  margin: 0 0 8px 0;
  font-size: 1.3rem;
  color: var(--black);
}

.team-role {
  color: var(--primary-red);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  display: inline-block;
  padding: 4px 12px;
  background-color: rgba(255, 0, 0, 0.1);
  border-radius: 30px;
}

.team-bio {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.6;
}

.team-contact {
  margin-top: 15px;
  display: flex;
  gap: 15px;
}

.team-contact a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  transition: all 0.3s ease;
}

.team-contact a:hover {
  background-color: var(--primary-red);
  color: var(--white);
  transform: translateY(-3px);
}

/* Services section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.service-card {
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.service-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--primary-red);
  opacity: 0.8;
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon i {
  color: var(--primary-red);
  font-size: 1.5rem;
}

.service-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--black);
}

.service-description {
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.6;
}

/* About us section */
.about-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-content {
  line-height: 1.8;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.about-content h3 {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin-top: 50px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.services-content h3 {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin-top: 50px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  
}

.about-content h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-red);
}
.services-content h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-red);
}

.about-content p {
  margin-bottom: 20px;
  color: rgba(0, 0, 0, 0.8);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-red);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 5px;
  color: rgba(0, 0, 0, 0.7);
}

/* Responsive adjustments */
@media (max-width: 768px) {
.footer-message {
  font-size: 0.1rem;
  color: var(--light-gray);
  text-align: center;
  margin-top: 2px;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0;
  background: var(--white);
}
  .about-section {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .brand-title {
    font-size: 15vw;
  }
  
  .home-panel {
    padding: 80px 15px 20px;
  }
  
  .middle-content {
    flex-grow: 0;
    padding-bottom: 0;
  }
  
  .middle-content .contact-btn {
    display: none;
  }
  
  .mobile-talk-btn {
    display: block;
    margin: 0 auto 25px auto;
  }
  
  .bottom-menu {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }
  
  .menu-item {
    font-size: 0.8rem;
    width: 120px;
  }
  
  .tagline {
    font-size: 1rem;
  }
  
  .footer-message {
    font-size: 0.65rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .panel-body {
    padding: 20px;
  }
  
  .home-panel.panel-active {
    transform: scale(0.95);
    filter: blur(2px);
  }
  
  .content-panel {
    width: 100%;
  }
}
/* Talk button in top right - from paste-2.txt */
.talk-button {
  position: fixed;
  top: 40px;
  right: 45px;
  background-color: var(--primary-red);
  color: var(--white);
  border: none;
  padding: 12px 25px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: calc(var(--z-panels) - 1);
}

.talk-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}


/* Carousel container */
.carousel-container {
  position: relative;
  max-width: 800px;
  height: 240px;
  margin: 50px auto;
}

/* Card deck */
.card-deck {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Article card */
.article-card {
  position: absolute;
  width: 90%;
  height: 180px;
  left: 5%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  overflow: hidden;
  transform-origin: center center;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Card states */
.article-card[data-position="1"] {
  transform: translateY(0);
  z-index: 3;
  opacity: 1;
}

.article-card[data-position="2"] {
  transform: translateY(15px);
  z-index: 2;
  opacity: 0.9;
}

.article-card[data-position="3"] {
  transform: translateY(30px);
  z-index: 1;
  opacity: 0.8;
}

/* Card image */
.card-image {
  flex: 0 0 150px;
  background-size: cover;
  background-position: center;
  height: 150px !important;
object-fit: cover !important;
max-height: 150px !important;
}

/* Card content */
.card-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-title {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--black);
  position: relative;
  display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
line-height: 1.3;
max-height: 3.1em;
}

.card-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 30px;
  height: 2px;
  background-color: var(--primary-red);
}

.card-preview {
  color: var(--light-gray);
  line-height: 1.4;
  margin-bottom: 10px;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-link {
  color: var(--primary-red);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  margin-top: auto;
align-self: flex-start;
}

.card-link:hover {
  transform: translateX(5px);
}

/* Navigation controls */
.carousel-controls {
  position: absolute;
  bottom: 20px;       /* adjust this up/down as needed */
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;      /* cancel out the inline style */
  width: auto;
  text-align: center;
}

.control-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.control-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background-color: var(--primary-red);
  color: white;
}

.control-btn:hover svg {
  stroke: white;
}

.control-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary-red);
  stroke-width: 3;
}

/* Carousel container - REVISED */
.carousel-container {
  position: relative;
  width: 100%; /* Changed from max-width to ensure it takes full available width */
  height: 280px;
  margin: 20px auto;
  padding: 0 20px; /* Add padding to prevent cards from touching edges */
  transform: translateY(-20px);
}

/* Ensure the card-deck takes full width */
.card-deck {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Make article cards wider */
.article-card {
  position: absolute;
  width: 100%; /* Changed from 90% to 100% for full width */
  height: 180px;
  left: 0; /* Changed from 5% to 0 */
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  overflow: hidden;
  transform-origin: center center;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Additional responsive adjustments for carousel */
@media (max-width: 768px) {
  .carousel-container {
    height: 320px;
    
  }
  .card-preview {
    display:none;
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
    margin-bottom: 5px;
  }
  
  
  .article-card {
    width: 85%;
    left: 7.5%;
  }
}

@media (max-width: 768px) {
    .footer-message {
  font-size: 0.4rem;
  color: var(--light-gray);
  text-align: center;
  margin-top: 2px;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0;
  background: var(--white);
}
  .article-card {
    width: 90%;
    left: 5%;
    flex-direction: column;
    height: 220px;
  }
  
  .card-image {
    flex: 0 0 110px;
    width: 100%;
    
  }
  
  .card-content {
    padding: 12px 15px;
  }
  
  .card-title {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  
  .card-preview {
    display:none;
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
    margin-bottom: 5px;
  }
  
  .card-link {
    font-size: 0.8rem;
  }
  
  .carousel-container {
    height: 280px;
    position:relative !important; 
    top:-100px !important; 
    transform:none !important;
  }
  
  .carousel-controls {
    position: relative;       /* fall back to normal flow */
    bottom: auto;             /* no absolute bottom */
    left: auto;
    transform: none;
    margin-bottom: 35px;      /* small top margin to separate from cards */
    z-index: auto;            /* no longer needs special stacking if out of the way */
  }
}
@media (max-width: 768px) {
  .middle-content {
    padding: 10px;
  }
  
  .middle-content .carousel-container {
    margin-top: 20px;
  }
}
/* Responsive adjustments for talk button */
@media (max-width: 768px) {
  .talk-button {
    top: 30px;
    right: 30px;
    padding: 8px 18px;
    font-size: 0.8rem;
    z-index: calc(var(--z-panels) - 1); /* Ensure it stays above other elements */
  }
}

/* Further adjustments for very small screens */
@media (max-width: 480px) {
    .brand-title {
    font-size: 15vw;
    margin-top: 35px;
  }
  
  .talk-button {
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 0.7rem;

  }
    .logo img {
        max-height: 10px;
        top: 8px;
        left: 8px;
        font-size: 1rem;
    }
}

/* CHANGES HERE */
@media (max-width: 768px) {
  .carousel-container {
    height: 320px;
    padding: 0 10px;
  }
  
  .article-card {
    height: 220px; /* Make cards taller on mobile */
  }
  
  /* Adjust card positions for better visibility */
  .article-card[data-position="2"] {
    transform: translateY(25px) scale(0.95);
  }
  
  .article-card[data-position="3"] {
    transform: translateY(50px) scale(0.9);
  }
  .logo img {
        max-height: 15px;
        top: 5px;
        left: 8px;
        font-size: 1rem;
    }
 
}

/* Further adjustments for very small screens */
@media (max-width: 576px) {
  .carousel-container {
    height: 290px;
  }
  
  .article-card {
    flex-direction: column;
    height: 240px;
  }
  
  .card-image {
    flex: 0 0 100px;
    width: 100%;
  }
}
#services-panel .service-section {
  margin-bottom: 2rem;
}

#services-panel .service-section:last-child {
  margin-bottom: 0;
}
/* Animated Text Link Styles */
.insights-link {
  position: relative;
  font-weight: 600;
  font-size: 1rem;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 8px 0;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.insights-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40%;
  height: 2px;
  background-color: var(--primary-red);
  transition: all 0.3s ease;
}

.insights-link:hover {
  color: var(--primary-red);
}

.insights-link:hover::after {
  width: 100%;
}

.insights-link .icon {
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.insights-link:hover .icon {
  transform: translateX(5px);
}
@media (max-width: 576px) {
  .carousel-controls {
    position: relative;       /* fall back to normal flow */
    bottom: auto;             /* no absolute bottom */
    left: auto;
    transform: none;
    margin: 10px auto 0;      /* small top margin to separate from cards */
    z-index: auto;            /* no longer needs special stacking if out of the way */
  }
}
/* Hamburger Button Styles */
.hamburger-button {
  position: fixed;
  top: 40px;
  right: 50px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-red);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  padding: 0;
  z-index: 201;
}

/* Replace the plus with hamburger lines */
.hamburger-icon {
  width: 22px;
  height: 18px;
  position: relative;
  transition: transform 0.3s ease;
}

.hamburger-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: white;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
  top: 0px;
}

.hamburger-icon span:nth-child(2) {
  top: 8px;
}

.hamburger-icon span:nth-child(3) {
  top: 16px;
}

/* X animation when active */
.hamburger-button.active .hamburger-icon span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.hamburger-button.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger-button.active .hamburger-icon span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

/* Menu Overlay */
/* Enhanced menu overlay */
/* Menu Overlay - New Design */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

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

/* Animated background line elements */
.menu-bg-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.2;
}

.menu-bg-line {
  position: absolute;
  background-color: rgba(255, 0, 0, 0.3);
}

.menu-bg-line.horizontal {
  height: 1px;
  width: 0;
  left: 0;
  transition: width 1.2s ease;
}

.menu-bg-line.vertical {
  width: 1px;
  height: 0;
  top: 0;
  transition: height 1.2s ease;
}

.menu-overlay.active .menu-bg-line.horizontal {
  width: 100%;
}

.menu-overlay.active .menu-bg-line.vertical {
  height: 100%;
}

.menu-bg-line.h1 { top: 15%; transition-delay: 0.1s; }
.menu-bg-line.h2 { top: 50%; transition-delay: 0.2s; }
.menu-bg-line.h3 { top: 85%; transition-delay: 0.3s; }
.menu-bg-line.v1 { left: 15%; transition-delay: 0.4s; }
.menu-bg-line.v2 { left: 50%; transition-delay: 0.5s; }
.menu-bg-line.v3 { left: 85%; transition-delay: 0.6s; }

/* Navigation container */
.menu-nav {
    position: relative;
  z-index: 10;
  width: 100%;
  text-align: center;
}

/* Menu items */
.menu-items {
    display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

css.menu-item {
  font-family: "Rubik", sans-serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.5s ease, opacity 0.5s ease, color 0.3s ease;
}

.menu-overlay.active .menu-item {
  opacity: 1;
  transform: translateY(0);
}

.menu-item:nth-child(1) { transition-delay: 0.2s; }
.menu-item:nth-child(2) { transition-delay: 0.3s; }
.menu-item:nth-child(3) { transition-delay: 0.4s; }
.menu-item:nth-child(4) { transition-delay: 0.5s; }

.menu-item:hover {
  color: var(--primary-red);
}

.menu-item::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-red);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.menu-item:hover::before {
  width: 100%;
}

/* Red dot indicator */
.menu-indicator {
    position: absolute;
  left: -20px; /* Move it outside the text element */
  top: 50%;
  transform: translateY(-50%);
}

.menu-item:hover .menu-indicator {
  opacity: 1;
  transform: scale(1);
}

/* Complementary Design Elements */
.menu-logo {
  position: absolute;
  top: 40px;
  left: 40px;
  color: white;
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.5s ease 0.6s, transform 0.5s ease 0.6s;
}

.menu-overlay.active .menu-logo {
  opacity: 1;
  transform: translateY(0);
}

.menu-footer {
  position: absolute;
  bottom: 40px;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.7s, transform 0.5s ease 0.7s;
}

.menu-overlay.active .menu-footer {
  opacity: 1;
  transform: translateY(0);
}

/* Preserve the hamburger button as requested */
.hamburger-button {
  position: fixed;
  top: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  padding: 0;
  z-index: 2001;
}

.hamburger-button:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.hamburger-button.active {
  background-color: var(--primary-red);
}

.hamburger-icon {
  width: 20px;
  height: 14px;
  position: relative;
  transition: transform 0.3s ease;
}

.hamburger-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--primary-red);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger-button.active .hamburger-icon span {
  background: white;
}

.hamburger-icon span:nth-child(1) {
  top: 0px;
}

.hamburger-icon span:nth-child(2) {
  top: 6px;
}

.hamburger-icon span:nth-child(3) {
  top: 12px;
}

.hamburger-button.active .hamburger-icon span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.hamburger-button.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger-button.active .hamburger-icon span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .menu-item {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .menu-item {
    font-size: 2rem;
  }
  
  .menu-nav {
    max-width: 90%;
  }
  
  .hamburger-button {
    top: 25px;
    right: 25px;
    width: 42px;
    height: 42px;
  }
  
  .menu-logo {
    top: 25px;
    left: 25px;
    font-size: 1rem;
  }
  
  .menu-footer {
    bottom: 25px;
  }
}

@media (max-width: 576px) {
  .menu-item {
    font-size: 1.5rem;
    padding: 8px 0;
  }
  
  .menu-items {
    gap: 15px;
  }
  
  .hamburger-button {
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
  }
  
  .menu-logo {
    top: 15px;
    left: 15px;
  }
  
  .menu-footer {
    bottom: 15px;
    font-size: 0.7rem;
  }
}
.panel-active .hamburger-button,
.menu-overlay.active + .hamburger-button,
.content-panel.active ~ .hamburger-button {
  opacity: 0;
  pointer-events: none;
}
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1), 
              visibility 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}

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

/* Background Elements */
.menu-background {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: -1;
}

/* Animated Blob Background */
.menu-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,0,0,0.2) 0%, rgba(255,0,0,0) 70%);
  border-radius: 50%;
  filter: blur(60px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-overlay.active .menu-blob {
  transform: translate(-50%, -50%) scale(1.5);
}

/* Grid Background */
.menu-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.menu-overlay.active .menu-grid {
  opacity: 0.2;
}

.grid-line {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.15);
}

.grid-line.horizontal {
  width: 100%;
  height: 1px;
  left: 0;
}

.grid-line.horizontal:nth-child(1) {
  top: 25%;
  transform: translateX(-100%);
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.1s;
}

.grid-line.horizontal:nth-child(2) {
  top: 50%;
  transform: translateX(-100%);
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.2s;
}

.grid-line.horizontal:nth-child(3) {
  top: 75%;
  transform: translateX(-100%);
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.3s;
}

.grid-line.vertical {
  height: 100%;
  width: 1px;
  top: 0;
}

.grid-line.vertical:nth-child(4) {
  left: 25%;
  transform: translateY(-100%);
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.4s;
}

.grid-line.vertical:nth-child(5) {
  left: 50%;
  transform: translateY(-100%);
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.5s;
}

.grid-line.vertical:nth-child(6) {
  left: 75%;
  transform: translateY(-100%);
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.6s;
}

.menu-overlay.active .grid-line {
  transform: translate(0, 0);
}

/* Menu Container */
.menu-items-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  z-index: 10;
  position: relative;
}

/* Menu Item Wrapper */
.menu-item-wrapper {
  overflow: hidden;
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-overlay.active .menu-item-wrapper {
  transform: translateY(0);
  opacity: 1;
}

.menu-overlay.active .menu-item-wrapper:nth-child(1) {
  transition-delay: 0.1s;
}

.menu-overlay.active .menu-item-wrapper:nth-child(2) {
  transition-delay: 0.2s;
}

.menu-overlay.active .menu-item-wrapper:nth-child(3) {
  transition-delay: 0.3s;
}

.menu-overlay.active .menu-item-wrapper:nth-child(4) {
  transition-delay: 0.4s;
}

/* Menu Item */
.menu-item {
    
  width: 280px;
  padding: 12px 0;
  font-size: 1.2rem;
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: 5px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 
              0 0 0 1px rgba(255, 255, 255, 0.1);

  margin: 0 auto;
  display: block;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 2px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #000;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), 
              box-shadow 0.5s cubic-bezier(0.19, 1, 0.22, 1),
              background-color 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  
}

.menu-item:hover {
  transform: translateY(-5px) scale(1.03);
  background-color: white;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), 
              0 0 0 1px rgba(255, 255, 255, 0.15),
              0 0 0 4px rgba(255, 0, 0, 0.2);
}

/* Text appearance */
.menu-item-text {
  position: relative;
  z-index: 2;
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1),
              color 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.menu-item:hover .menu-item-text {
  transform: translateY(-2px);
  color: #FF0000;
}

/* Hover effects */
.menu-item-hover-effect {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #FF0000;
  transform: scaleX(0.3);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1),
              opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.menu-item:hover .menu-item-hover-effect {
  transform: scaleX(1);
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .menu-item {
    width: 220px;
    padding: 14px 0;
    font-size: 1rem;
  }
  
  .menu-items-container {
    gap: 20px;
  }
  
  .menu-blob {
    width: 400px;
    height: 400px;
  }
}

@media (max-width: 480px) {
  .menu-item {
    width: 180px;
    padding: 12px 0;
    font-size: 0.9rem;
  }
  
  .menu-items-container {
    gap: 16px;
  }
}
/* STRICTLY MOBILE-ONLY CAROUSEL MODIFICATIONS 
 * These styles ONLY apply to mobile views (max-width: 768px)
 * Desktop version remains completely untouched
 */

/* Only target mobile screens */
@media only screen and (max-width: 768px) {
  /* Create mobile-only class that we'll add via JavaScript */
  .mobile-view-active .article-card {
    /* Create a default hidden state for all cards */
    display: none;
  }
  
  /* Only show the currently active card */
  .mobile-view-active .article-card.mobile-active {
    display: block;
    position: relative !important;
    transform: none !important;
    width: 90% !important;
    margin: 0 auto !important;
    flex-direction: column !important;
    left: auto !important;
    top: auto !important;
    opacity: 1 !important;
  }
  
  /* Change from side-by-side to top-bottom layout */
  .mobile-view-active .article-card.mobile-active .card-image {
    height: 120px !important;
    object-fit: contain !important; /* Change from cover to contain */
    max-height: 120px !important;
    
  }
  
  .mobile-view-active .article-card.mobile-active .card-content {
    width: 100% !important;
    padding: 15px !important;
  }
  
  /* Make sure talk button has proper spacing */
  .talk-button {
    top: 15px !important;
    right: 15px !important;
    margin-bottom: 10px !important;
  }
  
  /* Adjust container size for single card view */
  .mobile-view-active .carousel-container {
    height: auto !important;
    margin-bottom: 30px !important;
    margin-top: 20px !important;
    padding-bottom: 40px !important; /* Space for controls */
  }
  
  /* Position controls at the bottom */
  .mobile-view-active .carousel-controls {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    text-align: center !important;
    margin-top: 10px !important;
  }
  
  /* Adjust card deck for proper flow */
  .mobile-view-active .card-deck {
    height: auto !important;
    position: relative !important;
  }
  
}
@media only screen and (max-width: 376px) {
    /* Adjust the carousel container for mobile */
    .carousel-container {
        position: relative !important; 
        top: 20px !important; 
        transform: none !important;
    }
    
    /* Hide the card image */
    .article-card .card-image {
        display: none !important;
    }
    
    /* Adjust the card height */
    .article-card {
        height: auto !important;
        min-height: 120px !important;
    }
    
    /* Give content proper padding */
    .card-content {
        padding: 15px !important;
    }
    
    /* Adjust the card deck for mobile */
    .card-deck {
        height: auto !important;
        position: relative !important;
    }
}
@media (max-width: 768px) {
  .brand-title {
    margin-top: 70px; /* Reduced top margin */
  }
  
  .home-panel {
    padding-top: 50px; /* Reduced top padding */
  }
  
  .middle-content {
    margin-top: -20px; /* Negative margin to pull content up */
  }
  
  .logo {
    top: 15px; /* Move logo up slightly */
  }
}
.brand-title {
    margin-top: 30px; /* Even less margin for smaller screens */
  }
/* For very small screens, adjust further */
@media (max-width: 480px) {
  .brand-title {
    margin-top: 70px; /* Even less margin for smaller screens */
  }
  
  .home-panel {
    padding-top: 40px; /* Even less padding for smaller screens */
  }
}
@media only screen and (max-width: 376px) {
    .carousel-controls {
        top: 150px !important;
        position: relative !important;
    }
}
#insights-panel .contact-btn {
  background-color: var(--white);
  color: var(--primary-red);
  
}

#insights-panel .contact-btn:hover {
  background-color: var(--primary-red);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(255,0,0,.3);
}
/* Insights cards styling to match .service-content look */
#insights-row .card {
  border: none;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

#insights-row .card-img-top {
  width: 100%;
  height: 200px;          /* or whatever max you’d like */
  object-fit: contain;    /* use “cover” if you’d rather crop to fill */
}

#insights-row .card-body {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#insights-row .card-title {
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--black);
}

#insights-row .card-text {
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

#insights-row .contact-btn {
  margin-top: auto;
}

#insights-row .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
.alert {
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease-in-out;
  font-weight: 500;
}

.alert-success {
  background-color: rgba(0, 128, 0, 0.1);
  border: 1px solid rgba(0, 128, 0, 0.2);
  color: #006400;
}

.alert-danger {
  background-color: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.2);
  color: #FF0000;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Intro fade: full black cover that fades away */
.intro-fade{
  position: fixed;
  inset: 0;                     /* top:0; right:0; bottom:0; left:0 */
  background: #000;             /* full black */
  z-index: 12000;               /* higher than your panels/menus */
  opacity: 1;
  pointer-events: auto;         /* blocks interaction until it fades */
}

/* trigger fade by adding .fade-out (via JS below) */
.intro-fade.fade-out{
  animation: introFadeOut 800ms cubic-bezier(.2,.8,.2,1) 150ms forwards;
}

/* actually fade to transparent + hide from layout/accessibility */
@keyframes introFadeOut{
  to{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .intro-fade.fade-out{
    animation-duration: 1ms;    /* effectively instant */
    animation-delay: 0ms;
  }
}
body {
  background: transparent;
}

.insights-link {
  /* Brighter, more white glassy background */
  background: rgba(255, 255, 255, 0.7);  /* Much more opaque white */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.9);  /* Almost white border */
  padding: 10px 20px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1),  /* Soft shadow for depth */
              0 0 30px rgba(255, 255, 255, 0.5),  /* White glow */
              inset 0 1px 0 rgba(255, 255, 255, 0.9);  /* Inner highlight */
  
  /* Keep your existing properties */
  position: relative;
  font-weight: 600;
  font-size: 1rem;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.insights-link:hover {
  background: rgba(255, 255, 255, 0.9);  /* Even whiter on hover */
  border-color: rgba(255, 255, 255, 1);
  color: var(--primary-red);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12),
              0 0 40px rgba(255, 255, 255, 0.6);
}

/* Keep your underline animation */
.insights-link::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 20px;
  width: 40%;
  height: 2px;
  background-color: var(--primary-red);
  transition: all 0.3s ease;
}

.insights-link:hover::after {
  width: calc(100% - 40px);
}

/* Background gradient effect - subtle and light */
.home-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 40%,
    rgba(255, 250, 250, 1) 70%,
    rgba(255, 245, 245, 1) 100%
  );
  z-index: -1;
  opacity: 0.8;
}

/* Alternative gradient option (even more subtle) */
/* .home-panel::before {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 251, 251, 0.95) 80%,
    rgba(255, 248, 248, 0.9) 100%
  );
} */

/* Align brand title with logo margin */
.brand-title {
  font-family: "Merriweather", sans-serif;
  font-weight: 700;
  font-size: clamp(25px, 6vw, 120px);
  letter-spacing: 6px;
  color: #2c2c2c;
  line-height: 1.2;
  text-align: left;
  margin-bottom: 15px;
  text-shadow: 0 4px 4px rgba(0,0,0,0.1);
  padding-left: 30px;  /* Match logo's left: 30px */
  padding-right: 30px; /* Balance the right side */
  width: 100%;
  box-sizing: border-box;
}

/* Enhanced responsive sizing for brand title */
@media (max-width: 1400px) {
  .brand-title {
    font-size: clamp(22px, 5.5vw, 100px);
    letter-spacing: 5px;
  }
}

@media (max-width: 1200px) {
  .brand-title {
    font-size: clamp(20px, 5vw, 80px);
    letter-spacing: 4px;
  }
}

@media (max-width: 992px) {
  .brand-title {
    font-size: clamp(18px, 4.5vw, 60px);
    letter-spacing: 3px;
  }
}

@media (max-width: 768px) {
  .brand-title {
    font-size: clamp(16px, 4vw, 45px);
    letter-spacing: 2px;
    padding-left: 20px;  /* Slightly reduced padding on mobile */
    padding-right: 20px;
  }
}

@media (max-width: 576px) {
  .brand-title {
    font-size: clamp(14px, 3.8vw, 35px);
    letter-spacing: 1px;
    padding-left: 15px;  /* Match smaller screen margins */
    padding-right: 15px;
  }
}

@media (max-width: 376px) {
  .brand-title {
    font-size: clamp(13px, 3.5vw, 28px);
    letter-spacing: 0.5px;
    padding-left: 10px;  /* Minimal padding for very small screens */
    padding-right: 10px;
  }
}

/* Ensure the parent container doesn't interfere with alignment */
.home-panel .row {
  margin-left: 0;
  margin-right: 0;
}

.home-panel .col-12 {
  padding-left: 0;
  padding-right: 0;
}
/* Hero section - keep existing alignment */
.home-panel {
  padding: 100px 0 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

/* Logo positioning - aligned with hamburger */
.logo {
  position: fixed;
  top: 40px;
  left: 50px;
  z-index: 20;
}

.logo img {
  height: auto;
  max-height: 20px;
  width: auto;
}

/* Hero section */
.hero-section {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 60px;
  padding-right: 60px;
  padding-top: 40px;
  width: 100%;
}

.brand-title {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 7vw, 95px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-align: left;
  margin-bottom: 20px;
  margin-left: 0;
  padding-left: 0;
  max-width: 1000px;
}

/* Restore text gradient effect */
.brand-title .emphasis {
  display: block;
  background: linear-gradient(135deg, #000 0%, #3d3535 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-title .accent {
  background: linear-gradient(135deg,#7a0000 0%, var(--primary-red) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.5vw, 19px);
  color: #666;
  margin-bottom: 30px;
  margin-left: 0;
  text-align: left;
  max-width: 600px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

#main-contact-btn {
  margin-left: 0 !important;
  display: inline-block;
  font-size: 16px;
  padding: 16px 40px;
}

/* Middle content - keep existing */
.middle-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 40px 20px;
  margin-top: 60px;
}

/* Carousel container */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 200px;
  margin: 0 auto;
}

.card-deck {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.article-card {
  position: absolute;
  width: 85%;
  height: 160px;
  left: 7.5%;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  overflow: hidden;
  transform-origin: center center;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.article-card[data-position="1"] {
  transform: translateY(0) scale(1);
  z-index: 3;
  opacity: 1;
}

.article-card[data-position="2"] {
  transform: translateY(10px) scale(0.97);
  z-index: 2;
  opacity: 0.85;
}

.article-card[data-position="3"] {
  transform: translateY(20px) scale(0.94);
  z-index: 1;
  opacity: 0.7;
}

.card-image {
  flex: 0 0 140px;
  object-fit: cover;
  background: #f5f5f5;
}

.card-content {
  flex: 1;
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-title {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
  color: #000;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-preview {
  color: #777;
  line-height: 1.4;
  margin-bottom: 10px;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-link {
  color: var(--primary-red);
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.card-link:hover {
  transform: translateX(3px);
}

.carousel-controls {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 30px;
}

.insights-link {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  text-decoration: none;
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 0;
}

.insights-link:hover {
  color: var(--primary-red);
}

.carousel-indicators {
  display: flex;
  gap: 8px;
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
}

.indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ddd;
  transition: all 0.3s ease;
  cursor: pointer;
}

.indicator.active {
  background: var(--primary-red);
  width: 20px;
  border-radius: 3px;
}

/* Clean background */
.bg-image {
  display: none;
}

body {
  background: #ffffff;
}

/* Very subtle gradient on the right side */
.home-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0) 0%,
    rgba(250,250,250,0.4) 100%
  );
  z-index: -1;
}

/* MOBILE RESPONSIVE - IMPROVED */
@media (max-width: 768px) {
  .logo {
    position: fixed;
    left: 20px !important;
    top: 25px !important;
    transform: none;
    z-index: 2002;
  }
  
  .hero-section {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 80px;
  }
  
  .home-panel {
    padding-top: 60px;
  }
  
  .brand-title {
    font-size: clamp(28px, 8vw, 45px);
    margin-top: 20px;
  }
  
  .tagline {
    font-size: 15px;
    text-align: left;
  }
  
  #main-contact-btn {
    font-size: 14px;
    padding: 12px 30px;
  }
  
  .middle-content {
    margin-top: 30px;
    padding: 20px 10px;
  }
  
  .carousel-container {
    height: 180px;
    margin-bottom: 60px;
  }
  
  .card-deck {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .article-card {
    width: 90%;
    height: 120px;
    position: absolute;
    left: 5%;
  }
  
  .article-card[data-position="1"] {
    display: flex;
    transform: none;
    opacity: 1;
  }
  
  .article-card[data-position="2"],
  .article-card[data-position="3"] {
    display: none;
  }
  
  .card-image {
    flex: 0 0 100px;
    height: 100%;
  }
  
  .card-content {
    padding: 15px;
  }
  
  .card-title {
    font-size: 14px;
    margin-bottom: 5px;
  }
  
  .card-preview {
    display: none;
  }
  
  .carousel-controls {
    position: relative;
    bottom: auto;
    margin-top: 20px;
    transform: none;
  }
  
  .carousel-indicators {
    position: relative;
    bottom: auto;
    margin-top: 15px;
    transform: none;
  }
}

@media (max-width: 576px) {
  .logo {
    left: 15px !important;  /* Keep left-aligned */
    transform: none !important;  /* Remove centering transform */
    top: 20px !important;
  }
  
  .hero-section {
    padding-left: 25px;  /* Consistent left padding */
    padding-right: 25px;
    padding-top: 70px;
  }
  
  .brand-title {
    font-size: clamp(24px, 9vw, 36px);
    text-align: left;  /* Keep left-aligned */
  }
  
  .tagline {
    text-align: left;  /* Keep left-aligned */
    margin-bottom: 20px;  /* Remove auto margins */
  }
  
  #main-contact-btn {
    display: inline-block;  /* Keep inline */
    margin: 0;  /* Remove auto margins */
  }
}

@media (max-width: 480px) {
  .logo {
    top: 15px !important;
  }
  
  .logo img {
    max-height: 16px;
  }
  
  .hero-section {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 60px;
  }
  
  .brand-title {
    font-size: clamp(22px, 8vw, 32px);
  }
  
  .article-card {
    width: 95%;
    left: 2.5%;
  }
  
  .card-image {
    flex: 0 0 80px;
  }
  
  .card-title {
    font-size: 13px;
  }
}

@media (max-width: 376px) {
  .logo img {
    max-height: 14px;
  }
  
  .brand-title {
    font-size: clamp(20px, 7vw, 28px);
  }
  
  #main-contact-btn {
    font-size: 13px;
    padding: 10px 25px;
  }
  
  .carousel-container {
    height: 150px;
  }
  
  .article-card {
    height: 100px;
  }
}
/* ======== RESPONSIVE FIX PACK (≤768px only) ======== */

/* 0) Let the page actually scroll on small screens (body was 100vh + hidden) */
@media (max-width:768px){
  html, body { height:auto; overflow-x:hidden; overflow-y:auto; }
  .view-container { height:auto; min-height:100vh; }
  .home-panel { min-height:auto; }
}

/* 1) Carousel → single-card mode (kill conflicting transforms/absolute stacking) */
@media (max-width:768px){
  .carousel-container{
    height:auto !important;
    padding:0 16px !important;
    margin:10px auto 24px !important;
    top:auto !important;
    transform:none !important;
  }

  .card-deck{
    position:relative !important;
    height:auto !important;
  }

  .article-card{
    position:relative !important;
    width:100% !important;
    left:0 !important;
    transform:none !important;
    height:auto !important;
    margin:0 auto 14px !important;
    flex-direction:column !important;
    opacity:1 !important;
  }

  /* show only the active card; the JS already keeps data-position in sync */
  .article-card:not(.mobile-active){ display:none !important; }
  .article-card.mobile-active{ display:flex !important; }

  .card-image{
    width:100% !important;
    height:160px !important;
    flex:0 0 auto !important;
    object-fit:cover !important;
  }

  .card-content{ padding:14px 16px !important; }
  .card-preview{ display:none !important; }

  /* neutralize stacking states entirely on mobile */
  .article-card[data-position]{ transform:none !important; opacity:1 !important; }

  /* put controls/indicators into normal flow */
  .carousel-controls,
  .carousel-indicators{
    position:relative !important;
    left:auto !important;
    bottom:auto !important;
    transform:none !important;
    margin:12px auto 0 !important;
  }
}

/* 2) Keep fixed header bits from overlapping content */
@media (max-width:768px){
  .logo{ left:16px !important; top:16px !important; transform:none !important; }
  .talk-button, .hamburger-button{ top:16px !important; right:16px !important; }
  .hero-section{ padding-top:72px !important; }
}

/* 3) Panels remain full-height but comfortably scrollable */
@media (max-width:768px){
  .content-panel{ height:100vh; }
  .panel-body{ padding:20px !important; }
}

/* 4) Footer message shouldn’t sit over content on phones */
@media (max-width:768px){
  .footer-message{
    position:static !important;
    transform:none !important;
    padding:8px 0 !important;
    margin-top:16px !important;
  }
}

/* 5) Tiny tweak for very small phones */
@media (max-width:376px){
  .card-image{ height:130px !important; }
}
/* Center the hero CTA on small screens */
@media (max-width: 768px){
  #main-contact-btn{
    display: inline-block !important;  /* Keep inline */
    margin-left: 0 !important;  /* No auto margins */
    margin-right: 0 !important;
  }
}

/* (Optional) for very small phones you can also ensure the width hugs the text */
@media (max-width: 576px){
  #main-contact-btn{
    width: max-content;   /* or leave out if you prefer full-width block feel */
  }
}
/* === HERO: switch to Merriweather (safe, responsive) === */
.hero-section .brand-title{
  font-family: "Merriweather", Georgia, serif !important;
  font-weight: 900 !important;        
  font-optical-sizing: auto;           
  font-size: clamp(36px, 7vw, 95px);   
  line-height: 1.20;                  
  letter-spacing: -0.01em;             
  margin: 0 0 16px;
  text-wrap: balance;                 
  -webkit-font-smoothing: antialiased; 
  text-rendering: optimizeLegibility;
}

/* Keep each line stacked with a little breathing room */
.hero-section .brand-title .emphasis{
  display:block;
  margin: 0 0 4px;
}

/* Mobile refinements so it doesn’t feel “thick” or collide */
@media (max-width: 768px){
  .hero-section .brand-title{
    font-weight: 800;       /* slightly lighter on small screens */
    line-height: 1.26 !important;
    letter-spacing: 0 !important;  /* neutral tracking on mobile */
  }
  .hero-section .brand-title .emphasis{ margin-bottom: 6px; }
}

/* Ultra-small phones */
@media (max-width: 376px){
  .hero-section .brand-title{ line-height: 1.3 !important; }
}
/* === QUICK FIX: Center carousel indicators on desktop === */
@media (min-width: 769px) {
  /* Make the container the positioning context */
  .carousel-container {
    position: relative !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Center indicators across the full container width */
  .carousel-container .carousel-indicators {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -35px !important;        /* adjust as you like */
    transform: none !important;
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  /* If your indicators live inside .carousel-controls, keep that centered too */
  .carousel-container .carousel-controls {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -40px !important;         /* adjust as you like */
    transform: none !important;
    display: flex !important;
    justify-content: center !important;
    gap: 30px;
  }
}
/* === HIDE CAROUSEL ON VERY SMALL SCREENS (iPhone SE & similar) === */
@media only screen and (max-width: 375px) {
  .carousel-container,
  .carousel-container .card-deck,
  .carousel-container .article-card,
  .carousel-container .carousel-controls,
  .carousel-container .carousel-indicators {
    display: none !important;
  }

  /* tighten spacing so there isn't a weird gap where the carousel was */
  .middle-content { 
    margin-top: 0 !important; 
    padding-top: 0 !important; 
  }
}

/* CLEAN PROFESSIONAL MENU */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

/* Simple container */
.menu-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
}

.menu-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Clean menu items */
.menu-item {
  padding: 18px 0; /* Reduced from 25px for lower height */
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  font-family: "Rubik", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #000;
}

.menu-overlay.active .menu-item {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay.active .menu-item:nth-child(1) { transition-delay: 0.1s; }
.menu-overlay.active .menu-item:nth-child(2) { transition-delay: 0.15s; }
.menu-overlay.active .menu-item:nth-child(3) { transition-delay: 0.2s; }
.menu-overlay.active .menu-item:nth-child(4) { transition-delay: 0.25s; }

/* Simple red accent on hover */
.menu-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3px;
  height: 0;
  background: var(--primary-red);
  transition: height 0.3s ease;
}

.menu-item:hover {
  padding-left: 15px;
  color: var(--primary-red);
}

.menu-item:hover::after {
  height: 100%;
}

/* MOBILE - with working animation */
@media (max-width: 768px) {
  .menu-overlay {
    background: white !important;
  }
  
  .menu-nav {
    width: 90%;
    max-width: 500px;
  }
  
  .menu-items {
    gap: 15px;
  }
  
  .menu-item {
    font-size: 1.4rem;
    padding: 22px 15px;
    border: none !important;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 4px;
  }
  
  .menu-item:hover {
    padding-left: 15px;
  }
  
  .menu-item::after {
    display: none !important;
  }
  
  /* Animated bottom line sweep */
  .menu-item::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
  }
  
  .menu-overlay.active .menu-item:nth-child(1)::before { animation: lineSwipe 0.8s ease 0.3s forwards; }
  .menu-overlay.active .menu-item:nth-child(2)::before { animation: lineSwipe 0.8s ease 0.45s forwards; }
  .menu-overlay.active .menu-item:nth-child(3)::before { animation: lineSwipe 0.8s ease 0.6s forwards; }
  .menu-overlay.active .menu-item:nth-child(4)::before { animation: lineSwipe 0.8s ease 0.75s forwards; }
  
  @keyframes lineSwipe {
    0% { width: 0; opacity: 1; }
    50% { width: 100%; opacity: 1; }
    100% { width: 100%; opacity: 0; }
  }
  
  .menu-item:active {
    transform: scale(0.98);
    box-shadow: 0 0 0 2px var(--primary-red);
  }
}

/* MOBILE HERO TEXT FIX - Add at bottom of CSS */
@media (max-width: 768px) {
  .brand-title {
    font-size: 2.5rem !important;
    line-height: 1.3 !important;
  }
  
  .brand-title .emphasis {
    display: inline !important; /* Keep text flowing instead of block */
  }
  
  .tagline {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    padding: 0;
  }
}

/* Even smaller screens */
@media (max-width: 480px) {
  .brand-title {
    font-size: 2.1rem !important;
  }
  
  .brand-title .emphasis {
    display: block !important; /* Back to block for very small screens */
    margin-bottom: 5px;
  }
  
  .tagline {
    font-size: 0.9rem !important;
  }
}

/* MOBILE HERO TEXT FIX - Add at bottom of CSS */
@media (max-width: 768px) {
  .brand-title {
    font-size: 2.2rem !important;
    line-height: 1.3 !important;
  }
  
  .brand-title .emphasis {
    display: inline !important; /* Keep text flowing instead of block */
  }
  
  .tagline {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    padding: 0;
  }
}

/* Even smaller screens */
@media (max-width: 480px) {
  .brand-title {
    font-size: 2.7rem !important;
  }
  
  .brand-title .emphasis {
    display: block !important; /* Back to block for very small screens */
    margin-bottom: 5px;
  }
  
  .tagline {
    font-size: 0.9rem !important;
  }
}

/* Even smaller screens */
@media (max-width: 390px) {
  .brand-title {
    font-size: 2.4rem !important;
  }
  
  .brand-title .emphasis {
    display: block !important; /* Back to block for very small screens */
    margin-bottom: 5px;
  }
  
  .tagline {
    font-size: 0.9rem !important;
  }
}

/* Hard-opaque menu overlay */
.menu-overlay{
  position: fixed;
  inset: 0;                 /* shorthand for top/right/bottom/left:0 */
  background: #fff !important;   /* no transparency */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 9999 !important; /* above any panels/buttons */
  opacity: 0;               /* keep your fade-in animation */
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.menu-overlay.active{
  opacity: 1;
  visibility: visible;
}
body.menu-open { position: fixed; width: 100%; }
@media (max-width: 768px){
  .hero-section { padding-top: 25px !important; } /* was ~80px+ in places */
  .brand-title { margin-top: 0 !important; }      /* kill extra top margin */
}