:root {
  --navy: #0b1d63;
  --red: #c81010;
  --white: #ffffff;
  --silver: #d9d9d9;
  --black: #070707;
  --light: #f4f4f4;
  --soft-gray: #ececec;
  --gold: #d4a017;
}

/* Main page container */
.container{
  width:100%;
  max-width:1100px;
  margin:auto;
  padding-left:16px;
  padding-right:16px;
}

.service-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin-top:32px;
}

.service-card{
  background:#ffffff;
  border-radius:14px;
  overflow:hidden;
  text-decoration:none;
  border:1px solid rgba(11,29,99,.06);
  border-top:4px solid #c81010;
  box-shadow:0 10px 20px rgba(0,0,0,.06);
  transition:all .22s ease;
  display:flex;
  flex-direction:column;
  min-height:200px;
}

.service-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 34px rgba(0,0,0,.14);
}

.service-card img{
  width:100%;
  height:120px;
  object-fit:cover;
  display:block;
}

.service-card-body{
  flex:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 12px;
  text-align:center;
}

.service-title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:700;
  font-size:16px;
  line-height:1.3;
  color:#0b1d63;
}

.service-title i{
  color:#c81010;
  font-size:18px;
  flex-shrink:0;
}

@media (max-width:991px){
  .service-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:560px){
  .service-grid{
    grid-template-columns:1fr;
  }

  .service-card{
    min-height:220px;
  }

  .service-card img{
    height:135px;
  }

  .service-card-body{
    padding:16px 14px;
  }

}

.topbar{
  position:sticky;
  top:0;
  z-index:1000;
  background: linear-gradient(180deg, #050505 0%, #08133a 60%, #050505 100%);
  border-bottom:2px solid #c81010;
  box-shadow:0 4px 12px rgba(0,0,0,.35);
  transition:all .3s ease;
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:150px;
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
  backdrop-filter: blur(4px);
}

/* LOGO */

.logo-wrap{
  display:flex;
  align-items:center;
}

.header-logo{
  height:140px;
  width:auto;
  max-width:none;

  filter: drop-shadow(0 6px 10px rgba(0,0,0,.6));

  transition:all .35s ease;
}

/* NAV */

.nav{
  display:flex;
  gap:30px;
}

.nav a{
  color:white;
  font-weight:600;
  font-size:15px;
  text-decoration:none;
}

.nav a:hover{
  color:#c81010;
}

/* Menu toggle and dropdown styles */
.menu-toggle{
  display:none;
  background:none;
  border:none;
  color:#ffffff;
  font-size:30px;
  cursor:pointer;
}

/* dropdown */
.dropdown{
  position:relative;
}

.dropdown-toggle{
  background:none;
  border:none;
  color:#ffffff;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  padding:0;
}

.dropdown-toggle:hover{
  color:#c81010;
}

.dropdown-menu{
  display:none;
  position:absolute;
  top:32px;
  left:0;
  min-width:240px;
  background:#0b1d63;
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  box-shadow:0 10px 25px rgba(0,0,0,.25);
  padding:10px 0;
  z-index:1200;
}

.dropdown-menu a{
  display:block;
  color:#ffffff;
  padding:12px 16px;
  text-decoration:none;
  font-size:14px;
}

.dropdown-menu a:hover{
  background:#c81010;
  color:#ffffff;
}

.dropdown.open .dropdown-menu{
  display:block;
}

/* SHRINK HEADER */

.topbar.scrolled{
  height:60px;
}

.topbar.scrolled .header-logo{
  height:70px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.5));
}

/* HERO */
.hero{
  position: relative;
  min-height: 430px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;

  background-image: url("../images/allstar-main-hero.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    rgba(0,0,0,.22),
    rgba(0,0,0,.22)
  );
  z-index:0;
}

.hero-container{
.hero-container{
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: auto;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(0,0,0,.10);
  backdrop-filter: blur(1px);
}

.hero-content{
  text-align:center;
  max-width:820px;
  margin:0 auto;
}

.hero h1{
  margin: 0 0 12px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,.20);
}

