
:root{
  --accent:#aa3538;
  --black:#000;
}

body{
  font-family: Arial, sans-serif;
  background:#fff;
  padding-top: 80px; /* same height as navbar */
}

.footerlink {
  /* padding-left: 10%; */
  color:rgb(255, 255, 255);
  font-size: 100%;
}
.footerlink:link {      color: white; }
.footerlink:visited {   color: white; }
.footerlink:hover {     color: #aa3538; }
.footerlink:active {    color: #aa3538; }


.button-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.button-container a {
  box-sizing: border-box;
  width: 180px;
  height: 48px;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767.98px) {
  .hero-logo {
    margin-bottom: 20px;
  }

  .button-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }

  .button-container a {
    width: 180px;
    height: 48px;
  }
}

.page-content {
  background:#f9f9f9;
  /* typical Bootstrap navbar height */
  /* padding-top: 4.5rem; */
}

/* HERO */
.hero {
  position: relative;
  /* height: clamp(240px, 32vh, 360px); */
  height: clamp(340px, 32vh, 380px);
  background:
  linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)),
  url('images/MorganMotors/0hero2-1200.webp') center/cover;
  display: flex;
  align-items: center;
  color: white;
}

/* url('images/MorganMotors/0hero2.jpg') center/cover; */
/*
.hero::before {
content: "";
position: absolute;
inset: 0;
background: rgba(0,0,0,0.35);
}
*/
.hero-content {
  padding-top: 8px;
  position: relative;
  z-index: 2;
}

.hero-logo {
  width: clamp(180px, 25vw, 300px);
  height: auto;
}

@media (min-width: 1200px) {
  .hero {
    background:
    linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)),
    url('images/MorganMotors/0hero2-1600.webp') center/cover;
  }
}

@media (min-width: 1800px) {
  .hero {
    background:
    linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)),
    url('images/MorganMotors/0hero2-2000.webp') center/cover;
  }
}

/* optional subtle info strip */
.info-strip {
  background: #111;
  color: #fff;
  padding: 10px 0;
  font-size: 14px;
  width: 100vw;
}

.carbtn {
  width: 100%;
  border-radius: 8px;
}

.btn {
  min-width: 180px;
}
.btn-accent{
  background:var(--accent);
  color:#fff;
  border:none;
}

.btn-accent:hover{
  background:#8f2c2f;
  color:#fff;
}

/* MM Logo */
.brand {
  color: #aa3538;
  font-family: Arial, sans-serif;
  font-size: 52px;
  font-weight: bold;
  line-height: 1;
}

.white-m {
  color: white;
}

.motors {
  font-size: 24px;
  margin-top: 5px;
  letter-spacing: 2px;
}

/* NAV BAR */
/* BASE NAVBAR */
#garageNav{
  background:#000;
  border-bottom:3px solid #aa3538;
  transition: all 0.3s ease;
  padding:18px 0;
}

/* BRAND Logo */
.brand-icon{
  filter: none !important;
  opacity: 1 !important;
  height: 50px; 
  width: auto;
}

/* BRAND DOT */
.brand-dot{
  color:#aa3538;
  font-size:22px;
}

/* LINKS */
.navbar .nav-link{
  color:#fff !important;
  margin-right:10px;
  transition:0.2s;
}

.navbar .nav-link:hover{
  color:#aa3538 !important;
}

.nav-cta{
  color:#aa3538 !important;
  font-weight:600;
}

.redLink-small {
  text-decoration: none;
  color: #c74541;
  font-size: 100%;
}

.redLink {
  text-decoration: none;
  color: #c74541;
  font-size: 125%;
}

/* ICONS */
.navbar img{
  filter:invert(1);
  opacity:0.9;
  transition:0.2s;
}

.navbar img:hover{
  opacity:1;
  transform:scale(1.1);
}

/* SHRUNK STATE */
#garageNav.shrink{
  padding:6px 0;
  background:rgba(0,0,0,0.95);
  backdrop-filter: blur(8px);
}

/* SHRINK BRAND */
#garageNav.shrink .navbar-brand{
  font-size:16px;
}

.google-icon {
  filter: brightness(0) invert(1); /* if button text is white */
}

.hours-card {
  width: 100%;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  margin-bottom: 8px;
  margin-top: 8px;
}

/* SERVICE CARDS */
/*.service-card{
border:0;
border-radius:12px;
overflow:hidden;
transition:0.3s;
box-shadow:0 5px 15px rgba(0,0,0,0.08);
height: 100%;
padding: 10px;
}*/

.service-card {
  width: 100%;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  height: 100%;
  margin-bottom: 8px;
  margin-top: 8px;
}

