/* ==========================================================================
   No Surprise Steel Buildings — Theme Stylesheet
   ConcreteCMS 9.4 / Elemental child theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */

:root {
  --ns-navy:        #1C3157;
  --ns-navy-dark:   #142440;
  --ns-gold:        #D4900A;
  --ns-gold-border: #C0A060;
  --ns-red:         #8B1F1F;
  --ns-white:       #FFFFFF;
  --ns-off-white:   #F5F5F0;
  --ns-body:        #2C2C2A;
  --ns-muted:       #6B6B68;
  --ns-border:      #E0DED8;
  --ns-overlay:     rgba(28, 49, 87, 0.72);

  --ns-font:        'Inter', 'Helvetica Neue', Arial, sans-serif;

  --ns-space-1:     8px;
  --ns-space-2:     16px;
  --ns-space-3:     24px;
  --ns-space-4:     32px;
  --ns-space-6:     48px;
  --ns-space-8:     64px;
  --ns-space-12:    96px;

  --ns-container:   1140px;
  --ns-radius:      6px;
  --ns-radius-lg:   10px;
}


/* --------------------------------------------------------------------------
   2. Base Reset & Typography
   -------------------------------------------------------------------------- */

body {
  font-family: var(--ns-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ns-body);
  background-color: var(--ns-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ns-font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ns-navy);
  margin-top: 0;
}

h1 { font-size: 2.5rem;  font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.25rem; }

p { margin-top: 0; margin-bottom: 1rem; }

a { color: var(--ns-navy); text-decoration: none; }
a:hover { color: var(--ns-gold); }

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


/* --------------------------------------------------------------------------
   3. Layout Helpers
   -------------------------------------------------------------------------- */

.ns-container {
  max-width: var(--ns-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--ns-space-3);
  padding-right: var(--ns-space-3);
}

.ns-section {
  padding: var(--ns-space-8) var(--ns-space-3);
}

@media (min-width: 992px) {
  .ns-section { padding: var(--ns-space-12) var(--ns-space-3); }
}

.ns-section--light { background: var(--ns-white); }
.ns-section--gray  { background: var(--ns-off-white); }
.ns-section--dark  { background: var(--ns-navy); color: var(--ns-white); }

.ns-section--dark h1,
.ns-section--dark h2,
.ns-section--dark h3 { color: var(--ns-white); }


