/* ==========================================================================
   1. Global Styles & Variables
   ========================================================================== */
:root {
  --brand-dark-azure: #104a77;
  --brand-azure: #2499d4;
  --brand-orange: #ff9738;
  --dark-gray: #181818;
  --light-gray: #f4f4f4;
  --white: #ffffff;
  --field-bg: #f7f7f7; /* For form inputs */

  --container-width: 960px;
  --light-border: 1px solid #eee;
}

html {
  box-sizing: border-box;
  height: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--dark-gray);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex; /* Sticky footer */
  flex-direction: column;
  min-height: 100vh;
}

/* Alternate page layout (dark frame) */
body.alt-layout {
  background: var(--brand-dark-azure);
  color: var(--white);
}

body.alt-layout .main-column {
  background: var(--white);
  color: var(--brand-dark-azure);
  padding: 1.25rem 1rem;
}

/* ==========================================================================
   2. Layout (Desktop First)
   ========================================================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 10px;
  text-align: center;
}

.content-wrapper {
  display: flex;
  gap: 2rem;
  width: 95%;
  max-width: var(--container-width);
  margin: 20px auto;
}

main {
  flex: 1 0 auto;
}

.main-column {
  flex: 1;
  background: var(--white);
  padding: 1.25rem 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.sidebar {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--brand-azure);
  color: var(--white);
  padding: 1.5rem 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); 
}

/* Sidebar image sizing */
.sidebar img,
.sidebar-pic {     /* covers the explicit class you use on /about */
  width: 100%;
  height: auto;
  display: block;
}

/* kill the default figure margin just in the sidebar */
.sidebar .sidebar-figure,
.sidebar figure {   /* add this second line if the HTML ever changes */
  margin: 0;
}

/* ==========================================================================
   3. Header & Navigation
   ========================================================================== */
.main-header {
  background: #fff;
  border-bottom: var(--light-border);
  position: relative; /* Anchor for mobile menu */
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.header-logo img {
  max-width: 250px;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* --- Social Icons (Header) --- */
.socials {
  display: flex;
  gap: 14px;
}

.socials a {
  display: inline-flex;
  width: 28px;
  height: 28px;
  color: var(--brand-dark-azure);
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s;
}

.socials a:hover {
  color: var(--brand-azure);
  transform: translateY(-1px);
}

.socials svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- Desktop Dropdown --- */
.dropdown {
  position: relative;
}

.dropdown summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand-dark-azure);
  font-weight: 700;
  font-size: 1rem;
  user-select: none;
  list-style: none;
  cursor: pointer;
}

.dropdown summary::-webkit-details-marker {
  display: none;
}

.dropdown .caret {
  width: 28px;
  height: 28px;
  transition: transform 0.2s, color 0.2s;
}

.dropdown summary:hover .caret {
  color: var(--brand-azure);
}

.dropdown details[open] .caret {
  transform: rotate(180deg);
}

.dropdown .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 1000;
  min-width: 180px;
  margin: 0;
  padding: 0.5rem 0;
  background: #fff;
  border: var(--light-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  list-style: none;
}

.dropdown .menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--brand-dark-azure);
  font-weight: 600;
  text-decoration: none;
}

.dropdown .menu a:hover,
.dropdown .menu a:focus {
  background: var(--light-gray);
  color: var(--brand-azure);
}

