/*
Theme Name: Business Under Thirty
Theme URI: https://businessbeforethirty.gr/
Author: Business Under Thirty
Description: A clean, lightweight, Elementor-first WordPress theme built for Business Under Thirty.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: business-under-thirty
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --but-primary: #00d9a3;
  --but-blue: #0038ff;
  --but-coral: #ff6b6b;
  --but-dark: #101010;
  --but-muted: #5f5f5f;
  --but-bg: #f8f8f5;
  --but-border: #e5e5e5;
  --but-white: #ffffff;
  --but-container: 1240px;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--but-white);
  color: var(--but-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover,
a:focus {
  color: var(--but-blue);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

.but-container {
  width: min(calc(100% - 40px), var(--but-container));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--but-border);
  background: rgba(255,255,255,.96);
}

.site-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-title {
  margin: 0;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
}

.custom-logo-link img {
  max-height: 52px;
  width: auto;
}

.primary-menu,
.primary-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
}

.primary-menu a {
  display: inline-flex;
  padding: 8px 0;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.content-area {
  padding: 72px 0;
}

.entry-header,
.entry-content,
.entry-footer,
.archive-header,
.not-found {
  width: min(calc(100% - 40px), 860px);
  margin-inline: auto;
}

.entry-title,
.archive-title {
  margin: 0 0 24px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content a {
  color: var(--but-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-list {
  width: min(calc(100% - 40px), var(--but-container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.post-card {
  border-top: 4px solid var(--but-primary);
  padding-top: 18px;
}

.post-card-title {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.1;
}

.post-card-meta {
  color: var(--but-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.site-footer {
  flex-shrink: 0;
  background: var(--but-dark);
  color: var(--but-white);
  padding: 28px 0;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  font-size: 14px;
}

/* Elementor compatibility: do not add content spacing around Elementor pages */
body.elementor-page .content-area,
body.elementor-template-full-width .content-area {
  padding: 0;
}

body.elementor-page .entry-header,
body.elementor-template-full-width .entry-header {
  display: none;
}

body.elementor-page .entry-content,
body.elementor-template-full-width .entry-content,
body.elementor-template-canvas .entry-content {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.elementor-template-canvas .site-header,
body.elementor-template-canvas .site-footer {
  display: none;
}

/* Accessibility */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed !important;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  margin: 0;
  clip: auto;
  background: var(--but-white);
  color: var(--but-dark);
  z-index: 99999;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--but-white);
    border-top: 1px solid var(--but-border);
    border-bottom: 1px solid var(--but-border);
  }

  .main-navigation.is-open {
    display: block;
  }

  .primary-menu {
    width: min(calc(100% - 40px), var(--but-container));
    margin-inline: auto;
    padding: 18px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .post-list {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
