/* ============================================================
   Winco Mechanical Insulation Ltd. - Main Stylesheet
   Font: Montserrat (Google Fonts)
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: rgba(255,255,255,0.9);
  background: #333333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- CSS Variables ---------- */
:root {
  --navy:       #222222;
  --navy-light: #2a2a2a;
  --accent:     #fbcb20;
  --accent-hover: #e5b800;
  --light-bg:   #3d3d3d;
  --white:      #ffffff;
  --text-dark:  rgba(255,255,255,0.9);
  --text-mid:   rgba(255,255,255,0.7);
  --text-light: rgba(255,255,255,0.5);
  --border:     rgba(255,255,255,0.18);
  --radius:     8px;
  --shadow:     0 4px 24px rgba(0,0,0,0.35);
  --transition: 0.25s ease;
}

/* ============================================================
   NAVBAR
   ============================================================ */
:root {
  --gold: #fbcb20;
  --gold-hover: #fcd94a;
  --nav-bg: #0d0d0d;
}

/* Brand name highlight */
.winco-name {
  color: #fbcb20;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  height: 72px;
  display: flex;
  align-items: center;
}

.navbar__inner {
  max-width: 100%;
  width: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo: icon + text side by side */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__logo img {
  height: 40px;
  width: auto;
}

.navbar__logo-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Center nav links */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.navbar__links a {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.navbar__links a:hover {
  color: var(--gold);
}

.navbar__links a.active {
  color: var(--gold);
}

/* Contact Us — outlined, far right */
.navbar__cta {
  background: transparent;
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 0;
  border: 1.5px solid rgba(255,255,255,0.6) !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.navbar__cta:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: var(--white) !important;
  color: var(--white) !important;
}

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

.navbar__hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.navbar__mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: #111111;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  padding: 20px 24px 28px;
  z-index: 999;
}

.navbar__mobile.open {
  display: block;
}

.navbar__mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.navbar__mobile ul a {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  display: block;
  padding: 4px 0;
  transition: color var(--transition);
}

.navbar__mobile ul a:hover {
  color: var(--gold);
}

.navbar__mobile .mobile-cta {
  margin-top: 16px;
  display: block;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white) !important;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 700;
}

/* ============================================================
   PAGE OFFSET (for fixed nav)
   ============================================================ */
.page-top {
  padding-top: 72px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/project-work/IMG_0590.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}

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

.hero__tag {
  display: inline-block;
  background: rgba(37,99,235,0.85);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  max-width: 660px;
  margin-bottom: 18px;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin-bottom: 36px;
  font-weight: 500;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #1a1a1a;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section {
  padding: 80px 24px;
}

.section--light {
  background: var(--light-bg);
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 680px;
  line-height: 1.75;
}

.section--dark .section__desc {
  color: rgba(255,255,255,0.75);
}

/* ============================================================
   VISION STRIP
   ============================================================ */
.vision {
  background: var(--navy);
  padding: 56px 24px;
}

.vision__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.vision__quote {
  position: relative;
  padding: 0 40px;
}

.vision__quote-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  opacity: 0.6;
  filter: invert(1);
}

.vision__text {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  line-height: 1.8;
  font-style: italic;
}

/* ============================================================
   COMPANY OVERVIEW (two-col)
   ============================================================ */
.overview__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.overview__img-wrap {
  position: relative;
}

.overview__img-wrap img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.overview__badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  overflow: hidden;
}

.overview__badge img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.overview__list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overview__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-mid);
}

.overview__list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   WHY CHOOSE WINCO (3 cards)
   ============================================================ */
.cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.card {
  background: #3d3d3d;
  border-radius: 12px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.14);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(83%) sepia(70%) saturate(700%) hue-rotate(5deg) brightness(1.05);
}

.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.card__text {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ============================================================
   PROJECTS PREVIEW (home) / FULL GALLERY
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.projects-grid--full {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin-top: 48px;
}

.project-item {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
  background: #444444;
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-item:hover img {
  transform: scale(1.05);
}

.project-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,28,46,0.5);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
}

.project-item:hover .project-item__overlay {
  opacity: 1;
}

.project-item__overlay svg {
  color: white;
  width: 40px;
  height: 40px;
}

.projects-cta {
  text-align: center;
  margin-top: 40px;
}

/* ============================================================
   VIDEO THUMBNAIL (links to YouTube)
   ============================================================ */
.video-thumb {
  display: block;
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  text-decoration: none;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.video-thumb:hover img {
  transform: scale(1.03);
}

.video-thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  transition: background 0.25s ease;
}

.video-thumb:hover .video-thumb__play {
  background: rgba(0,0,0,0.1);
}

.video-thumb__play svg {
  width: 72px;
  height: 52px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transition: transform 0.2s ease;
}

.video-thumb:hover .video-thumb__play svg {
  transform: scale(1.1);
}

.video-thumb__label {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 4px;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox__img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox__img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 6px;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox__prev,
.lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 1.75rem;
  padding: 16px 20px;
  cursor: pointer;
  border-radius: 4px;
  transition: background var(--transition);
  z-index: 10000;
}

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: #1e2a38;
  padding: 64px 24px;
  text-align: center;
}

.cta-banner__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-banner__text {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-white {
  background: var(--white);
  color: #222222;
  border-color: var(--white);
  font-weight: 700;
}

.btn-white:hover {
  background: rgba(255,255,255,0.9);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact__info {
  padding-top: 8px;
}

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact__info-icon {
  width: 40px;
  height: 40px;
  background: #444444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__info-icon img {
  width: 20px;
  height: 20px;
}

.contact__info-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact__info-value {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text-dark);
}

.contact__form {
  background: #3d3d3d;
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__group {
  margin-bottom: 20px;
}

.form__group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  margin-bottom: 8px;
}

.form__group input,
.form__group textarea,
.form__group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  background: #2d2d2d;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.form__group textarea {
  resize: vertical;
  min-height: 120px;
}

.form__char-count {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: right;
  margin-top: 4px;
}

.form__submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #1a1a1a;
  border: none;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  letter-spacing: 0.04em;
}

.form__submit:hover {
  background: var(--accent-hover);
}

.form__success {
  display: none;
  text-align: center;
  padding: 20px;
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  border-radius: var(--radius);
  margin-top: 16px;
  color: #065f46;
  font-weight: 600;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  background: var(--navy);
  padding: 100px 24px 80px;
  text-align: center;
}

.about-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.about-hero__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}

.about-body p {
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1rem;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px;
  background: #3d3d3d;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  border-left: 4px solid var(--accent);
}

.service-item__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--accent);
}

.service-item__text {
  font-size: 0.9rem;
  color: var(--text-mid);
  font-weight: 500;
  line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 56px 24px 28px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
  opacity: 0.85;
}

.footer__tagline {
  font-size: 0.875rem;
  line-height: 1.75;
  max-width: 280px;
}

.footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--white);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.75);
}

.footer__contact-item img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  flex-shrink: 0;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 80px 24px 60px;
}

.page-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.page-hero__title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero__desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  max-width: 600px;
  line-height: 1.75;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .overview__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .overview__badge {
    right: 0;
    bottom: -16px;
  }

  .cards__grid {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .navbar__logo-text {
    display: none;
  }

  .navbar__cta {
    display: none;
  }

  .navbar__links {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .hero__inner {
    padding: 80px 24px 60px;
  }

  .section {
    padding: 60px 24px;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .contact__form {
    padding: 28px 20px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }

  .lightbox__prev { left: 6px; }
  .lightbox__next { right: 6px; }
}