.dropdown .menu a[aria-current] {
  color: var(--brand-azure);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Mobile Navigation Placeholders --- */
/* Elements are hidden on desktop by default */
.mobile-toggle,
.mobile-menu {
  display: none;
}

/* ==========================================================================
   4. Mobile & Responsive Styles (≤ 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* --- Layout Overrides --- */
  .content-wrapper {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin: 12px auto;
  }

  .main-column,
  .sidebar {
    flex: 0 0 auto;
    max-width: 100%;
    min-height: unset;
    box-shadow: none;
    padding: 1rem;
  }
  
  .contact-card {
    padding: 10px;
  }

  /* --- Header & Navigation Overrides --- */
  .header-container {
    padding: 12px 16px;
  }
  .header-logo img {
    max-width: 200px;
  }
  .header-right {
    gap: 12px;
  }
  .dropdown {
    display: none; /* Hide desktop dropdown */
  }

  /* --- Mobile Navigation Display --- */
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    background: transparent;
    border: 0;
    color: var(--brand-dark-azure);
    cursor: pointer;
  }
  .mobile-toggle:focus-visible {
    outline: 2px solid var(--brand-azure);
    outline-offset: 2px;
  }
  .mobile-menu {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1100;
    background: #fff;
    border-top: var(--light-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  .mobile-menu[hidden] {
    display: none;
  }
  .mobile-menu a {
    display: block;
    padding: 14px 16px;
    color: var(--brand-dark-azure);
    font-weight: 700;
    text-decoration: none;
  }
  .mobile-menu a + a {
    border-top: var(--light-border);
  }
  .mobile-menu a[aria-current],
  .mobile-menu a[aria-current='page'] {
    color: var(--brand-azure);
    text-decoration: underline;
  }
}

/* ==========================================================================
   5. Page Sections
   ========================================================================== */
.hero {
  padding: 80px 20px;
  color: #fff;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/cruise-for-two-banner-med.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero h1 {
  margin: 0;
  font-size: 3rem;
  color: #fff;
}

.hero h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
}

/* --- Reusable Section Styles (for .about, .connect, etc.) --- */
.about,
.about2,
.connect {
  padding: 10px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.about,
.about2 {
  background: var(--light-gray);
}

.about2 {
  box-shadow: none; /* Override for this specific class */
}

.about h3,
.about2 h3,
.connect h3 {
  margin: 0 0 0.25rem 0;
  color: var(--brand-dark-azure);
  font-size: 2rem;
}

.about h3 + p,
.about2 h3 + p,
.connect h3 + p {
  margin: 0.25rem;
}

.about img,
.about2 img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid var(--brand-dark-azure);
}

/* --- CTA Section --- */
.cta-section {
  padding: 20px 0;
  background: var(--brand-orange);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cta-section h3 {
  margin: 0 0 0.25rem 0;
  font-size: 2rem;
}

.cta-section h3 + p {
  margin: 0.25rem;
}

/* Fix for text color in the CTA subscribe box */
#subscribe h3,
#subscribe p {
  color: var(--white);
}

/* ==========================================================================
   6. Components (Buttons, Forms, etc.)
   ========================================================================== */
.email-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.email-form input {
  padding: 15px;
  width: 280px;
  max-width: 80%;
  border-radius: 5px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.cta-button {
  padding: 12px 25px;
  background: var(--brand-dark-azure);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background: var(--brand-azure);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-dark-azure);
  font-size: 1.2rem;
  vertical-align: middle;
  text-decoration: none;
}

.social-links a:hover {
  color: var(--brand-azure);
}

.link-button {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  padding: 14px 0;
  background: var(--brand-dark-azure);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  text-align: center;
  transition: background 0.2s;
}

.link-button:hover {
  background: var(--brand-azure);
}

.link-button .icon {
  margin-right: 8px;
  font-size: 1.2rem;
  vertical-align: middle;
}

/* ==========================================================================
   7. Page-Specific Styles
   ========================================================================== */

/* --- About Page --- */
.main-column h1 {
  text-align: center;
}

.sidebar .widget-title,
.sidebar .profile-name {
  margin: 0 0 1rem;
  color: var(--white);
}

.sidebar .social-icons {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 0 0 1rem;
}

.sidebar .social-icons img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.sidebar .widget-list {
  width: 100%;
  padding-left: 1.25rem;
  text-align: left;
}

.sidebar .widget-list a {
  color: var(--white);
  opacity: 0.9;
}

.sidebar .widget-list a:hover {
  opacity: 1;
  text-decoration: underline;
}

.sidebar-figure figcaption {
  margin: 10px 0;
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.4;
  color: #ffffff;
}

.centered-image {
  display: block;
  margin: 0 auto;
}

.about-image {
  display: block;
  height: auto;
  border: 4px solid var(--brand-dark-azure);
}

.about-image-wrapper {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.about-image-wrapper .about-image {
  width: 200px;
}

.about-image-caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 300px;
  color: var(--dark-gray);
  font-size: 0.95rem;
  font-style: italic;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto;
  max-width: 350px;
}

