/* ==========================================================================
   Gentlemen's Yachts: brand tokens, typography and base components
   Paste into Helix Ultimate > Custom Code > Custom CSS (or load as a file).
   Bootstrap 5.3 assumed. Fonts: set the families in Helix's Typography options
   (so Helix loads them): Cormorant Garamond 500/600/700, Source Sans 3 400/400i/600/700.
   ========================================================================== */

:root {
  /* Colors: navy and gold measured from the logo */
  --gy-navy:        #11284C;  /* primary: headings, header, dark sections */
  --gy-navy-deep:   #0B1B36;  /* footer, hover on navy */
  --gy-gold:        #B99344;  /* accents, rules, button fill. NOT for text on light backgrounds */
  --gy-gold-text:   #8A6A22;  /* gold for text/links on cream or white (4.6:1) */
  --gy-gold-hover:  #8F7230;  /* button hover fill with white text (4.5:1) */
  --gy-cream:       #F8F5EE;  /* page background */
  --gy-white:       #FFFFFF;  /* cards */
  --gy-ink:         #22304A;  /* body text */
  --gy-muted:       #566175;  /* captions, meta */
  --gy-line:        #E3DCCB;  /* borders, dividers */
  --gy-on-navy:     #D6DAE6;  /* body text on navy */

  /* Type */
  --gy-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --gy-sans:  'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

  /* Rhythm */
  --gy-section-y: clamp(3.5rem, 6vw, 5.5rem);
}

/* ---- Base ---------------------------------------------------------------- */
html { font-size: 100%; }
body {
  font-family: var(--gy-sans);
  font-size: 1.0625rem;               /* 17px on phones */
  line-height: 1.65;
  color: var(--gy-ink);
  background: var(--gy-cream);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 992px) { body { font-size: 1.125rem; } }  /* 18px on desktop */

::selection { background: var(--gy-gold); color: var(--gy-navy); }

/* ---- Headings ------------------------------------------------------------ */
h1, h2, h3, .gy-h1, .gy-h2, .gy-h3 {
  font-family: var(--gy-serif);
  font-weight: 600;
  color: var(--gy-navy);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1, .gy-h1 { font-size: clamp(2rem,   1.2rem + 2.6vw, 3.25rem); line-height: 1.10; }
h2, .gy-h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);  line-height: 1.15; }
h3, .gy-h3 { font-size: clamp(1.4rem,  1.15rem + 0.8vw, 1.85rem); line-height: 1.2; }

/* Small headings switch to the sans: Cormorant gets thin below ~1.4rem */
h4, h5, h6 {
  font-family: var(--gy-sans);
  font-weight: 700;
  color: var(--gy-navy);
  line-height: 1.3;
}
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---- Text helpers --------------------------------------------------------- */
.gy-kicker {                          /* small label above a heading */
  font-family: var(--gy-sans);
  font-size: .85rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gy-gold-text);
}
.gy-lead  { font-size: 1.25rem; line-height: 1.6; }
.gy-small { font-size: .875rem; color: var(--gy-muted); }
.gy-rule  { width: 70px; height: 3px; background: var(--gy-gold); }

/* On navy sections */
.gy-on-navy { background: var(--gy-navy); color: var(--gy-on-navy); }
.gy-on-navy h1, .gy-on-navy h2, .gy-on-navy h3,
.gy-on-navy h4, .gy-on-navy h5, .gy-on-navy h6 { color: var(--gy-cream); }
.gy-on-navy .gy-kicker { color: var(--gy-gold); }   /* gold on navy is 5.1:1, fine */

.gy-section { padding-block: var(--gy-section-y); }

