/* ==========================================================================
   TRIPPLE A CO. DESIGNS - GLOBAL STYLESHEET
   ========================================================================== */

:root {
  --bg-main: #8c979e;
  --bg-card-pill: #626e77;
  --bg-dark-btn: #000000;
  --text-dark: #000000;
  --text-light: #ffffff;
  --text-muted: #2d3338;
  --font-family: 'Montserrat', sans-serif;
  --max-width: 1280px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  font-family: var(--font-family);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 2rem;
  background: transparent !important;
  box-shadow: none !important;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Left Brand Icon Badge */
.brand-badge {
  display: block;
}

.brand-badge img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

/* Center Navigation Capsule Pill */
.nav-capsule {
  background-color: var(--bg-card-pill);
  border-radius: 50px;
  padding: 0.35rem 0.5rem 0.35rem 0.35rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.brand-pill-title {
  background: var(--text-light);
  color: var(--text-dark);
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  padding-right: 1.5rem;
}

.nav-links a {
  color: #cdd4d9;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-light);
}

/* Right Controls */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Language Dropdown */
.lang-select-wrapper {
  position: relative;
}

.lang-select-btn {
  background: transparent;
  border: none;
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.6rem;
}

.lang-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  list-style: none;
  display: none;
  min-width: 130px;
  overflow: hidden;
  z-index: 101;
}

.lang-dropdown-menu.show {
  display: block;
}

.lang-dropdown-menu li button {
  width: 100%;
  padding: 0.65rem 1.2rem;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
}

.lang-dropdown-menu li button:hover {
  background-color: #f0f3f5;
}

/* Navigation Buttons */
.btn-nav-text {
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-black-pill {
  background-color: var(--bg-dark-btn);
  color: var(--text-light);
  padding: 0.55rem 1.4rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
}

.btn-black-pill:hover {
  opacity: 0.85;
}

/* Mobile Hamburger & X Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.mobile-toggle.is-open {
  transform: rotate(90deg);
}

/* --- Responsive Mobile Navigation Drawer --- */
@media (max-width: 992px) {
  .mobile-toggle {
    display: block;
  }

  .nav-capsule {
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    background: rgba(30, 36, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 1.5rem;
    gap: 1.2rem;
    width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }

  .nav-capsule.active-mobile {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .brand-pill-title {
    text-align: center;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-right: 0;
  }

  .nav-links a {
    color: #ffffff;
    font-size: 0.9rem;
  }
}

/* --- Universal Footer --- */
.site-footer {
  background-color: #121518;
  color: var(--text-light);
  padding: 3.5rem 2rem 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #9ea8b0;
  font-size: 0.88rem;
  max-width: 320px;
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: #9ea8b0;
  font-size: 0.88rem;
}

.footer-nav a:hover {
  color: var(--text-light);
}

.footer-contact p {
  color: #9ea8b0;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.footer-contact a {
  color: var(--text-light);
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  text-align: center;
  color: #727e87;
  font-size: 0.82rem;
}

.footer-bottom a {
  color: #b0bac2;
  font-weight: 600;
}

.footer-bottom a:hover {
  color: var(--text-light);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}