/*
Theme Name: Twenty Twenty-Four
Theme URI: https://wordpress.org/themes/twentytwentyfour/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Four is designed to be flexible, versatile and applicable to any website. Its collection of templates and patterns tailor to different needs, such as presenting a business, blogging and writing or showcasing work. A multitude of possibilities open up with just a few adjustments to color and typography. Twenty Twenty-Four comes with style variations and full page designs to help speed up the site building process, is fully compatible with the site editor, and takes advantage of new design tools introduced in WordPress 6.4.
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.0
Version: 1.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfour
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

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

:root {
  --tn-brand:     #248b8f;
  --tn-brand-dark:#1a6e71;
  --tn-dark:      #111318;
  --tn-dark-2:    #1a1d24;
  --tn-footer-bg: #0d0f14;
  --tn-white:     #ffffff;
  --tn-gray-400:  #8c95a3;
  --tn-gray-600:  #5a6272;
  --tn-max-w:     1400px;
  --tn-font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --tn-header-h:  96px;
}

body {
  margin: 0;
  font-family: var(--tn-font);
  background: var(--tn-white);
  color: var(--tn-dark);
}

.site-main {
  min-height: 60vh;
}

.wp-block-template-part:has(footer:not(.tn-footer)),
body > footer:not(.tn-footer),
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part:last-child {
  display: none !important;
}

.wp-site-blocks > header,
.wp-site-blocks > .wp-block-template-part:first-child {
  display: none !important;
}

/* =============================================
   HEADER
   ============================================= */

.tn-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  height: var(--tn-header-h);
  background: #111318 !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease;
}

.tn-header--scrolled {
  box-shadow: 0 2px 32px rgba(0, 0, 0, 0.45);
}

.tn-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--tn-max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  gap: 24px;
}

.tn-header__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  width: 300px;
}

.tn-header__brand img,
.tn-header__brand .custom-logo,
.tn-header__logo-img {
  width: 300px !important;
  height: 80px !important;
  max-width: 300px !important;
  max-height: 80px !important;
  object-fit: contain !important;
  display: block !important;
}

.tn-header__logo-text {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  font-family: var(--tn-font);
}

.tn-header__logo-terra {
  color: var(--tn-white);
}

.tn-header__logo-nova {
  color: var(--tn-brand);
}

.tn-header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tn-header__menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 12px;
}

.tn-header__menu > li {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.tn-header__menu > li > a {
  display: block;
  padding: 10px 18px;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  font-family: var(--tn-font);
}

.tn-header__menu > li > a:hover,
.tn-header__menu > li.current-menu-item > a,
.tn-header__menu > li.current-menu-ancestor > a {
  color: var(--tn-brand);
  background: rgba(36, 139, 143, 0.1);
}

.tn-header__menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--tn-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  list-style: none;
  margin: 0;
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.tn-header__menu > li:hover > .sub-menu,
.tn-header__menu > li:focus-within > .sub-menu {
  display: block;
}

.tn-header__menu .sub-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: 5px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  font-family: var(--tn-font);
}

.tn-header__menu .sub-menu a:hover {
  color: var(--tn-brand);
  background: rgba(36, 139, 143, 0.08);
}

.tn-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  padding: 10px 22px;
  background: var(--tn-brand);
  color: var(--tn-white);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  font-family: var(--tn-font);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(36, 139, 143, 0.3);
}

.tn-header__cta:hover {
  background: var(--tn-brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(36, 139, 143, 0.4);
}

.tn-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.tn-header__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--tn-white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.tn-header--open .tn-header__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.tn-header--open .tn-header__toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.tn-header--open .tn-header__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.tn-header__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 8999;
  backdrop-filter: blur(2px);
}

@media (max-width: 900px) {
  .tn-header__inner {
    padding: 0 24px;
  }

  .tn-header__toggle {
    display: flex;
  }

  .tn-header__nav {
    display: none;
    position: absolute;
    top: var(--tn-header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(17, 19, 24, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  }

  .tn-header--open .tn-header__nav {
    display: flex;
  }

  .tn-header--open .tn-header__overlay {
    display: block;
  }

  .tn-header__menu {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .tn-header__menu > li > a {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 8px;
  }

  .tn-header__menu > li {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .tn-header__menu .sub-menu {
    display: block;
    position: static;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    border-radius: 6px;
    padding: 4px 0 4px 12px;
    margin-top: 4px;
  }

  .tn-header__cta {
    margin: 8px 0 0;
    width: 100%;
    justify-content: center;
    padding: 13px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .tn-header__inner {
    padding: 0 18px;
  }
}

/* =============================================
   FOOTER
   ============================================= */

.tn-footer {
  background: var(--tn-footer-bg);
  font-family: var(--tn-font);
}

.tn-footer__top {
  padding: 72px 40px 64px;
}

.tn-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  max-width: var(--tn-max-w);
  margin: 0 auto;
}

.tn-footer__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 16px;
}

.tn-footer__brand img {
  height: 38px;
  width: auto;
  display: block;
}

.tn-footer__logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.tn-footer__logo-terra {
  color: var(--tn-white);
}

.tn-footer__logo-nova {
  color: var(--tn-brand);
}

.tn-footer__tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 300px;
  margin: 0;
}

.tn-footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tn-brand);
  margin: 0 0 20px;
}

.tn-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tn-footer__menu a {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tn-footer__menu a:hover {
  color: var(--tn-brand);
}

.tn-footer__menu .current-menu-item > a {
  color: var(--tn-brand);
}

.tn-footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tn-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tn-footer__contact-icon {
  flex-shrink: 0;
  color: var(--tn-brand);
  margin-top: 2px;
}

.tn-footer__contact-item a,
.tn-footer__contact-item span {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.tn-footer__contact-item a:hover {
  color: var(--tn-brand);
}

.tn-footer__contact-item--address span {
  font-style: normal;
}

.tn-footer__bottom {
  border-top: 1px solid rgba(36, 139, 143, 0.25);
  background: var(--tn-footer-bg);
  padding: 20px 40px;
}

.tn-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--tn-max-w);
  margin: 0 auto;
  gap: 16px;
  flex-wrap: wrap;
}

.tn-footer__copy {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.tn-footer__copy a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tn-footer__copy a:hover {
  color: var(--tn-brand);
}

.tn-footer__legal-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tn-footer__legal-menu a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tn-footer__legal-menu a:hover {
  color: var(--tn-brand);
}

@media (max-width: 960px) {
  .tn-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .tn-footer__col--brand {
    grid-column: 1 / -1;
  }

  .tn-footer__tagline {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .tn-footer__top {
    padding: 48px 20px 40px;
  }

  .tn-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .tn-footer__col--brand {
    grid-column: auto;
  }

  .tn-footer__bottom {
    padding: 18px 20px;
  }

  .tn-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
.tn-header { background: #111318 !important; }