/* ==========================================================================
   sections.css
   Spacing rhythm for <section> plus the content components that live
   inside page sections: titles, the glass panel, feature/portfolio
   imagery, the contact card, the map embed and the floating action
   buttons. Mobile-first baseline; larger tiers added in responsive.css.
   ========================================================================== */

section {
  padding-block: 3.5rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03125rem;
  margin-bottom: 0.875rem;
  color: var(--color-text);
}

.section-sub {
  color: var(--color-text-muted);
  margin-bottom: 2.125rem;
  max-width: 50rem;
}

.section-panel {
  background: var(--panel-bg);
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-4xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(0.625rem);
}

/* ---- Feature image (Company Overview) ----
   A wrapper + real <img> (object-fit: cover) rather than a CSS
   background-image, so the photo is lazy-loadable, described by alt
   text, and participates in layout like real content. */
.feature-image {
  position: relative;
  min-height: 13.75rem;
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-md);
  border: 0.0625rem solid var(--color-border);
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.22));
}

/* ---- Portfolio ---- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.25rem, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-base) ease, box-shadow var(--duration-base) ease;
}

.portfolio-card:hover {
  transform: translateY(-0.375rem);
}

.portfolio-image {
  height: 13.75rem;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-body {
  padding: 1.125rem;
}

.portfolio-body h3 {
  margin-bottom: 0.625rem;
  color: var(--color-text);
  font-size: 1.05rem;
}

.portfolio-body p {
  color: var(--color-text-muted);
  font-size: 0.94rem;
}

/* ---- Contact ---- */
.contact-box {
  background: linear-gradient(135deg, var(--color-ink), #1e293b 55%, #0f766e);
  color: #ffffff;
  padding: 1.375rem;
  border-radius: var(--radius-3xl);
  box-shadow: 0 1.375rem 2.875rem rgba(15, 23, 42, 0.18);
}

.contact-box p {
  margin-bottom: 0.75rem;
  color: #e2e8f0;
}

iframe {
  width: 100%;
  height: 16.25rem;
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
}

/* ---- Floating action buttons (WhatsApp / email) ---- */
.fab-wrap {
  position: fixed;
  inset-inline-end: 1rem;
  inset-block-end: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: var(--z-fab);
}

.fab {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 1rem 1.875rem rgba(37, 99, 235, 0.28);
  transition: transform var(--duration-base) ease, box-shadow var(--duration-base) ease;
}

.fab:hover {
  transform: translateY(-0.25rem) scale(1.03);
}

.fab.whatsapp {
  background: linear-gradient(135deg, #10b981, #22c55e);
}

.fab.email {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}