.about-list li {
  display: flex;
  align-items: center;
  color: var(--dark-gray);
}

.about-list .emoji {
  margin-right: 0.75rem;
  font-size: 1.35rem;
}

/* --- Gangway Page --- */
.gangway-links {
  text-align: left;
}

.gangway-links h2 {
  margin-bottom: 1.5rem;
  color: var(--brand-dark-azure);
  font-size: 1.2rem;
  text-align: center;
}

/* --- Contact Page --- */
.contact-card {
  background: #fff;
  color: var(--dark-gray);
  border-radius: 0; /* Square corners */
  box-shadow:0 12px 32px rgba(0,0,0,.10);
  padding: 32px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}
.contact-card h1 {
  font-size: 1.65rem;
  margin: 0.25rem 0 18px 0;
  color: var(--brand-dark-azure);
}
.contact-form {
  margin-top: 6px;
}
.form-field {
  margin-bottom: 12px;
}
.input-wrap {
  position: relative;
}
.field-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #8c8c8c;
  pointer-events: none;
}
.contact-input {
  width: 100%;
  background: var(--field-bg);
  border: 0;
  border-radius: 0;
  padding: 14px 14px 14px 40px;
  font-size: 1rem;
  color: #333;
  outline: none;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}
.contact-textarea {
  width: 100%;
  background: var(--field-bg);
  border: 0;
  border-radius: 0;
  padding: 14px 16px;
  font-size: 1rem;
  color: #333;
  outline: none;
  min-height: 205px;
  resize: vertical;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}
.contact-input::placeholder,
.contact-textarea::placeholder {
  color: #8c8c8c;
}
.contact-input:focus,
.contact-textarea:focus {
  box-shadow: inset 0 0 0 2px var(--brand-azure);
  background: #f0f4f8;
}

.send-btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  background: var(--brand-orange);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.06s ease, filter 0.15s ease, opacity 0.15s ease;
}
.send-btn:hover {
  filter: brightness(0.98);
}
.send-btn:active {
  transform: translateY(1px);
}
.send-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.status {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--brand-dark-azure);
}

/* --- Message Sent / Thank You Page --- */
.thank-you-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
}
.thank-you-card .ty-icon {
  display: block;
  margin: 0 auto 1rem;
  width: 100px;
  height: 100px;
}
.thank-you-card h1 {
  color: var(--brand-dark-azure);
  font-size: 1.75rem;
  margin: 0 0 1rem 0;
}
.thank-you-card p {
  color: var(--dark-gray);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 auto 0.75rem;
  max-width: 650px;
}
.thank-you-card a {
  color: var(--brand-dark-azure);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}
.thank-you-card a:hover {
  color: var(--brand-azure);
  text-decoration: underline;
}

/* ==========================================================================
   8. Footer
   ========================================================================== */
.white-bar {
  height: 40px;
  background: var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.footer {
  padding: 10px 0;
  background: var(--brand-dark-azure);
  color: var(--white);
  font-size: 0.9rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.footer p {
  margin: 4px 0;
  line-height: 1.3;
}

.footer a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
  color: #fff;
  text-decoration: none;
}

.footer svg {
  height: 1em;
  width: 1em;
  display: block;
}

/* ==========================================================================
   9. Utility Classes
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   10. Blog Post Styles
   ======================================== */

.blog-post h1 {
  font-size: 1.8em;
  margin-bottom: 0.5em;
}

.blog-post p {
  line-height: 1.6;
  margin-bottom: 1em;
}

/* Styling for all headings within the main content area */
main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  font-family: 'Inter', sans-serif;
  color: var(--brand-dark-azure);
  font-weight: 700;
  line-height: 1.2;
}

/* Styling for all paragraphs within the main content area */
main p {
  font-family: 'Inter', sans-serif;
  color: var(--dark-gray);
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 1.5em;
}

/* Blog-specific spacing and layout adjustments */
.blog-page .main-column {
  padding: 1.25rem 1.25rem 2.5rem; /* Reduces top padding, keeps side padding */
}

.blog-page h1 {
  margin: 0 0 0.5em 0; /* Removes top margin from h1 */
}