/*
Theme Name: Tratok
Theme URI: https://tratok.com
Author: Tratok
Author URI: https://tratok.com
Description: Custom theme for the Tratok hospitality ecosystem. Professional, responsive, built for Elementor compatibility.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tratok
*/

/* ═══════════════════════════════════════════
   COLOUR SYSTEM — Edit these to retheme
   Pulled from tratok.net's design system
   ═══════════════════════════════════════════ */

:root {
  --trat-bg:          #0c1220;
  --trat-bg-deep:     #131b2e;
  --trat-bg-card:     #1a2540;
  --trat-bg-slate:    #2a3a5c;

  --trat-gold:        #d4a853;
  --trat-gold-light:  #e8c36a;
  --trat-coral:       #e8634a;
  --trat-teal:        #3bb5a8;

  --trat-text:        #f0ede8;
  --trat-text-muted:  #8a96b0;
  --trat-text-soft:   #b8c0d0;

  --trat-glass:       rgba(26, 37, 64, 0.72);
  --trat-glass-light: rgba(42, 58, 92, 0.45);
  --trat-border:      rgba(212, 168, 83, 0.15);

  --font-display:     'Playfair Display', Georgia, serif;
  --font-body:        'DM Sans', Helvetica, Arial, sans-serif;

  --trat-radius:      12px;
  --trat-radius-sm:   8px;
  --trat-radius-lg:   20px;
}


/* ═══════════════════════════════════════════
   CSS RESET & BASE
   ═══════════════════════════════════════════ */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--trat-text);
  line-height: 1.7;
  background: var(--trat-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

::selection {
  background: rgba(212, 168, 83, 0.25);
  color: var(--trat-text);
}

:focus-visible {
  outline: 2px solid var(--trat-gold);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}


/* ═══════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--trat-text);
  line-height: 1.2;
}

h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: var(--trat-text-muted);
}

strong, b {
  font-weight: 600;
  color: var(--trat-text);
}


/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */

.tratok-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  background: var(--trat-bg-deep);
  border-bottom: 1px solid var(--trat-border);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.tratok-header.scrolled {
  background: rgba(19, 27, 46, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tratok-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.tratok-header-spacer {
  height: 72px;
}

@media (max-width: 768px) {
  .tratok-header-inner {
    padding: 0 16px;
  }
}


/* ═══════════════════════════════════════════
   LOGO
   ═══════════════════════════════════════════ */

.tratok-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.tratok-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--trat-gold), var(--trat-gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--trat-bg);
}

.tratok-logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--trat-text);
  letter-spacing: -0.02em;
}

.tratok-logo img {
  height: 36px;
  width: auto;
}

@media (max-width: 480px) {
  .tratok-logo-mark {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .tratok-logo-text {
    font-size: 19px;
  }
  .tratok-logo img {
    height: 30px;
  }
}


/* ═══════════════════════════════════════════
   DESKTOP NAVIGATION
   ═══════════════════════════════════════════ */

.tratok-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tratok-nav li {
  list-style: none;
  display: inline-block;
}

.tratok-nav a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--trat-text-muted);
  padding: 7px 14px;
  border-radius: var(--trat-radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tratok-nav a:hover,
.tratok-nav a:focus {
  color: var(--trat-gold);
  background: var(--trat-glass-light);
}

.tratok-nav .current-menu-item > a,
.tratok-nav .current_page_item > a {
  color: var(--trat-gold);
  font-weight: 600;
}

.tratok-nav-cta {
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--trat-bg) !important;
  background: var(--trat-gold) !important;
  padding: 8px 20px !important;
  border-radius: var(--trat-radius-sm) !important;
  margin-left: 8px !important;
  transition: background 0.2s ease !important;
}

.tratok-nav-cta:hover {
  background: var(--trat-gold-light) !important;
  color: var(--trat-bg) !important;
}

@media (max-width: 768px) {
  .tratok-nav {
    display: none;
  }
}


/* ═══════════════════════════════════════════
   MOBILE HAMBURGER
   ═══════════════════════════════════════════ */

.tratok-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
}

.tratok-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--trat-text-soft);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.tratok-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.tratok-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.tratok-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .tratok-hamburger {
    display: flex;
  }
}


