/* ===========================
   Bromley Brush - Custom Styles
   =========================== */

/* ---------- Base ---------- */
html {
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cabin', Helvetica, Arial, sans-serif;
}

main {
  flex: 1;
}

/* Site Logo */
.site-logo-img {
  height: 66px;
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
}

/* ---------- Header / Navbar (inside hero) ---------- */
#main-navbar {
  position: relative;
  z-index: 10;
  background: transparent !important;
  padding: 1rem 0;
}

.site-name-header .brand-main {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: lowercase;
  letter-spacing: -0.5px;
}

.site-name-header .brand-tagline {
  display: block;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Nav items with pipe separator */
#primary-menu .nav-item {
  position: relative;
}

#primary-menu .nav-item + .nav-item::before {
  content: '|';
  color: rgba(255,255,255,1);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
}

/* Nav links */
#primary-menu .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-size: 0.88rem;
  padding: 0.5rem 1.2rem !important;
  transition: color 0.2s;
}

#primary-menu .nav-link:hover {
  color: rgba(255,255,255,0.9) !important;
}

#primary-menu .nav-link.active,
#primary-menu .current-menu-item > .nav-link,
#primary-menu .current_page_item > .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 700;
}

/* Twitter/X Icon */
.nav-x-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: transparent;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.nav-x-icon:hover {
  background-color: #1da1f2;
  color: #ffffff;
  transform: scale(1.05);
}

/* Mobile nav: float over content, don't push layout */
@media (max-width: 991px) {
  #primaryNav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(20, 60, 120, 0.95);
    padding: 1rem 0;
  }
}

/* Remove thick border/outline from toggler on focus/active */
.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none;
  box-shadow: none;
  border-color: rgba(255,255,255,0.3);
}

.navbar-toggler {
  border: 2px solid rgba(255,255,255,0.3);
}

/* Mobile navbar: stack logo + burger, both centred */
@media (max-width: 991px) {
  #main-navbar {
    padding-bottom: 1.25rem !important;
  }
  #main-navbar .container {
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
  }
  #main-navbar .navbar-brand {
    margin: 0;
  }
  .site-logo-img {
    height: 54px;
  }
}

/* Remove pipe separator on mobile */
@media (max-width: 991px) {
  #primary-menu .nav-item + .nav-item::before {
    display: none;
  }

  #primary-menu .nav-link {
    padding: 0.5rem 0 !important;
    text-align: center;
  }

  /* X icon center on mobile */
  .nav-x-icon {
    margin: 0.5rem auto 0 !important;
  }
}

/* ---------- Hero Section ---------- */
#hero-section {
  position: relative;
  min-height: 480px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 60, 120, 0.80);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 1rem 2rem;
  flex: 1;
  display: flex;
  align-items: center;
}

.hero-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

#hero-section.hero-is-centered .hero-content {
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

#hero-section.hero-is-centered .hero-content .row {
  justify-content: center;
}

#hero-section.hero-is-centered .col-12 {
  text-align: center;
}

#hero-section.hero-is-centered .hero-heading-divider {
  margin: 1.5rem auto 0;
}

/* Hero centered state */
.hero-centered {
  margin: 0 auto;
  text-align: center;
}

.hero-heading-divider {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  margin: 1.5rem auto 0;
}

/* Scroll arrow */
.hero-scroll-arrow {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-bottom: 1.2rem;
  opacity: 0.8;
}

/* Cycling text */
.hero-cycling-text {
  display: inline-block;
  position: relative;
  min-width: 300px;
}

.cycle-item {
  display: block;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  pointer-events: none;
}

.cycle-item.active {
  animation: cycleIn 2.5s ease-in-out forwards;
  position: relative;
  white-space: normal;
}

@keyframes cycleIn {
  0%   { opacity: 0;  transform: translateY(0px);  }
  20%  { opacity: 1;  transform: translateY(0px);  }
  55%  { opacity: 1;  transform: translateY(10px); }
  100% { opacity: 0;  transform: translateY(15px); }
}

.hero-scroll-arrow a {
  display: inline-block;
  text-decoration: none;
}

