/*
 * Ullman Sails design foundations
 * Based on the brand style guide: Poppins is the functional primary face;
 * Times New Roman is reserved for editorial emphasis.
 */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&display=swap");

:root {
  --ullman-blue: #005598;
  --ullman-red: #c5234a;
  --ullman-grey: #b0b3af;
  --ullman-navy: #202e52;
  --ullman-charcoal: #5e6771;
  --ullman-white: #ffffff;
  --ullman-surface: #f8f8fa;
  --ullman-heading: #005598;
  --ullman-copy: #5e6771;
  --ullman-link: #005598;

  --font-brand: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-editorial: "Times New Roman", Times, serif;

  --text-xs: clamp(0.75rem, 0.72rem + 0.12vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.14vw, 1rem);
  --text-base: clamp(1rem, 0.96rem + 0.16vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.02rem + 0.45vw, 1.5rem);
  --text-xl: clamp(1.35rem, 1.15rem + 0.85vw, 2rem);
  --text-2xl: clamp(1.8rem, 1.35rem + 1.75vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1.7rem + 3.3vw, 5.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --page-gutter: clamp(1rem, 4vw, 6rem);
  --content-max: 90rem;
  --reading-measure: 68ch;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  background: var(--ullman-surface);
  color: var(--ullman-navy);
  font-family: var(--font-brand) !important;
  font-size: var(--text-base) !important;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

/*
 * Sail-series templates must stay tied to the browser viewport. Some hosts and
 * legacy page shells add a centred max-width to the document body; the fixed
 * header then escapes that shell while the hero remains trapped inside it.
 * The page marker keeps this defensive full-bleed reset scoped to the Racing
 * and Cruising product families.
 */
body.sail-series-page {
  inline-size: 100% !important;
  max-inline-size: none !important;
  margin-inline: 0 !important;
  padding: 0 !important;
  overflow-x: clip !important;
}

body.sail-series-page .home-slider {
  inline-size: 100vw !important;
  max-inline-size: none !important;
  margin-inline: calc(50% - 50vw) !important;
}

/* Legacy sections carry local font stacks; the brand stack wins everywhere. */
body * {
  font-family: var(--font-brand) !important;
}

body :is(button, input, select, textarea) {
  font: inherit;
}

body :is(h1, h2, h3, h4, h5, h6) {
  color: var(--ullman-heading);
  font-family: var(--font-brand) !important;
  text-wrap: balance;
}

body h1 {
  font-size: var(--text-3xl) !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em;
  line-height: 1.05;
  text-transform: uppercase;
}

body h2 {
  font-size: var(--text-2xl) !important;
  font-weight: 600 !important;
  letter-spacing: 0.035em;
  line-height: 1.12;
}

body h3 {
  font-size: var(--text-xl) !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

/* Compact labels used for the sail series links across the site. */
body :is(main, section, article) h3.series {
  color: #252a30 !important;
  font-size: var(--text-sm) !important;
}

/* Series labels and any future .series containers remain square. */
body .series,
body .series::before,
body .series::after {
  border-radius: 0 !important;
}

body :is(p, li, dd, dt) {
  font-family: var(--font-brand);
}

body p {
  max-width: var(--reading-measure);
}

/* Colour roles: hierarchy is navy, reading copy is charcoal, action is blue. */
body :is(main, section, article) :is(h1, h2, h3, h4, h5, h6) {
  color: var(--ullman-heading) !important;
}

body :is(main, section, article) :is(p, li, dd, dt, td, figcaption, small, label) {
  color: var(--ullman-copy) !important;
}

body :is(main, section, article) :is(input, textarea, select) {
  color: var(--ullman-heading) !important;
}

body :is(main, section, article) :is(input, textarea)::placeholder {
  color: var(--ullman-copy) !important;
  opacity: 1;
}

body :is(main, section, article) a:not([class]) {
  color: var(--ullman-link) !important;
}

.ullman-sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* Photography and image frames stay square-cornered across the whole site. */
body :is(img, picture, figure),
body :is([class*="image" i], [class*="img" i], [class*="media" i]) {
  border-radius: 0 !important;
}

/* A central focal point keeps cropped photography balanced on every viewport. */
body img {
  object-position: center center !important;
}

/* Both reusable and legacy hero sliders use the same centred focal point. */
body :is(.home-slider__slide, .slideHome) {
  background-position: center center !important;
}

body :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--ullman-red);
  outline-offset: 3px;
}

body a:not([class]) {
  color: var(--ullman-blue);
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 0.18em;
}

body :is(a, button) {
  -webkit-tap-highlight-color: transparent;
}

/* Hero: full-bleed imagery with a deliberately capped visual height. */
.home-slider {
  height: clamp(34rem, 72svh, 58rem) !important;
  max-height: 58rem;
  min-height: 34rem !important;
}

/* Keep every legacy and reusable hero slider at one consistent viewport height. */
body :is(.home-slider, .slideHome) {
  height: 80vh !important;
  min-height: 0 !important;
  max-height: none !important;
}

/* Compact breadcrumbs across every page navigation component. */
body .nav-section .nav-breadcrumbs__list {
  padding: .35rem .6rem !important;
}

body .nav-section :is(.nav-breadcrumbs__link, .nav-breadcrumbs__current) {
  padding: .25rem .45rem !important;
}

/* Navigation tiles stay square everywhere this shared component appears. */
body li.cruising-icon > a.cruising-link {
  border-radius: 0 !important;
}

.home-slider__caption {
  width: min(100% - (var(--page-gutter) * 2), 72rem) !important;
  padding-inline: var(--page-gutter) !important;
}

.home-slider__kicker,
.ph-tagline,
.sid-tagline,
.dac-tagline,
.au-tagline,
.ss-tagline,
.efee-tagline,
.tips__kicker,
.sailcare__kicker,
.ullman-eyebrow {
  color: var(--ullman-red) !important;
  font-family: var(--font-brand) !important;
  font-size: var(--text-xs) !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-slider__title {
  color: var(--ullman-white) !important;
  font-size: var(--text-3xl) !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  line-height: 1.02 !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.62) !important;
}

.home-slider__subtitle {
  color: var(--ullman-white) !important;
  font-family: var(--font-brand) !important;
  font-size: var(--text-lg) !important;
  font-weight: 400 !important;
  letter-spacing: 0.01em;
  line-height: 1.35 !important;
  max-width: 42ch !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.62) !important;
  text-transform: none;
}

