/* ============================================================
   ALEXANDRA YACHT CLUB
   Cassiopeia user.css
   Clean white header, navy/gold identity and modern layout
   ============================================================ */


/* ============================================================
   1. DESIGN VARIABLES
   ============================================================ */

:root {
  --ayc-navy: #0b2d45;
  --ayc-deep-navy: #061f31;
  --ayc-blue: #1e5a78;
  --ayc-gold: #d6a928;
  --ayc-gold-dark: #b68b16;

  --ayc-white: #ffffff;
  --ayc-off-white: #f7f8f6;
  --ayc-pale-blue: #eaf3f7;
  --ayc-light-grey: #eef2f4;
  --ayc-border: #d7e0e5;

  --ayc-text: #263746;
  --ayc-muted: #667682;

  --ayc-content-width: 1280px;
  --ayc-radius: 4px;
  --ayc-shadow: 0 8px 26px rgba(6, 31, 49, 0.09);
}


/* ============================================================
   2. GENERAL PAGE
   ============================================================ */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ayc-off-white);
  color: var(--ayc-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.site-grid {
  background: var(--ayc-off-white);
}

img {
  max-width: 100%;
  height: auto;
}

.grid-child {
  width: min(var(--ayc-content-width), calc(100% - 40px));
  max-width: var(--ayc-content-width);
  margin-right: auto;
  margin-left: auto;
}

.container-component {
  width: 100%;
  max-width: none;
  padding-top: 0;
}

main {
  margin-top: 0;
}

.item-page,
.blog,
.blog-featured {
  width: 100%;
}


/* ============================================================
   3. GENERAL TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ayc-navy);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

a {
  color: var(--ayc-blue);
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: var(--ayc-navy);
}


/* ============================================================
   4. WHITE SITE HEADER
   ============================================================ */

.container-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: var(--ayc-white) !important;
  background-color: var(--ayc-white) !important;
  background-image: none !important;
  border-bottom: 4px solid var(--ayc-gold);
  box-shadow: 0 4px 18px rgba(6, 31, 49, 0.08);
}

.container-header .grid-child,
.container-header .container-nav {
  width: min(var(--ayc-content-width), calc(100% - 40px));
  max-width: var(--ayc-content-width);
  margin-right: auto;
  margin-left: auto;
}


/* ============================================================
   5. LOGO / BRAND AREA
   ============================================================ */

.container-header .navbar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 0 10px;
  margin: 0;
}

.container-header .navbar-brand a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ayc-navy);
  text-decoration: none;
}

.container-header .navbar-brand img {
  display: block;
  width: 240px;
  height: auto;
  max-width: 100%;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.container-header .navbar-brand .brand-logo,
.container-header .navbar-brand a {
  color: var(--ayc-navy);
  font-weight: 700;
}

.container-header .site-description {
  margin: 4px 0 0;
  color: var(--ayc-gold-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}


/* ============================================================
   6. MAIN NAVIGATION
   ============================================================ */

.container-header .container-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 9px;
}

.container-header .mod-menu {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
}

.container-header .mod-menu > li {
  margin: 0;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span,
.container-header .metismenu > li > button {
  display: block;
  padding: 12px 15px;
  color: #111111 !important;
  background: transparent !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  border-bottom: 3px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus,
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
  color: var(--ayc-navy) !important;
  border-bottom-color: var(--ayc-gold);
}

.container-header .metismenu.mod-menu .mm-toggler,
.container-header .metismenu.mod-menu .mm-toggler::after {
  color: #111111 !important;
}


/* ============================================================
   7. DROPDOWN NAVIGATION
   ============================================================ */

.container-header .metismenu.mod-menu .mm-collapse {
  min-width: 220px;
  padding: 7px;
  background: var(--ayc-white);
  border: 1px solid var(--ayc-border);
  border-radius: var(--ayc-radius);
  box-shadow: 0 14px 34px rgba(6, 31, 49, 0.16);
}

.container-header .metismenu.mod-menu .mm-collapse a {
  display: block;
  padding: 10px 12px;
  color: #111111 !important;
  text-decoration: none;
  border-radius: 3px;
}

.container-header .metismenu.mod-menu .mm-collapse a:hover,
.container-header .metismenu.mod-menu .mm-collapse a:focus {
  color: var(--ayc-navy) !important;
  background: var(--ayc-pale-blue);
}


/* ============================================================
   8. MOBILE MENU BUTTON
   ============================================================ */

.container-header .navbar-toggler {
  color: var(--ayc-navy);
  background: var(--ayc-white);
  border-color: var(--ayc-navy);
}

.container-header .navbar-toggler-icon {
  color: var(--ayc-navy);
}


/* ============================================================
   9. STICKY HEADER
   ============================================================ */

.container-header.position-sticky {
  background: var(--ayc-white) !important;
  box-shadow: 0 5px 20px rgba(6, 31, 49, 0.14);
}


/* ============================================================
   10. HOMEPAGE WRAPPER
   Applies when homepage content is wrapped in:
   <section class="ayc-home">
   ============================================================ */

.ayc-home {
  --bg: var(--ayc-off-white);
  --panel: var(--ayc-white);
  --ink: var(--ayc-text);
  --muted: var(--ayc-muted);
  --brand: var(--ayc-blue);
  --brand-600: var(--ayc-navy);
  --accent: var(--ayc-gold);
  --radius: var(--ayc-radius);
  --shadow: var(--ayc-shadow);
  --maxw: 1100px;

  width: 100%;
  color: var(--ayc-text);
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}


/* ============================================================
   11. HOMEPAGE CONTAINERS AND GRID
   ============================================================ */

.ayc-home .container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px);
}