/* Scroll arrow animation */
.hero-scroll-arrow {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%   { opacity: 0;   transform: translateY(0px);   }
  25%  { opacity: 1;   transform: translateY(0px);   }
  55%  { opacity: 1;   transform: translateY(10px);  }
  100% { opacity: 0;   transform: translateY(15px);  }
}

/* ---------- Three Column Section ---------- */
#section-three-col {
  padding: 5rem 0;
  background: #f0f2f7;
}

.three-col-item {
  padding-top: 1rem;
}

.three-col-icon {
  color: #a0aec0;
  margin-bottom: 1rem;
}

.three-col-divider {
  width: 30px;
  height: 2px;
  background-color: #a0aec0;
  margin-bottom: 1.5rem;
}

.three-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2b4a;
  margin-bottom: 1rem;
}

.three-col-text {
  font-size: 0.88rem;
  color: #6b7a99;
  line-height: 1.8;
}

.three-col-text a {
  color: #1a2b4a;
  text-decoration: none;
}

.three-col-btn {
  display: inline-block;
  margin-top: 1.25rem;
  background-color: #17365d;
  color: #fff !important;
  border: none;
  padding: 0.62rem 2rem;
  font-size: 0.8rem;
  font-family: Arial, Helvetica, sans-serif;
  border-radius: 2px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background-color 0.2s;
}
.three-col-btn:hover { background-color: #1a2b4a; }

/* ---------- Parallax Section ---------- */
#section-parallax {
  position: relative;
  min-height: 320px;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
}

.parallax-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1rem;
}

.parallax-text {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: #1a2b4a;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.6;
  font-weight: 400;
  margin: 0;
}

.parallax-text strong {
  font-weight: 800;
}

.parallax-text a {
  color: inherit;
  text-decoration: none;
}

.parallax-text a:hover {
  opacity: 0.8;
}

/* ---------- Tagline Section ---------- */
#section-tagline {
  padding: 6rem 0;
  text-align: center;
  background: #ffffff;
}

.tagline-divider {
  width: 30px;
  height: 2px;
  background-color: #1a2b4a;
  margin: 0 auto 2.5rem;
}

.tagline-text {
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  color: #1a2b4a;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.7;
  max-width: 750px;
  margin: 0 auto;
  font-weight: 400;
}

.tagline-text a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.tagline-text a:hover {
  opacity: 0.7;
}

.tagline-text strong {
  font-weight: 800;
}

/* ---------- Back to Top Button ---------- */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  background-color: rgba(16, 31, 48, 0.7);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: background-color 0.2s, color 0.2s;
}

#back-to-top:hover {
  background-color: rgba(255, 255, 255, 0.7);
  color: #101f30;
  border: 1px solid rgba(16, 31, 48, 0.7);
}

/* ---------- Products Tagline ---------- */
#section-products-tagline {
  padding: 5rem 0;
  text-align: center;
  background: #ffffff;
}

.products-tagline-text {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: #1a2b4a;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Products Intro Section ---------- */
#section-products-intro {
  padding: 5rem 0;
  background: #f0f2f7;
}

.products-intro-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.products-intro-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50%;
  background: #e8eaf0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a2b4a;
}

.products-intro-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2b4a;
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
}

.products-intro-text {
  font-size: 0.88rem;
  color: #6b7a99;
  line-height: 1.8;
  margin: 0;
}

/* ---------- Contact Section ---------- */
#section-contact {
  padding: 5rem 0;
  background: #f8f9fb;
}

.contact-title {
  font-size: 2rem;
  color: #1a2b4a;
  font-weight: 400;
  margin-bottom: 0;
}

.contact-info-box {
  text-align: center;
}

.contact-divider {
  width: 30px;
  height: 2px;
  background-color: #1a2b4a;
  margin: 1.2rem auto;
}

.contact-company {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2b4a;
  margin-bottom: 0.3rem;
}

.contact-subtitle {
  font-size: 0.85rem;
  color: #6b7a99;
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1rem;
}

