/* ==========================================================================
   Inner pages — IMECA
   ========================================================================== */

.page-content {
  min-height: 40vh;
}

/* Inner pages — Header Style 9 (matches imeca.in subpages) */
.header-style9 {
  position: relative;
  z-index: 1000;
  background: var(--color-white);
}

.header-style9__top {
  background: #f8f8f8;
  border-bottom: 1px solid #ededed;
}

.header-style9__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 32px;
}

.header-style9__signin {
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text);
  text-transform: none;
}

.header-style9__signin:hover {
  color: var(--color-accent);
}

.header-style9__top-nav {
  margin-left: auto;
}

.header-style9__top-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-style9__top-list a {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-text);
}

.header-style9__top-list a:hover,
.header-style9__top-list a.is-active {
  color: var(--color-accent);
}

.header-style9__banner {
  text-align: center;
  padding: 32px 20px 24px;
}

.header-style9__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.header-style9__logo {
  margin: 0;
  font-family: serif;
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--color-text);
}

.header-style9__tagline {
  display: block;
  margin-top: 10px;
  font-family: var(--font-alt);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  font-size: 14px;
  color: #777;
}

.header-style9__menu-wrap {
  background: #fff;
  background: linear-gradient(to bottom, #ffffff 0%, #f4f4f4 100%);
  border-top: 1px solid #ededed;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header-style9__menu-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  position: relative;
}

.header-style9__menu-btn {
  display: none;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.header-style9__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-style9__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-style9__list > li {
  position: relative;
}

.header-style9__list > li > a {
  display: block;
  padding: 0 14px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 48px;
  text-transform: uppercase;
  color: #000;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-style9__list > li > a:hover,
.header-style9__list > li > a.is-active {
  color: var(--color-accent);
}

.header-style9 .dropdown--style9 {
  left: 0;
  min-width: 300px;
}

.header-search--style9 {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.header-search-toggle--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
}

.header-search-toggle--icon svg {
  width: 18px;
  height: 18px;
  fill: var(--color-text);
}

.header-search-toggle--icon:hover svg,
.header-search-toggle--icon[aria-expanded="true"] svg {
  fill: var(--color-accent);
}

.header-search--style9 .header-search__dropdown {
  right: 0;
  left: auto;
  width: min(600px, 92vw);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--color-muted);
}

.breadcrumbs a {
  color: var(--color-text);
}

.breadcrumbs a:hover {
  color: var(--color-accent);
}

.breadcrumbs__sep {
  margin: 0 8px;
  color: #ccc;
}

.breadcrumbs__current {
  color: var(--color-muted);
}

/* Split content (text + image) */
.split-section {
  padding: 50px 0 80px;
}

.split-section__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.split-section__text,
.split-section__media {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
}

.split-section__title {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 24px;
}

.split-section__body {
  font-family: var(--font-alt);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
}

.split-section__body p {
  margin-bottom: 16px;
}

.split-section__body ul,
.split-section__body ol {
  margin: 16px 0 16px 24px;
}

.split-section__body li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.split-section__body strong {
  font-weight: 600;
}

.split-section__body a {
  color: var(--color-accent);
  text-decoration: underline;
}

.split-section__body a:hover {
  color: var(--color-text);
}

.split-section__body em {
  font-style: italic;
}

.split-section__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  object-fit: cover;
  min-height: 320px;
  max-height: 520px;
}

/* Article layout */
.article-section {
  padding: 20px 0 80px;
}

.article-section .container {
  max-width: var(--container);
}

.page-title {
  font-family: var(--font-primary);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin: 20px 0 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ebebeb;
}

.article-body {
  font-family: var(--font-alt);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
}

.article-body p {
  margin-bottom: 20px;
}

.article-body a {
  color: var(--color-accent);
  text-decoration: underline;
}

.article-body a:hover {
  color: var(--color-text);
}

/* Prose block (approach) */
.prose-section {
  padding: 44px 0 80px;
}

.prose-section .container {
  max-width: 900px;
}

.prose-section p {
  font-family: var(--font-alt);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--color-text);
}

.prose-section ul {
  margin: 20px 0 20px 24px;
}

.prose-section li {
  font-family: var(--font-alt);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.prose-section em {
  font-style: italic;
}

/* Full-width banner image */
.banner-image-section {
  padding: 0 0 60px;
}

.banner-image-section img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 500px;
  object-fit: contain;
}

/* Team grid */
.team-grid-section {
  padding: 60px 0 80px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.team-card > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.team-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.team-card__image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-card__body {
  padding: 24px;
}

.team-card__name {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.team-card__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
  text-transform: uppercase;
}

.team-card__link:hover {
  color: var(--color-text);
}

/* Contact page */
.contact-section {
  padding: 50px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: start;
}

.contact-info__block {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #81c132;
  font-size: 40px;
  line-height: 1;
}

.contact-info__icon svg {
  width: 40px;
  height: 40px;
  fill: #81c132;
}

.contact-info__title {
  font-family: "Raleway", var(--font-primary), sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--color-text);
}

.contact-info__text {
  font-size: 14px;
  line-height: 24px;
  color: var(--color-text);
}

.contact-info__text h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px;
}

.contact-info__email {
  color: #81c132;
  font-weight: 500;
}

.contact-form-wrap {
  background: #f4f4f4;
  padding: 20px;
}

.contact-form-panel {
  background: #fff;
  padding: 30px;
}

.contact-form-panel h3 {
  font-family: "Raleway", var(--font-primary), sans-serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  margin-bottom: 20px;
  color: var(--color-text);
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font-family: var(--font-primary);
  font-size: 14px;
  border: 1px solid #eaeaea;
  background: #fff;
  color: var(--color-text);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-form__submit {
  padding: 12px 28px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form__submit:hover {
  background: var(--color-text);
}

.contact-form__note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-muted);
}

.contact-form__note.is-success {
  color: #81c132;
}

/* Work page intro */
.work-intro {
  padding: 50px 0 20px;
  text-align: center;
}

.work-intro .section-title {
  margin-bottom: 10px;
}

.work-intro p {
  font-size: 16px;
  color: var(--color-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 1018px) {
  .header-style9__logo {
    font-size: 48px;
  }

  .split-section__title {
    font-size: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .header-style9__top {
    display: none;
  }

  .header-style9__banner {
    padding: 24px 16px 16px;
  }

  .header-style9__menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-style9__menu-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--color-text);
  }

  .header-style9__nav {
    display: none;
  }

  .header-style9__menu-inner {
    justify-content: flex-end;
    min-height: 44px;
    padding-left: 48px;
  }

  .split-section__text,
  .split-section__media {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .split-section__media {
    margin-top: 30px;
    order: 2;
  }

  .split-section__text {
    order: 1;
  }

  .split-section__image {
    min-height: 220px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 28px;
  }

  .header-style9__logo {
    font-size: 36px;
  }

  .header-style9__tagline {
    font-size: 13px;
  }
}
