/*
  ----------------------------------------------------------------------
  File: style.css (_v17)
  Generated: Sunday, June 29th, 2025 @ 14:49 :: Time PDT
  Description: Unified stylesheet for TRC Robotics site
  Updated: Thurs. July 3rd, 2025 @ 14:55 Time PDT
  ----------------------------------------------------------------------
*/
:root {
  --bg1: #f7efe7;
  --bg2: #fbf3eb;
  --bg3: #b07b5d;
  --accent-gold: #db9e44;
  --redish-brown: #8a3e10;
  --dark-brown: #5f301a;
  --brown-medium: #e8b48a;
  --slate-black: #13161a;
  --text-main: #1b1c1d;
  --tile-gap: 1rem;
  --font-size-tile: 1rem;
  --font-family: 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --hero-direction: row;
  --read-more: #a02b2b;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background-color: var(--bg3);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.full-width-banner {
  width: 100%;
  aspect-ratio: 9 / 6;
  overflow: hidden;
}
.full-width-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
main {
  width: 100%;
  max-width: var(--max-width);
  padding: 2rem;
  background-color: var(--bg1);
}
header, footer {
  width: 100%;
  max-width: var(--max-width);
}
header {
  background-color: var(--dark-brown);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between; /* This will now work as expected */
  align-items: center;
  position: relative; /* Add this for positioning the mobile menu */
}
header h1 {
  font-size: 1.5rem;
  margin-right: auto;
}
header nav a {
  color: white;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
}
header nav a:hover {
  text-decoration: underline;
}
.search-box {
  background-color: var(--bg2);
  border: none;
  padding: 0.5rem;
  border-radius: 5px;
  width: 200px;
  margin-left: 1.5rem;
}
.hero {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  height: 900px; /* 400px */
  margin-bottom: 3rem;
  overflow: hidden;
  border-radius: 10px; /* 10px */
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.hero-text-overlay {
  position: absolute;
  /* bottom: 4rem;        /* 2rem */
  top: 8rem;              /* 2rem */
  left: 0rem;             /* 2rem */
  right: 32rem;           /* 2rem */
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1rem 1.5rem;
  font-size: 1.75rem; /* 1.25rem */
  line-height: 1.4;
  border-radius: 6px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}
.capabilities h2,
.testimonials h2 {
  margin-bottom: 1rem;
}
.capabilities .tile-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--tile-gap);
}
.capabilities .tile {
  background-color: var(--bg2);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}
.testimonials blockquote {
  font-style: italic;
  background-color: var(--bg2);
  padding: 1rem;
  border-left: 5px solid var(--accent-gold);
  border-radius: 5px;
  max-width: 800px;
  margin: auto;
  margin-bottom: 0;
}
.testimonials footer {
  background-color: var(--brown-medium);
  color: white;
  padding: 0.75rem;
  text-align: center;
  border-radius: 4px;
  margin: auto;
  max-width: 800px;
  font-style: italic;
}
.tile-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--tile-gap);
  margin-top: 2rem;
}
@media (min-width: 960px) {
  .tile-matrix {
    grid-template-columns: repeat(3, 1fr);
  }
}
.tile img {
  width: 100%;
  border-radius: 10px;
  display: block;
  transition: transform 0.2s ease;
}
.tile:hover img {
  transform: translateY(-4px);
}
/* -- BEGIN :: TILE -- These target the Tile Image Viewport specifically. For zooming & panning */

