/* ---------- CUSTOM FONT ---------- */
@font-face {
  font-family: 'CocogooseCompressedThin';
  src: url('Cocogoose-Compressed-Thin-trial.ttf') format('truetype');
}

/* ---------- THEME VARIABLES (UPDATED) ---------- */
/* Merged color theme from the previous design into your variable structure */
:root {
  --color-bg: #f9f9f9;                 /* Light gray page background */
  --color-text: #333333;               /* Standard dark text */
  --color-section-bg: #ffffff;         /* White background for main sections */
  --color-card-bg: #ffffff;            /* White background for service items */
  --color-accent: #29a9e0;             /* Primary bright blue */
  --color-cta-bg: #29a9e0;              /* Using the same accent for the main CTA */
  --nav-bg: #404a4d;                   /* Dark gray for Nav from your new layout */
}

/* ---------- RESET & BASE ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background: var(--color-bg);
  color: var(--color-text);
  scroll-padding-top: 100px;
  overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 60px 0; background: var(--color-section-bg); }
.full-width-section { width: 100%; }

/* ===================================================================== */
/* ========== REVISED DESKTOP HEADER (Your Layout) ========== */
/* ===================================================================== */

.site-header {
  background: var(--nav-bg); /* Using variable for consistency */
  position: sticky; top: 0; width: 100%; z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.desktop-nav-wrapper {
  display: contents; 
}

.logo-area {
  flex-shrink: 0;
  padding: 0 30px; /* Spacing between logo and links */
}

.logo-image {
  max-height: 70px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
}

.nav-group-left {
  flex: 1;
  justify-content: flex-end;
}

.nav-group-right {
  flex: 1;
  justify-content: flex-start;
}

.nav-links li {
  padding: 0;
}

.nav-links a {
  font-family: 'CocogooseCompressedThin', sans-serif;
  text-transform: uppercase;
  color: #f0f0f0;
  text-decoration: none;
  border-radius: 4px;
  font-weight: normal;
  font-size: 26px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px; 
}
.nav-links a:hover, .nav-links a.active { background: var(--color-accent); color: #fff; }

.logo-link-mobile, .nav-toggle { display: none; }


/* ===================================================================== */
/* ========================= (REST OF CSS) ========================= */
/* ===================================================================== */


/* ---------- HERO (UPDATED IMAGE) ---------- */
.hero-section {
  /* Using the Winnipeg photo with a dark overlay for better text contrast */
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
              url('images/hero-winnipeg.jpg') center 25%/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 140px 0;
}
.hero-content h1 { font-size: 3em; margin: 0 0 20px; font-weight: 700; }
.hero-content .tagline { font-size: 1.4em; margin-bottom: 35px; font-weight: 300; opacity: 0.9; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 5px;
  font-weight: bold; transition: 0.3s; margin: 5px; border: none; cursor: pointer;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: #178fca; transform: translateY(-3px); box-shadow: 0 4px 15px rgba(0, 0, 0, .2); }
.btn-secondary { background: transparent; color: var(--color-accent); border: 2px solid var(--color-accent); }
.btn-secondary:hover { background: var(--color-accent); color: #fff; transform: translateY(-3px); box-shadow: 0 4px 15px rgba(0,174,239,.3); }
.btn-cta {
  background: #fff; color: var(--color-accent);
  padding: 16px 40px; font-size: 1.05em; border-radius: 5px; font-weight: bold;
}
.btn-cta:hover { background: #e6e6e6; transform: translateY(-3px); }

/* ---------- SECTION TITLE ---------- */
.section-title {
  font-family: 'CocogooseCompressedThin', sans-serif;
  font-weight: normal; 
  text-transform: uppercase; 
  font-size: 2.8em; 
  letter-spacing: 1px; 
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-text); 
  position: relative;
}
.section-title::after {
  content: ''; display: block; width: 70px; height: 4px; background: var(--color-accent);
  margin: 15px auto 0; transform: scaleX(0); transform-origin: center;
  transition: transform 0.6s cubic-bezier(.19,1,.22,1) 0.2s;
}
.section-title.is-visible::after { transform: scaleX(1); }

/* ---------- SERVICES ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 35px; text-align: center; }
.service-item {
  background: var(--color-card-bg); /* Using variable for white cards */
  padding: 35px 25px; border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,.07); transition: 0.35s;
}
.service-item:hover { transform: translateY(-8px) scale(1.03); box-shadow: 0 12px 35px rgba(44,62,80,.15); }
.service-icon { font-size: 48px; margin-bottom: 20px; color: var(--color-accent); }

/* ---------- ABOUT ---------- */
.about-content { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.about-text { flex: 1 1 320px; }
.about-image { flex: 1 1 320px; }
.about-image img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,.1); }

/* ---------- CTA SECTION ---------- */
.cta-section { background: var(--color-cta-bg); color: white; text-align: center; padding: 80px 20px; }
.cta-container { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; align-items: center; }
.cta-title { font-size: 2.2em; font-weight: 700; }
.cta-text  { font-size: 1.2em; line-height: 1.6; max-width: 600px; }

/* ---------- FOOTER ---------- */
.site-footer-bar { background: #2c3e50; color: #bdc3c7; text-align: center; padding: 20px 0; font-size: 0.9em; }

/* ---------- UTILITY CLASS ---------- */
.text-center {
  text-align: center;
}

/* ---------- CONTACT PAGE STYLES ---------- */
#contact-page.container {
  padding-left: 50px;
  padding-right: 50px;
}
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}
.contact-form {
  flex: 1 1 500px;
}
.contact-details {
  flex: 1 1 350px;
  line-height: 1.8;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1em;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(41, 169, 224, 0.2);
}
.contact-form .btn-primary {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
}
.contact-details p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.contact-details p i {
  font-size: 20px;
  color: var(--color-accent);
  margin-top: 4px;
  flex-shrink: 0;
}
.contact-details a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}
.contact-details a:hover {
  text-decoration: underline;
}

