/*
Theme Name: Becco
Theme URI: https://www.becco.xyz
Author: Becco UK MGA Ltd
Description: Dark, modern theme for Becco — a Lloyd's MGA underwriting Technology E&O, Cyber and Crime for Web3. Content is managed through ACF field groups, custom post types and WordPress menus. Requires Advanced Custom Fields (free is sufficient). Contact Form 7 is used for the submission form. Yoast owns all SEO output.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary — for use by Becco UK MGA Ltd
Text Domain: becco
Tags: dark, custom-menu, custom-logo, translation-ready

--------------------------------------------------------------------------
The actual site styles live in assets/css/becco.css, loaded via wp_enqueue_style.
This file exists for the theme header above and for WordPress core classes.
--------------------------------------------------------------------------
*/

/* WordPress core alignment + caption classes, styled to match the design system */
.alignnone { margin: 1.5rem 0; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignleft { float: left; margin: 0.4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.4rem 0 1rem 1.5rem; }
@media (max-width: 600px) {
  .alignleft, .alignright { float: none; display: block; margin: 1.5rem 0; }
}

.wp-caption { max-width: 100%; }
.wp-caption img { border-radius: 10px; }
.wp-caption-text,
.wp-block-image figcaption {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.7rem;
  text-align: left;
}

.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip-path: none; height: auto; width: auto; padding: 0.7rem 1.2rem;
  background: var(--brand-blue); color: #fff; z-index: 200; top: 0; left: 0;
  border-radius: 0 0 8px 0;
}

.sticky { position: relative; }
.bypostauthor { display: block; }

/* Admin bar offset for the fixed nav */
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 46px; } }
body.admin-bar .subnav { top: calc(var(--nav-h) + 32px); }
@media (max-width: 782px) { body.admin-bar .subnav { top: calc(var(--nav-h) + 46px); } }

/* ---- Contact Form 7, restyled to match the site's form components ---- */
.wpcf7 { margin: 0; }
.wpcf7-form p { margin: 0; }
.wpcf7 .formgrid { margin-bottom: 0; }

.wpcf7-form-control-wrap { display: block; }

/* CF7 runs wpautop over the form, wrapping each label+input pair in a <p> with
   a <br> between them. Neutralise both so the .field layout still applies. */
.wpcf7 .field > p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.wpcf7 .field > p > br,
.wpcf7 .form-actions > p > br { display: none; }
.wpcf7 .field { gap: 0.45rem; }
.wpcf7 .form-actions > p { margin: 0; }

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.24s var(--ease), background 0.24s, box-shadow 0.24s;
  appearance: none;
  -webkit-appearance: none;
}
.wpcf7 textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.wpcf7 input::placeholder, .wpcf7 textarea::placeholder { color: var(--text-muted); opacity: 0.75; }
.wpcf7 input:hover, .wpcf7 select:hover, .wpcf7 textarea:hover { border-color: rgba(255, 255, 255, 0.26); }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  background: rgba(46, 155, 232, 0.055);
  box-shadow: 0 0 0 3px rgba(46, 155, 232, 0.16);
}
.wpcf7 select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237286a8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}
.wpcf7 select option { background: #0d1428; color: var(--text); }

/* CF7 acceptance checkbox */
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
/* The consent copy is a <label> inside .field, so it would otherwise pick up
   the small-caps field-label styling. Put it back to body text. */
.wpcf7 .field .wpcf7-acceptance label,
.wpcf7 .field .wpcf7-acceptance .wpcf7-list-item-label {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-muted);
  line-height: 1.6;
}
.wpcf7 .wpcf7-acceptance label { display: flex; gap: 0.75rem; align-items: flex-start; cursor: pointer; }
.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 19px; height: 19px; flex: none; margin-top: 0.15rem;
  border: 1px solid var(--line-strong); border-radius: 5px;
  background: rgba(255, 255, 255, 0.03); cursor: pointer;
  transition: 0.22s var(--ease);
}
.wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked {
  border-color: transparent;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--brand-blue), var(--blue-bright));
  background-size: 13px, auto; background-position: center; background-repeat: no-repeat;
}
.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label {
  font-size: 0.86rem; color: var(--text-muted); line-height: 1.6;
}

/* CF7 submit button — matches .btn--primary */
.wpcf7 input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.7rem;
  line-height: 1.25;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  width: auto;
  min-width: 190px;
  background: linear-gradient(135deg, var(--brand-blue), var(--blue-bright));
  color: #fff;
  box-shadow: 0 6px 26px -8px rgba(46, 155, 232, 0.75);
  transition: all 0.28s var(--ease);
}
.wpcf7 input[type="submit"]:hover {
  box-shadow: 0 12px 38px -10px rgba(46, 155, 232, 0.9);
  transform: translateY(-2px);
}

/* CF7 messages */
.wpcf7 form .wpcf7-response-output {
  margin: 1.4rem 0 0;
  padding: 0.95rem 1.15rem;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid;
}
.wpcf7 form.sent .wpcf7-response-output {
  color: var(--ok); border-color: rgba(61, 220, 151, 0.4); background: rgba(61, 220, 151, 0.08);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  color: var(--stop); border-color: rgba(244, 98, 107, 0.4); background: rgba(244, 98, 107, 0.08);
}
.wpcf7-not-valid-tip { color: var(--stop); font-size: 0.8rem; margin-top: 0.4rem; }
.wpcf7 .wpcf7-not-valid { border-color: rgba(244, 98, 107, 0.55) !important; }
.wpcf7-spinner { background-color: var(--blue-bright); }
