/* ==========================================================================
   RER Construction - Self-contained CSS
   Exact replica of original WordPress/Astra/Elementor site
   ========================================================================== */

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  font-size: 1rem;
  line-height: 1.7;
  color: #222222;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #ff0000;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover, a:focus {
  color: #fb2056;
}

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

ul, ol {
  list-style: none;
}

blockquote {
  color: #000000;
  padding: 1.2em;
}

::selection {
  background-color: #ff0000;
  color: #ffffff;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #222222;
  margin: 0 0 0.5em;
}

h1 {
  font-size: 64px;
  font-size: 4rem;
  text-transform: uppercase;
}

h2 {
  font-size: 40px;
  font-size: 2.5rem;
  line-height: 1.4;
  text-transform: uppercase;
}

h3 {
  font-size: 24px;
  font-size: 1.5rem;
}

h4 {
  font-size: 20px;
  font-size: 1.25rem;
}

h5 {
  font-size: 18px;
  font-size: 1.125rem;
}

h6 {
  font-size: 15px;
  font-size: 0.9375rem;
}

p {
  margin: 0 0 1em;
}

/* ---------- Container ---------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 30px;
  padding: 17px 40px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  font-size: 0.875rem;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.btn-red,
.btn-primary {
  background-color: #ff0000;
  color: #ffffff;
  border: none;
}

.btn-red:hover,
.btn-red:focus,
.btn-primary:hover,
.btn-primary:focus {
  background-color: #ff0000;
  color: #ffffff;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 0;
  transition: background 0.3s;
}

.site-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 22px;
  font-size: 1.375rem;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.logo:hover,
.logo:focus,
.logo:visited {
  color: #ffffff;
}

.logo .site-title {
  font-size: 22px;
  font-size: 1.375rem;
}

.logo .site-description {
  font-size: 15px;
  font-size: 0.9375rem;
  font-weight: 400;
  font-family: 'Noto Sans', sans-serif;
  opacity: 0.9;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav ul li {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.main-nav ul li a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: #ffffff;
  font-family: 'Noto Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
  height: 100%;
}

.main-nav ul li a:hover,
.main-nav ul li a:focus,
.main-nav ul li a.active {
  color: #ffffff;
}

/* Nav button (Download Safety Program) */
.main-nav ul li a.nav-btn {
  background-color: #ff0000;
  color: #ffffff;
  border-radius: 30px;
  padding: 12px 25px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  margin-left: 5px;
}

.main-nav ul li a.nav-btn:hover {
  background-color: #cc0000;
  color: #ffffff;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: 0.3s;
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.nav-overlay.active {
  display: block;
}

/* ---------- Hero Section (Homepage) ---------- */
.hero {
  position: relative;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  padding: 270px 0 240px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #040219;
  opacity: 0.55;
  transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 79%;
  margin: 0 auto;
}

.hero-subtitle {
  color: #ffffff;
  text-align: center;
  display: none;
}

.hero-divider {
  width: 8%;
  height: 2px;
  background-color: #fb2056;
  margin: -6px auto 0;
}

.hero-content h2 {
  color: #ffffff;
  text-align: center;
  text-transform: none;
  padding: 13px 0 20px;
  font-size: 64px;
  font-size: 4rem;
  margin-bottom: 0;
}

.hero-content .btn {
  margin-top: 10px;
}

/* ---------- Inner Page Hero Banner ---------- */
.inner-hero {
  position: relative;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 230px 0 190px;
  text-align: center;
}

.inner-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000000;
  opacity: 0.4;
}

.inner-hero-content {
  position: relative;
  z-index: 1;
  max-width: 59.332%;
  margin: 0 auto;
}

.inner-hero-content h1 {
  color: #ffffff;
  text-align: center;
  font-size: 64px;
  font-size: 4rem;
  margin: 0;
  text-transform: uppercase;
}

/* ---------- Quote Section ---------- */
.quote-section {
  background-color: #f4f5f9;
  padding: 50px 0 40px;
  transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
}

