/* ==========================================================================
   OCEES - "Engineering and development experience"
   --------------------------------------------------------------------------
   Reference: otecorporation-ocees/app/globals.css
              .experience .experience-heading .project-grid .project-card
              .project-top .project-place
              app/page.tsx  <section className="experience section-pad"
                                     id="experience">

   Elementor: Home page, eighth container - "Experience"

   Structure - the same DOM the React build has:
     section#experience.ocees-experience.ocees-section.e-con
       |- .ocees-experience__heading.e-con      grid 1fr 1fr, bottom-aligned
       |    |- .ocees-label                Heading (p)     row 1, col 1
       |    |- .ocees-experience__title    Heading (h2)    row 1, col 2
       |    `- .ocees-experience__note     Text Editor     row 2, col 1
       `- .ocees-projects.e-con                 2 x 2 hairline cells
            `- article.ocees-project.e-con  x4
                 |- .ocees-project__top.e-con
                 |    |- .ocees-project__num     Heading (span)
                 |    `- .ocees-project__status  Heading (span)
                 |- .ocees-project__place   Heading (p)
                 |- .ocees-project__title   Heading (h3)
                 `- .ocees-project__text    Text Editor  (pushed to the foot)

   Card rules use the same no-double-border trick as the other grids: top +
   left on the container, right + bottom on every cell.
   ========================================================================== */

:root {
	--ocees-exp-rule: #9db0b1;
	--ocees-exp-heading-gap: 70px;
	--ocees-exp-heading-space: 72px;
	--ocees-exp-note-fg: #4b6169;
	--ocees-project-pad: 34px;
	--ocees-project-pad-sm: 25px;
	--ocees-project-min-h: 420px;
	--ocees-project-min-h-sm: 390px;
	--ocees-project-meta-fg: #188e99;
	--ocees-project-place-fg: #526b72;
	--ocees-project-text-fg: #4a5f67;
}

/* --------------------------------------------------------------------------
   1. Section
   The band colour is set on the container in Elementor (Style > Background).
   -------------------------------------------------------------------------- */

.ocees-experience.e-con {
	display: flex;
	flex-direction: column;
	/* React puts this 72px on `.experience-heading` as a bottom margin; it is
	   the gap between the only two children here. */
	gap: var(--ocees-exp-heading-space);
	width: 100%;
	max-width: none;
}

/* --------------------------------------------------------------------------
   2. Heading block
   Three children in a two-column grid: the label and the headline share the
   first row, and the paragraph falls into the second row's first column.
   -------------------------------------------------------------------------- */

.ocees-experience__heading.e-con {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: end;
	gap: var(--ocees-exp-heading-gap);
	width: 100%;
	max-width: none;
	padding: 0;
}

.ocees-experience__heading > .elementor-widget:not(:last-child) {
	margin-block-end: 0;
}

/* The shared `.ocees-heading-lg` sets `margin: 22px 0 34px`; the reference
   drops the bottom margin here. */
.ocees-experience__title .elementor-heading-title {
	margin-bottom: 0;
}

.ocees-experience__note p {
	margin: 0;
	max-width: 610px;
	color: var(--ocees-exp-note-fg);
	font-family: var(--ocees-font-sans);
	font-size: 1rem;
	line-height: 1.7;
}

/* --------------------------------------------------------------------------
   3. Project grid
   -------------------------------------------------------------------------- */

.ocees-projects.e-con {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0;
	width: 100%;
	max-width: none;
	padding: 0;
	border-top: 1px solid var(--ocees-exp-rule);
	border-left: 1px solid var(--ocees-exp-rule);
}

.ocees-project.e-con {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
	max-width: none;
	min-height: var(--ocees-project-min-h);
	padding: var(--ocees-project-pad);
	border-right: 1px solid var(--ocees-exp-rule);
	border-bottom: 1px solid var(--ocees-exp-rule);
}

/* --- Card head: number left, status right ------------------------------- */

.ocees-project__top.e-con {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	max-width: none;
	padding: 0;
}

.ocees-project__num .elementor-heading-title,
.ocees-project__status .elementor-heading-title {
	display: block;
	margin: 0;
	color: var(--ocees-project-meta-fg);
	font: 700 0.62rem / 1.4 var(--ocees-font-mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ocees-project__status .elementor-heading-title {
	text-align: right;
}

/* --- Card body ---------------------------------------------------------- */

.ocees-project__place .elementor-heading-title {
	margin: 80px 0 18px;
	color: var(--ocees-project-place-fg);
	font-family: var(--ocees-font-sans);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.ocees-project__title .elementor-heading-title {
	margin: 0 0 20px;
	color: inherit;
	font-family: var(--ocees-font-sans);
	font-size: clamp(2rem, 3.3vw, 3.4rem);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.05em;
}

/* `margin-top: auto` on the widget - the flex item - is what pins the copy to
   the foot of the card, exactly as in the reference. The 650px measure sits
   on the paragraph inside, where Elementor's own `max-width: 100%` on
   container children cannot reach it. */
.ocees-project__text {
	margin: auto 0 0;
}

.ocees-project__text p {
	margin: 0;
	max-width: 650px;
	color: var(--ocees-project-text-fg);
	font-family: var(--ocees-font-sans);
	font-size: 1rem;
	line-height: 1.7;
}

/* --------------------------------------------------------------------------
   4. Responsive
   -------------------------------------------------------------------------- */

/* Tablet and below - matches the React `@media (max-width: 980px)` block. */
@media (max-width: 980px) {
	.ocees-experience__heading.e-con {
		grid-template-columns: 1fr;
	}

	.ocees-projects.e-con {
		grid-template-columns: 1fr;
	}
}

/* Phones - matches the React `@media (max-width: 620px)` block: the card head
   stacks, and the cards get tighter. */
@media (max-width: 620px) {
	.ocees-project.e-con {
		min-height: var(--ocees-project-min-h-sm);
		padding: var(--ocees-project-pad-sm);
	}

	.ocees-project__top.e-con {
		display: grid;
	}

	.ocees-project__status .elementor-heading-title {
		text-align: left;
	}
}
