/* Cordrey Fencing — Static Site Stylesheet */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/open-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/open-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: #212529;
  background: #f8f9fa;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  line-height: 1.2;
  color: #212529;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 138px;
  background: transparent;
  transition: background 0.3s, height 0.3s;
}

.navbar.scrolled {
  background: #5F000E;
  height: 88px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.navbar-brand img {
  height: 43px;
  width: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.navbar-nav .nav-item { position: relative; }

.navbar-nav .nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: background 0.2s;
  white-space: nowrap;
}

.navbar-nav .nav-link:hover { background: transparent; color: rgba(255,255,255,0.65); }

.navbar-nav .nav-link.active {
  border: 1px solid white;
  border-radius: 6.4px;
  padding: 8px 24px;
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #f8f9fa;
  border-radius: 4px;
  box-shadow: none;
  min-width: 220px;
  padding: 0.5rem 0;
  z-index: 100;
}

.nav-item:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 4px 16px;
  color: #212529;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.dropdown-menu a:hover { background: #e9ecef; color: #5F000E; }

.navbar-phone {
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.navbar-phone a { color: white; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: #5F000E;
  color: white;
  padding: 6px 16px;
  border: 1px solid #5F000E;
  font-size: 0.95rem;
}

.btn-primary:hover { background: #51000c; border-color: #4c000b; color: white; }

/* Hero and CTA buttons are larger */
.hero .btn-primary,
.cta-banner .btn-primary {
  padding: 14px 26px;
  font-size: 1rem;
}

/* Hero button adds a subtle off-white border */
.hero .btn-primary {
  border: 2px solid rgb(243, 242, 242);
}

.btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline-light:hover { background: white; color: #5F000E; }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 800px;
  padding: 0 1.5rem;
}

.hero-content h1 {
  color: white;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.hero-dot {
  width: 30px;
  height: 4px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}

.hero-dot.active { background: white; }

/* ===== PAGE HEADER (interior pages) ===== */
.page-header {
  background: rgba(0,0,0,0.5);
  padding: 24px 0;
  margin-top: 88px;
  text-align: center;
}

.page-header h1 {
  color: white;
  font-size: 2.2rem;
}

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.section-alt { background: #f8f9fa; }
.section-white { background: white; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* ===== TWO-COLUMN LAYOUT ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col.text-left .col-text { order: 1; }
.two-col.text-left .col-img  { order: 2; }

.col-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 4px;
}

/* ===== SERVICE CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: white;
  border-radius: 6.4px;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid rgba(33,37,41,0.15);
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 { margin-bottom: 0.75rem; font-size: 1.2rem; }
.card-body p  { flex: 1; color: #555; font-size: 0.95rem; margin-bottom: 1.25rem; }
.card-body .btn { align-self: center; }

/* ===== FAQ ACCORDION ===== */
.faq-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.faq-img img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 4px;
}

.accordion-item {
  border-bottom: 1px solid #dee2e6;
}

.accordion-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 0;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #212529;
}

.accordion-btn .chevron {
  font-size: 1.2rem;
  transition: transform 0.2s;
  color: #5F000E;
}

.accordion-btn.open .chevron { transform: rotate(180deg); }

.accordion-body {
  display: none;
  padding: 0 0 1rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.accordion-body.open { display: block; }

/* ===== TESTIMONIAL ===== */
.testimonial-section {
  background: #f8f9fa;
  padding: 4rem 0;
  text-align: center;
  position: relative;
}

.testimonial-carousel {
  position: relative;
  min-height: 160px;
}

.testimonial-card {
  display: none;
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  padding: 2.5rem 2rem 2rem;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.testimonial-card.active {
  display: block;
}

.testimonial-icon {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: #5F000E;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.testimonial-quote {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  font-weight: 600;
  color: #212529;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-nav button {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.1rem;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.testimonial-nav button:hover { background: #f8f9fa; }

/* ===== BRAND LOGOS ===== */
.brands-section { background: white; padding: 96px 0 64px; text-align: center; }
.brands-section h2 { margin-bottom: 0.5rem; }
.brands-section p { color: #666; margin-bottom: 2.5rem; }

.brands-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.brands-logos img {
  height: auto;
  max-height: 90px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.2s;
}

.brands-logos img:hover { opacity: 0.85; }

/* ===== MAP ===== */
.map-section {
  width: 100%;
  line-height: 0;
}

.map-section iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: #f8f9fa;
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 { margin-bottom: 0.75rem; }
.cta-banner p  { color: #666; margin-bottom: 1.75rem; }

/* ===== SERVICE PAGE ===== */
.service-content {
  padding: 4rem 0;
  background: white;
}

/* ===== CONTACT & QUOTE FORMS ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  padding: 4rem 0;
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: 'Open Sans', sans-serif;
  color: #212529;
  background: white;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #5F000E;
  box-shadow: 0 0 0 3px rgba(95,0,14,0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-check { display: flex; gap: 0.5rem; align-items: flex-start; margin-bottom: 0.5rem; }
.form-check input { margin-top: 0.25rem; accent-color: #5F000E; }

.business-info h3 { margin-bottom: 1.25rem; }

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.info-icon { color: #5F000E; font-size: 1rem; }

/* ===== FOOTER ===== */
.footer {
  background: #5F000E;
  color: white;
  font-size: 0.9rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 3rem;
  padding: 3rem 0;
  align-items: start;
}

.footer-brand img {
  height: 100px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.footer-col h2 {
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.footer-contact-item a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-contact-item a:hover { color: white; }

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.footer-social a {
  background: rgba(255,255,255,0.15);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}

.footer-social a:hover { background: rgba(255,255,255,0.3); }

.footer-follow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.footer-follow span { font-size: 0.9rem; color: rgba(255,255,255,0.8); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

/* ===== CHECKLIST ===== */
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 0.4rem 0; font-size: 0.95rem; }
.checklist li::before { content: "✔ "; color: #5F000E; font-weight: 700; }

/* ===== RESPONSIVE ===== */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(255,255,255,0.7);
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.preview-form-note,
.preview-form-status {
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid #5F000E;
  background: #f5ecee;
  color: #3a0009;
}

.preview-form-status { margin-top: 1rem; }

@media (max-width: 900px) {
  .two-col, .faq-section, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .faq-img { display: none; }
  .two-col.text-left .col-img { order: 1; }
  .two-col.text-left .col-text { order: 2; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .navbar { flex-wrap: wrap; padding: 0.75rem 1rem; }
  .navbar-brand { max-width: calc(100% - 120px); }
  .nav-toggle { display: inline-flex; }
  .navbar-phone { margin-left: 0.75rem; }
  .navbar-phone span { display: none; }
  .navbar-nav {
    display: none;
    order: 4;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem 0;
    background: #5F000E;
  }
  .navbar.nav-open .navbar-nav { display: block; }
  .navbar-nav .nav-item { width: 100%; }
  .navbar-nav .nav-link { display: block; padding: 0.8rem 1rem; }
  .dropdown-menu {
    position: static;
    display: block;
    width: 100%;
    box-shadow: none;
    background: rgba(255,255,255,0.08);
  }
  .dropdown-menu a { color: #fff; padding-left: 2rem; }
  .dropdown-menu a:hover { background: rgba(255,255,255,0.12); color: #fff; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
}