.ayc-home .section {
  padding: clamp(36px, 6vw, 60px) 0;
}

.ayc-home .grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.ayc-home .col-12 {
  grid-column: span 12;
}

.ayc-home .col-6 {
  grid-column: span 6;
}

.ayc-home .col-4 {
  grid-column: span 4;
}


/* ============================================================
   12. HOMEPAGE TYPOGRAPHY
   ============================================================ */

.ayc-home h1,
.ayc-home h2,
.ayc-home h3 {
  margin: 0 0 0.6em;
  color: var(--ayc-navy);
  line-height: 1.2;
}

.ayc-home h1 {
  font-size: clamp(32px, 4vw, 46px);
}

.ayc-home h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.ayc-home h3 {
  font-size: clamp(20px, 2vw, 24px);
}

.ayc-home p.lead {
  color: var(--ayc-muted);
  font-size: 1.125rem;
}

.ayc-home .meta {
  color: var(--ayc-muted);
  font-size: 0.95rem;
}


/* ============================================================
   13. HOMEPAGE BUTTONS
   ============================================================ */

.ayc-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.2rem;
  color: var(--ayc-white);
  background: var(--ayc-navy);
  border: 2px solid var(--ayc-navy);
  border-radius: 3px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.ayc-home .btn:hover,
.ayc-home .btn:focus {
  color: var(--ayc-white);
  background: var(--ayc-blue);
  border-color: var(--ayc-blue);
  transform: translateY(-1px);
}

.ayc-home .btn.ghost {
  color: var(--ayc-navy);
  background: transparent;
  border-color: var(--ayc-navy);
}

.ayc-home .btn.ghost:hover,
.ayc-home .btn.ghost:focus {
  color: var(--ayc-white);
  background: var(--ayc-navy);
}


/* ============================================================
   14. HOMEPAGE CARDS
   ============================================================ */

.ayc-home .card {
  background: var(--ayc-white);
  border: 1px solid var(--ayc-border);
  border-top: 4px solid var(--ayc-blue);
  border-radius: var(--ayc-radius);
  box-shadow: var(--ayc-shadow);
}

.ayc-home .card-body {
  padding: 22px;
}

.ayc-home .card h2,
.ayc-home .card h3 {
  color: var(--ayc-navy);
}

.ayc-home .badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 0.25rem 0.6rem;
  color: var(--ayc-navy);
  background: var(--ayc-pale-blue);
  border: 1px solid var(--ayc-border);
  border-radius: 999px;
  font-size: 0.8rem;
}

.ayc-home .divider {
  height: 1px;
  margin: 18px 0;
  background: var(--ayc-border);
}


/* ============================================================
   15. HOMEPAGE LISTS
   ============================================================ */

.ayc-home ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.ayc-home ul li {
  margin: 0.25rem 0;
}


/* ============================================================
   16. HERO HELPERS
   Existing homepage hero currently uses inline styles.
   These rules support a future class="hero" version.
   ============================================================ */

.ayc-home .hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  color: var(--ayc-white);
  background:
    linear-gradient(
      90deg,
      rgba(6, 31, 49, 0.91) 0%,
      rgba(6, 31, 49, 0.72) 52%,
      rgba(6, 31, 49, 0.28) 100%
    ),
    url("/images/ayc/home-hero.jpg") center center / cover no-repeat;
  border-bottom: 5px solid var(--ayc-gold);
}

.ayc-home .hero h1,
.ayc-home .hero h2,
.ayc-home .hero h3,
.ayc-home .hero p {
  color: var(--ayc-white);
}

.ayc-home .kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.ayc-home .kpi {
  padding: 10px 14px;
  color: var(--ayc-white);
  background: rgba(6, 31, 49, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
}


/* ============================================================
   17. MULTI-COLUMN CARDS
   ============================================================ */

.ayc-home .cols-3 {
  columns: 3 280px;
  column-gap: 18px;
}

.ayc-home .cols-3 .card {
  break-inside: avoid;
  margin-bottom: 18px;
}


/* ============================================================
   18. MAP
   ============================================================ */

.ayc-home .map {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--ayc-radius);
}