.service-card:hover{
  transform:translateY(-5px);
}

.service-title{
  font-weight:600;
  margin-top:10px;
}

.section-title{
  text-align:center;
  margin:60px 0 30px;
  font-weight:700;
}

/* INFO SECTIONS */
.info-section{
  padding:20px 20px;
  gap: 15px;
}

.info-box{
  border-left:5px solid var(--accent);
  padding:20px;
  /* background:#f9f9f9; */
  background: white;
  border-radius:8px;
  margin-bottom: 15px;
}

.info-box-white{
  /* border-left:5px solid var(--accent); */
  padding:20px;
  /* background:#f9f9f9; */
  /* background: white; */
  border-radius:8px;
  margin-bottom: 15px;
}

.info-box-cars{
  border-left:5px solid var(--accent);
  padding:20px;
  /* background:#f9f9f9; */
  background: white;
  border-radius:8px;
  padding-top: 20px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.mot-box{
  border-left:5px solid #aa3538; 
  /* padding-left:15px; */
  padding:20px;
  /* background:#f9f9f9; */
  background: white;
}


/* FORM */
.toggleLeft {
  line-height: 50px;
  height: 50px;
  text-align: left;
}

.toggleLeft p {
  line-height: 1.5;
  display: inline-block;
  vertical-align: middle;
}
.toggleCenter {
  /* line-height: 50px;
  height: 50px;
  text-align: center; */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
}

.toggleCenter p {
  line-height: 1.5;
  display: flex;
  vertical-align: middle;
}
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  vertical-align: middle;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #aa3538;
}

input:focus + .slider {
  box-shadow: 0 0 1px #aa3538;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

#motSection {
  display: none;
}

body {
  background:#f9f9f9;
}

body:has(#mot:checked) #motSection {
  display: block;
}

#serviceSection {
  display: none;
}
body:has(#motService:checked) #serviceSection {
  display: block;
}

/* FORM CARD */

