/* ==========================================================================
   COMPONENTS
   Reusable UI patterns repeated across pages: buttons/CTAs, cards,
   pull-quotes, and form controls (Contact + Booking Form pages).

   v2 (visual redesign pass): pill-shaped buttons with a hover lift + press
   state, a new .card component for paired content blocks, a pull-quote
   treated as a quiet callout with a decorative quote mark, and form
   controls with a custom select arrow and a proper focus glow.
   ========================================================================== */

/* ==========================================================================
   BUTTON / CTA
   One base class + three color variants. Used for every button-styled
   link on the site (hero CTAs, "Learn more", "Arrange Meetings", etc).
   Text-transform: uppercase is applied here in CSS so every button reads
   consistently regardless of how the source copy was capitalized — the
   underlying HTML text is untouched.
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  background: none; /* override the base <a> underline-draw effect */
  text-align: center;
  min-height: 44px;
  padding: clamp(0.65rem, 0.55rem + 0.3vw, 0.85rem) clamp(1.5rem, 1.2rem + 1vw, 2rem);
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: background-color var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary: filled white button, used on dark hero/banner backgrounds */
.btn--primary {
  background-color: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background-color: var(--color-accent-tint);
  color: var(--color-accent-dark);
  box-shadow: var(--shadow-md);
}

/* Secondary: outlined button, used alongside a primary button on the same
   dark background so the two CTAs are visually distinct from each other */
.btn--secondary {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
  box-shadow: var(--shadow-md);
}

/* On-page variant: solid accent button, used for CTAs sitting on a plain
   white/alt-background page section (e.g. About page's "Learn more") */
.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn--accent:hover {
  background-color: var(--color-accent-dark);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   CARD
   Used for paired content blocks inside a .content-grid--split (About's
   ProjectBank/InvestmentMeetings pair, Non-Deal Roadshows' closing pair).
   Quiet by default; lifts slightly on hover to read as a distinct,
   self-contained unit rather than a plain text column.
   ========================================================================== */

.card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card > h2:first-child,
.card > h3:first-child {
  margin-top: 0;
}

.card > * + * {
  margin-top: var(--space-stack-sm);
}

/* ==========================================================================
   PULL-QUOTE
   Used on About (x2), Non-Deal Roadshows, and Booking Form pages. Styled
   as a quiet tinted callout with a large decorative quote mark, rather
   than just a left border rule.
   ========================================================================== */

.pull-quote {
  position: relative;
  background-color: var(--color-primary-tint);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  padding-left: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  max-width: var(--content-max-width-narrow);
  overflow: hidden;
}

.pull-quote p {
  position: relative;
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-style: italic;
  color: var(--color-primary);
  line-height: var(--leading-normal);
}

.pull-quote cite {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--color-text-muted);
}

/* ==========================================================================
   FORMS
   Shared styling for the Contact and Booking Form pages.
   ========================================================================== */

.form {
  max-width: var(--content-max-width-narrow);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-field label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form-field .form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  font-size: var(--text-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  background-color: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-field input:hover,
.form-field textarea:hover,
.form-field select:hover {
  border-color: var(--color-text-muted);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-tint);
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

/* Custom select arrow (pure CSS, no icon font/JS): the browser's native
   arrow is removed via appearance:none and replaced with an inline SVG
   chevron drawn as a background-image, positioned with padding to leave
   it room on the right. */
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%2356666D' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-2) center;
  padding-right: var(--space-6);
}

.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--color-error);
}

.form-submit {
  align-self: flex-start;
}

/* ==========================================================================
   VISUALLY HIDDEN
   For text that should be announced to screen readers but not shown
   visually (e.g. extra context on icon-only or ambiguous controls).
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