.hero p{
  margin: 0 auto 22px;
  max-width: 760px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,.18);
}

.hero-buttons{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}

@media (min-width: 1400px){
  .hero{
    min-height: 620px;
    background-position: center top;
  }
}

@media (max-width: 768px){
  .hero{
    min-height: 360px;
    padding: 24px 16px;
    background-position: center center;
  }

  .hero-container{
    padding: 14px 16px;
    background: rgba(0,0,0,.16);
  }

  .hero h1{
    font-size: 2rem;
  }

  .hero p{
    font-size: 0.95rem;
  }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: #a90d0d;
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
}

.btn-light:hover {
  background: #f0f0f0;
}

/* ACE */
.ace-section {
  padding: 48px 0;
  background: var(--light);
}

.ace-box {
  background: linear-gradient(135deg, #173b74, #0b1d63);
  color: var(--white);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
  max-width:1100px;
  margin:auto;
}

.ace-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.ace-box h2 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.ace-box p {
  margin: 0 0 20px;
  color: #dfe7f5;
  font-size: 1rem;
}

.ace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ace-actions button {
  background: var(--white);
  color: var(--navy);
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.25s ease;
}

.ace-actions button:hover {
  background: var(--red);
  color: var(--white);
}

/* SERVICES */
.services {
  padding: 35px 0 70px;
  background: var(--light);
}

.section-heading {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 34px;
}

.section-heading span {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-heading h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 2.2rem;
}

.section-heading p {
  margin: 0;
  color: #555;
  line-height: 1.7;
}

.service-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:22px;
  margin-top:34px;
}

.service-card{
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
  text-decoration:none;
  transition:.25s;
  border-top:5px solid #c81010;
}

.service-card:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 35px rgba(0,0,0,.15);
}

.service-img{
  width:100%;
  height:150px;
  overflow:hidden;
}

.service-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.service-card img{
    width:100%;
    height:140px;
    object-fit:cover;
    border-radius:10px 10px 0 0;
}

.service-card h3{
    padding:15px;
    font-weight:600;
}

.service-title{
  padding:16px;
  font-weight:700;
  font-size:18px;
  color:#0b1d63;
  text-align:center;
}

/* QUOTE STRIP */
.quote-strip {
  background: var(--red);
  padding: 40px 0;
}

.quote-strip-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.quote-copy span {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: #ffe5e5;
  margin-bottom: 8px;
}

.quote-copy h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 2rem;
}

.quote-copy p {
  margin: 0;
  color: #ffe3e3;
  line-height: 1.6;
}

/* FOOTER */
.footer {
  background: var(--black);
  padding: 34px 0;
  border-top: 4px solid var(--navy);
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  width: 115px;
  margin: 0 auto 14px;
}

.footer p {
  margin: 0;
  color: var(--silver);
  font-size: 14px;
}

/* MOBILE */
@media (max-width: 991px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-logo {
    width: 260px;
  }
}

@media (max-width: 768px) {
  .nav-wrap {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
  }

  .nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 55px 0 50px;
  }

  .hero-logo {
    width: 220px;
    max-width: 70%;
  }

  .ace-box {
    padding: 24px;
  }

  .ace-box h2 {
    font-size: 1.6rem;
  }

  .section-heading h2 {
    font-size: 1.8rem;
  }

  .quote-strip-wrap {
    text-align: center;
    justify-content: center;
  }

  .quote-copy h3 {
    font-size: 1.6rem;
  }
}

@media (max-width: 560px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .small-logo {
    width: 64px;
  }

  .hero-buttons,
  .ace-actions {
    flex-direction: column;
  }

  .btn,
  .ace-actions button {
    width: 100%;
  }
}

