/* ============================================================
   REHZON GRID SYSTEMS — Global Stylesheet v3
   Centered container layout — max-width 1200px
   No full-width sections. All content inside a page frame.

   Color System:
     Page background:        #0D1B2A  (deep navy canvas)
     Container background:   #111C2B  (card surface)
     Card surface light:     #FFFFFF
     Card surface mid:       #F2F5F8
     Card surface dark:      #162030
     Accent Primary:         #1A9070  (teal green)
     Accent Hover:           #15B88E
     Accent Glow:            rgba(26,144,112,0.18)
     Text on dark:           #FFFFFF
     Text on light:          #111827
     Secondary text dark:    rgba(255,255,255,0.62)
     Secondary text light:   #4B5563
     Border dark:            rgba(255,255,255,0.07)
     Border light:           #E2E8EF
     Border accent:          rgba(26,144,112,0.25)
   ============================================================ */

/* ---- Reset & Base ---------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #0D1B2A;
  color: #111827;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: #1A9070;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* ---- Typography ------------------------------------------ */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   PAGE FRAME — The centered 1200px container
   All content lives inside this. The dark navy body is the
   canvas visible around the edges on wide screens.
   ============================================================ */
.page-frame {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #111C2B;
  min-height: 100vh;
  box-shadow:
    0 0 0 1px rgba(26,144,112,0.12),
    0 32px 80px rgba(0,0,0,0.6);
  position: relative;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  z-index: 1000;
  background-color: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 144, 112, 0.18);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

#navbar.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.55);
  border-bottom-color: rgba(26, 144, 112, 0.32);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.4;
}

.brand-line1,
.brand-line2 {
  display: inline;
}

.brand-line1::after {
  content: '\00a0'; /* non-breaking space — keeps one line always */
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: #1A9070;
  transition: width 0.25s ease;
}

.nav-links li a:hover {
  color: #FFFFFF;
}

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

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO — Full-width within the 1200px frame
   Deep navy, dot-grid texture, centered content
   ============================================================ */
#hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #0D1B2A;
  padding: 140px 48px 100px;
  overflow: hidden;
}

/* Dot-grid texture */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='rgba(26%2C144%2C112%2C0.12)'/%3E%3C/svg%3E");
  background-size: 44px 44px;
  z-index: 1;
  pointer-events: none;
}

/* Radial vignette */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 45%, transparent 25%, rgba(13,27,42,0.78) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background-color: rgba(26, 144, 112, 0.12);
  border: 1px solid rgba(26, 144, 112, 0.32);
  border-radius: 100px;
  padding: 7px 20px;
  margin-bottom: 32px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1A9070;
}

.hero-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  background-color: #1A9070;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(26,144,112,0.25);
  flex-shrink: 0;
}

.hero-headline {
  color: #FFFFFF;
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  line-height: 1.08;
}

/* Desktop: single line */
.hero-brand-1,
.hero-brand-2 {
  display: inline;
}

.hero-brand-1::after {
  content: '\00a0'; /* non-breaking space between words */
}

.hero-subheadline {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 400;
  margin-bottom: 1.25rem;
  line-height: 1.65;
  max-width: 640px;
}

.hero-support {
  color: rgba(255,255,255,0.45);
  font-size: clamp(0.85rem, 1.6vw, 0.97rem);
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 3rem;
  letter-spacing: 0.01em;
}

.br-desktop { display: inline; }

.hero-rule {
  width: 44px;
  height: 2px;
  background-color: #1A9070;
  margin-bottom: 2.4rem;
  border-radius: 2px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 42px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background-color: #1A9070;
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #15B88E;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 144, 112, 0.42);
  text-decoration: none;
  color: #FFFFFF;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-text-link {
  color: rgba(255,255,255,0.58);
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.22);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.btn-text-link:hover {
  color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.55);
  text-decoration: none;
}

/* ============================================================
   SECTIONS — Inside the 1200px page frame
   Each section is a padded band. Content inside .section-inner
   is constrained to a readable width and centered.
   ============================================================ */

/* Base section — no background override, inherits frame color */
.section {
  padding: 88px 48px;
  text-align: center;
}