/* ---- Links ---------------------------------------------------------------- */
a {
  color: var(--gy-navy);
  text-decoration: underline;
  text-decoration-color: var(--gy-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
  transition: color .15s, text-decoration-color .15s;
}
a:hover { color: var(--gy-gold-text); text-decoration-color: var(--gy-gold-text); }
.gy-on-navy a { color: var(--gy-cream); }
.gy-on-navy a:hover { color: var(--gy-gold); text-decoration-color: var(--gy-gold); }

/* ---- Buttons -------------------------------------------------------------- */
.btn-gy-gold, .btn-gy-outline {
  font-family: var(--gy-sans);
  font-weight: 700; font-size: .95rem;
  letter-spacing: .06em; text-transform: uppercase;
  border-radius: 0; padding: .7rem 1.4rem;
  text-decoration: none;
}
.btn-gy-gold {
  --bs-btn-bg: var(--gy-gold);          --bs-btn-border-color: var(--gy-gold);          --bs-btn-color: var(--gy-navy);
  --bs-btn-hover-bg: var(--gy-gold-hover); --bs-btn-hover-border-color: var(--gy-gold-hover); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--gy-gold-hover); --bs-btn-active-border-color: var(--gy-gold-hover); --bs-btn-active-color: #fff;
}
.btn-gy-outline {
  --bs-btn-bg: transparent;             --bs-btn-border-color: var(--gy-gold);          --bs-btn-color: var(--gy-gold);
  --bs-btn-hover-bg: var(--gy-gold);    --bs-btn-hover-border-color: var(--gy-gold);    --bs-btn-hover-color: var(--gy-navy);
  --bs-btn-active-bg: var(--gy-gold);   --bs-btn-active-border-color: var(--gy-gold);   --bs-btn-active-color: var(--gy-navy);
}
/* Outline button on a LIGHT background: use navy so the text stays readable */
.btn-gy-outline.on-light {
  --bs-btn-color: var(--gy-navy); --bs-btn-border-color: var(--gy-navy);
  --bs-btn-hover-bg: var(--gy-navy); --bs-btn-hover-color: var(--gy-cream); --bs-btn-hover-border-color: var(--gy-navy);
}

/* Keyboard focus, visible everywhere */
:focus-visible { outline: 3px solid var(--gy-gold); outline-offset: 2px; }

/* ---- Forms ---------------------------------------------------------------- */
.form-control, .form-select {
  border-radius: 0; border: 1px solid #C9BFA6;
  background-color: var(--gy-white); color: var(--gy-ink);
  font-size: 1rem; padding: .7rem .85rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gy-gold);
  box-shadow: 0 0 0 .2rem rgba(185,147,68,.3);
}
.form-label { font-weight: 600; color: var(--gy-navy); font-size: .95rem; }

/* ---- Boat spec block (for the article template) -------------------------- */
.gy-specs { width: 100%; border-top: 3px solid var(--gy-gold); background: var(--gy-white); }
.gy-specs th, .gy-specs td { padding: .6rem .9rem; border-bottom: 1px solid var(--gy-line); font-variant-numeric: tabular-nums; }
.gy-specs th { width: 38%; font-weight: 600; color: var(--gy-muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.gy-specs td { color: var(--gy-navy); font-weight: 600; }

/* ---- Navigation (Helix menu) ---------------------------------------------- */
.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
  font-family: var(--gy-sans); font-weight: 600; font-size: 1rem;
  letter-spacing: .02em; color: var(--gy-navy); text-decoration: none;
}
.sp-megamenu-parent > li:hover > a,
.sp-megamenu-parent > li.active > a { color: var(--gy-gold-text); }


.gy-hero { background: var(--gy-navy); }
.gy-hero-text { background: var(--gy-navy); }
.gy-hero-photo {
  position: relative; min-height: 300px;
  background: url('/files/2026/10/17/hero-wide-2000x900.jpg') center / cover no-repeat;
}
@media (min-width: 992px) {
  /* .gy-hero { min-height: 700px; } */
  .gy-hero-photo::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 14%;
    background: linear-gradient(to right, var(--gy-navy), rgba(17,40,76,0));
  }
}