.tile {
  width: 100%;
  max-width: 280px;
  margin: 1rem;
  text-align: center;
}
.tile-image {
  width: 100%;
  height: 160px;              /* fixed viewport height */
  overflow: hidden;
  border-radius: 12px;        /* Match with .tile-hero */
}
.tile-hero {
  width: 150%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;         /* Match .tile-image */
  transition: transform 0.3s ease;
}
.tile-image img.tile-hero {
  width: 150%;                 /* zoom in */
  object-fit: cover;
object-position: center;     /* adjust pan as: top, or center, or bottom */
  transition: transform 0.3s ease;
}
.tile-text h3 {
  margin: 0.5rem 0 0.3rem;
  font-size: 1.1rem;
}
.tile-text p {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.read-more {
  font-weight: bold;
  text-decoration: none;
  color: var(--read-more);
} 
/* END :: TILE */

.button-primary {
  background-color: var(--accent-gold);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
}
.button-primary.dark {
  background-color: var(--dark-brown);
}
/* TOOLTIP */
.tooltip-term {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted #333;
}
.tooltip-definition {
  visibility: hidden;
  opacity: 0;
  width: 280px;
  background-color: #333;
  color: #fff;
  text-align: left;
  padding: 0.75rem;
  border-radius: 6px;
  position: absolute;
  z-index: 10;
  top: 125%; /* adjust as needed */
  left: 0;
  transition: opacity 0.3s ease;
  font-size: 0.85rem;
  line-height: 1.3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.tooltip-term:hover .tooltip-definition {
  visibility: visible;
  opacity: 1;
}
.use-case-content {
  max-width: 960px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #efe5de; /* #ede4da #f4ece7 */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  
  font-family: 'Georgia', serif;         /* Change font type */
  font-size: 1.4rem;                     /* Base font size */
  line-height: 1.7;                      /* Improve readability */
  color: #1a1a1a;                        /* Optional: darker text */
}
.use-case-content h1 {
  font-family: 'Segoe UI', sans-serif;  /* Header font override */
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.use-case-content p {
  margin-bottom: 1rem;
}
.use-case-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.use-case-content li {
  margin-bottom: 0.5rem;
}
.use-case-tile {
  width: 100%;
  max-width: 250px;
  margin: 1rem;
  text-align: center;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}
.use-case-tile img.tile-image {
  width: 100%;
  border-bottom: 1px solid #ccc;
  display: block;
}
.tile-caption {
  padding: 0.75rem;
  font-size: 0.95rem;
}
.tile-caption h3 {
  font-size: 1.05rem;
  margin: 0.5rem 0 0.25rem;
  color: #3a1d0d;
}
.tile-caption .read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: bold;
  color: #a3572b;
}
.tile:hover {
  transform: translate(0px, -6px);
  transition: transform 0.3s ease;
}
.tile:hover .tile-image img {
  transform: translate(0px, -6px);
  transition: transform 0.3s ease;
}
/* use_case1-9.html navigation links at bottom of page. See also, global.js */
.use-case-nav {
  margin-top: 3rem;
  text-align: center;
  font-size: 1rem;
}
.use-case-nav a {
  color: var(--accent-gold);
  font-weight: bold;
  text-decoration: none;
  padding: 0 0.5rem;
}
.use-case-nav a:hover {
  text-decoration: underline;
}
.use-case-nav span {
  color: #aaa;
  padding: 0 0.5rem;
}

/* -- NEW STYLES MOVED FROM INDEX INLINE -- */

.hero-row {
  display: flex; /* Ensures this is a flex container */
  flex-wrap: nowrap; /* Prevents wrapping, keeping items in a single row */
  align-items: stretch; /* Stretches flex items to fill the container height */
  width: 100%; /* Allows the flex container to take full width */
  padding: 0;
  margin: 0 0 3rem 0;
  background-color: var(--bg1);
  /* Other styles you might have */
}
.hero-row .left-image {
  flex: 0 0 420px; /* Sets flex-grow to 0, flex-shrink to 0, and flex-basis to 420px */
  height: auto; /* Allows height to adjust based on content/image aspect ratio */
  overflow: hidden; /* Hides any content that overflows, though the image should fit now */
  display: flex; /* Important: Makes .left-image *also* a flex container for the image inside */
  align-items: stretch; /* Stretches the image inside to fill container height */
  justify-content: flex-start; /* Aligns image to the start (left) if it doesn't fill horizontally */
  min-width: 0; /* Allows the flex item to shrink below its content size if needed */
}
.hero-row .left-image img {
  display: block; /* Helps with layout consistency, especially with width/height */
  width: 100%; /* Makes the image take 100% of its parent's width (.left-image) */
  max-width: 100%; /* Ensures the image doesn't exceed 100% of its parent's width */
  height: 100%; /* Makes the image take 100% of its parent's height (.left-image) */
  object-fit: cover; /* Scales the image to cover the area while maintaining aspect ratio */
  object-position: left top; /* Aligns the covered image to the top left */
  /* Other styles you might have */
}
.hero-row .hero-copy {
  flex: 1;
  background: var(--accent-gold);
  color: var(--dark-brown);
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-row .hero-copy h1 {
  font-size: 2.25rem;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.hero-copy h1 {
  color: var(--dark-brown);
  font-size: 2.25rem;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.hero-row .hero-copy button {
  margin-top: 1rem;
  padding: 1.25rem 2rem;
  font-size: 1.2rem;
  width: 100%;
  max-width: 420px;
  background-color: var(--dark-brown);
  color: white;
  text-align: center;
}
.two-col {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin: 2rem 0 3rem;
  gap: 2rem;
}
.two-col .text {
  flex: 1 1 60%; /* Allow more space for text */
}
.two-col .image {
  flex: 0 0 35%; /* Fixed width for the image container */
  max-width: 320px;
  overflow: hidden;
}
.two-col .image img {
  width: 100%;
  height: 280px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 14px; /* Rounded corners for images */
}
.two-col .text button {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}
.menu-toggle {
  display: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.mobile-menu {
  display: none;
}
footer {
  background-color: var(--dark-brown);
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 0;
  border-top: none;
}
/* ------------------------------------------
/* BEGIN :: Mobile */
/* ------------------------------------------
  Responsive Mobile layout patch from _v14.1 merged on Sunday, June 29th, 2025 @ 14:54
  Updated: Thursday, July 3rd, 2025 @ 15:02 :: Time
  - Includes responsive nav toggle styles
  ------------------------------------------- */  
@media (max-width: 768px) {
  .hero-row {
    flex-direction: column;
  }
  .hero-row .left-image {
    width: 100%;
    flex: none;
  }
  .hero-row .left-image img {
    height: auto;
    max-height: 300px;
  }
  .hero-row .hero-copy {
    padding: 2rem 1.5rem;
  }
  .hero-copy h1 {
    color: #964b00;
  }
  .two-col {
    flex-direction: column;
    align-items: flex-start;
  }
  .two-col .image,
  .two-col .text {
    width: 100%;
    max-width: 100%;
  }
  .two-col .image img {
    height: auto;
    max-height: 280px;
  }
  .two-col .text {
    padding: 0 1rem;
  }
  .two-col .text button {
    width: 100%;
  }
  .button-primary.dark {
    font-size: 1.1rem;
    padding: 1rem;
    width: 100%;
    max-width: none;
  }  
  header {
    justify-content: space-between;
    flex-direction: row;      /* Ensure it stays as a row */
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .menu-toggle {
    display: block;           /* !important is no longer needed */
    font-size: 2rem;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
  }  
  .nav-links {
    display: none;
  }
    .mobile-menu {
    display: none;
    flex-direction: column;
    background-color: var(--dark-brown);
    padding: 1rem;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
  }
  .mobile-menu.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }
  .mobile-menu a,
  .mobile-menu .search-box {
    margin: 0.5rem 0;
    color: white;
  }
  .mobile-menu .search-box {
    width: 100%;
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
  }
  /* Styles for dark mode (mobile) */
  @media (prefers-color-scheme: dark) {
    .hero-copy h1 {
      color: #222222;
    }
  }
}
/* END :: Mobile */

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

