/* ============================================================
   YKA Teknoloji — Layout (layout.css)
   ============================================================
   Structural components that appear on every page:
   the glassmorphism navbar and the dark footer.
   ============================================================ */

/* ==========================================================
   NAVBAR
   Glassmorphism fixed header with blur + saturation.
   ========================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all var(--duration-normal) var(--ease-out);
}

/* Scrolled state — more opaque, subtle shadow */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 30px rgba(15, 43, 82, 0.08);
}

/* Inner wrapper — flexbox row */
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* ----------------------------------------------------------
   LOGO
   ---------------------------------------------------------- */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* Logo image — responsive height with smooth hover */
.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.15s;
  max-width: 90px;
}

.nav-logo:hover .nav-logo-img {
  opacity: 0.8;
}

/* Logo text wrapper — tight line-height for stacked text */
.nav-logo-wrap {
  line-height: 1;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-primary);
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav-logo-text .accent {
  color: var(--color-accent);
}

.nav-logo-subtitle {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--color-text-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   NAV LINKS (desktop)
   ---------------------------------------------------------- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  transition: color var(--duration-fast);
}

/* Animated underline on hover */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* ----------------------------------------------------------
   HAMBURGER (mobile)
   Both the #hamburger ID and .hamburger class are supported.
   Hidden by default, shown via responsive.css on <1024px.
   ---------------------------------------------------------- */
#hamburger,
.hamburger {
  display: none;          /* shown via responsive.css on <1024px */
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--duration-normal);
}

/* Short variant — narrower line for visual hierarchy */
.hamburger-line--short {
  width: 16px;
  align-self: flex-end;
}

/* ----------------------------------------------------------
   MOBILE MENU
   Collapsible panel below navbar, revealed on hamburger tap.
   ---------------------------------------------------------- */
#mobile-menu,
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  border-top: 1px solid var(--color-border);
}

#mobile-menu.open,
.mobile-menu.open {
  max-height: 500px;
}

/* Inner wrapper for mobile menu items */
.mobile-menu-inner {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-link {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  color: #374151;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  transition: color var(--duration-fast), background var(--duration-fast);
  font-size: 0.875rem;
}

.mobile-link:hover {
  color: var(--color-primary);
  background: var(--color-surface-alt);
}

/* Mobile CTA wrapper — adds spacing around the primary button */
.mobile-menu-cta {
  padding-top: 8px;
  padding-left: 16px;
  padding-right: 16px;
}

/* Mobile menu CTA uses .btn .btn-primary .btn-block in HTML */

/* ==========================================================
   FOOTER
   Dark navy footer with subtle gold accents.
   ========================================================== */
.footer {
  background: var(--color-primary-dark);
  padding: 40px 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* ----------------------------------------------------------
   FOOTER LOGO
   ---------------------------------------------------------- */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Footer logo image — inverted to white */
.footer-logo-img {
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

/* Text wrapper next to footer logo image */
.footer-logo-text-wrap {
  line-height: 1;
}

/* Footer brand text */
.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  color: white;
  font-size: 1rem;
  display: block;
}

.footer-logo-text .accent {
  color: var(--color-accent);
}

/* Footer subtitle below brand name */
.footer-logo-subtitle {
  font-family: var(--font-body);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
}

/* Legacy selectors kept for backward compatibility */
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  color: #FFFFFF;
  font-size: 1rem;
  line-height: 1;
}

.footer-brand .accent {
  color: var(--color-accent);
}

.footer-subtitle {
  font-family: var(--font-body);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   FOOTER INFO
   ---------------------------------------------------------- */
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-info > * {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-info i {
  color: rgba(196, 137, 26, 0.7);
}

/* Individual info item */
.footer-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Clickable info links with hover transition */
.footer-info-link {
  transition: color 0.15s;
}

.footer-info-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Separator dot between footer items */
.footer-info-sep {
  color: rgba(255, 255, 255, 0.15);
}

/* Legacy selector */
.footer-divider {
  color: rgba(255, 255, 255, 0.15);
}

/* ----------------------------------------------------------
   FOOTER COPYRIGHT
   ---------------------------------------------------------- */
.footer-copyright {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}