/* ---------- PROJECTS PAGE STYLES ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.project-card {
  background: var(--color-section-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .07);
  transition: 0.35s;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(44, 62, 80, .15);
}
.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.project-info {
  padding: 25px;
  flex-grow: 1;
}
.project-info h3 {
  margin-bottom: 10px;
  color: var(--color-text);
}
.project-info p {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555;
}

/* ---------- MOBILE TOP NAV (Your Layout) ---------- */
.mobile-top-nav {
  position: fixed; top: 0; left: 0; width: 100%;
  background: var(--nav-bg); /* Using variable for consistency */
  display: none; justify-content: space-around; align-items: center;
  padding: 6px 4px; height: 60px; z-index: 1000;
}
.top-nav-link, .top-nav-logo {
  color: #f0f0f0; text-decoration: none; font-size: 0.8em;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  flex: 1 1 20%; text-align: center;
}
.top-nav-link i { font-size: 22px; }
.top-nav-link span { line-height: 1; }
.top-nav-logo img {
  height: 47px;
  width: auto;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .site-header { display: none; } 
  .mobile-top-nav { display: flex; }
  body { padding-top: 60px; }
  .section-padding {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .hero-section { padding: 50px 0; }
  .hero-content h1 { font-size: 2.4em; }
  .hero-content .tagline { font-size: 1.15em; margin-bottom: 28px; }
  .section-title, .cta-title { font-size: 2em; }
  #contact-page.container {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (max-width: 480px) {
  .hero-section { padding: 45px 0; }
  .hero-content h1 { font-size: 1.9em; }
  .hero-content .tagline { font-size: 1em; margin-bottom: 22px; }
  .btn, .btn-cta { width: calc(100% - 10px); max-width: 320px; margin: 10px auto; font-size: 0.95em; padding: 12px 20px; }
  .services-grid, .projects-grid { grid-template-columns: 1fr; }
}