/* Light card band */
.section-white {
  background-color: #FFFFFF;
}

/* Subtle cool-grey band */
.section-steel {
  background-color: #F2F5F8;
}

/* Dark navy band */
.section-dark {
  background-color: #162030;
}

/* Horizontal rule between sections */
.section + .section {
  border-top: 1px solid rgba(255,255,255,0.05);
}

.section-white + .section,
.section + .section-white {
  border-top: 1px solid #E2E8EF;
}

.section-steel + .section,
.section + .section-steel {
  border-top: 1px solid #DDE3EC;
}

/* Inner content wrapper — readable max-width, centered */
.section-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Section overline label */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1A9070;
  margin-bottom: 10px;
}

/* Accent rule below label */
.section-divider {
  width: 40px;
  height: 2.5px;
  background-color: #1A9070;
  margin-bottom: 22px;
  border-radius: 2px;
}

/* Section title */
.section-title {
  color: #111827;
  margin-bottom: 28px;
  text-align: center;
}

.section-dark .section-title {
  color: #FFFFFF;
}

/* Section body copy */
.section-body {
  max-width: 620px;
  width: 100%;
  color: #374151;
  text-align: center;
  font-size: 1.04rem;
  line-height: 1.9;
}

.section-dark .section-body {
  color: rgba(255,255,255,0.68);
}

.section-body p {
  margin-bottom: 1rem;
}

.list-intro {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem !important;
}

.section-dark .list-intro {
  color: rgba(255,255,255,0.9);
}

/* ============================================================
   CONTENT PANELS — Bordered cards inside sections
   ============================================================ */
.content-panel {
  margin: 1.75rem auto 0;
  width: 100%;
  max-width: 580px;
  background-color: rgba(26, 144, 112, 0.04);
  border: 1px solid rgba(26, 144, 112, 0.22);
  border-radius: 8px;
  padding: 28px 36px;
}

.section-dark .content-panel {
  background-color: rgba(26, 144, 112, 0.07);
  border-color: rgba(26, 144, 112, 0.28);
}

/* Two-column panel layout */
.panel-row {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 780px;
  margin: 1.75rem auto 0;
  justify-content: center;
}

.panel-half {
  flex: 1;
  min-width: 0;
  background-color: rgba(26, 144, 112, 0.04);
  border: 1px solid rgba(26, 144, 112, 0.2);
  border-radius: 8px;
  padding: 26px 28px;
}

.section-dark .panel-half {
  background-color: rgba(26, 144, 112, 0.07);
  border-color: rgba(26, 144, 112, 0.28);
}

.panel-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1A9070;
  margin-bottom: 16px;
  display: block;
}

/* ---- Content List ---------------------------------------- */
.content-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  text-align: left;
  width: 100%;
}

.content-list li {
  font-size: 0.96rem;
  color: #374151;
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.content-list li::before {
  content: "›";
  color: #1A9070;
  position: absolute;
  left: 3px;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
}

.section-dark .content-list li {
  color: rgba(255,255,255,0.72);
}

/* ---- Section CTA ----------------------------------------- */
.section-cta {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* ---- Status Badge ---------------------------------------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(26, 144, 112, 0.08);
  border: 1px solid rgba(26, 144, 112, 0.28);
  border-radius: 8px;
  padding: 18px 36px;
  margin-top: 12px;
}

.status-dot {
  width: 9px;
  height: 9px;
  background-color: #1A9070;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(26,144,112,0.22);
}

.status-text {
  font-size: 0.93rem;
  font-weight: 500;
  color: #374151;
}

.section-steel .status-text {
  color: #374151;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-info {
  margin-top: 4px;
}

.contact-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: #111827;
  margin-bottom: 4px !important;
}

.contact-email {
  color: #1A9070;
  font-size: 0.97rem;
  font-weight: 500;
}

.contact-email:hover {
  color: #15B88E;
  text-decoration: underline;
}

/* ---- Contact Form ---------------------------------------- */
.contact-form {
  margin-top: 52px;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #374151;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background-color: #F8FAFB;
  border: 1.5px solid #D4DBE4;
  border-radius: 5px;
  font-size: 0.96rem;
  color: #111827;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  resize: vertical;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9CA3AF;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #1A9070;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(26, 144, 112, 0.12);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #DC2626;
  background-color: #FFF8F8;
}

