/* Custom Stylesheet for Tisbury Methodist Church */

/* TYPOGRAPHY & BASE STYLES */
body,
input,
textarea,
select,
button {
  font-family: "Source Sans Pro", "Inter", "Segoe UI", system-ui, sans-serif;
  line-height: 1.7;
  color: #2d3748;
}

body {
  background: linear-gradient(135deg, #4a5d7a 0%, #3a4a63 100%);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* HEADER TYPOGRAPHY */
h1, h2, h3, h4, h5, h6,
.site-name {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* HEADER STYLES */
.page-header-wrapper {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid #2f3b69;
  box-shadow: 0 8px 32px rgba(47, 59, 105, 0.2);
}

.site-name {
  color: #2f3b69;
  font-weight: 700;
  font-size: 1.8em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.03em;
}

/* NAVIGATION STYLES */
.site-nav a,
.static-sub-nav a,
.page-footer a,
.cms a {
  color: #2f3b69;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.site-nav a:hover,
.static-sub-nav a:hover {
  color: #1e2a4a;
  transform: translateY(-1px);
}

.site-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background: linear-gradient(90deg, #2f3b69, #4a5d7a);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.site-nav a:hover::after {
  width: 100%;
}

.js .site-nav ul ul {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  border: 1px solid #d1dae6;
  box-shadow: 0 12px 40px rgba(47, 59, 105, 0.25);
  backdrop-filter: blur(8px);
}

/* MAIN CONTENT AREA */
.main-content-wrapper {
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.main-content {
  background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(47, 59, 105, 0.3);
  border: 1px solid rgba(209, 218, 230, 0.8);
  margin: 24px auto;
  max-width: 1200px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* FOOTER STYLES - Dark Navy as requested */
.page-footer-wrapper {
  background: #2f3b69;
  color: #e2e8f0;
  border-top: 3px solid #3a4a63;
  padding: 32px 0;
  position: relative;
}

.page-footer-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #4a5d7a, transparent);
}

.page-footer a {
  color: #b8c4d4;
  transition: all 0.3s ease;
}

.page-footer a:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(184, 196, 212, 0.5);
  transform: translateY(-1px);
}

.footer-credit {
  color: #8a95a7;
  font-size: 0.9em;
  margin-top: 20px;
  text-align: center;
}

/* CMS CONTENT STYLES */
.cms h1,
.cms h2,
.cms h3 {
  font-family: "Source Sans Pro", sans-serif;
  color: #2f3b69;
  font-weight: 700;
  position: relative;
  margin-bottom: 1.5em;
  letter-spacing: -0.02em;
}

.cms h1 {
  font-size: 2.5em;
  font-weight: 800;
  background: linear-gradient(135deg, #2f3b69, #4a5d7a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1em;
}

.cms h2 {
  font-size: 2em;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
}

.cms h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #2f3b69, #4a5d7a);
  border-radius: 2px;
}

.cms h3 {
  font-size: 1.5em;
  font-weight: 600;
  color: #3a4a63;
}

/* CONTENT ENHANCEMENTS */
.cms p {
  color: #3a4a63;
  margin-bottom: 1.4em;
  line-height: 1.7;
}

.cms a {
  color: #2f3b69;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.cms a:hover {
  color: #1e2a4a;
  border-bottom-color: #2f3b69;
  background: linear-gradient(90deg, transparent 0%, rgba(47, 59, 105, 0.05) 50%, transparent 100%);
  padding: 2px 6px;
  border-radius: 4px;
  transform: translateY(-1px);
}

/* SPECIAL CONTENT STYLING */
.cms span[style*="color: rgb(205, 77, 52)"] {
  color: #2f3b69 !important;
  font-family: "Source Sans Pro", sans-serif !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 8px rgba(47, 59, 105, 0.3);
}

/* BUTTON STYLES */
button,
input[type="submit"],
.btn {
  background: linear-gradient(135deg, #2f3b69 0%, #4a5d7a 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-family: "Source Sans Pro", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(47, 59, 105, 0.3);
}

button:hover,
input[type="submit"]:hover,
.btn:hover {
  background: linear-gradient(135deg, #1e2a4a 0%, #3a4a63 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(47, 59, 105, 0.4);
}

/* FORM STYLES */
input[type="text"],
input[type="email"],
textarea,
select {
  border: 2px solid #d1dae6;
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #2f3b69;
  box-shadow: 0 0 0 3px rgba(47, 59, 105, 0.1);
  background: #ffffff;
}

/* IMAGE ENHANCEMENTS */
.cms img {
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(47, 59, 105, 0.2);
  transition: transform 0.3s ease;
}

.cms img:hover {
  transform: scale(1.02);
}

/* BANNER ENHANCEMENTS */
.banner-wrapper-background,
.banner-wrapper-size,
.banner {
  display: none !important;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .main-content-wrapper {
    padding: 0 16px;
  }
  
  .main-content {
    margin: 16px auto;
    border-radius: 12px;
  }
  
  .cms h1 {
    font-size: 2em;
  }
  
  .cms h2 {
    font-size: 1.6em;
  }
  
  .site-name {
    font-size: 1.5em;
  }
  
  .page-footer-wrapper {
    padding: 24px 0;
  }
}

@media (max-width: 480px) {
  .main-content-wrapper {
    padding: 0 12px;
  }
  
  .cms h1 {
    font-size: 1.8em;
  }
  
  .cms h2 {
    font-size: 1.4em;
  }
  
  .main-content {
    margin: 12px auto;
  }
}

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

/* HIGH CONTRAST MODE */
@media (prefers-contrast: high) {
  .cms a {
    text-decoration: underline;
  }
  
  .site-nav a::after {
    display: none;
  }
  
  .site-nav a:hover {
    text-decoration: underline;
  }
}

/* MOBILE NAVIGATION STYLES */
.slicknav_menu {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid #2f3b69;
  box-shadow: 0 8px 32px rgba(47, 59, 105, 0.2);
  padding: 1em;
  display: none; /* Hidden by default */
}

.slicknav_brand {
  color: #2f3b69;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 700;
  font-size: 1.8em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.03em;
  margin-bottom: 0.5em;
  display: block;
  float: left;
  clear: both;
}

.slicknav_btn {
  background: linear-gradient(135deg, #2f3b69 0%, #4a5d7a 100%);
  border: none;
  border-radius: 8px;
  color: white !important;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5em 1em;
  cursor: pointer;
  display: block;
  position: relative;
  float: right;
  clear: none;
}

.slicknav_btn:hover {
  background: linear-gradient(135deg, #1e2a4a 0%, #3a4a63 100%);
  transform: translateY(-1px);
}

.slicknav_menutxt {
  color: white !important;
  font-size: 0.9em;
  margin-right: 0.5em;
}

.slicknav_icon {
  display: inline-block;
  vertical-align: middle;
}

.slicknav_icon-bar {
  background-color: white !important;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  margin: 3px 0;
  transition: all 0.3s ease;
}

.slicknav_nav {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  border: 1px solid #d1dae6;
  box-shadow: 0 12px 40px rgba(47, 59, 105, 0.25);
  backdrop-filter: blur(8px);
  margin-top: 1em;
  clear: both;
}

.slicknav_nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.slicknav_nav li {
  border-bottom: 1px solid rgba(209, 218, 230, 0.3);
}

.slicknav_nav li:last-child {
  border-bottom: none;
}

.slicknav_nav a {
  color: #2f3b69;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
  display: block;
  padding: 12px 16px;
  text-decoration: none;
}

.slicknav_nav a:hover {
  color: #1e2a4a;
  background: linear-gradient(90deg, transparent 0%, rgba(47, 59, 105, 0.05) 50%, transparent 100%);
  transform: translateY(-1px);
}

.slicknav_nav .slicknav_arrow {
  color: #4a5d7a;
  float: right;
  margin-top: 2px;
}

/* Ensure mobile menu shows on small screens */
@media screen and (max-width: 600px) {
  .slicknav_menu {
    display: block !important;
  }
  
  /* Make sure it's visible and positioned correctly */
  .slicknav_menu {
    position: relative;
    z-index: 1000;
    width: 100%;
  }
}

/* Show mobile menu on touch devices at mobile sizes */
@media screen and (max-width: 600px) {
  .js.touchevents .slicknav_menu {
    display: block !important;
  }
}
