/* --------------------------------------------------------- */
/* GLOBAL RESET                                               */
/* --------------------------------------------------------- */

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

/* --------------------------------------------------------- */
/* GLOBAL VARIABLES                                           */
/* --------------------------------------------------------- */

:root {
  --brand-blue: #7faed1;
  --brand-bg: #0b1d2a;
  --brand-dark: #102a3d;
  --text-light: #ffffff;
  --font-main: 'Century Gothic';
  --font-head: 'Michroma', sans-serif;
}

/* --------------------------------------------------------- */
/* GLOBAL TYPOGRAPHY                                          */
/* --------------------------------------------------------- */

body {
  background-color: var(--brand-bg);
  color: var(--text-light);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* --------------------------------------------------------- */
/* NAVIGATION                                                 */
/* --------------------------------------------------------- */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: var(--brand-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 50px;
  width: auto;
}

/* 🔧 FIX: unify logo size across all pages */
.logo-img {
  height: 50px;
  width: auto;
  max-width: none;
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-blue);
}

.nav a {
  color: var(--brand-blue);
  margin-left: 20px;
  text-decoration: none;
  font-size: 16px;
}

/* --------------------------------------------------------- */
/* HERO SECTIONS — FIXED                                      */
/* --------------------------------------------------------- */

.home-hero,
.about-hero,
.services-hero,
.possibilities-hero,
.products-hero,
.case-studies-hero,
.contact-hero {
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 40px 20px;

  display: flex;
  align-items: flex-end;
  justify-content: flex-end;

  filter: grayscale(40%) brightness(95%) contrast(95%);
}

.home-hero { background-image: url('../img/hero-architecture.jpg'); }
.about-hero { background-image: url('../img/about-hero.png'); }
.services-hero { background-image: url('../img/services-hero.png'); }
.possibilities-hero { background-image: url('../img/possibilities-hero.png'); }
.products-hero { background-image: url('../img/products-hero.png'); }
.case-studies-hero { background-image: url('../img/case-studies-hero.png'); }
.contact-hero { background-image: url('../img/contact-hero.png'); }

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .home-hero { background-image: url('../img/hero-architecture@2x.jpg'); }
  .about-hero { background-image: url('../img/about-hero@2x.png'); }
  .services-hero { background-image: url('../img/services-hero@2x.png'); }
  .possibilities-hero { background-image: url('../img/possibilities-hero@2x.png'); }
  .products-hero { background-image: url('../img/products-hero@2x.png'); }
  .case-studies-hero { background-image: url('../img/case-studies-hero@2x.png'); }
  .contact-hero { background-image: url('../img/contact-hero@2x.png'); }
}

/* --------------------------------------------------------- */
/* HERO TITLE                                                 */
/* --------------------------------------------------------- */

.hero-title {
  font-family: var(--font-head);
  font-size: 42px;
  color: var(--text-light);
  text-align: right;
  letter-spacing: 1px;

  text-shadow:
    0 0 22px rgba(0, 0, 0, 0.75),
    0 0 12px rgba(0, 0, 0, 0.55),
    0 2px 4px rgba(0, 0, 0, 0.65);
}

@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 26px; }
}

/* --------------------------------------------------------- */
/* PAGE LAYOUT                                                */
/* --------------------------------------------------------- */

.page {
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px;
}

/* --------------------------------------------------------- */
/* PAGE LINKS                                                 */
/* --------------------------------------------------------- */

.page a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: normal;
}

.page a:hover {
  color: #9fc4e0;
}

/* --------------------------------------------------------- */
/* HEADINGS                                                   */
/* --------------------------------------------------------- */

h1 {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--brand-blue);
  margin-top: 10px;
  margin-bottom: 20px;
}

.page h2 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.8px;
  color: var(--brand-blue);
  margin-top: 32px;
  margin-bottom: 5px;
}

.page h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.6px;
  color: var(--brand-blue);
  margin-top: 2px;
  margin-bottom: 6px;
}

/* --------------------------------------------------------- */
/* PARAGRAPHS & LISTS                                         */
/* --------------------------------------------------------- */

.page p {
  margin-bottom: 14px;
}

.page ul,
.page ol {
  margin: 12px 0 12px 30px;
}

/* --------------------------------------------------------- */
/* CONTACT FORM                                               */
/* --------------------------------------------------------- */

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  background: var(--brand-dark);
  border: none;
  color: var(--text-light);
}

.contact-form button {
  padding: 12px 20px;
  background: var(--brand-blue);
  border: none;
  color: var(--brand-bg);
  font-weight: bold;
  cursor: pointer;
}

/* --------------------------------------------------------- */
/* FOOTER                                                     */
/* --------------------------------------------------------- */

footer {
  text-align: center;
  padding: 30px;
  color: var(--brand-blue);
  font-size: 14px;
}

/* --------------------------------------------------------- */
/* MOBILE RESPONSIVE FIXES                                    */
/* --------------------------------------------------------- */

@media (max-width: 768px) {

  .nav {
    flex-direction: column;
    padding: 15px 20px;
  }

  .logo-wrap {
    justify-content: center;
    width: 100%;
  }

  .logo-img {
    max-width: 80%;
    height: auto;
  }

  .nav a {
    margin: 10px 0;
    font-size: 18px;
  }

  h1 {
    font-size: 28px;
    letter-spacing: 1px;
  }

  .page {
    margin: 40px auto;
    padding: 15px;
  }

  .page p {
    font-size: 16px;
  }

  .home-hero,
  .about-hero,
  .services-hero,
  .possibilities-hero,
  .products-hero,
  .case-studies-hero,
  .contact-hero {
    min-height: 50vh;
    padding: 30px 15px;
  }
}

@media (max-width: 480px) {

  h1 {
    font-size: 24px;
  }

  .nav a {
    font-size: 16px;
  }

  .page p {
    font-size: 15px;
  }

  .logo-img {
    max-width: 75%;
    height: auto;
  }
}

/* --------------------------------------------------------- */
/* MOBILE NAV — SLIDE DOWN                                    */
/* --------------------------------------------------------- */

@media (max-width: 768px) {

  .nav nav {
    display: none;
    flex-direction: column;
    background: var(--brand-bg);
    width: 100%;
    text-align: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav nav.nav-open {
    display: flex;
    max-height: 400px;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    font-size: 32px;
    color: var(--brand-blue);
    margin-top: 10px;
  }

  .nav nav a {
    padding: 14px 0;
    font-size: 20px;
    color: var(--brand-blue);
    position: relative;
  }

  .nav nav a::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--brand-blue);
    transition: width 0.3s ease;
  }

  .nav nav a:hover::after {
    width: 40%;
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}

/* --------------------------------------------------------- */
/* PRODUCT & CASE IMAGES — RESTORED                           */
/* --------------------------------------------------------- */

.product-img,
.case-img {
  width: 100%;
  aspect-ratio: 1024 / 714;
  object-fit: cover;
  border-radius: 6px;
  filter: grayscale(40%) contrast(95%);
  margin-bottom: 12px;
}

/* --------------------------------------------------------- */
/* CASE STUDIES GRID                                          */
/* --------------------------------------------------------- */

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 30px;
}

.case-item {
  text-align: center;
}

.case-item h3 {
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--brand-blue);
  margin-top: 12px;
}

/* --------------------------------------------------------- */
/* FINAL OVERRIDE — ENSURE LOGO SIZE MATCHES ON ALL PAGES     */
/* --------------------------------------------------------- */

.logo-img {
  height: 50px !important;
  width: auto !important;
  max-width: none !important;