.gy-hero-title { font-family: var(--gy-serif); font-weight: 600; color: var(--gy-cream); font-size: clamp(2.2rem, 4.2vw, 4rem); line-height: 1.1; }
.gy-hero-sub { color: #d6dae6; font-size: 1.15rem; }

.gy-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--gy-white); color: var(--gy-ink);
  text-decoration: none; border-bottom: 3px solid var(--gy-gold);
  box-shadow: 0 1px 3px rgba(17,40,76,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gy-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(17,40,76,.18); color: var(--gy-ink); }
.gy-card-img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--gy-navy); }
.gy-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.25rem 1.4rem; }
.gy-card-body h3 { margin: 0 0 .45rem; font-size: 1.65rem; }
.gy-card-body p  { margin: 0 0 1rem; font-size: .975rem; line-height: 1.55; }
.gy-card-link {
  margin-top: auto; font-size: .85rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gy-gold-text);
}
.gy-card-link::after { content: " \2192"; transition: margin-left .2s; }
.gy-card:hover .gy-card-link::after { margin-left: .25rem; }

/* ---- Fixes ---------------------------------------------------------------- */
/* Gold label text is only for navy backgrounds (hero); on cream it uses --gy-gold-text */
.gy-hero .gy-kicker { color: var(--gy-gold); }

/* Card text: stop the link styling from bolding the descriptions */
body .gy-card .gy-card-body p  { font-weight: 400 !important; }
body .gy-card .gy-card-body h3 { font-weight: 700 !important; }

/* Bottom Section First Page */
.gy-step-num { font-family: var(--gy-serif); font-size: 3.25rem; line-height: 1; color: var(--gy-gold); }
.gy-step h3 { font-size: 1.5rem; margin: .5rem 0 .6rem; }
.gy-step p  { margin: 0; color: var(--gy-on-navy); }

/* RSForm: brand the submit button */
button.rsform-submit-button.btn {
  background-color: var(--gy-gold);
  border: 1px solid var(--gy-gold);
  color: var(--gy-navy);
}
button.rsform-submit-button.btn:hover,
button.rsform-submit-button.btn:focus {
  background-color: var(--gy-gold-hover);
  border-color: var(--gy-gold-hover);
  color: #fff;
}

/* RSForm: stop dropdown text clipping */
select.rsform-select-box.form-select {
  height: auto;
  min-height: 2.9rem;
  line-height: 1.4;
  padding: .6rem 2.25rem .6rem .85rem;
}

/* Classic yacht pages: one shared content width */
.com-content-category-blog .category-desc,
.com-content-category-blog .article-list,
.article-details > * {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: .75rem;
}
.category-desc .gy-intro { padding-top: 3rem; max-width: 860px; }
.article-details > .article-header { padding-top: 3rem; }

/* Listing cards */
.com-content-category-blog .article-list .row { --bs-gutter-x: 2rem; }
.com-content-category-blog .article-list .article {
  background: var(--gy-white);
  border-top: 3px solid var(--gy-gold);
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
}
.com-content-category-blog .article-intro-image {
  float: none !important;
  margin: 0 0 1rem;
}
.com-content-category-blog .article-intro-image img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.com-content-category-blog .article-list .article > :not(.article-intro-image) {
  padding-inline: 1.25rem;
}
.com-content-category-blog .article-list .article h2,
.com-content-category-blog .article-list .article h2 a {
  font-family: var(--gy-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gy-navy);
  text-decoration: none;
  margin-bottom: .5rem;
}
.com-content-category-blog .article-list .article h2 a:hover { color: var(--gy-gold-text); }


/* Footer */
body #sp-footer a, body #sp-footer a span { font-weight: 400 !important; }
#sp-footer { color: var(--gy-on-navy); }
#sp-footer a { color: var(--gy-cream); }
#sp-footer a:hover { color: var(--gy-gold); }