/* ProfitTracker brand layer, loaded after main.min.css.
   Values copied from PT's resources/css/app.css (design system v1.8).
   Temporary: fold into the Sass and delete this folder when there's time. */

@font-face {
  font-family: 'Space Grotesk';
  src: url('space-grotesk-v22-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --pt-accent: #8E1B52;
  --pt-accent-deep: #74143F;
  --pt-intro: #22252A;
  --pt-secondary: #5C636D;
  --pt-border: #DCDFE4;
  --pt-paper: #F3F4F6;
  --pt-neutral: #9AA1AB;
}

/* Header: logo and wordmark left, menu right */
header.navigation {
  height: auto;
  background: var(--pt-paper);
  border-bottom: 1px solid var(--pt-border);
}

header.navigation .navigation-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: auto;
  max-width: 1920px;
  margin-inline: auto;
  padding: 1rem 2rem;
}

header.navigation #logoimg { float: none; max-height: none; padding: 0; }

.pt-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.pt-logo img { height: 4rem; width: auto; max-height: none; }

.wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--pt-accent);
}

.wordmark b { color: var(--pt-intro); font-weight: inherit; }

header.navigation nav { float: none; margin-left: auto; }

header.navigation .navigation-menu a {
  color: var(--pt-secondary);
  text-decoration: none;
}

header.navigation .navigation-menu a:hover,
header.navigation .navigation-menu .active a { color: var(--pt-intro); }

header.navigation .navigation-menu-button { margin-left: auto; color: var(--pt-secondary); }

@media (max-width: 767px) {
  header.navigation .navigation-wrapper { padding: 1rem; gap: 1rem; }
  .pt-logo img { height: 3rem; }
  .wordmark { font-size: 1.75rem; }
}

/* Old layout bug (also on patpatworks.com): .nextpage is position: fixed,
   which only works while each section fills the screen. Below 900px the
   sections scroll, so the buttons go back into the flow. */
@media (max-width: 900px) {
  #wrapper .section .nextpage {
    position: static;
    bottom: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.5rem 0;
  }

  #wrapper .section .nextpage a:nth-child(2) { position: static; }
}

/* PT colours replace the PatPatWorks red (#ca113c) */
[type=button], [type=reset], [type=submit], button,
[type=button]:disabled:hover, [type=reset]:disabled:hover,
[type=submit]:disabled:hover, button:disabled:hover {
  background-color: var(--pt-accent);
}

[type=button]:hover, [type=reset]:hover, [type=submit]:hover, button:hover,
[type=button]:focus, [type=reset]:focus, [type=submit]:focus, button:focus {
  background-color: var(--pt-accent-deep);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--pt-accent);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .06), 0 0 5px rgba(142, 27, 82, .5);
}

h1, h2, h3, h4, h5, h6 { color: var(--pt-accent); }

a { color: var(--pt-accent); }
a:hover, a:focus { color: var(--pt-accent-deep); }

/* Footer: PT's dark ground, quiet icons */
footer { background-color: var(--pt-intro); }
footer .icons a { color: #A8AEB8; }
footer .icons a:hover { color: var(--pt-paper); }

/* Simple menu for plain pages on the signup template (no JS needed) */
.pt-simple-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.pt-simple-nav a { color: var(--pt-secondary); text-decoration: none; }
.pt-simple-nav a:hover { color: var(--pt-intro); }
@media (max-width: 767px) {
  .pt-simple-nav { gap: 1rem; }
  .pt-simple-nav .wide-only { display: none; }
}

/* Privacy link: footer and under the contact form */
/* The old theme fixes the footer at 4em tall, so everything sits in one row */
footer .iconwrap {
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
footer .icons h2 { margin: 0; }
footer .footer-legal { margin: 0; font-size: 0.8125rem; color: #A8AEB8; white-space: nowrap; }
footer .footer-legal a { color: #A8AEB8; text-decoration: none; }
footer .footer-legal a:hover { color: var(--pt-paper); text-decoration: underline; }
.form-note { font-size: 0.8125rem; color: var(--pt-secondary); }
