/* ==================================================
   URWAY HOLDINGS - MAIN STYLESHEET
   ================================================== */

   * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: sans-serif;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #fff;
  }
  
  html, body {
    height: 100%;
  }
  
  .rounded-8 {
    border-radius: 8px;
  }
  
  .shadow-sm {
    box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
  }
  
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    border-bottom: 1px solid #ccc;
  }
  
  .logo {
    width: 100%;
    max-width: 271px;
    height: auto;
    aspect-ratio: 271 / 51;
    background: url('images/URway_Holdings_Logo.jpg') no-repeat center center;
    background-size: contain;
    cursor: pointer;
  } 
  
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }
  
  .hamburger div {
    width: 25px;
    height: 3px;
    background: black;
  }
  
  nav.menu {
    display: none;
    flex-direction: column;
    background: #303030;
    position: absolute;
    top: 100%;
    right: 0;
    padding: 10px;
    border-radius: 8px;
    width: 200px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
  }
  
  nav.menu.open {
    display: flex;
  }
  
  nav.menu a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
    text-align: left;
  }
  
  .tab-bar {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    background: #303030;
    padding: 10px;
    position: fixed;
    top: 79px;
    left: 0;
    width: 100%;
    z-index: 1000;
  }
  
  .tab-button {
    text-decoration: none;
    background: none;
    border: none;
    color: #ffffff;
    margin: 0 15px;
    font-size: 1.2em;
    cursor: pointer;
    padding: 10px;
    display: inline-block;
  }
  
  .tab-button.active {
    border-bottom: 3px solid #fd7005;
  }

  .ai-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 150px 20px 40px;
    text-align: center;
    box-sizing: border-box;
  }
  #ai-connect.content {
  padding-top: 150px; /* Pushes section down under fixed menu and tabs */
}