/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn-ns-primary {
  display: inline-block;
  background: var(--ns-gold);
  color: #fff;
  font-family: var(--ns-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 12px 28px;
  border: none;
  border-radius: var(--ns-radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
  line-height: 1.4;
}
.btn-ns-primary:hover { background: #b87d08; color: #fff; }

.btn-ns-secondary {
  display: inline-block;
  background: transparent;
  color: var(--ns-navy);
  font-family: var(--ns-font);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border: 2px solid var(--ns-navy);
  border-radius: var(--ns-radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-ns-secondary:hover { background: var(--ns-navy); color: #fff; }

.ns-section--dark .btn-ns-secondary { color: #fff; border-color: #fff; }
.ns-section--dark .btn-ns-secondary:hover { background: #fff; color: var(--ns-navy); }

.btn-ns-alt {
  display: inline-block;
  background: var(--ns-red);
  color: #fff;
  font-family: var(--ns-font);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border: none;
  border-radius: var(--ns-radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn-ns-alt:hover { background: #731a1a; color: #fff; }


/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */

.ns-nav {
  background: var(--ns-navy);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.ns-nav__logo {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.ns-nav__logo span {
  display: block;
  font-size: 9px;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.12em;
}

.ns-nav__toggle {
  background: var(--ns-gold);
  border: none;
  border-radius: var(--ns-radius);
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ns-nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.ns-nav__menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 992px) {
  .ns-nav__toggle { display: none; }

  .ns-nav__menu {
    display: flex !important;
    align-items: center;
    gap: 28px;
  }

  .ns-nav__link {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s ease;
  }
  .ns-nav__link:hover,
  .ns-nav__link--active { border-bottom-color: var(--ns-gold); color: #fff; }

  .ns-nav__link--cta {
    border: 1px solid var(--ns-gold);
    border-radius: var(--ns-radius);
    padding: 5px 12px;
  }
  .ns-nav__link--cta:hover { background: var(--ns-gold); border-color: var(--ns-gold); color: #fff; }

  .ns-nav__dropdown { position: relative; }
  .ns-nav__submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--ns-navy-dark);
    border-top: 2px solid var(--ns-gold);
    border-radius: 0 0 var(--ns-radius) var(--ns-radius);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    z-index: 200;
  }
  .ns-nav__dropdown:hover .ns-nav__submenu { display: block; }
  .ns-nav__submenu a {
    display: block;
    padding: 9px 18px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .ns-nav__submenu a:hover { background: var(--ns-navy); color: #fff; }
}


/* --------------------------------------------------------------------------
   6. Info Bar
   -------------------------------------------------------------------------- */

.ns-info-bar {
  background: var(--ns-navy-dark);
  padding: 9px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}
.ns-info-bar a {
  color: var(--ns-gold);
  text-decoration: none;
  font-weight: 600;
}


/* --------------------------------------------------------------------------
   7. Components
   -------------------------------------------------------------------------- */

/* Accent phrase (italic + gold underline) */
.ns-accent-phrase {
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: var(--ns-gold);
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

/* Numbered steps */
.ns-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.ns-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ns-body); }
.ns-steps__num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ns-navy); color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ns-section--dark .ns-steps li { color: rgba(255,255,255,0.9); }
.ns-section--dark .ns-steps__num { background: var(--ns-gold); color: var(--ns-navy); }

/* Category card */
.ns-cat-card { background: var(--ns-navy); border-radius: var(--ns-radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.ns-cat-card__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.ns-cat-card__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ns-cat-card__title { color: #fff; font-size: 17px; font-weight: 700; margin: 0; }

/* Testimonial */
.ns-testimonial { background: var(--ns-off-white); border-left: 4px solid var(--ns-gold); border-radius: 0 var(--ns-radius) var(--ns-radius) 0; padding: 18px 20px; }
.ns-testimonial__quote-mark { font-size: 36px; color: var(--ns-gold); line-height: 1; margin-bottom: 4px; font-family: Georgia, serif; }
.ns-testimonial__text { font-size: 14px; color: var(--ns-body); font-style: italic; line-height: 1.65; margin: 0 0 10px; }
.ns-testimonial__attribution { font-size: 13px; color: var(--ns-navy); font-weight: 600; margin: 0; }

/* FAQ accordion */
.ns-faq { border: 0.5px solid var(--ns-border); border-radius: var(--ns-radius-lg); overflow: hidden; }
.ns-faq__item { border-bottom: 0.5px solid var(--ns-border); }
.ns-faq__item:last-child { border-bottom: none; }
.ns-faq__trigger { width: 100%; background: var(--ns-white); border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; text-align: left; gap: 12px; }
.ns-faq__question { font-size: 15px; font-weight: 500; color: var(--ns-body); }
.ns-faq__icon { color: var(--ns-gold); font-size: 22px; font-weight: 300; line-height: 1; flex-shrink: 0; }
.ns-faq__answer { padding: 0 18px 16px; font-size: 14px; color: var(--ns-muted); line-height: 1.65; }

/* Star rating */
.ns-stars { color: var(--ns-gold); font-size: 16px; letter-spacing: 2px; }

/* Image placeholder (navy div while awaiting real photos) */
.ns-img-placeholder {
  background: var(--ns-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  width: 100%;
}

/* Configurator iframe */
.ns-configurator-wrap { width: 100%; padding: var(--ns-space-4) 0; }
.ns-configurator-wrap iframe { display: block; width: 100%; min-height: 700px; border: none; }
.ns-configurator-fallback { text-align: center; font-size: 13px; color: var(--ns-muted); margin-top: var(--ns-space-2); }

@media (max-width: 768px) {
  .ns-configurator-wrap iframe { min-height: 600px; }
  .ns-configurator-wrap::before {
    content: "Tip: Use two fingers to scroll within the configurator on mobile.";
    display: block; text-align: center; font-size: 12px;
    color: var(--ns-muted); margin-bottom: var(--ns-space-2);
  }
}


/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */

.ns-footer {
  background: var(--ns-navy);
  color: rgba(255,255,255,0.75);
  padding: var(--ns-space-8) var(--ns-space-3) var(--ns-space-4);
}
.ns-footer h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: var(--ns-space-2); }
.ns-footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
.ns-footer a:hover { color: var(--ns-gold); }
.ns-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: var(--ns-space-6);
  padding-top: var(--ns-space-3);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-align: center;
}


/* --------------------------------------------------------------------------
   9. Coming Soon Page
   -------------------------------------------------------------------------- */

body.page-template-coming-soon {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px var(--ns-space-3);
  position: relative;
  overflow-x: hidden;
  background-image: url('https://nosurprisesteelbuildings.com/application/files/9517/7524/7527/IMG_2417-1920w.webp');
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
}

body.page-template-coming-soon::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 49, 87, 0.35) 0%,
    rgba(28, 49, 87, 0.62) 50%,
    rgba(28, 49, 87, 0.78) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.ns-coming-soon {
  max-width: 520px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.ns-coming-soon__top-bar { display: none; }
.ns-coming-soon__bottom-bar { display: none; }

.ns-coming-soon__card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  border-radius: var(--ns-radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);
  padding: 44px 40px 36px;
}

.ns-coming-soon__logo {
  margin-bottom: 40px;
}
.ns-coming-soon__logo img {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.ns-coming-soon__divider {
  width: 40px;
  height: 3px;
  background: var(--ns-gold);
  border-radius: 2px;
  margin: 0 auto var(--ns-space-3);
}

.ns-coming-soon__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ns-gold);
  margin-bottom: 10px;
}

.ns-coming-soon__tagline {
  font-size: 20px;
  font-weight: 800;
  color: var(--ns-navy);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.ns-coming-soon__sub {
  font-size: 14px;
  color: var(--ns-muted);
  line-height: 1.65;
  margin-bottom: var(--ns-space-4);
}

.ns-coming-soon__contact {
  border-top: 1px solid var(--ns-border);
  padding-top: var(--ns-space-3);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.ns-coming-soon__contact-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  color: var(--ns-body);
  line-height: 1.5;
}

.ns-coming-soon__contact-row .cs-icon {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--ns-gold-border);
}

.ns-coming-soon__contact-row a {
  color: var(--ns-navy);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}
.ns-coming-soon__contact-row a:hover { color: var(--ns-gold); }

.ns-coming-soon__badge {
  margin-top: var(--ns-space-4);
  padding-top: var(--ns-space-3);
  border-top: 1px solid var(--ns-border);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ns-navy);
  opacity: 0.35;
}

.ns-coming-soon__bottom-bar {
  height: 3px;
  background: var(--ns-gold);
  border-radius: 0 0 3px 3px;
  max-width: 560px;
  width: 100%;
  opacity: 0.5;
}

@media (max-width: 480px) {
  .ns-coming-soon__card { padding: 36px 24px 32px; }
  .ns-coming-soon__logo img { max-width: 280px; }
  .ns-coming-soon__tagline { font-size: 18px; }
}
