/* ============ WINCON - Design Build Company ============ */
:root {
  --brand: #e10330;
  --brand-dark: #b40226;
  --dark: #1c1e22;
  --grey: #55565a;
  --light: #f5f6f8;
  --white: #ffffff;
  --font: 'Titillium Web', 'Helvetica Neue', Arial, sans-serif;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--grey);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-dark); }
ul { padding-left: 1.2em; }
li { margin-bottom: .3em; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-block;
  padding: 10px 26px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background .2s, color .2s;
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--dark); }
.btn-light:hover { background: var(--brand); color: var(--white); }

/* ============ HEADER ============ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 6px rgba(0,0,0,.12);
  height: var(--header-h);
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo img { height: 34px; width: auto; }
#nav { margin-left: auto; }
#nav ul { list-style: none; display: flex; gap: 28px; padding: 0; }
#nav ul li { margin: 0; }
#nav a {
  color: var(--dark);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
#nav a:hover, #nav a.active { color: var(--brand); border-bottom-color: var(--brand); }
.facebook-icon { color: var(--dark); display: flex; align-items: center; }
.facebook-icon:hover { color: var(--brand); }

#menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  width: 34px; height: 30px;
  position: relative;
}
#menu-toggle span {
  display: block;
  height: 3px;
  background: var(--dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
#menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#menu-toggle.open span:nth-child(2) { opacity: 0; }
#menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 480px;
  margin-top: var(--header-h);
  overflow: hidden;
  background: var(--dark);
}
.slideshow, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity .8s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 55%);
}
.slide-caption {
  position: absolute;
  left: 8%;
  bottom: 14%;
  z-index: 2;
  color: var(--white);
  max-width: 560px;
}
.slide-caption h3 {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.slide-caption p {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 300;
  margin-bottom: 22px;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.slide-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.slide-dots button {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}
.slide-dots button.active { background: var(--brand); border-color: var(--brand); }
.scroll-down {
  position: absolute;
  right: 32px;
  bottom: 16px;
  z-index: 3;
  color: var(--white);
  font-size: 34px;
  transform: rotate(90deg);
  opacity: .8;
  line-height: 1;
}
.scroll-down:hover { color: var(--brand); opacity: 1; }

/* ============ SECTIONS ============ */
.section { padding: 90px 0; }
.section-alt { background: var(--light); }
.section-dark { background: var(--dark); color: #cfd2d6; }

.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 36px;
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 64px; height: 4px;
  background: var(--brand);
}
.section-dark .section-title { color: var(--white); }
.section-intro { max-width: 760px; font-size: 19px; margin-bottom: 48px; }

/* ============ ABOUT ============ */
.about-content { max-width: 800px; }
.about-content .lead { font-size: 24px; font-weight: 400; color: var(--dark); margin-bottom: 14px; }
.about-content p { margin-bottom: 12px; }
.about-services {
  list-style: none;
  padding: 0;
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.about-services a {
  display: block;
  padding: 14px 18px;
  background: var(--light);
  border-left: 4px solid var(--brand);
  color: var(--dark);
  font-weight: 600;
  transition: background .2s, color .2s;
}
.about-services a:hover { background: var(--brand); color: var(--white); }

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid #e5e7ea;
  border-top: 4px solid var(--brand);
  border-radius: 4px;
  padding: 32px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 16px;
}
.service-card .service-lead { font-weight: 400; color: var(--dark); font-size: 18px; }
.service-card p { margin-bottom: 12px; }
.service-card ul { margin: 8px 0 4px; columns: 2; }

/* ============ PORTFOLIO ============ */
.projects { display: flex; flex-direction: column; gap: 64px; }
.project {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 36px;
  padding-bottom: 56px;
  border-bottom: 1px solid #e5e7ea;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.project:last-child { border-bottom: none; padding-bottom: 0; }
.project-info h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}
.project-info p { margin-bottom: 12px; }
.project-brief {
  background: var(--light);
  border-left: 4px solid var(--brand);
  padding: 18px 22px;
  margin-top: 18px;
}
.project-brief dt {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand);
  margin-top: 10px;
}
.project-brief dt:first-child { margin-top: 0; }
.project-brief dd { margin: 0 0 4px; color: var(--dark); }
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  align-content: start;
}
.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4 / 3;
  background: #ddd;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease, opacity .35s ease;
}
.gallery-item:hover img { transform: scale(1.06); opacity: .9; }

/* ============ NEWS ============ */
.news-article {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 40px;
  align-items: start;
  background: var(--white);
  border: 1px solid #e5e7ea;
  border-radius: 4px;
  overflow: hidden;
}
.news-image img { width: 100%; height: 100%; object-fit: cover; }
.news-content { padding: 36px 36px 36px 0; }
.news-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.news-content p { margin-bottom: 12px; }

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-address { font-size: 19px; color: var(--white); margin-bottom: 22px; }
.contact-list { list-style: none; padding: 0; margin-bottom: 30px; font-size: 18px; }
.contact-list li { margin-bottom: 8px; }
.contact-label { font-weight: 700; color: var(--brand); display: inline-block; width: 24px; }
.contact-list a { color: var(--white); }
.contact-list a:hover { color: var(--brand); }
.contact-map iframe {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: 4px;
  filter: grayscale(.25);
}

/* ============ FOOTER ============ */
footer {
  background: #141518;
  color: #8a8d92;
  padding: 32px 0;
  font-size: 14px;
  text-align: center;
}
.back-to-top {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
}

/* ============ LIGHTBOX ============ */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 88vw; max-height: 86vh; border-radius: 3px; }
#lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  font-size: 42px;
  cursor: pointer;
  padding: 12px 18px;
  opacity: .75;
  transition: opacity .2s;
}
#lightbox button:hover { opacity: 1; color: var(--brand); }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .project, .news-article, .contact-grid { grid-template-columns: 1fr; }
  .news-content { padding: 0 24px 28px; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  #menu-toggle { display: block; }
  #nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 6px 12px rgba(0,0,0,.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  #nav.open { max-height: 400px; }
  #nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  #nav a { display: block; padding: 12px 24px; border-bottom: none; }
  #nav a:hover, #nav a.active { background: var(--light); }
  .facebook-icon { display: none; }
  .section { padding: 60px 0; }
  .slide-caption { left: 6%; right: 6%; }
  .service-card ul { columns: 1; }
  .scroll-down { display: none; }
}