.form-card{
  /* border:0;
  border-radius:12px;
  overflow:hidden;
  transition:0.3s;
  padding: 8px;
  box-shadow:0 5px 15px rgba(0,0,0,0.08); */
  
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
  padding: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-top {
  text-align: center;
}

.mot-card{
  border:0;
  border-radius:12px;
  overflow:hidden;
  transition:0.3s;
  box-shadow:0 5px 15px rgba(0,0,0,0.08);
  margin-top: 15px;
}

.mot-card:hover{
  transform:translateY(-5px);
}

.mot-features {
  display: grid;
  gap: 12px;
  max-width: 700px;
}

.bottom-section {
  /* margin-top: auto; */
  /* margin-top: max(60px, auto); */
  min-height: 60px;
  text-align: center;
}

.card-section-center {
  /* position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
  justify-content: center; */
  
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
}

/* PAYMENT ASSIST */
.payment-logo {
  max-width: 100%;
  height: auto;
  display: block;
}

.pablue2 { 
  color: #262F3E; /*#ffffff;*/
  font-size: inherit;
  text-align: inherit;
  display : inline;
}

.pared2 { 
  color: #DA3732; /*#ffffff;*/
  font-size: 100%;
  text-align: inherit;
  display : inline;
}

.circle {
  width: 40px;
  height: 40px;
  border-style: solid;
  border-radius: 50%;
  border-color: white;
  border-width: 1px;
  font-size: inherit;
  color: #fff;
  line-height: inherit;
  text-align: center;
  background-color: #355598;
  display: inline-block;
}

/* STEPS */
.card-footer {
  min-height: 80px; /* sets a minimum, but allows it to grow if content is taller */
  display: flex;
  flex-direction: column; /* ensures children stack naturally on small screens */
  justify-content: center; /* optional: vertical centering */
}

.payment-steps {
  display: flex;
  flex-direction: column; /* default for small screens */
  flex-wrap: wrap;        /* allow items to wrap if needed */
  min-height: 80px;       /* optional: ensure footer doesn't collapse */
}

.step {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  /* padding: 0 1rem; */
  text-align: center;
  font-weight: 600;
  font-size: .9rem;
  padding-left: 52px;
  flex-direction: row;  /* number above text */
}

.step-red {
  background: #d71920;
  color: #fff;
  z-index: 4;
}

.step-blue {
  background: #173a63;
  color: #fff;
  z-index: 3;
}

.step-light-blue {
  background: #2f5f99;
  color: #fff;
  z-index: 2;
}

.step-white {
  background: #fff;
  color: #173a63;
  border-left: 1px solid #dee2e6;
  z-index: 1;
}

.step-red::after,
.step-blue::after,
.step-light-blue::after {
  content: '';
  position: absolute;
  right: -36px;
  top: 0;
  width: 36px;
  height: 100%;
  clip-path: polygon(0 0,100% 50%,0 100%);
  z-index: 5;
}

.step-red::after { background: #d71920; }
.step-blue::after { background: #173a63; }
.step-light-blue::after { background: #2f5f99; }

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-red .step-number,
.step-blue .step-number,
.step-light-blue .step-number {
  background: rgba(255,255,255,.2);
}

.step-white .step-number {
  background: #173a63;
  color: #fff;
}


/* Mobile */
@media (min-width: 768px) {
  .step {
    flex-direction: column;  /* stack on mobile */
    text-align: center;
  }
  
  .step-text {
    white-space: normal;
  }
  
  .step-text {
    white-space: normal;
  }
  
  .payment-steps {
    flex-direction: row; /* horizontal layout for md+ */
    min-height: 80px;    /* keeps consistent footer height */
  }
}

/* FIND US */

.contact-btn {
  flex: 1 1 0;
  white-space: nowrap;
  max-width: 100%;
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
}

.address {
  padding: 16px;
}

/* CARS FOR SALE */

.carContact-btn {
  flex: 1 1 0;
  width: 100%;
  margin-bottom: 15px;
}

.carContactBtm-btn {
  flex: 1 1 0;
  width: 100%;
  margin-bottom: 15px; 
  padding-top: 15px; 
  margin-right:15px; 
  margin-left:15px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cardCarImage {
  display: block;
  width: 100%;
  /* height: auto; */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  box-shadow:0 5px 15px rgba(0,0,0,0.08);
  
  /* chat
  background: transparent;    /* background-image: url(images/PaymentAssist.png); * /
  /*display: block;* /
  /* display:  * /
  display: inline;
  max-width: 100vw;
  margin: 0 auto;
  /* align-content: flex-start; * /
  padding: 0px; 
  align-content: center;
  width: 100%;
  height: auto;
  */
}

.carDetailsBtn {
  /* min-width:150px;   */
  align-content: center; 
  width: auto;
  margin-right: 15px;
}

.carDetailsBtnContainer {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.carDetailsHeader {
  background-color:inherit;
  color: rgb(48, 46, 46);
  font-size: 120%;
  /* text-align: left; */
  text-align: center;
  
} 

.carDetails {
  /* height: auto; */
  padding: 2%; /*40px;*/
  margin-bottom: 0px;
  background-color: inherit;
  font-size: inherit;
  align-content: inherit;
  text-align: left;
  vertical-align: top;
  color: rgb(48, 46, 46);
  margin-right: 15px;
  width: 100%;
}

.carDetailsGrey {
  height: auto;
  /* padding: 2%; 40px; */
  /* margin-bottom: 0px; */
  background-color: inherit;
  font-size: inherit;
  align-content: inherit;
  text-align: right;
  vertical-align: center;
  color: #5d5c5c;
  text-align: center;
  font-size: 150%;
}

.carDetailsRed {
  height: auto;
  /* padding: 2%; 40px; */
  margin-bottom: 0px;
  background-color: inherit;
  font-size: inherit;
  align-content: inherit;
  text-align: right;
  vertical-align: center;
  color: #aa3538;
  text-align: center;
  font-size: 150%;
}

.carDetaisText {
  background-color: inherit;
  color:  rgb(48, 46, 46);
  font-size: 100%;
  text-align: left;
  padding-left: 15px;
}

.card-img-top {
  position: relative;
  display: inline-block; /* keeps overlay the same size as the image */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  /* chat
  width: auto;
  position: relative;
  align-content: center;
  text-align: center;
  vertical-align:middle;
  */
}

.carCardsBody { 
  margin: 15px;
  border-style: none;
}

.sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(80, 80, 80, 0.8  );
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  color: white;
  font-size: 48px;
  font-weight: bold;
  letter-spacing: 4px;
}

/* AUTO GUARD */
.agBanner {
  background: transparent;
  margin: 0 auto;
  align-content: center;
  padding: 0px; 
  padding-top: 10px;
  padding-bottom: 10px;
  width: 90%;
  max-width: 90%;
  height: auto;
}

.agOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none; /* optional */
  /* chat
  max-width: 100vw;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5%;
  width: 5%;
  opacity: 1;
  */
}

.agIcon {
  width: 25%;
  height: auto;
  display: block;
  /* chat
  position: left;
  top: 0;
  left: 0;
  height: 5%;
  */
}

.agOverlayBottom {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: auto;
  width: 100%;
  opacity: 1;
}

.agIconBottom {
  position:absolute;
  top: 0;
  right: 0;
  width: 30%;
} 


/* CAR */
.cardImage {
  background: transparent;    /* background-image: url(images/PaymentAssist.png); */
  /*display: block;*/
  /* display:  */
  margin: 0 auto;
  align-content: center;
  padding: 0px; 
  width: 100%;
  max-width: 100%;
  /* table-layout: fixed; */
  height: auto;
}

.carCardsHeader { /*ID*/
  /* old
  background-color: #aa3538;
  color: white;
  border-radius: 4px;
  */
  /* color: #aa3538; */
  color: black;
  /* background-color: white; */
  font-size: 200%;
  margin: 15px;
}

#carCardsHeaderGrey { /*ID*/
  /* background-color:#b3b3b3; */
  color: rgb(52, 52, 52);
  border-radius: 0px;
  margin: 15px;
}
.container-img {
  position: relative;
  text-align: center;
  /* color: white; */
  width: 100%;
  height: auto;
  object-fit: cover;
  /* align-items: center; */
  /* padding: 4px; */
}

.container-img-grid {
  position: relative;
  /* text-align: center; */
  /* color: white; */
  padding: 4px;
  border: none;
  background: #f9f9f9;
  width: 100%;
  height: auto;
  display: block;
}

.container-img-car {
  position: relative;
  text-align: center;
  /* color: white; */
  width: 100%;
  height: auto;
}

.cardCarImageSmall {
  display: block;
  width: 100px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  /*
  background: transparent; 
  display: inline;
  max-width: 100px;
  margin: 0 auto;
  padding: 0px; 
  align-content: center;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow:0 5px 15px rgba(0,0,0,0.08);*/
}

.carDetailsBox {
  border-radius: 8px;
  background-color: white;
  text-align: center;
  box-shadow:0 5px 15px rgba(0,0,0,0.08);
  width: 100px;
  height: 100%;
  display: block;
}

.carDetailsImg {
  max-height: 35px;
  max-width: 35px;
  height:100%; 
  height:auto;
  position: relative;
  align-content: center;
  text-align: center;
  vertical-align:middle;
}

.priceLarge {
  text-align: center;
  font-size: 200%;
}


/* TABLE TEST */
.car-features {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
}

.car-feature {
  padding: 13px 18px;
  color: #343a40;
  line-height: 1.5;
}

.car-feature:nth-child(odd) {
  background-color: #f8f9fa;
}

.car-feature:nth-child(even) {
  background-color: #ffffff;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.5rem;
}

.shadowBox {
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
}

.title {
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.vehicle-spec {
  height: 100%;
  min-height: 150px;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  
  text-align: center;
  padding: 1rem;
  
  border: 1px solid #dee2e6;
  border-radius: .5rem;
}

/* Fixed-height icon container */
.vehicle-spec__icon {
  height: 40px;
  width: 40px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  font-size: 1.5rem;
  line-height: 1;
  
  margin-bottom: .75rem;
}

/* Fixed-height label area */
.vehicle-spec__label {
  min-height: 48px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  font-size: .875rem;
  color: #6c757d;
}

/* Value */
.vehicle-spec__value {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
}

.box {
  padding: 2px !important;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.printLink {
  text-decoration: none;
  color: #c74541;
  font-size: 100%;
}

/* PRINT Vehicle */

.priceLargeRed {
    text-align: left;
    font-size: 100%;
    color: #c74541;
}

.priceXLarge {
    text-align: center;
    font-size: 300%;
}

.priceXLargePrint {
    font-size: 200%;
    text-align: left;
    align-items: center;
}

.priceXLargePrintR {
    font-size: 200%;
    text-align: right;
    align-items: center;
}

.printLbl {
    font-size: 100%;
    text-align: inherit;
}

.printBannerImage {
    display: block;
    background: transparent;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 0;
    float: none;
}


.car-specs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px 24px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    font-size: 12px;
}

.spec {
    display: grid;
    grid-template-columns: 30px minmax(0, max-content) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.spec img {
    display: block;
    width: 30px;
    max-width: 30px;
    height: 30px;
    object-fit: contain;
}

.spec .title {
    color: #666;
    white-space: nowrap;
}

.spec strong {
    min-width: 0;
    color: #111;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media print {
    .car-specs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 2px;
        font-size: 11px;
    }

    .spec {
        grid-template-columns: 30px minmax(0, max-content) minmax(0, 1fr);
        gap: 6px;
        padding: 4px 0;
    }

    .spec img {
        width: 30px;
        max-width: 30px;
        height: 30px;
    }
}

@media print {
    @page {
        margin: 2;
    }

    body {
        margin: 0;
        padding: 0;
    }
}