:root {
  --page-bg: #f5f7f9;
  --hero-bg: #eaf4fb;
  --navy: #0f2b46;
  --navy-soft: #173a5d;
  --text-main: #121b24;
  --text-muted: #435468;
  --card-shadow: 0 10px 24px rgba(6, 24, 44, 0.14);
  --radius-large: 16px;
  --radius-mid: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Open Sans", Arial, sans-serif;
  color: var(--text-main);
  background: var(--page-bg);
}

.company-profile-main {
  min-height: 100vh;
}

.page-container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.company-hero {
  background: var(--hero-bg);
  padding: 1.8rem 0;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
}

.hero-logo-box {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.hero-logo-image,
.hero-logo-fallback {
  width: 100%;
  height: 100%;
}

.hero-logo-image {
  object-fit: cover;
  display: block;
}

.hero-logo-fallback {
  display: grid;
  place-items: center;
  font-size: 3.25rem;
  font-weight: 800;
  color: #13253a;
  background: linear-gradient(135deg, #ffffff, #dde9f3);
  text-transform: uppercase;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.company-tagline {
  margin: 0;
  color: var(--text-main);
  font-size: 1.08rem;
}

.company-name {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
}

.homepage-link {
  color: #122e52;
  font-size: 1.2rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-actions {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn-primary-action,
.btn-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border-radius: 4px;
  border: 2px solid transparent;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
}

.btn-primary-action {
  background: #103964;
}

.btn-secondary-action {
  background: #23456b;
  border-color: #7a42ff;
}

.hero-icons {
  display: flex;
  gap: 0.7rem;
  align-self: start;
}

.hero-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #314c6a;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(10, 35, 60, 0.12);
  font-size: 1.1rem;
}

.share-fab {
  position: absolute;
  left: 48%;
  bottom: 16%;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: #f7f8fb;
  color: #0f2b46;
  font-size: 1.28rem;
  box-shadow: 0 8px 20px rgba(20, 46, 79, 0.22);
}

.company-content {
  padding: 1rem 0 2rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.content-main {
  background: transparent;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1.6rem;
  margin-bottom: 1.8rem;
}

.meta-label {
  margin: 0 0 0.42rem;
  font-size: 1.23rem;
  font-weight: 800;
  line-height: 1.1;
}

.meta-value {
  margin: 0;
  color: var(--text-main);
}

.meta-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-main);
}

.about-section {
  margin-top: 0.8rem;
}

.about-title {
  margin: 0 0 0.85rem;
  font-size: 2rem;
  font-weight: 800;
}

.about-paragraph {
  margin: 0 0 1rem;
  color: #1a232e;
  line-height: 1.65;
}

.content-side {
  display: grid;
  gap: 1rem;
}

.contact-card {
  background: var(--navy);
  color: #f2f8ff;
  border-radius: var(--radius-large);
  box-shadow: var(--card-shadow);
  padding: 1.25rem;
}

.card-title {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  line-height: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #ffffff;
}

.card-person {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.card-link {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  margin: 0.24rem 0;
  color: #d8e9ff;
  text-decoration: none;
  word-break: break-word;
}

.card-link i {
  width: 16px;
  text-align: center;
}

.card-subtitle {
  margin: 1rem 0 0.42rem;
  font-size: 1.35rem;
  color: #ffffff;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: #0f2b46;
  background: #ffffff;
  text-decoration: none;
}

.address-block p {
  margin: 0.12rem 0;
  color: #dcecff;
}

.map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  min-height: 36px;
  border-radius: 6px;
  border: 1px solid #ced8e3;
  background: #edf3fa;
  color: #0f2b46;
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.map-frame {
  border-radius: var(--radius-mid);
  overflow: hidden;
  min-height: 240px;
  box-shadow: 0 4px 14px rgba(6, 24, 44, 0.16);
  background: #dbe6f1;
}

.map-frame iframe {
  display: block;
  width: 100%;
  min-height: 240px;
  border: 0;
}

@media (max-width: 992px) {
  .hero-layout {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .hero-icons {
    grid-column: 2;
    justify-self: end;
    margin-top: -3.5rem;
  }

  .hero-logo-box {
    width: 120px;
    height: 120px;
  }

  .share-fab {
    left: 42%;
    bottom: -8px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .page-container {
    width: calc(100% - 1.25rem);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-logo-box {
    width: 128px;
    height: 128px;
  }

  .hero-icons {
    grid-column: auto;
    margin-top: 0;
    justify-self: start;
  }

  .share-fab {
    left: 126px;
    top: 102px;
    bottom: auto;
  }

  .meta-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-title {
    font-size: 1.7rem;
  }
}