/* ═══════════════════════════════════════════
   MOBILE MENU OVERLAY
   ═══════════════════════════════════════════ */

.tratok-mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--trat-bg-deep);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tratok-mobile-menu.open {
  transform: translateX(0);
}

.tratok-mobile-menu li {
  list-style: none;
}

.tratok-mobile-menu a {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--trat-text);
  padding: 16px 0;
  border-bottom: 1px solid var(--trat-border);
  display: block;
  transition: color 0.2s ease;
}

.tratok-mobile-menu a:hover,
.tratok-mobile-menu a:active {
  color: var(--trat-gold);
}

.tratok-mobile-menu .current-menu-item > a,
.tratok-mobile-menu .current_page_item > a {
  color: var(--trat-gold);
  font-weight: 600;
}

.tratok-mobile-cta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tratok-mobile-cta a {
  border: none;
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  display: block;
}

.tratok-mobile-cta .cta-primary {
  background: var(--trat-gold);
  color: var(--trat-bg);
}

.tratok-mobile-cta .cta-secondary {
  background: transparent;
  border: 1.5px solid var(--trat-gold);
  color: var(--trat-gold);
}

@media (min-width: 769px) {
  .tratok-mobile-menu {
    display: none !important;
  }
}


/* ═══════════════════════════════════════════
   CONTENT AREA
   ═══════════════════════════════════════════ */

.tratok-content {
  min-height: 60vh;
}

.elementor-page .tratok-content {
  padding: 0;
}

.tratok-content-standard {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px;
}

.tratok-content-standard a {
  color: var(--trat-gold);
  text-decoration: underline;
  text-decoration-color: rgba(212, 168, 83, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

.tratok-content-standard a:hover {
  text-decoration-color: var(--trat-gold);
}


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.tratok-footer {
  background: var(--trat-bg);
  border-top: 1px solid var(--trat-border);
  padding: 48px 0 32px;
  color: var(--trat-text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.tratok-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.tratok-footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-bottom: 40px;
}

.tratok-footer-brand {
  flex: 1 1 260px;
  min-width: 220px;
}

.tratok-footer-brand p {
  color: var(--trat-text-muted);
  font-size: 0.85rem;
  max-width: 280px;
  margin-top: 16px;
}

.tratok-footer-col {
  flex: 0 0 auto;
  min-width: 130px;
}

.tratok-footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--trat-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.tratok-footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--trat-text-muted);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.tratok-footer-col a:hover {
  color: var(--trat-gold);
}

.tratok-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--trat-bg-slate);
}

/* Footer logo */
.tratok-footer-logo {
  display: inline-block;
}

.tratok-footer-logo-img {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.tratok-footer-logo:hover .tratok-footer-logo-img {
  opacity: 1;
}

@media (max-width: 768px) {
  .tratok-footer {
    padding: 32px 0 24px;
  }
  .tratok-footer-inner {
    padding: 0 16px;
  }
  .tratok-footer-grid {
    gap: 32px;
  }
  .tratok-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .tratok-footer-grid {
    flex-direction: column;
    gap: 28px;
  }
}


/* ═══════════════════════════════════════════
   BLOG / SINGLE POST STYLES
   ═══════════════════════════════════════════ */

.tratok-post-header {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.tratok-post-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 12px;
}

.tratok-post-meta {
  font-size: 0.85rem;
  color: var(--trat-text-muted);
}

.tratok-post-meta span {
  margin-right: 16px;
}

.tratok-post-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

.tratok-post-content p {
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.tratok-post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.tratok-post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.tratok-post-content img {
  border-radius: var(--trat-radius);
  margin: 1.5rem 0;
}

.tratok-post-content blockquote {
  border-left: 3px solid var(--trat-gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--trat-bg-deep);
  border-radius: 0 var(--trat-radius-sm) var(--trat-radius-sm) 0;
}

.tratok-post-content blockquote p {
  color: var(--trat-text-soft);
  margin-bottom: 0;
}


/* ═══════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════ */

body.menu-open {
  overflow: hidden;
}

body.admin-bar .tratok-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .tratok-header {
    top: 46px;
  }
  body.admin-bar .tratok-mobile-menu {
    top: 118px;
  }
}