.ullman-button,
.home-slider__btn,
.button_quote,
.button_quote_2,
.contactus-btn--secondary,
.customize-cta__btn,
.ullman-button--primary {
  background: var(--ullman-button-bg, var(--ullman-red)) !important;
  border-color: var(--ullman-button-bg, var(--ullman-red)) !important;
  color: var(--ullman-white) !important;
  font-family: var(--font-brand) !important;
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ullman-button:hover,
.home-slider__btn:hover,
.button_quote:hover,
.button_quote_2:hover,
.contactus-btn--secondary:hover,
.customize-cta__btn:hover,
.ullman-button--primary:hover {
  background: var(--ullman-button-bg-hover, #a7193d) !important;
  border-color: var(--ullman-button-bg-hover, #a7193d) !important;
}

/* Slider: controlled contrast, calm motion and compact, tactile controls. */
.home-slider__track {
  transition-duration: 720ms !important;
  transition-timing-function: cubic-bezier(0.22, 0.8, 0.24, 1) !important;
}

.home-slider__line {
  background: var(--ullman-red) !important;
  box-shadow: none !important;
  height: 2px !important;
  margin-top: var(--space-2) !important;
  width: min(7rem, 34%) !important;
}

/* Slider arrows retain their original artwork; interaction never adds brand colour. */
.home-slider__arrow:is(:hover, :active) {
  background: transparent !important;
  border-color: transparent !important;
  filter: none !important;
}

.home-slider__arrow:focus-visible {
  outline: 2px solid var(--ullman-white);
  outline-offset: 4px;
}

.home-slider--static .home-slider__arrow {
  display: none !important;
}

.ullman-button--secondary {
  background: var(--ullman-blue);
  border: 1px solid var(--ullman-blue);
  color: var(--ullman-white);
  font-family: var(--font-brand);
  font-weight: 500;
}

/* Shared action base: add a colour modifier on the same element. */
:is(.ullman-button, .btn, .button > button, .button_quote, .customize-cta__btn, .customize-submit, .home-slider__btn, .st-btn, .ullman-button--primary) {
  align-items: center;
  background: var(--ullman-button-bg, var(--ullman-red)) !important;
  border: 1px solid var(--ullman-button-bg, var(--ullman-red)) !important;
  border-radius: 2px;
  box-shadow: none !important;
  color: var(--ullman-white) !important;
  display: inline-flex;
  font-family: var(--font-brand) !important;
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  justify-content: center;
  letter-spacing: 0.07em;
  line-height: 1.2;
  min-height: 2.75rem;
  padding: 0.78rem 1.25rem !important;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

:is(.ullman-button, .btn, .button > button, .button_quote, .customize-cta__btn, .customize-submit, .home-slider__btn, .st-btn, .ullman-button--primary):is(:hover, :focus-visible) {
  background: var(--ullman-button-bg-hover, #a7193d) !important;
  border-color: var(--ullman-button-bg-hover, #a7193d) !important;
  color: var(--ullman-white) !important;
  transform: translateY(-2px);
}

:is(.ullman-button, .btn, .button > button, .button_quote, .customize-cta__btn, .customize-submit, .home-slider__btn, .st-btn, .ullman-button--primary):active {
  transform: translateY(0);
}

/* Colour modifiers: pair one with .ullman-button on each action. */
.ullman-button--red {
  --ullman-button-bg: var(--ullman-red);
  --ullman-button-bg-hover: #a7193d;
}

.ullman-button--blue {
  --ullman-button-bg: var(--ullman-blue);
  --ullman-button-bg-hover: var(--ullman-navy);
}

.ullman-button--navy {
  --ullman-button-bg: var(--ullman-navy);
  --ullman-button-bg-hover: #111c42;
}

.contactus-btn--secondary,
.ullman-button--secondary {
  align-items: center;
  background: var(--ullman-blue) !important;
  border: 1px solid var(--ullman-blue) !important;
  border-radius: 2px;
  color: var(--ullman-white) !important;
  display: inline-flex;
  font-family: var(--font-brand) !important;
  font-size: var(--text-sm) !important;
  font-weight: 500 !important;
  justify-content: center;
  letter-spacing: 0.07em;
  line-height: 1.2;
  min-height: 2.75rem;
  padding: 0.78rem 1.25rem;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.contactus-btn--secondary:is(:hover, :focus-visible),
.ullman-button--secondary:is(:hover, :focus-visible) {
  background: var(--ullman-navy) !important;
  border-color: var(--ullman-navy) !important;
  color: var(--ullman-white) !important;
}

.ullman-context-back {
  display: flex;
  justify-content: center;
  padding: clamp(2.25rem, 5vw, 4rem) var(--page-gutter);
  background: var(--ullman-surface);
}

.ullman-context-back__link {
  align-items: center;
  min-height: 2.75rem;
  padding: .78rem 1.25rem;
  border: 1px solid var(--ullman-red);
  border-radius: 2px;
  background: var(--ullman-red);
  color: var(--ullman-white) !important;
  display: inline-flex;
  font-family: var(--font-brand) !important;
  font-size: var(--text-sm);
  font-weight: 600;
  justify-content: center;
  letter-spacing: .07em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.ullman-context-back__link:is(:hover, :focus-visible) {
  background: #a7193d;
  border-color: #a7193d;
  color: var(--ullman-white) !important;
  transform: translateY(-2px);
}

/* Sail Types: el único botón azul claro de la página es el retorno a inicio. */
.ullman-context-back--sail-types .ullman-context-back__link {
  background: var(--ullman-blue);
  border-color: var(--ullman-blue);
}

.ullman-context-back--sail-types .ullman-context-back__link:is(:hover, :focus-visible) {
  background: #004a84;
  border-color: #004a84;
}

/* Cards use a restrained editorial surface rather than heavy rounded panels. */
:is(.svc-card, .st-card, .dac-card, .srm-card, .cart_perfiles_about) {
  background: var(--ullman-white) !important;
  border: 1px solid color-mix(in srgb, var(--ullman-grey) 62%, transparent) !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

:is(.svc-card, .st-card, .dac-card, .srm-card, .cart_perfiles_about):is(:hover, :focus-within) {
  border-color: var(--ullman-blue) !important;
  box-shadow: 0 0.75rem 2rem rgba(32, 46, 82, 0.14) !important;
  transform: translateY(-0.25rem);
}

:is(.svc-title, .st-card-title, .dac-card-title, .srm-card-title) {
  color: var(--ullman-heading) !important;
  font-size: var(--text-lg) !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}

/* Legacy button markup sometimes uses heading elements for a short action label. */
:is(.covers_button__label, .buttonTitle__label, .buttonTitle h3, .openContactUs, .service-cta) {
  color: var(--ullman-white) !important;
  font-family: var(--font-brand) !important;
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  letter-spacing: 0.07em !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  text-align: center;
  text-transform: uppercase;
}

.event-card__title {
  font-size: var(--text-xl) !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}

.service-card__title {
  font-size: var(--text-lg) !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}

:is(.svc-text, .st-card-text, .dac-card-text, .srm-card-text) {
  color: var(--ullman-charcoal) !important;
  font-size: var(--text-sm) !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

.svc-media,
.svc-media img {
  aspect-ratio: 16 / 10;
}

.svc-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cart_perfiles_about > a:first-child {
  aspect-ratio: 4 / 3;
  display: block !important;
  overflow: hidden;
}

.cart_perfiles_about > a:first-child img {
  display: block;
  height: 100% !important;
  left: auto !important;
  object-fit: cover;
  transform: none !important;
  width: 100% !important;
}

.svc-link {
  color: var(--ullman-blue) !important;
  font-family: var(--font-brand) !important;
  font-weight: 600 !important;
}

/* Primary page and section headings share the Sail Types treatment. */
body :is(
  .sail_types_title,
  .covers-title,
  #covers-title,
  .services-title,
  .services__title,
  #services-title,
  .cruising-title,
  .axia-title,
  .tips__title,
  .sailcare__title,
  .sci__pageTitle,
  .au-title,
  .contactus-side-title,
  .terms__title
) {
  color: var(--ullman-blue) !important;
  font-size: clamp(3rem, 4.5vw, 6rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.1 !important;
  margin: .5rem auto 1.5rem !important;
  max-width: 50rem;
  text-align: center;
  text-transform: none !important;
}

/* Red rules are reserved for hierarchy: headings, editorial emphasis and card cues. */
:is(.sail_types_title, .covers-title, #covers-title, .services-title, .services__title, #services-title, .cruising-title, .axia-title, .tips__title, .sailcare__title, .sci__pageTitle, .au-title, .contactus-side-title, .terms__title)::after {
  background: var(--ullman-red) !important;
  box-shadow: none !important;
  content: "";
  display: block;
  height: 2px !important;
  margin: var(--space-4) auto 0;
  opacity: 1 !important;
  transform: none !important;
  width: clamp(3.5rem, 7vw, 6rem) !important;
}

.svc-kicker {
  color: var(--ullman-red) !important;
  font-weight: 600 !important;
}

.svc-rule {
  background: var(--ullman-red) !important;
  box-shadow: none !important;
  height: 2px !important;
}

/* Editorial is intentional, not a replacement for functional copy. */
blockquote,
.ullman-editorial,
.ullman-editorial :is(p, cite) {
  font-family: var(--font-editorial) !important;
  font-size: clamp(1.125rem, 1.02rem + 0.35vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.45;
  text-transform: none;
}

blockquote {
  border-left: 3px solid var(--ullman-red);
  margin-inline: 0;
  padding-left: var(--space-6);
}

.ullman-editorial--on-dark {
  color: var(--ullman-white);
}

.nav-section,
.ull-nav,
.ull-drawer,
footer {
  font-family: var(--font-brand) !important;
}

.nav-breadcrumbs__current {
  color: var(--ullman-navy) !important;
  font-weight: 600 !important;
}

footer :is(h1, h2, h3, h4, h5, h6),
footer :is(p, li, a) {
  color: var(--ullman-white);
}

/* Footer: centered, calm columns with the legal link clearly separated. */
footer#footer_container {
  align-items: start;
  background:
    radial-gradient(circle at 50% -45%, rgba(255, 255, 255, 0.16), transparent 44%),
    linear-gradient(135deg, #004a84 0%, var(--ullman-blue) 48%, var(--ullman-navy) 100%);
  display: grid !important;
  gap: var(--space-12) clamp(var(--space-6), 4vw, var(--space-16));
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 14rem));
  isolation: isolate;
  justify-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(4.5rem, 7vw, 6.5rem) var(--page-gutter) var(--space-6) !important;
  text-align: center;
}

footer#footer_container::before {
  background: var(--ullman-red);
  content: "";
  height: 3px;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: min(11rem, 30vw);
}

footer#footer_container .contain_footer,
footer#footer_container .contain_footer:nth-child(1) {
  min-width: 0;
  padding: 0;
  position: static;
  width: auto;
}

footer#footer_container .contain_footer {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  justify-content: flex-start;
  min-height: 100%;
  position: relative;
}

footer#footer_container .footer__headline {
  color: var(--ullman-red) !important;
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em;
  line-height: 1.3;
  margin: 0 0 var(--space-3);
  text-align: center;
  text-transform: uppercase;
}

footer#footer_container .footer__headline::after {
  background: rgba(255, 255, 255, 0.52);
  content: "";
  display: block;
  height: 1px;
  margin: var(--space-3) auto 0;
  width: 2.5rem;
}

footer#footer_container .footer__list {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  max-width: 28ch;
  padding: 0;
}

footer#footer_container li {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: var(--text-sm) !important;
  font-weight: 400 !important;
  line-height: 1.55;
  margin: 0 !important;
  text-align: center;
}

footer#footer_container a {
  color: var(--ullman-white) !important;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.26em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

footer#footer_container a:hover {
  color: var(--ullman-white) !important;
  text-decoration-color: var(--ullman-red);
}

footer#footer_container .TermsAndConditions {
  appearance: none;
  background: transparent;
  border-inline: 0;
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  bottom: auto;
  color: var(--ullman-white) !important;
  cursor: pointer;
  font-family: var(--font-brand) !important;
  font-size: var(--text-xs) !important;
  font-weight: 500 !important;
  grid-column: 1 / -1;
  letter-spacing: 0.07em;
  line-height: 1.4;
  margin: var(--space-6) 0 0;
  padding: var(--space-6) 0 0;
  position: static !important;
  text-align: center;
  text-transform: uppercase;
  width: auto !important;
}

footer#footer_container .TermsAndConditions:is(:hover, :focus-visible) {
  color: var(--ullman-white) !important;
  text-decoration: underline;
  text-decoration-color: var(--ullman-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

@media (min-width: 120rem) {
  .home-slider__caption {
    padding-inline: clamp(3rem, 5vw, 6rem) !important;
  }
}

@media (max-width: 37.5rem) {
  :is(.btn, .button > button, .button_quote, .customize-cta__btn, .customize-submit, .home-slider__btn, .st-btn, .ullman-button--primary) {
    min-height: 3rem;
  }

  footer#footer_container {
    gap: var(--space-8);
    grid-template-columns: 1fr;
  }

  .home-slider {
    height: clamp(34rem, 76svh, 42rem) !important;
    min-height: 34rem !important;
  }

  .home-slider__caption {
    width: 100% !important;
    padding-inline: var(--space-6) !important;
  }

  body h1 {
    letter-spacing: 0.035em;
  }
}

/* On responsive layouts, floating bottom-right actions keep their icon only. */
@media (max-width: 50rem) {
  body .container_bottom > :is(a, button) {
    width: 3.25rem !important;
    min-width: 3.25rem !important;
    min-height: 3.25rem !important;
    height: 3.25rem !important;
    padding: 0 !important;
    font-size: 0 !important;
    letter-spacing: 0 !important;
  }

  body .container_bottom > .button_quote::before {
    width: 1.5rem;
    height: 1.5rem;
    flex-basis: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