.quote-layout {
  display: flex;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.quote-image-col {
  width: 15%;
  text-align: right;
  flex-shrink: 0;
}

.quote-image-col .quote-img {
  width: 75%;
  display: inline-block;
  margin-left: auto;
}

.quote-text-col {
  width: 69%;
  position: relative;
  padding: 0 20px;
}

.quote-text-col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/quote-1.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.07;
  pointer-events: none;
}

.quote-text-col blockquote {
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  color: #000000;
  padding: 0;
  margin: 0;
  border: none;
  position: relative;
  z-index: 1;
}

.quote-author {
  text-align: center;
  margin-top: -11px;
  position: relative;
  z-index: 1;
}

/* ---------- Gallery Section ---------- */
.gallery-section {
  padding: 100px 0;
}

.gallery-section h2 {
  text-align: center;
  margin-bottom: 0;
}

.gallery-divider {
  width: 8%;
  height: 3px;
  background-color: #fb2056;
  margin: 0 auto;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  padding-top: 60px;
}

.gallery-item {
  width: 25%;
  padding: 0;
  text-align: center;
}

.gallery-item img {
  width: 88%;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 10px 10px 0px 1px rgba(0, 0, 0, 0.07);
  filter: brightness(103%) contrast(96%) saturate(81%) blur(0px) hue-rotate(336deg);
}

.gallery-item:nth-child(n+5) {
  padding-top: 60px;
}

/* ---------- Section / Content ---------- */
.section {
  padding: 60px 0;
}

.section-divider {
  width: 12%;
  height: 3px;
  background-color: #fb2056;
  margin: 0 0 30px;
}

.simple-content {
  max-width: 800px;
  margin: 0 auto;
}

.simple-content p {
  margin-bottom: 1em;
}

/* ---------- About Page ---------- */
.about-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.about-text-col {
  flex: 1;
  padding-right: 60px;
}

.about-text-col h2 {
  text-align: left;
  margin-bottom: 5px;
}

.about-image-col {
  width: 40%;
  flex-shrink: 0;
}

.about-image {
  width: 100%;
  border-radius: 4px;
  box-shadow: 10px 10px 0px 1px rgba(0, 0, 0, 0.07);
  filter: brightness(103%) contrast(96%) saturate(81%) blur(0px) hue-rotate(336deg);
}

.about-bottom-row {
  display: flex;
  gap: 40px;
  margin-top: 60px;
}

.about-bottom-col {
  flex: 1;
}

.about-bottom-col h4 {
  margin-bottom: 10px;
}

.about-bottom-col ul {
  list-style: disc;
  padding-left: 1.5em;
}

.about-bottom-col ul li {
  margin-bottom: 0.3em;
}

/* ---------- What We Do Page ---------- */
.whatwedo-content {
  max-width: 900px;
  margin: 0 auto;
}

.whatwedo-content h2 {
  text-align: left;
  margin-bottom: 5px;
}

.content-image {
  width: 100%;
  max-width: 450px;
  margin: 20px 0;
  border-radius: 4px;
  box-shadow: 10px 10px 0px 1px rgba(0, 0, 0, 0.07);
  filter: brightness(103%) contrast(96%) saturate(81%) blur(0px) hue-rotate(336deg);
}

.whatwedo-content ul {
  list-style: disc;
  padding-left: 2em;
  margin-bottom: 1.5em;
}

.whatwedo-content ul li {
  margin-bottom: 0.4em;
  line-height: 1.7;
}

/* ---------- Contact Page ---------- */
.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-content h2 {
  text-align: center;
  margin-bottom: 10px;
}

.isqft-note {
  font-style: italic;
  text-align: center;
  margin-bottom: 30px;
  color: #555;
}

.form-group {
  margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #dddddd;
  border-radius: 0;
  font-family: 'Noto Sans', sans-serif;
  font-size: 16px;
  font-size: 1rem;
  line-height: 1.7;
  color: #222222;
  background: #ffffff;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff0000;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info-below {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eaeaea;
}

