/* ============================================================
   INNOGENCE – Main Stylesheet
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #1a1a1a;
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Design Tokens ---------- */
:root {
  --orange:        #E85A2A;
  --orange-dark:   #c94e22;
  --charcoal:      #1e2028;
  --text:          #1a1a1a;
  --text-muted:    #52586a;      /* slightly darker than before for readability */
  --bg-hero:       #f2f3f5;
  --bg-authority:  #ecedf0;      /* authority band – sits between hero and services */
  --bg-services:   #eaebed;
  --bg-contact:    #f7f7f8;
  --border:        #dde0e5;
  --radius:        10px;
  --max-w:         1140px;
  --header-h:      68px;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header__nav a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--orange);
}

/* ============================================================
   HERO  –  section 1
   Tighter padding, architecture photo right side
   ============================================================ */
.hero {
  position: relative;
  padding-block: 80px;           /* desktop default (was 110px/100px) */
  background-color: var(--bg-hero);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* Architecture photo – fills right 55%, object-fit cover */
.hero__img {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Gradient: solid bg-hero left → transparent right, keeps text safe */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--bg-hero)          0%,
    var(--bg-hero)          38%,
    rgba(242,243,245,0.85)  52%,
    rgba(242,243,245,0.15)  72%,
    transparent             100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.hero__headline {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 14px;           /* was 20px */
}

.hero__headline--accent {
  color: var(--orange);
  text-decoration: none;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  font-weight: 400;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 26px;           /* was 36px */
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--orange);
  color: #ffffff;
  border: 2px solid var(--orange);
}

.btn--primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  box-shadow: 0 4px 14px rgba(232, 90, 42, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 2px solid #c0c4cc;
}

.btn--outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ============================================================
   AUTHORITY BAND
   Credibility strip between hero and services
   ============================================================ */
.authority {
  background: var(--bg-authority);
  border-bottom: 1px solid var(--border);
  padding-block: 18px;
}

.authority p {
  font-size: 0.8125rem;          /* 13px */
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-title {
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 36px;           /* was 48px */
}

/* ============================================================
   SERVICES  –  section 2
   ============================================================ */
.services {
  padding-block: 64px;           /* was 88px */
  background: var(--bg-services);
}

.services__intro {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 8px;
  margin-bottom: 24px;
  max-width: 100%;               /* spans full container width, matching the 3-card grid */
}

.services__grid {
  display: grid;
  gap: 22px;                     /* was 24px */
  grid-template-columns: 1fr;
}

/* ---------- Card ---------- */
.card {
  background: #f0f1f3;
  border: none;
  border-radius: var(--radius);
  padding: 28px 24px 36px;       /* was 36px 28px 44px */
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.13), 0 2px 6px rgba(0, 0, 0, 0.07);
  transform: translateY(-3px);
}

.card__title {
  font-size: 0.9375rem;          /* slightly tighter, was 1rem */
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;           /* was 12px */
  line-height: 1.35;
}

/* Orange rule – full width under heading */
.card__rule {
  width: 100%;
  height: 2px;
  background: var(--orange);
  border-radius: 0;
  margin-bottom: 18px;           /* was 22px */
  flex-shrink: 0;
}

.card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;                      /* was 10px */
  flex: 1;
}

.card__list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.75;
}

/* ============================================================
   CONTACT  –  section 3
   ============================================================ */
.contact {
  padding-block: 40px;           /* was 60px; desktop base tightened ~33% */
  background: var(--bg-contact);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact__inner {
  max-width: 560px;
}

/* One-line intent above email */
.contact__intent {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 12px;           /* was 20px; tightens gap to email ~40% */
}

.contact__email {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.contact__email:hover {
  border-bottom-color: var(--orange);
}

.contact__phone {
  display: block;
  margin-top: 6px;               /* was 10px; groups phone tighter to email */
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.contact__phone:hover {
  color: var(--orange);
}

/* ============================================================
   FOOTER  –  dark charcoal, minimal single line
   ============================================================ */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.55);
  padding-block: 16px;           /* was 22px – lighter footprint */
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.footer a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ============================================================
   RESPONSIVE – TABLET  (≥ 768px)
   ============================================================ */
@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__actions {
    flex-wrap: nowrap;
  }
}

/* ============================================================
   RESPONSIVE – DESKTOP  (≥ 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .card {
    /* ~348px wide × 1.5 = ~522px tall → 2:3 portrait ratio */
    min-height: 380px;
  }
}

/* ============================================================
   RESPONSIVE – LAPTOP 13–14"  (1024px–1280px)
   Reduce vertical sprawl on smaller laptop screens
   ============================================================ */
@media (min-width: 1024px) and (max-width: 1280px) {
  .hero {
    padding-block: 64px;
  }

  .services {
    padding-block: 52px;
  }

  .contact {
    padding-block: 36px;         /* laptop 13–14": tighter still */
  }
}

/* Desktop ≥ 1024px: contact heading sits closer to content */
@media (min-width: 1024px) {
  .contact .section-title {
    margin-bottom: 16px;         /* was inherited 36px */
  }
}

/* ============================================================
   RESPONSIVE – MOBILE PORTRAIT  (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  .hero {
    padding-block: 60px;
  }

  .hero__img {
    display: none;
  }

  .hero::after {
    background: none;
  }

  .hero__headline {
    margin-bottom: 12px;
  }

  .hero__sub {
    margin-bottom: 22px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .authority p {
    letter-spacing: 0.01em;    /* reduce tracking on small screens */
  }

  .services {
    padding-block: 48px;
  }

  .contact {
    padding-block: 48px;
  }

  .section-title {
    margin-bottom: 28px;
  }

  .footer__inner {
    text-align: center;
    line-height: 1.8;
  }
}

/* ============================================================
   RESPONSIVE – MOBILE LANDSCAPE  (≤ 812px, max-height 450px)
   ============================================================ */
@media (max-height: 450px) and (orientation: landscape) {
  .hero {
    padding-block: 40px;
  }

  .hero__headline {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    margin-bottom: 8px;
  }

  .hero__sub {
    margin-bottom: 16px;
  }

  .authority {
    padding-block: 12px;
  }

  .services {
    padding-block: 40px;
  }

  .contact {
    padding-block: 36px;
  }
}
