/* =========================================================
   Intellix Medical Supply — shared stylesheet
   ========================================================= */

:root {
  --navy: #1f3864;
  --navy-deep: #16294a;
  --navy-soft: #3d5170;
  --text-body: #33507a;
  --bg-page: #ececec;
  --bg-white: #ffffff;
  --border-light: #d7d7d7;
  --max-width: 1320px;
  --header-h: 96px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--bg-white);
  height: var(--header-h);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 50;
}

.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.2px;
  color: var(--navy);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav a {
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--navy-soft);
  font-weight: 400;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 20px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.85);
}

.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-navy {
  background: var(--navy);
  color: #ffffff;
  border: 1.5px solid var(--navy);
}

.btn-navy:hover { background: var(--navy-deep); }

.btn .arrow { font-size: 16px; line-height: 1; }

/* ---------- Architectural abstract background (generated, not a screenshot) ---------- */
.arch-bg {
  position: relative;
  background-color: #384663;
  background-image:
    linear-gradient(135deg, rgba(22,32,54,0.82), rgba(70,86,112,0.68)),
    repeating-linear-gradient(112deg, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 78px),
    repeating-linear-gradient(24deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 130px),
    repeating-linear-gradient(158deg, rgba(0,0,0,0.08) 0px, rgba(0,0,0,0.08) 1px, transparent 1px, transparent 46px),
    linear-gradient(160deg, #2b3652 0%, #4b5a78 45%, #2e3a56 100%);
  background-size: cover;
  background-position: center;
}

/* ---------- Hero (home) ---------- */
.hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
}

.hero-photo-bg {
  position: relative;
  background-color: #384663;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}

.hero-photo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,30,52,0.82), rgba(58,72,98,0.72));
}

.hero-photo-bg .hero-inner {
  position: relative;
  z-index: 1;
}

.hero-inner { max-width: 1300px; }

.hero h1 {
  color: #ffffff;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 36px;
  letter-spacing: 0.2px;
}

/* ---------- Section spacing ---------- */
.section { padding: 110px 40px; }
.section-tight { padding: 70px 40px; }

.section-heading {
  text-align: center;
  font-size: 36px;
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 32px;
}

.section-divider {
  width: 140px;
  height: 1px;
  background: #b9b9b9;
  margin: 20px auto 40px;
}

.centered-copy {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text-body);
}

.centered-copy + .centered-copy { margin-top: 22px; }

.centered-copy b, .centered-copy strong { color: var(--navy); font-weight: 600; }

/* ---------- CTA banner (home) ---------- */
.cta-banner {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.cta-banner h2 {
  color: #ffffff;
  font-size: 32px;
  font-weight: 400;
  margin: 0 0 30px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 60px 40px 50px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 22px;
}

.footer-links a {
  color: var(--navy-soft);
  font-size: 15px;
  letter-spacing: 0.5px;
}

.footer-links a:hover { color: var(--navy); }

.footer-copy {
  font-size: 13.5px;
  color: #8f8f8f;
}

/* ---------- About page ---------- */
.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-images figure {
  margin: 0;
  position: relative;
  background: #fff;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.about-images img { width: 100%; height: 100%; object-fit: cover; }

.about-images figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255,255,255,0.88);
  color: #333;
  font-size: 12px;
  padding: 4px 9px;
  letter-spacing: 0.2px;
}

.info-columns {
  display: flex;
  justify-content: center;
  gap: 130px;
  text-align: center;
  margin-top: 60px;
  flex-wrap: wrap;
}

.info-columns h3 {
  font-size: 26px;
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 18px;
}

.info-columns p {
  margin: 0 0 6px;
  font-size: 15.5px;
  line-height: 1.7;
}

.info-columns a { color: var(--text-body); }
.info-columns a:hover { color: var(--navy); }

/* ---------- Products page ---------- */
.product-grid-wrap { max-width: 700px; margin: 0 auto; }

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 44px;
}

.product-tile {
  background: #ffffff;
  aspect-ratio: 1/0.92;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.product-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-name {
  text-align: center;
  font-size: 13.5px;
  color: var(--navy-soft);
  margin-top: 10px;
  letter-spacing: 0.3px;
}

.products-cta { display: flex; }

/* ---------- Contact page ---------- */
.contact-hero {
  position: relative;
  min-height: 640px;
  background-color: #86888a;
  background-image: url('images/contact-bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(45, 52, 64, 0.62);
}

.brand-lockup { position: relative; z-index: 1; text-align: center; color: #ffffff; }

.brand-lockup .word-1 {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 10px;
  margin: 0;
}

.brand-lockup .word-2 {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 10px;
  margin: 10px 0 0;
  opacity: 0.92;
}

.contact-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-columns h3 {
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 26px;
}

.contact-columns p { margin: 0 0 20px; font-size: 15.5px; line-height: 1.75; }
.contact-columns a:hover { color: var(--navy); }

.contact-form label {
  display: block;
  font-size: 14px;
  color: var(--navy-soft);
  margin-bottom: 8px;
}

.contact-form .req { color: #b23b3b; }

.contact-form .field { margin-bottom: 22px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1.5px solid var(--navy);
  border-radius: 1px;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 14.5px;
  color: var(--text-body);
  background: #ffffff;
}

.contact-form textarea { min-height: 130px; resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy-deep);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1440px) {
  :root { --max-width: 1180px; }
  .hero h1 { font-size: 44px; }
}

@media (max-width: 1280px) {
  :root { --max-width: 1080px; }
  .contact-columns { gap: 70px; }
  .info-columns { gap: 90px; }
}

@media (max-width: 1024px) {
  :root { --max-width: 900px; --header-h: 84px; }
  .hero h1 { font-size: 38px; }
  .section { padding: 90px 32px; }
  .about-images { gap: 18px; }
  .info-columns { gap: 60px; }
  .contact-columns { gap: 50px; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  }
  .main-nav.open { max-height: 320px; }
  .main-nav a {
    padding: 16px 24px;
    width: 100%;
    border-top: 1px solid #eee;
    justify-content: flex-start;
  }
  .nav-toggle { display: flex; }

  .hero { min-height: 440px; padding: 40px 24px; }
  .hero h1 { font-size: 30px; }
  .section { padding: 70px 24px; }
  .section-heading { font-size: 28px; }
  .centered-copy { font-size: 15.5px; }

  .about-images { grid-template-columns: 1fr; }
  .info-columns { flex-direction: column; gap: 40px; }
  .product-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto 36px; }
  .products-cta { justify-content: center; }
  .contact-columns { grid-template-columns: 1fr; gap: 56px; }
  .contact-hero { min-height: 380px; }
  .brand-lockup .word-1 { font-size: 32px; letter-spacing: 6px; }
  .brand-lockup .word-2 { font-size: 15px; letter-spacing: 6px; }
  .cta-banner h2 { font-size: 26px; }
  .footer-links { flex-wrap: wrap; gap: 20px; }
}

@media (max-width: 480px) {
  .logo { font-size: 19px; }
  .hero h1 { font-size: 25px; }
  .section-heading { font-size: 24px; }
  .btn { padding: 14px 24px; font-size: 13px; }
  .cta-banner h2 { font-size: 21px; }
  .contact-hero { min-height: 320px; }
}

@media (max-width: 375px) {
  .container { padding: 0 18px; }
  .hero h1 { font-size: 22px; }
}