.ai-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 15px 40px;
  background-color: #fff;
}

  .section-header {
    padding-top: 144px;
    padding-bottom: 0;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
  }
  
  .section-header img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: cover;
    display: block;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
  }
  
  .content h1,
  .content h2,
  .content h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    line-height: 1.2;
  }
  
  .content p {
    margin-bottom: 16px;
  }
  
  .content {
    display: none;
    padding: 20px 20px 160px;
    max-width: 1080px;
    margin: 0 auto;
  }
  
  .content.active {
    display: block;
  }
  
  .landing-image {
    padding-top: 91px;
    padding-bottom: 0;
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
  }
  
  .landing-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  
  .news-teaser-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 620px;
    width: 60%;
    background: #f7f7f7;
    border-radius: 6px;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
    height: 64px;
    position: relative;
  }
  
  .news-teaser {
    flex-grow: 1;
    overflow: hidden;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    color: #004d24;
    font-size: 1em;
    white-space: nowrap;
    position: relative;
  }
  .news-teaser:focus {
    outline: 2px dashed #004d24;
    outline-offset: 4px;
  }
  .news-rotator {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s linear;
  }
  
  .news-rotator li::before {
    content: "•";
    color: #004d24;
    margin-right: 10px;
    font-weight: bold;
  }
  .news-rotator .headline {
    height: 40px;
    line-height: 40px;
    padding: 8px 0;
    white-space: nowrap;
    text-align: center;
    opacity: 0.8;
  }
  .news-rotator .headline::before {
    content: "•";
    color: #004d24;
    margin-right: 10px;
    font-weight: bold;
  }
  .news-scroller {
    height: 56px; /* Match the headline height + padding */
    overflow: hidden;
    position: relative;
  }
  
  .news-rotator {
    transition: transform 0.5s linear; /* Improve smoothness */
  }
  
  .news-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.8em;
    font-weight: bold;
    background: #ffc69a;
    color: #000000;
    padding: 4px 6px;
    border-radius: 4px;
    margin-left: 12px;
    letter-spacing: 1px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  .teaser-positioner {
    position: fixed;
    top: 10px;
    width: 100%;
    z-index: 1002;
    pointer-events: none;
  }
  
  .teaser-positioner > .news-teaser-wrapper {
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    pointer-events: auto;
  }
  .teaser-click-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px; /* match teaser height */
    z-index: 1003; /* just above teaser */
    background: transparent;
    border: none;
    cursor: pointer;
  }
  
  /* ==================== SERVICE LAYOUT ==================== */
  .service-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    margin: 60px 0;
    padding-bottom: 30px;
    align-items: flex-start;
  }
  
  .service-text {
    flex: 0 0 60%;
  }
  
  .service-image {
    flex: 0 0 40%;
    display: block;
    margin-left: auto;
    margin-right: 10px;
    padding-right: 10px;
  }
  
  .service-image img {
    height: 180px;
    width: auto;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .featured-projects-rotator {
    position: relative;
    cursor: pointer;
    text-align: center;
    background: #f7f7f7;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
  }
  
  .featured-projects-rotator img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.5s ease;
  }

  .featured-projects-rotator img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.5s ease; /* <-- already here, but important */
    opacity: 1;
  }
  
  #featured-project-title {
    margin-top: 10px;
    font-weight: bold;
    font-size: 1.1em;
    color: #004d24;
  }
  
  .checkbox-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 30px;
    margin-top: 20px;
  }
  
  .checkbox-with-icon {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .checkbox-with-icon input {
    height: 18px;
    width: 18px;
    flex-shrink: 0;
    margin: 0;
  }
  
  .checkbox-with-icon img {
    height: 24px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
  }
  
  .checkbox-with-icon .label-text {
    line-height: 1;
    white-space: nowrap;
  }
  
  form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }
  
  form input,
  form textarea {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
  }
  
  form button {
    background-color: #363837;
    color: #fec57b;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 8px;
    width: 30%;
    margin: 0 auto;
  }
  
  .button-spinner {
    border: 2px solid #fff;
    border-top: 2px solid #00cc66;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    animation: spin 0.6s linear infinite;
    display: inline-block;
    vertical-align: middle;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  .logo-crawler-wrapper {
    background: #ffffff;
    border-top: 2px solid #023a31;
    overflow: hidden;
    position: fixed;
    bottom: 106px;
    width: 100%;
    z-index: 999;
    padding: 12px 0;
  }
  
  .logo-crawler {
    display: flex;
    width: max-content;
    animation: scroll-left 70s linear infinite;
  }
  
  .logo-track {
    display: flex;
    gap: 50px;
  }
  
  .logo-track img {
    height: 36px;
    width: auto;
  }
  
  .logo-track img:last-child {
    margin-right: 40px;
  }
  
  @keyframes scroll-left {
    0% {
      transform: translateX(0%);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  
  footer {
    background: #303030;
    color: #ffffff;
    padding: 8px 0;
    font-size: 0.9em;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1001;
    text-align: center;
    line-height: 1.2;
  }
  
  .footer-content {
    padding: 10px 20px 14px;
    max-width: 1080px;
    margin: 0 auto;
    line-height: 1.4;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 24px;
  }
  
  .footer-content p {
    margin: 0;
    display: inline-block;
  }
  
  .email-link {
    color: #fad46c;
    font-weight: bold;
    text-decoration: none;
  }
  
  @media (max-width: 1250px) {
    .logo {
      max-width: 200px;
    }
  
    .teaser-positioner {
      left: 50%;
      transform: translateX(-50%);
      width: 90vw;
    }
  }
  /* Smoothly fade out teaser at mobile sizes */
  @media (max-width: 950px) {
      .teaser-positioner {
      opacity: 1;
      transition: opacity 0.4s ease;
    }
  }

@media (max-width: 880px) {
  .teaser-positioner {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 840px) {
  .teaser-positioner {
    display: none;
  }
}

  @media (max-width: 880px) {
    .tab-bar {
      display: none;
    }
    .logo {
      max-width: 180px;
    }
  
    .teaser-positioner {
      display: none; /* <<< Hides the entire teaser, label, button */
    }
  
    .content {
      padding-top: 30px;
    }
  
    .section-header {
      padding-top: 76px;
      padding-bottom: 0;
      width: 100%;
      max-width: 880px;
      margin: 0 auto;
    }
  
    .service-row {
      flex-direction: column;
      align-items: center;
    }
  
    .service-text,
    .service-image {
      flex: 0 0 100%;
      max-width: 100%;
      text-align: left;
    }
  
    .service-image img {
      margin: 0 auto;
    }
  
    .checkbox-group {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .logo-crawler-wrapper {
      display: none;
    }
  
    .logo-crawler {
      display: flex;
      align-items: center;
      gap: 50px;
      animation: crawl 40s linear infinite;
      height: 100%;
    }
  
    .logo-crawler img {
      height: 32px;
      width: auto;
      object-fit: contain;
    }
  
    .news-teaser-wrapper {
      max-width: 45%;
      margin: 0 auto;
    }
  }
  /* === AI Connect Section === */
.ai-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 15px;
  background-color: #fff;
}

.ai-logo {
  max-width: 400px;
  width: 100%;
  margin-bottom: 20px;
}

.ai-announcement-bar {
  background-color: #f5a24f;
  padding: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.ai-announcement-wrapper {
  height: 2em;
  line-height: 1.5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-fade-text {
  font-size: 2.1em;
  font-weight: bold;
  color: #000;
  animation: softfade 3.75s infinite ease-in-out;
}

.ai-announcement {
  font-size: 2.1em;
  font-weight: bold;
  color: #000;
}

.ai-welcome-text {
  font-size: 1.8em;
  font-weight: bold;
  color: #000;
  margin: 10px 0; /* ⬅️ adjust for tighter spacing */
  text-align: center;
  line-height: 1.2;
}

@keyframes softfade {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.1;
  }
}

.ai-event-info {
  font-size: 1.1em;
  color: #333;
  margin: 30px 0;
  max-width: 90%;
}

.ai-teaser {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 30px;
}

.ai-description {
  max-width: 800px;
  font-size: 1em;
  color: #111;
  line-height: 1.5em;
  text-align: center;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .ai-announcement {
    font-size: 1.4em;
  }

  .ai-logo {
    max-width: 280px;
    margin-bottom: 15px;
  }

  .ai-event-info {
    font-size: 1em;
    margin: 20px 0;
  }
}
/* Fade-in animation for content sections */
.content {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.content.active {
  opacity: 1;
}

.urway-digital-feed {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.urway-digital-item {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 30px;
}

.urway-digital-left {
  flex: 0 0 75%;
}

.urway-digital-right {
  flex: 0 0 25%;
  text-align: right;
}

.urway-digital-right img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
}

.urway-digital-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.urway-digital-image:hover {
  transform: scale(1.05);
}

.urway-digital-item h2 {
  margin-bottom: 10px;
  font-size: 1.6em;
  color: #023a31;
}

.urway-digital-item h3 {
  margin-bottom: 10px;
  font-size: 1.2em;
  color: #444;
}

.urway-digital-item p {
  font-size: 1em;
  color: #555;
}
@media (max-width: 768px) {
  .urway-digital-item {
    flex-direction: column;
    text-align: center;
  }

  .urway-digital-left,
  .urway-digital-right {
    flex: 0 0 100%;
  }

  .urway-digital-right {
    margin-top: 20px;
  }
}
#work-title {
  text-align: center;
  margin-top: 10px;
  font-size: 2em;
  color: #023a31;
  display: none;
}

.our-work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.work-item {
  background: #f7f7f7;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
}

.work-item:hover {
  transform: translateY(-5px);
}

.work-thumbnail {
  width: 100%;
  height: 200px; /* LOCK */
  object-fit: cover;
  border-radius: 8px;
  margin: 10px 0;
}


#work-details {
  margin-top: 40px;
}

.work-slideshow {
  position: relative;
  max-width: 1080px;
  margin: 0 auto 20px;
}

#slideshow-image {
  width: 100%;
  max-height: 600px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
  opacity: 1;
  transition: opacity 0.2s ease; /* <-- Timing adjuster! */
}

#slideshow-counter {
  position: absolute;
  bottom: 10px;
  right: 20px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
}
/* Slideshow Arrows */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 2em;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
  z-index: 10;
}

.slide-arrow:hover {
  background: rgba(253, 112, 5, 0.9); /* matches your orange accent */
}

#prev-slide {
  left: 10px;
}

