/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --orange:       #FF6B00;
  --orange-light: #FF8C33;
  --orange-dark:  #CC5500;
  --orange-pale:  #FFF3EA;
  --dark:         #1A1A2E;
  --dark2:        #16213E;
  --mid:          #2C2C54;
  --white:        #FFFFFF;
  --gray:         #F5F5F5;
  --text:         #444;
  --text-light:   #777;
  --radius:       12px;
  --shadow:       0 8px 32px rgba(255,107,0,0.12);
  --transition:   0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0 2rem;
}
.navbar.scrolled {
  background: var(--dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}

.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-icon img { 
  /*color: var(--orange); font-size: 1.6rem;*/
  /*background-image: url("../images/logo_tbr_noname.png");
  background-repeat:no-repeat;
  background-size: 100px 100px;*/
  display: block;
  width: 32px;
  height: 30px;
}

.logo-text {
  font-size: 1.5rem; font-weight: 800; color: var(--white);
  letter-spacing: 1px;
}
.logo-text span { color: var(--orange); }

.nav-links {
  list-style: none;
  display: flex; align-items: center; gap: 0.2rem;
}
.nav-links li { position: relative; }
.nav-links a {
  display: block; padding: 0.5rem 0.9rem;
  color: var(--white); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--orange); }

.btn-nav {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
}
.btn-nav:hover { background: var(--orange-dark) !important; color: var(--white) !important; }

/* Dropdown */
.dropdown-menu {
  display: none; position: absolute; top: 110%; left: 0;
  background: var(--dark);
  border-radius: var(--radius); min-width: 180px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  list-style: none; overflow: hidden;
  border-top: 3px solid var(--orange);
}
.dropdown-menu li a {
  padding: 0.7rem 1.2rem;
  font-size: 0.85rem; color: #ccc;
  border-radius: 0;
}
.dropdown-menu li a:hover { background: var(--orange); color: var(--white); }
.dropdown:hover .dropdown-menu { display: block; }

.hamburger { display: none; color: var(--white); font-size: 1.4rem; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(255,107,0,0.4) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 2rem;
  max-width: 750px;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900; color: var(--white);
  line-height: 1.15; margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-content h1 span { color: var(--orange); }
.hero-content p {
  font-size: 1.15rem; color: rgba(255,255,255,0.85);
  margin-bottom: 2rem; line-height: 1.7;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--orange); color: var(--white);
  padding: 0.85rem 2rem; border-radius: 30px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 20px rgba(255,107,0,0.4);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }

.btn-outline {
  border: 2px solid var(--white); color: var(--white);
  padding: 0.85rem 2rem; border-radius: 30px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--white); color: var(--orange); }

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll a {
  color: var(--white); font-size: 1.3rem;
  animation: bounce 1.5s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ===== SECTION SHARED ===== */
section { padding: 90px 2rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block; background: var(--orange-pale);
  color: var(--orange); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 0.3rem 1rem; border-radius: 20px; margin-bottom: 0.8rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800; color: var(--dark); margin-bottom: 0.8rem;
}
.section-header p { color: var(--text-light); font-size: 1rem; max-width: 550px; margin: 0 auto; }

/* ===== SERVICES CARDS ===== */
.services { background: var(--gray); }
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; max-width: 1100px; margin: 0 auto;
}
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 2.5rem 2rem; text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-bottom: 4px solid transparent;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(255,107,0,0.18);
  border-bottom-color: var(--orange);
}
.card-icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--orange-pale); color: var(--orange);
  font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
}
.card h3 { font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-bottom: 0.8rem; }
.card p  { color: var(--text-light); line-height: 1.7; font-size: 0.95rem; margin-bottom: 1.2rem; }
.card-link {
  color: var(--orange); font-weight: 600; text-decoration: none;
  font-size: 0.9rem; transition: gap var(--transition);
}
.card-link:hover { text-decoration: underline; }

/* ===== PARTNERS ===== */
.partners { background: var(--dark); overflow: hidden; }
.partners .section-header h2 { color: var(--white); }
.partners .section-tag { background: rgba(255,107,0,0.15); }

.partners-track-wrapper {
  overflow: hidden; position: relative;
  max-width: 1100px; margin: 0 auto;
}
.partners-track {
  display: flex; align-items: center; gap: 3rem;
  animation: slide 10s linear infinite; /*20s*/
  width: max-content;
}
.partners-track:hover {
  animation-play-state: paused;
}
.partner-logo img {
  height: 50px; filter: brightness(0) invert(1) opacity(0.6);
  transition: filter var(--transition);
}
.partner-logo img:hover { background-color: #EEEEEE; filter: none; /*brightness(0) invert(1) opacity(1);*/ }
@keyframes slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-45%); } /*-50%*/
}

/* ===== SUCCESS STORIES ===== */
.stories { background: var(--white); }
.stories-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem; max-width: 1100px; margin: 0 auto;
}
.story-card {
  background: var(--orange-pale); border-radius: var(--radius);
  padding: 2rem; position: relative;
  border-left: 4px solid var(--orange);
  transition: transform var(--transition), box-shadow var(--transition);
}
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.story-card img { max-width: 100%; margin-bottom: 10px; }
.story-card h3 { margin-bottom: 0px; }
.story-card p { margin: 12px auto; }
.proj-client { margin-bottom: 10px; font-size: 12px;}
.quote-icon { color: var(--orange); font-size: 1.8rem; margin-bottom: 0.8rem; opacity: 0.5; }
.quote-text {
  font-size: 0.97rem; color: var(--text); line-height: 1.75;
  font-style: italic; margin-bottom: 1.5rem;
}
.story-author { display: flex; align-items: center; gap: 1rem; }
.story-author img { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--orange); }
.story-author strong { display: block; font-size: 0.95rem; color: var(--dark); }
.story-author span   { font-size: 0.82rem; color: var(--text-light); }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark2);
  padding: 3rem 2rem;
}
.footer-container {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 1.5em; /*1.5rem*/
}
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; }
.footer-nav a {
  color: #aaa; text-decoration: none; font-size: 1.0rem;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--orange); }
.footer-address { line-height: 20px; text-align: center; color: #DDD; font-size: 0.9rem; }
.footer-copy { color: #555; font-size: 0.82rem; }

/* ===== ANIMATIONS ===== */
.animate-fadein { opacity: 0; animation: fadein 1s ease forwards; }
.animate-slideup {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease calc(var(--delay, 0s)), transform 0.7s ease calc(var(--delay, 0s));
}
.animate-slideup.visible { opacity: 1; transform: translateY(0); }
@keyframes fadein {
  from { opacity: 0; transform: translateY(20px); } /*translateY(20px)*/
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--dark); padding: 1rem 2rem;
    gap: 0.2rem;
  }
  .nav-links.open { display: flex; }
  .dropdown-menu { position: static; box-shadow: none; border-top: none; background: rgba(255,255,255,0.05); }
  .hamburger { display: block; }
  .hero-content h1 { font-size: 2rem; }
}

/* === ABOUT PAGE === */
.detail-about { align-items: normal!important; }
.detail-about h2 { margin-bottom: 10px; font-size: 24px; border-bottom: 1px dotted #888; }
.detail-about p { margin-bottom: 20px; font-size: 1.2rem; line-height: 25px; }

/* === SERVICE PAGE === */
.detail-service {max-width: 1200px; margin: 0 auto; }
.detail-service h2 { margin-bottom: 10px; border-bottom: 1px solid #999; }
.detail-service p { line-height: 24px; font-size: 1.1rem; font-weight: 400; }


.image-context {
    margin: 0px 10px;
    display: block;
    float: left;
    max-width: 220px;
}