/* ============================================================
   19. CALL TO ACTION
   ============================================================ */

.ayc-home .cta {
  padding: 30px;
  color: var(--ayc-text);
  background: var(--ayc-pale-blue);
  border: 1px solid var(--ayc-border);
  border-left: 6px solid var(--ayc-gold);
  border-radius: var(--ayc-radius);
  text-align: center;
}

.ayc-home .cta h2,
.ayc-home .cta h3 {
  color: var(--ayc-navy);
}


/* ============================================================
   20. TABLES AND FORMS
   ============================================================ */

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--ayc-border);
}

th {
  color: var(--ayc-white);
  background: var(--ayc-navy);
}

tbody tr:nth-child(even) {
  background: var(--ayc-light-grey);
}

.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 11px 12px;
  color: var(--ayc-text);
  background: var(--ayc-white);
  border: 1px solid #b9c7cf;
  border-radius: 3px;
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--ayc-blue);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(30, 90, 120, 0.16);
}


/* ============================================================
   21. SITE FOOTER BASE
   ============================================================ */

.container-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 40px 20px;
  color: var(--ayc-white);
  background: var(--ayc-deep-navy) !important;
  background-color: var(--ayc-deep-navy) !important;
  background-image: none !important;
  border-top: 5px solid var(--ayc-gold);
}

.container-footer .grid-child {
  width: min(var(--ayc-content-width), calc(100% - 40px));
  max-width: var(--ayc-content-width);
  margin-right: auto;
  margin-left: auto;
}

.container-footer h2,
.container-footer h3,
.container-footer h4,
.container-footer p {
  color: var(--ayc-white);
}

.container-footer a {
  color: var(--ayc-white);
}

.container-footer a:hover,
.container-footer a:focus {
  color: var(--ayc-gold);
}


/* ============================================================
   22. CASSIOPEIA ADJUSTMENTS
   ============================================================ */

body .container-banner {
  padding: 0;
}

/*
   Do not hide .com-content-article or .blog-items.
   The old rule could hide genuine site content.
*/


/* ============================================================
   23. ACCESSIBILITY
   ============================================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ayc-gold);
  outline-offset: 3px;
}


/* ============================================================
   24. TABLET
   ============================================================ */

@media (max-width: 991px) {

  .grid-child,
  .container-header .grid-child,
  .container-header .container-nav {
    width: min(100% - 28px, var(--ayc-content-width));
  }

  .container-header .navbar-brand img {
    width: 210px;
  }

  .container-header .mod-menu > li > a,
  .container-header .mod-menu > li > span,
  .container-header .metismenu > li > button {
    padding: 11px 9px;
    font-size: 14px;
  }

  .ayc-home .col-6,
  .ayc-home .col-4 {
    grid-column: span 12;
  }
}


/* ============================================================
   25. MOBILE
   ============================================================ */

@media (max-width: 767px) {

  body {
    font-size: 15px;
  }

  .grid-child,
  .container-header .grid-child,
  .container-header .container-nav {
    width: min(100% - 22px, var(--ayc-content-width));
  }

  .container-header .navbar-brand {
    padding: 10px 0;
  }

  .container-header .navbar-brand img {
    width: 175px;
  }

  .container-header .container-nav {
    display: block;
  }

  .container-header .mod-menu {
    display: block;
    width: 100%;
  }

  .container-header .mod-menu > li > a,
  .container-header .mod-menu > li > span,
  .container-header .metismenu > li > button {
    width: 100%;
    padding: 12px 8px;
    color: #111111 !important;
    border-bottom: 1px solid var(--ayc-border);
  }

  .ayc-home .hero {
    min-height: 420px;
    background:
      linear-gradient(
        rgba(6, 31, 49, 0.78),
        rgba(6, 31, 49, 0.78)
      ),
      url("/images/ayc/home-hero.jpg") center center / cover no-repeat;
  }

  .ayc-home .btn {
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
  }

  .container-footer {
    padding: 34px 15px;
  }
}
/* ============================================================
   ENLARGE AYC HEADER LOGO
   ============================================================ */

.container-header .navbar-brand {
  width: 100%;
  padding: 18px 0 12px;
  justify-content: center;
}

.container-header .navbar-brand a,
.container-header .navbar-brand .brand-logo {
  display: flex;
  justify-content: center;
  width: 100%;
}

.container-header .navbar-brand img,
.container-header .brand-logo img {
  display: block !important;
  width: 420px !important;
  height: auto !important;
  max-width: 90% !important;
  max-height: none !important;
  margin: 0 auto !important;
  object-fit: contain;
}

/* Tablet */
@media (max-width: 991px) {
  .container-header .navbar-brand img,
  .container-header .brand-logo img {
    width: 340px !important;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .container-header .navbar-brand {
    padding: 12px 0 8px;
  }

  .container-header .navbar-brand img,
  .container-header .brand-logo img {
    width: 260px !important;
    max-width: 88% !important;
  }
}