#next-slide {
  right: 10px;
}

/* 🔥 Back to Portfolio button */
.back-button {
  display: inline-block;
  margin: 30px auto 0;
  padding: 10px 20px;
  background-color: #004d24;
  color: #fdd123;
  border: 2px solid #004d24;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1em;
  cursor: pointer;
}

.back-button:hover {
  background-color: #fdd123;
  color: #004d24;
}

/* === Check It Out Button (CMS Links) === */
.check-it-out-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 10px;
  background-color: #fec57b; /* URway orange */
  color: #000000;
  border-radius: 4px;
  font-size: 0.85em; /* Smaller font */
  font-weight: normal; /* Not bold */
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.check-it-out-btn:hover {
  background-color: #fca65f; /* Slightly deeper orange on hover */
}

/* === UNIVERSAL BUTTON STYLES === */
.button {
  display: inline-block;
  background-color: #4a4a4a; /* Dark grey */
  color: #fca65f; /* Lighter orange */
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.button:hover {
  background-color: #fca65f; /* Orange background on hover */
  color: #4a4a4a; /* Dark text on hover */
}

/* Special centering for Back to Projects button */
#back-to-grid {
  display: block;
  margin: 40px auto 0 auto;
}
/* Center the Learn More button inside service-text */
.service-text {
  text-align: left;
}

.service-text .button {
  margin-top: 20px;
}
/* ===== Unified Button Wrapper and Button Styling ===== */

.button-wrapper {
  text-align: center;
  margin-top: 20px;
}

.button {
  background-color: #363837; /* Dark Gray */
  color: #fec57b;             /* URway lighter orange */
  border: none;
  padding: 12px 24px;
  font-size: 1em;
  cursor: pointer;
  border-radius: 8px;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: bold;
}

.button:hover {
  background-color: #4a4a4a; /* Slightly lighter gray */
  color: #ffd991;            /* Even lighter orange for contrast */
}

.news-feed {
  width: 90%;
  margin: 0 auto;
}

.news-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #ccc;
}


.news-left {
  flex: 1;
}

.news-right {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
}

.news-right img {
  border-radius: 6px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  height: auto;
  width: auto;
  max-height: 120px;
  max-width: 160px;
  object-fit: contain;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-content {
  background: #fff;
  padding: 30px 40px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-in-out;
}

.popup-content p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
}

.popup-close {
  background-color: #262a28;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.popup-close:hover {
  background-color: #1e1f1f;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  padding: 8px 0;
  background-color: #fd7005; /* URway Orange */
  border-top: 1px solid #e65c00;
}


.footer-social img {
  height: 28px;
  width: auto;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.footer-social img:hover {
  transform: scale(1.25);
}