.contact-info-below p {
  margin-bottom: 0.5em;
}

/* ---------- Insurance / Safety Pages ---------- */
.download-link {
  display: inline-block;
  color: #ff0000;
  font-weight: 600;
  padding: 5px 0;
  font-size: 1rem;
}

.download-link:hover {
  color: #fb2056;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: #191919;
  color: #d3d3d3;
  text-align: center;
  padding: 40px 0 30px;
  border-top: 0;
}

.site-footer p {
  margin-bottom: 0.4em;
  font-size: 14px;
  line-height: 1.7;
}

.site-footer a {
  color: #fb2056;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fb2056;
}

.footer-company {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 10px !important;
}

.copyright {
  margin-top: 15px !important;
  font-size: 13px;
  color: #999;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero {
    padding: 120px 0 100px;
    background-attachment: scroll;
  }

  .inner-hero {
    padding: 120px 0 100px;
  }

  .inner-hero-content {
    max-width: 80%;
  }

  .hero-divider {
    width: 12%;
  }

  .quote-section {
    padding: 50px 0 30px;
  }

  .quote-image-col {
    width: 100%;
    text-align: center;
  }

  .quote-image-col .quote-img {
    max-width: 9%;
  }

  .quote-layout {
    flex-direction: column;
  }

  .quote-text-col {
    width: 100%;
  }

  .quote-author {
    margin-top: 0;
    padding: 0;
  }

  .gallery-section {
    padding: 75px 0 10px;
  }

  .gallery-item {
    width: 50%;
    padding-bottom: 30px;
  }

  .gallery-item:nth-child(n+5) {
    padding-top: 30px;
  }

  .about-layout {
    flex-direction: column;
  }

  .about-text-col {
    padding-right: 0;
  }

  .about-image-col {
    width: 100%;
    max-width: 450px;
  }

  .about-bottom-row {
    flex-direction: column;
  }
}

/* Mobile nav breakpoint (matches Astra 921px) */
@media (max-width: 921px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    z-index: 1001;
    padding: 60px 0 20px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav ul li a {
    color: #222222;
    padding: 12px 20px;
    border-bottom: 1px solid #eaeaea;
    font-size: 15px;
  }

  .main-nav ul li a:hover,
  .main-nav ul li a.active {
    color: #ff0000;
  }

  .main-nav ul li a.nav-btn {
    border-radius: 0;
    margin-left: 0;
    text-align: left;
  }

  /* Inner page mobile: make nav toggle visible on dark hero */
  .inner-page .nav-toggle span {
    background: #ffffff;
  }
}

/* Tablet portrait */
@media (max-width: 768px) {
  html {
    font-size: 91.2%;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 20px;
  }

  .hero-content h2 {
    font-size: 44px;
  }

  .inner-hero-content h1 {
    font-size: 44px;
  }

  .gallery-item {
    width: 50%;
  }
}

/* Phone */
@media (max-width: 544px) {
  html {
    font-size: 100%;
  }

  body {
    font-size: 15px;
    font-size: 0.9375rem;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-content {
    max-width: 95%;
  }

  .hero-content h2 {
    font-size: 30px;
    padding: 10px 0 15px;
  }

  .inner-hero {
    padding: 90px 0 70px;
  }

  .inner-hero-content {
    max-width: 90%;
  }

  .inner-hero-content h1 {
    font-size: 30px;
  }

  .quote-section {
    padding: 35px 0 20px;
  }

  .quote-image-col .quote-img {
    width: 31%;
    max-width: 22%;
  }

  .gallery-section {
    padding: 55px 0 0;
  }

  .gallery-divider {
    width: 18%;
  }

  .gallery-item {
    width: 100%;
    padding: 20px 0;
  }

  .gallery-item:nth-child(n+5) {
    padding-top: 20px;
  }

  .section {
    padding: 40px 0;
  }
}