@media (max-width: 768px){

  .menu-toggle{
    display:block;
  }

  .nav{
    display:none;
    position:absolute;
    top:100%;
    right:12px;
    background:#050505;
    border:1px solid rgba(255,255,255,.08);
    border-radius:12px;
    padding:14px;
    width:260px;
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
    box-shadow:0 10px 30px rgba(0,0,0,.35);
  }

  .nav.active{
    display:flex;
  }

  .dropdown{
    width:100%;
  }

  .dropdown-toggle{
    width:100%;
    text-align:left;
  }

  .dropdown-menu{
    position:static;
    display:none;
    width:100%;
    min-width:100%;
    margin-top:10px;
    border-radius:10px;
    box-shadow:none;
    background:#0f276f;
  }

  .dropdown.open .dropdown-menu{
    display:block;
  }

  .dropdown-menu a{
    padding:10px 14px;
  }

  .header-row{
    position:relative;
  }
}

/* Removed hover-to-open on desktop; dropdown opens via .open class now */

@media (max-width: 768px){
  .hero{
    padding: 48px 0 42px;
  }

  .hero h1{
    font-size: 2rem;
  }

  .hero p{
    font-size: 0.98rem;
  }

  .header-logo{
    height:44px;
  }

  .topbar.scrolled .header-logo{
    height:34px;
  }

}

