/* =========================
   GENERAL PAGE STYLING
   ========================= */
   html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
  }
  
  :root {
    --nav-height: 90px;
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    padding-top: var(--nav-height);
    background-color: #BFBFBF;
    text-align: center;
    overflow-x: hidden;
  }
  
  /* =========================
     NAVIGATION BAR (MATCH OTHER PAGES)
     ========================= */
  .topnav {
    font-family: 'Bebas Neue', sans-serif;
    position: fixed;
    top: 0;
    left: 0;   /* ✅ prevents mobile hairline gaps */
    right: 0;  /* ✅ prevents mobile hairline gaps */
    width: 100%;
    background: linear-gradient(to bottom, #616163, #4A4A4A);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    z-index: 1000;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  }
  
  .topnav > a:first-child {
    display: flex;
    align-items: center;
  }
  
  .topnav img {
    height: 80px;
    width: auto;
    cursor: pointer;
    margin: 0;
  }
  
  .topnav a {
    text-decoration: none;
    color: #F5DB75;
    font-size: 18px;
    padding: 10px 12px;
    margin: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
  }
  
  .topnav a:hover {
    color: #D93D8E;
  }
  
  /* =========================
     DROPDOWN MENU
     ========================= */
  .dropdown {
    position: relative;
    display: inline-block;
  }
  
  .dropbtn {
    text-decoration: none;
    color: #F5DB75;
    font-size: 18px;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #4A4A4A;
    min-width: 220px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }
  
  .dropdown-content a {
    display: block;
    color: #F5DB75;
    padding: 12px 16px;
    text-decoration: none;
    text-align: left;
    transition: background 0.3s;
    white-space: nowrap;
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  .dropdown-content a:hover {
    background-color: #D93D8E;
    color: white;
  }
  
  /* =========================
     NAV CONTACT (MATCH OTHER PAGES)
     ========================= */
  .nav-contact {
    margin-left: auto;
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding-right: 10px;
    gap: 0;
    min-width: 0;
  }
  
  .nav-contact-item {
    text-decoration: none;
    color: #F5DB75;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    line-height: 1;
  }
  
  .nav-contact-item:hover {
    color: #0085B5 !important;
  }
  
  .nav-sep {
    color: rgba(245, 219, 117, 0.6);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    line-height: 1;
    margin: 0 10px;
  }
  
  .nav-contact a:last-child {
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* =========================
     HERO SECTION (DESKTOP)
     ========================= */
  .hero-section {
    height: 500px;
    background: url('duckystorefront.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: 65% 50%;
  }
  
  /* =========================
     SERVICES SECTION
     ========================= */
  #services {
    position: relative;
    padding: 30px;
    text-align: center;
    scroll-margin-top: 15px;
    background: url('servicesBackground.jpeg') center/cover no-repeat;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 30px;
    z-index: 1;
    overflow: hidden;
  }
  
  #services::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 0;
    pointer-events: none;
  }
  
  #services > * {
    position: relative;
    z-index: 1;
  }
  
  .services-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 100px;
    max-width: 1100px;
    margin: 80px auto 50px;
    justify-items: center;
    align-items: start;
  }
  
  /* Top row: 3 cards */
  .services-container .service-card-wrapper:nth-child(1) { grid-column: 1 / span 2; }
  .services-container .service-card-wrapper:nth-child(2) { grid-column: 3 / span 2; }
  .services-container .service-card-wrapper:nth-child(3) { grid-column: 5 / span 2; }
  
  /* Bottom row: 2 cards centered */
  .services-container .service-card-wrapper:nth-child(4) { grid-column: 2 / span 2; }
  .services-container .service-card-wrapper:nth-child(5) { grid-column: 4 / span 2; }
  
  .service-card {
    width: 250px;
    height: 400px;
    background: white;
    border: 1px solid #000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in;
    position: relative;
    overflow: hidden;
    margin: 0;
    box-shadow: -12px 12px 7px 1px rgba(0, 0, 0, 0.4);
    cursor: pointer;
  }
  
  .service-card:hover {
    transform: scale(1.10);
  }
  
  .color-block {
    height: 82%;
    position: relative;
    border: 5px solid white;
    overflow: hidden;
  }
  
  #signs-card .color-block { background: rgb(217, 61, 142); }
  #vehicle-card .color-block { background: rgb(249, 231, 80); }
  #logos-card .color-block { background: rgb(0, 171, 233); }
  #storefront-card .color-block { background: rgb(250, 150, 63); }
  #stickers-card .color-block { background: rgb(145, 70, 200); }
  
  .service-card .service-icon {
    width: 170px;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 2;
    pointer-events: none;
  }
  
  .service-card:hover .service-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  
  .service-card .image-slider {
    display: none !important;
  }
  
  .service-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 14px 12px;
  }
  
  .service-info h3 {
    margin: 0 0 2px 0;
  }
  
  .service-buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    width: 100%;
  }
  
  .learn-more-btn,
  .get-quote-btn {
    width: 100%;
    text-align: left;
    font-size: 18px;
    background: white;
    color: #4A4A4A;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: color 0.3s ease-in-out;
    border-radius: 6px;
    text-decoration: none;
    padding: 6px 10px;
    display: inline-block;
  }
  
  .get-quote-btn:hover { color: #0085B5; }
  .learn-more-btn:hover { color: #B02B7C; }
  
  /* =========================
     CONTACT: MAP + FORM
     ========================= */
  #contact {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
  }
  
  .contact h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 40px;
    margin-top: 0px;
  }
  
  .contact-layout {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
    padding: 20px;
  }
  
  .contact-map-wrap,
  .contact-form {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .contact-map-wrap {
    width: 100%;
    gap: 12px;
  }
  
  .contact-map {
    width: 100%;
    min-height: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
    flex: 1;
  }
  
  .contact-map iframe {
    width: 100%;
    height: 100%;
    display: block;
  }
  
  .directions-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    padding: 0 18px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    border-radius: 5px;
    text-decoration: none;
    background: #D93D8E;
    color: white;
    transition: 0.25s ease;
  }
  
  .directions-btn:hover {
    background: #b02b7c;
  }
  
  .contact-form {
    max-width: none;
    width: 100%;
    margin: 0;
    gap: 22px;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left;
  }
  
  input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1.5px solid black;
    font-size: 16px;
    font-family: Arial, sans-serif;
  }
  
  .send-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    padding: 0 20px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    border-radius: 5px;
    background: black;
    color: white;
    transition: 0.3s;
    cursor: pointer;
    border: none;
  }
  
  .send-button:hover {
    background: #444;
  }
  
  /* =========================
     FOOTER
     ========================= */
  .footer {
    background: linear-gradient(to bottom, #616163, #4A4A4A);
    padding: 20px;
    text-align: center;
  }
  
  .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 20px 0;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
  }
  
  .footer-links,
  .footer-contact,
  .footer-hours,
  .footer-social {
    flex: 1;
    min-width: 300px;
    text-align: left;
  }
  
  .footer-contact h3,
  .footer-hours h3,
  .footer-links h3,
  .footer-social h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #F5DB75;
  }
  
  .footer-contact p,
  .footer-hours p {
    font-size: 16px;
    color: white;
    margin: 3px 0;
  }
  
  .footer-links a {
    text-decoration: none;
    color: white;
    display: block;
    margin-bottom: 5px;
  }
  
  .footer-links a:hover {
    color: #D93D8E;
  }
  
  .footer-social img {
    width: 24px;
    height: 24px;
  }
  
  /* FOOTER BOTTOM */
  .footer-bottom {
    max-width: 1200px;
    margin: 6px auto 0;
    padding: 0 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 56px;
  }
  
  .footer-copyright {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 14px;
    color: #777;
    white-space: nowrap;
  }
  
  .footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  
  .powered-by {
    font-size: 12px;
    color: #777;
    font-family: Arial, sans-serif;
    white-space: nowrap;
  }
  
  .footer-logo img {
    height: 52px;
    width: auto;
    display: block;
    transform: translate(-10px, -3px);
  }
  
  /* =========================
     RESPONSIVE (DESKTOP SAFE)
     ========================= */
  @media (max-width: 1100px) {
    .nav-contact a:last-child,
    .nav-contact span:last-of-type {
      display: none;
    }
  }
  
  @media (max-width: 820px) {
    .topnav a,
    .dropbtn {
      padding: 10px 8px;
      font-size: 16px;
    }
  
    .nav-contact-item,
    .nav-sep {
      font-size: 14px;
    }
  
    .topnav img {
      height: 70px;
    }
  }
  
  /* =========================
     MOBILE FIXES (MATCH OTHER PAGES)
     ========================= */
  @media (max-width: 900px) {
    :root {
      --nav-height: 140px;
    }
  
    body {
      padding-top: var(--nav-height);
    }
  
    /* ---------- NAV ---------- */
    .topnav {
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px 14px;
      padding: 10px 12px;
      box-shadow: none;
    }

    .topnav > a:first-child {
      flex-basis: 100%;
      display: flex;
      justify-content: center;
      order: -1; /* forces logo to stay on its own row at the top */
    }
    
  
    .topnav img {
      height: 68px;
    }
  
    .topnav a,
    .dropbtn {
      font-size: 16px;
      padding: 8px 10px;
    }
  
    .nav-contact {
      display: none !important;
    }
  
    .dropdown-content {
      left: 50%;
      transform: translateX(-50%);
    }
  
    /* ---------- SERVICES: 2 PER ROW + FIX BACKGROUND ZOOM ---------- */
    #services {
      padding: 24px 16px;
      background-size: cover;      /* no tiling */
      background-repeat: no-repeat;
      background-position: center top;
    }    
  
    .services-container {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 28px; /* wider breathing room */
      max-width: 760px;
      margin: 32px auto 48px;
      padding: 0 16px;
    }
    
  
    /* turn off the desktop grid-column placements */
    .services-container .service-card-wrapper:nth-child(1),
    .services-container .service-card-wrapper:nth-child(2),
    .services-container .service-card-wrapper:nth-child(3),
    .services-container .service-card-wrapper:nth-child(4),
    .services-container .service-card-wrapper:nth-child(5) {
      grid-column: auto !important;
    }
  
    .service-card-wrapper {
      width: 100%;
      display: flex;
      justify-content: center;
    }
  
    /* ✅ SKINNIER CARDS ON MOBILE */
    .service-card {
      width: 100%;
      max-width: 205px;
      height: 440px; /* taller card */
    }    
  
    /* reduce hover zoom for touch widths */
    .service-card:hover {
      transform: scale(1.03);
    }
  
    /* ✅ ICONS ALWAYS VISIBLE ON MOBILE */
    .service-card .service-icon {
      opacity: 1 !important;
      transform: translate(-50%, -50%) scale(1) !important;
    }
  
    /* ---------- CONTACT: flip order (FORM on top) ---------- */
    .contact-layout {
      grid-template-columns: 1fr;
      gap: 54px;
      padding: 14px;
      width: 100%;
      max-width: 680px;
      margin: 0 auto;
      justify-items: stretch;
    }
  
    .contact-form { order: 1; }
    .contact-map-wrap { order: 2; }
  
    .contact-map {
      min-height: 320px;
    }
  
    /* ---------- FOOTER ---------- */
    .footer-container {
      flex-direction: column;
      align-items: center;
      gap: 18px;
    }
  
    .footer-links,
    .footer-contact,
    .footer-hours,
    .footer-social {
      min-width: 0;
      width: 100%;
      text-align: center;
    }
  
    .footer-links a {
      display: inline-block;
      margin: 6px 10px;
      text-decoration: none;
      color: white;
    }
  
    .footer-social a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin: 0 12px;
    }
  
    .footer-bottom {
      justify-content: center;
      flex-direction: column;
      gap: 10px;
      min-height: unset;
      padding-top: 10px;
    }
  
    .footer-copyright {
      position: static;
      transform: none;
      text-align: center;
    }
  
    .footer-logo {
      justify-content: center;
    }
  
    .footer-logo img {
      transform: none;
    }
  }

  .footer a[href^="tel"],
  .footer a[href^="mailto"] {
    color: white !important;
    text-decoration: none;  
  }

  
  /* OPTIONAL: 1 PER ROW ON VERY SMALL PHONES */
  @media (max-width: 520px) {
    .services-container {
      grid-template-columns: 1fr;
    }
  
    .service-card {
      max-width: 320px; /* keep it nice on narrow screens */
    }
  }
  
  /* MOBILE ONLY: show full hero image (keep your existing behavior) */
  @media (max-width: 768px) {
    .hero-section {
      height: 55vh;
      background-size: cover;
      background-position: 65% 50%;
      background-repeat: no-repeat;
      background-attachment: scroll;
      background-color: #000;
    }
  }  