/* Bastion Exteriors - Professional Build */
:root {
  --navy: #0a1628;
  --navy-deep: #060e1a;
  --navy-card: #111f33;
  --navy-mid: #152a42;
  --orange: #e85d04;
  --orange-hover: #ff6f1a;
  --orange-soft: rgba(232, 93, 4, 0.15);
  --white: #ffffff;
  --off: #f4f6f9;
  --text: #0e1620;
  --muted: #6b7785;
  --silver: #a8b4c4;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 10px 40px rgba(10, 22, 40, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232, 93, 4, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-phone {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  padding: 12px 20px;
  font-size: 15px;
  gap: 8px;
}
.btn-phone:hover { background: var(--orange-hover); }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo img {
  height: 72px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav a:hover { color: var(--white); }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.25s;
}
.nav a:hover::after { width: 100%; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy-deep);
  padding-top: 92px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6,14,26,0.94) 0%, rgba(6,14,26,0.75) 45%, rgba(6,14,26,0.45) 100%),
    url('../images/1186.jpg') right center / cover no-repeat;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 100px;
  max-width: 620px;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--orange); }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Services */
.services {
  padding: 100px 0;
  background: var(--white);
}
.section-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-title {
  text-align: center;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.svc-card {
  background: var(--navy);
  border-radius: 12px;
  padding: 32px 20px 28px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid transparent;
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10, 22, 40, 0.25);
  border-color: rgba(232, 93, 4, 0.3);
}
.svc-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--orange);
  border-radius: 12px;
  color: var(--orange);
  font-size: 22px;
}
.svc-card h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.35;
}
.svc-card p {
  font-size: 13px;
  color: var(--silver);
  line-height: 1.55;
}

/* Why */
.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.why-text {
  background: var(--navy);
  color: var(--white);
  padding: 80px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.why-text .section-label { text-align: left; margin-bottom: 14px; }
.why-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  line-height: 1.15;
}
.why-text > p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  font-size: 1.05rem;
  max-width: 420px;
}
.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.why-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.why-stat .icon {
  color: var(--orange);
  font-size: 22px;
  margin-bottom: 4px;
}
.why-stat strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.why-stat span {
  font-size: 13px;
  color: var(--silver);
}
.why-img {
  background: url('../images/770.jpg') center / cover no-repeat;
  min-height: 400px;
}

/* Process */
.process {
  padding: 100px 0;
  background: var(--off);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border-top: 3px solid var(--orange);
  box-shadow: 0 4px 20px rgba(10,22,40,0.04);
}
.process-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 12px;
}
.process-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.process-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Projects */
.projects {
  padding: 100px 0 110px;
  background: var(--white);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 40px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.projects-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px;
  width: 100%;
}
.project-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.28s ease;
  min-width: 0;
  width: 100%;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.project-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--navy-mid);
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.project-card:hover .project-img img { transform: scale(1.06); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.8) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay span {
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--orange);
  padding: 8px 14px;
  border-radius: 4px;
}
.project-info { padding: 20px 20px 22px; }
.project-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}
.project-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.project-info p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(6, 14, 26, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
}
.modal.open {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.modal-inner {
  background: var(--white);
  border-radius: 14px;
  max-width: 960px;
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}
.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--off);
  color: var(--navy);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--border); }
.modal-body {
  padding: 24px 28px 32px;
  overflow-y: auto;
}
.modal-desc {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.65;
}
.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.modal-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}
.modal-gallery img:hover { transform: scale(1.02); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 26px;
  border-radius: 50%;
  cursor: pointer;
}

/* Contact strip */
.contact-strip {
  background: var(--off);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.contact-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.strip-icon {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 20px;
  flex-shrink: 0;
}
.strip-item strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.strip-item a,
.strip-item span {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}
.strip-item a:hover { color: var(--orange); }

/* Contact form section */
.contact {
  padding: 100px 0;
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact-info h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.contact-info > p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1.05rem;
}
.contact-form {
  background: var(--off);
  padding: 36px 32px;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-submit { width: 100%; margin-top: 8px; }

/* Footer */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.footer-brand img {
  height: 80px;
  width: auto;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 14px;
  max-width: 300px;
  line-height: 1.65;
}
.footer-brand .tag {
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-top: 10px;
}
.footer-cols {
  display: flex;
  gap: 48px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .why { grid-template-columns: 1fr; }
  .why-img { min-height: 320px; order: -1; }
  .why-text { padding: 56px 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-strip-grid { grid-template-columns: 1fr; gap: 20px; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 768px) {
  .header-inner { height: 76px; }
  .logo img { height: 56px; }
  .nav {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .header .btn-phone { display: none; }
  .hero { min-height: 85vh; }
  .hero-content { padding: 56px 0 70px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr !important; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-cols { flex-wrap: wrap; gap: 32px; }
  .modal-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .modal-gallery { grid-template-columns: 1fr; }
}