/* Form controls appended */
.form-control {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 15px;
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.quote-form .btn {
  border: none;
  cursor: pointer;
}

@media (max-width:768px){

  .header-row{
    height:110px;
  }

  .header-logo{
    height:95px;
  }

  .topbar.scrolled .header-logo{
    height:55px;
  }

}

/* SERVICE PAGE LAYOUT */
.service-hero{
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 20px;
  background: linear-gradient(135deg, #0b1d63 0%, #050505 100%);
  color: #fff;
}

.service-hero-content{
  max-width: 850px;
  margin: 0 auto;
}

.service-kicker{
  color: #ffdddd;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-hero h1{
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
  color: #fff;
}

.service-subtext{
  max-width: 760px;
  margin: 0 auto 24px;
  color: #f1f1f1;
  line-height: 1.6;
}

.service-page-section{
  padding: 60px 0;
  background: #f4f4f4;
}

.service-page-grid{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: start;
}

.service-main,
.service-sidebar{
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-image-card,
.service-content-card,
.service-sidebar-card{
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  border-top: 5px solid #c81010;
}

.service-image-card img{
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.service-content-card,
.service-sidebar-card{
  padding: 28px 24px;
}

.service-content-card h2,
.service-content-card h3,
.service-sidebar-card h3{
  color: #0b1d63;
  margin-top: 0;
}

.service-content-card p,
.service-sidebar-card p{
  color: #333;
  line-height: 1.7;
}

.service-list{
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
  color: #222;
}

.small-list{
  font-size: 15px;
}

.sidebar-btn{
  width: 100%;
  margin-top: 10px;
}

/* CTA STRIP */
.quote-row,
.quote-strip-wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

@media (max-width: 991px){
  .service-page-grid{
    grid-template-columns: 1fr;
  }

  .service-image-card img{
    height: 320px;
  }
}

@media (max-width: 560px){
  .service-content-card,
  .service-sidebar-card{
    padding: 22px 18px;
  }

  .service-image-card img{
    height: 240px;
  }
}

/* AI BOX */
.ai-section{
  padding: 26px 0 10px;
  background: #f4f4f4;
}

.ai-box{
  background: linear-gradient(135deg, #17347f 0%, #0b1d63 100%);
  border-radius: 22px;
  padding: 28px 26px;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(0,0,0,.10);
}

.ai-badge{
  display: inline-block;
  background: rgba(255,255,255,.16);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.ai-box h2{
  margin: 0 0 8px;
  color: #ffffff;
}

.ai-box p{
  margin: 0 0 18px;
  color: rgba(255,255,255,.92);
}

.ai-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ai-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #0b1d63;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all .2s ease;
}

.ai-chip:hover{
  background: #f3f3f3;
  transform: translateY(-2px);
}

/* QUOTE STRIP */
.quote-strip{
  background: #d80d0d;
  padding: 36px 0;
  margin-top: 34px;
}

.quote-strip-wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.quote-copy span{
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  font-weight: 700;
  color: #ffdada;
  margin-bottom: 8px;
}

.quote-copy h3{
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.quote-copy p{
  margin: 0;
  color: #ffffff;
}

.btn-light{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #0b1d63;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 12px;
}

@media (max-width: 768px){
  .ai-box{
    padding: 22px 18px;
  }

  .quote-strip{
    padding: 28px 0;
  }

  .quote-strip-wrap{
    align-items: flex-start;
  }
}

/* ===== MODERN SERVICE PAGE ===== */

.service-page-dark{
  background:
    radial-gradient(circle at top left, rgba(18,122,99,.18), transparent 26%),
    radial-gradient(circle at bottom right, rgba(18,122,99,.12), transparent 22%),
    linear-gradient(180deg, #05070d 0%, #07101c 100%);
  color: #f5f7fb;
}

.service-page-dark .container{
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.service-hero-modern{
  padding: 90px 0 50px;
}

.service-eyebrow{
  display: inline-block;
  color: #52f2c8;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.service-hero-modern h1{
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  line-height: 1.06;
  margin: 0 0 16px;
  color: #ffffff;
  max-width: 800px;
}

.service-hero-modern p{
  max-width: 760px;
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  font-size: 1.05rem;
  margin: 0 0 26px;
}

.hero-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-modern{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 14px;
  padding: 14px 22px;
  transition: all .2s ease;
}

.btn-modern-primary{
  background: linear-gradient(90deg, #22e3b7, #20b8d6);
  color: #041018;
}

.btn-modern-primary:hover{
  transform: translateY(-2px);
}

.btn-modern-outline{
  border: 1px solid rgba(255,255,255,.18);
  color: #ffffff;
  background: rgba(255,255,255,.04);
}

.service-feature-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px 0 48px;
}

.service-feature-card,
.service-panel,
.service-form-card,
.service-side-card{
  background: rgba(11,17,30,.78);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
  backdrop-filter: blur(6px);
}

.service-feature-card{
  padding: 22px;
}

.service-feature-card h3{
  margin: 10px 0 8px;
  color: #ffffff;
  font-size: 1.05rem;
}

.service-feature-card p{
  margin: 0;
  color: rgba(255,255,255,.74);
  line-height: 1.6;
  font-size: .96rem;
}

.service-icon-dot{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,227,183,.12);
  color: #52f2c8;
  font-size: 18px;
}

.service-main-grid{
  display: grid;
  grid-template-columns: 1.45fr .95fr;
  gap: 22px;
  margin-bottom: 42px;
}

.service-panel{
  overflow: hidden;
}

.service-panel-image img{
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.service-panel-body{
  padding: 26px;
}

.service-panel-body h2,
.service-side-card h3,
.service-form-card h3,
.process-card h4{
  color: #ffffff;
  margin-top: 0;
}

.service-panel-body p,
.service-side-card p,
.service-form-card p{
  color: rgba(255,255,255,.78);
  line-height: 1.7;
}

.service-bullets{
  margin: 18px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.85);
  line-height: 1.85;
}

.service-side-stack{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.service-side-card{
  padding: 24px;
}

.process-section{
  margin-bottom: 44px;
}

.process-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-card{
  background: rgba(11,17,30,.78);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 22px;
}

.process-number{
  display: inline-block;
  color: #52f2c8;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 14px;
}

.process-card p{
  color: rgba(255,255,255,.72);
  line-height: 1.6;
  margin: 0;
}

.quote-intake-grid{
  display: grid;
  grid-template-columns: 1.3fr .8fr;
  gap: 18px;
  margin-bottom: 50px;
}

.service-form-card,
.service-side-card{
  padding: 24px;
}

.service-form-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.service-form-full{
  grid-column: 1 / -1;
}

.service-form-card input,
.service-form-card select,
.service-form-card textarea{
  width: 100%;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  color: #ffffff;
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
}

.service-form-card textarea{
  min-height: 120px;
  resize: vertical;
}

.service-form-card button{
  width: 100%;
  border: 0;
  cursor: pointer;
}

@media (max-width: 991px){
  .service-feature-grid,
  .process-grid,
  .service-main-grid,
  .quote-intake-grid{
    grid-template-columns: 1fr;
  }

  .service-form-grid{
    grid-template-columns: 1fr;
  }

  .service-panel-image img{
    height: 260px;
  }
}