.contact-detail-icon {
  color: #a0aec0;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.contact-detail address,
.contact-detail p {
  font-size: 0.88rem;
  color: #6b7a99;
  font-style: normal;
  margin: 0;
  line-height: 1.8;
}

.contact-detail a {
  color: #6b7a99;
  text-decoration: none;
}

.contact-detail a:hover {
  color: #1a2b4a;
}

.contact-form-title {
  font-size: 1.1rem;
  color: #1a2b4a;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-form-note {
  font-size: 0.82rem;
  color: #6b7a99;
  line-height: 1.7;
}

.contact-form-note a {
  color: #6b7a99;
}

.contact-highlight {
  color: #17365d;
  font-weight: 600;
  font-style: italic;
}

/* CF7 form styling */
.wpcf7 label {
  font-size: 0.85rem;
  color: #6b7a99;
  margin-bottom: 0.3rem;
  display: block;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  border: 1px solid #dde2ec;
  border-radius: 2px;
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
  color: #1a2b4a;
  background: #ffffff;
  margin-bottom: 0.8rem;
}

.wpcf7 textarea {
  min-height: 140px;
  resize: vertical;
}

.wpcf7 input[type="submit"] {
  background-color: #17365d;
  color: #ffffff;
  border: none;
  padding: 0.6rem 2rem;
  font-size: 0.88rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.wpcf7 input[type="submit"]:hover {
  background-color: #1a2b4a;
}

/* ---------- Contact Gallery ---------- */
#contact-gallery {
  border: 1px solid #dde2ec;
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid #dde2ec;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* ---------- 404 Page ---------- */
#section-404 {
  padding: 8rem 0;
  background: #ffffff;
}

.error-404-title {
  font-size: 8rem;
  font-weight: 700;
  color: #1a2b4a;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-404-subtitle {
  font-size: 1.8rem;
  color: #1a2b4a;
  font-weight: 400;
  margin-bottom: 1rem;
}

.error-404-text {
  font-size: 1rem;
  color: #6b7a99;
  margin-bottom: 2rem;
}

.error-404-btn {
  display: inline-block;
  background-color: #17365d;
  color: #ffffff;
  padding: 0.75rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.error-404-btn:hover {
  opacity: 0.85;
  color: #ffffff;
}

/* ---------- Footer ---------- */
#site-footer {
  background-color: #1a2b4a;
  color: #ccd6e8;
}

.footer-top {
  padding: 4rem 0 3rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #8aa0c0;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #aabcd4;
}

.footer-address {
  font-size: 0.88rem;
  color: #aabcd4;
  font-style: normal;
  line-height: 2;
}

/* Footer nav list */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li a {
  color: #aabcd4;
  text-decoration: none;
  font-size: 0.88rem;
  display: inline-block;
  padding: 0.15rem 0;
  transition: color 0.2s;
}

.footer-nav-list li a:hover {
  color: #ffffff;
}

/* Social buttons */
.footer-social-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.78rem;
  color: #fff;
  line-height: 1.3;
  min-width: 120px;
}

.footer-social-btn.twitter { background-color: #1da1f2; }
.footer-social-btn.rss     { background-color: #f5820d; }

.footer-social-btn:hover {
  opacity: 0.85;
  color: #fff;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.footer-social-text small {
  font-size: 0.68rem;
  opacity: 0.85;
}

/* Footer Bottom Bar */
.footer-bottom {
  background-color: #111d2e;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-copy {
  font-size: 0.78rem;
  color: #6a82a0;
  margin: 0;
}

.footer-copy a {
  color: #6a82a0;
  text-decoration: none;
}

.footer-copy a:hover {
  color: #ffffff;
}

/* ---------- Mobile section padding ---------- */
@media (max-width: 575px) {
  #hero-section             { min-height: 360px; }
  #section-shop          { padding: 2.5rem 0 !important; }
  #section-three-col     { padding: 2rem 0; }
  #section-tagline       { padding: 3rem 0; }
  #section-products-tagline { padding: 2.5rem 0; }
  #section-products-intro   { padding: 2.5rem 0; }
  #section-contact          { padding: 2.5rem 0; }
  .footer-top               { padding: 2.5rem 0 2rem; }
}