.field-error {
  margin-top: 5px;
  font-size: 0.79rem;
  color: #DC2626;
  font-weight: 500;
  min-height: 16px;
}

.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.form-submit .btn {
  min-width: 280px;
}

.form-success {
  margin-top: 22px;
  padding: 20px 28px;
  background-color: rgba(26, 144, 112, 0.07);
  border: 1px solid rgba(26, 144, 112, 0.28);
  border-radius: 6px;
  text-align: center;
}

.form-success p {
  color: #1A9070;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

/* ============================================================
   FOOTER — Inside the 1200px frame
   ============================================================ */
#footer {
  background-color: #0A1520;
  padding: 64px 48px;
  text-align: center;
  border-top: 1px solid rgba(26, 144, 112, 0.18);
}

.footer-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.footer-brand {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}

.footer-accent {
  color: #1A9070;
}

.footer-sub-link {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-sub-link:hover {
  color: #1A9070;
  border-color: rgba(26,144,112,0.5);
  text-decoration: none;
}

.footer-sub {
  color: rgba(255,255,255,0.4);
  font-size: 0.87rem;
}

.footer-links {
  margin-top: 22px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-links a {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #1A9070;
  text-decoration: none;
}

.footer-sep {
  color: rgba(255,255,255,0.15);
  font-size: 0.85rem;
}

.footer-copy {
  color: rgba(255,255,255,0.2);
  font-size: 0.76rem;
  margin-top: 18px;
  letter-spacing: 0.02em;
}

/* ============================================================
   RESPONSIVE — Tablet (≤ 960px)
   ============================================================ */
@media (max-width: 960px) {
  .nav-inner {
    padding: 0 32px;
  }

  .section {
    padding: 76px 36px;
  }

  #hero {
    padding: 130px 32px 88px;
  }

  .panel-row {
    flex-direction: column;
    align-items: center;
    max-width: 520px;
  }

  .panel-half {
    width: 100%;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  /* Nav brand — always one line */
  .nav-brand {
    white-space: nowrap;
    font-size: 0.92rem;
  }

  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background-color: rgba(10, 21, 32, 0.99);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 10px 0 20px;
    border-bottom: 1px solid rgba(26, 144, 112, 0.18);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links li a {
    display: block;
    padding: 14px 0;
    font-size: 0.9rem;
  }

  /* Hero headline — "Rehzon" solo, "Grid Systems" on second line */
  .hero-brand-1,
  .hero-brand-2 {
    display: block;
  }

  .hero-brand-1::after {
    content: '';
  }

  /* Hero */
  #hero {
    min-height: 100svh;
    padding: 108px 20px 72px;
    text-align: center;
  }

  .hero-support br.br-desktop {
    display: none;
  }

  .hero-ctas {
    width: 100%;
  }

  .btn {
    width: 100%;
    max-width: 340px;
  }

  /* Sections */
  .section {
    padding: 64px 20px;
    text-align: center;
  }

  .section-body {
    font-size: 1rem;
    text-align: center;
  }

  .content-panel {
    padding: 22px 20px;
  }

  .panel-half {
    padding: 20px 18px;
  }

  /* Form */
  .contact-form {
    max-width: 100%;
  }

  .form-submit .btn {
    width: 100%;
    max-width: 100%;
    min-width: unset;
  }

  .status-badge {
    padding: 16px 20px;
    text-align: center;
  }

  #footer {
    padding: 56px 20px;
  }
}

/* ============================================================
   IMAGE BREAK — Full-width visual between sections
   ============================================================ */
.image-break {
  width: 100%;
  line-height: 0; /* remove inline-block gap */
  overflow: hidden;
  position: relative;
}

.image-break-img {
  width: 100%;
  height: auto;
  display: block;
  /* No object-fit or max-height — let the full image render at its natural
     aspect ratio so no text or content is ever cropped */
  filter: brightness(0.95);
  transition: filter 0.3s ease;
}

.image-break:hover .image-break-img {
  filter: brightness(1);
}

/* ============================================================
   SCROLL-REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
