/* Play Attention — site shell (flexbox, original palette) */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

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

:root {
  --accent: #fe8017;
  --accent-hover: #4f5e7c;
  --secondary: #7a869d;
  --text: #333;
  --text-light: #555;
  --bg: #fff;
  --border: #e5e5e5;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  text-align: justify;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

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

/* ?? Top bar ?? */
.top-bar {
  background: #f5f5f5;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.top-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.top-bar-contact { color: #000; }
.top-bar-social { display: flex; gap: 8px; }
.top-bar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
}
.top-bar-social a:hover { background: var(--accent-hover); color: #fff; }

/* ?? Header ?? */
.site-header {
  background: #fff;
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo img { height: 50px; width: auto; }

/* ?? Navigation ?? */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 22px;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 4px;
}
.main-nav { flex: 1; }
.main-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a { color: var(--accent); }
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 200;
}
.main-nav li:hover > .sub-menu { display: block; }
.main-nav .sub-menu .sub-menu {
  top: 0;
  left: 100%;
}
.main-nav .sub-menu a {
  display: block;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}
.main-nav .sub-menu a:hover { background: #fafafa; color: var(--accent); }
.main-nav .sub-menu li:last-child a { border-bottom: none; }

/* ?? Main content ?? */
.site-main { flex: 1; }
.page-header {
  background: #f9f9f9;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.page-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.page-header-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  text-align: left;
}
.breadcrumbs { font-size: 13px; color: var(--text-light); }
.breadcrumbs a { color: var(--accent); }

.content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 20px 50px;
}

/* ?? Homepage hero ?? */
.hero-section {
  background: linear-gradient(135deg, #fff5eb 0%, #fff 100%);
  padding: 40px 20px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}
.hero-text { flex: 1; min-width: 280px; }
.hero-text h1 {
  font-size: 28px;
  color: var(--accent);
  margin: 0 0 16px;
  text-align: left;
}
.hero-text ul { padding-left: 20px; }
.feature-cards {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  padding: 24px;
  border-radius: 15px;
  color: #fff;
}
.feature-card.orange { background: var(--accent); }
.feature-card.grey { background: var(--secondary); }
.feature-card h3 { margin: 0 0 12px; font-size: 18px; text-align: left; }
.feature-card p { margin: 0 0 16px; font-size: 14px; }
.feature-card .btn {
  display: inline-block;
  padding: 8px 20px;
  border: 2px solid #fff;
  border-radius: 15px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
.feature-card .btn:hover { background: rgba(255,255,255,.2); color: #fff; text-decoration: none; }

/* ?? Content area styles ?? */
.content-area h1, .content-area h2, .content-area h3,
.content-area h4, .content-area h5, .content-area h6 {
  text-align: left;
  color: var(--text);
}
.content-area h2 { font-size: 20px; margin: 24px 0 12px; }
.content-area h3 { font-size: 18px; }
.content-area p { margin: 0 0 14px; }
.content-area ul, .content-area ol { margin: 0 0 14px 24px; }
.content-area table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.content-area th, .content-area td { border: 1px solid #ddd; padding: 8px; text-align: left; }
.content-area th { background: #f5f5f5; }
.content-area img { margin: 12px 0; }
.content-area .theme-button,
.content-area input[type="submit"],
.content-area button[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}
.content-area .theme-button:hover,
.content-area input[type="submit"]:hover { background: var(--accent-hover); }
.content-area input[type="text"],
.content-area input[type="email"],
.content-area textarea {
  width: 100%;
  max-width: 500px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}
.content-area textarea { min-height: 120px; }

/* VC/orange panels from original */
.content-area .vc_custom_1449759904694,
.orange-panel { background: var(--accent) !important; color: #fff; padding: 20px; border-radius: 15px; margin: 10px 0; }
.content-area .vc_custom_1449822810532,
.content-area .vc_custom_1449823857177,
.grey-panel { background: var(--secondary) !important; color: #fff; padding: 20px; border-radius: 15px; margin: 10px 0; }

/* Blog grid (r-template_blog) */
.blog-container { padding: 10px 0; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  transition: box-shadow .2s;
}
.blog-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.blog-title { margin: 0 0 10px; font-size: 16px; }
.blog-title a { color: var(--accent); text-decoration: none; font-weight: 700; }
.blog-preview p { margin: 0; font-size: 14px; color: var(--text-light); }

/* News listing */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.news-list li:last-child { border-bottom: none; }
.news-list a { font-weight: 600; font-size: 16px; }

/* Footer callout */
.footer-callout {
  background: var(--secondary);
  color: #fff;
  padding: 24px 20px;
}
.footer-callout-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-callout p { margin: 0; font-weight: 800; font-size: 16px; flex: 1; }
.footer-callout .btn {
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.footer-callout .btn:hover { background: #e56f0a; color: #fff; text-decoration: none; }

/* Footer */
.site-footer {
  background: #2a2a2a;
  color: #ccc;
  padding: 24px 20px;
  font-size: 14px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-footer a { color: var(--accent); }
.site-footer p { margin: 0 0 8px; }

/* Scroll top */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 99;
}
.scroll-top.visible { display: flex; }

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; }
  .main-nav .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
  }
  .main-nav li:hover > .sub-menu { display: block; }
}
