/* Brookewood desktop refinement
   Loaded after the core stylesheet and intentionally scoped to wide screens. */

@media (min-width: 1180px) {
  :root {
    --container: min(1380px, calc(100% - 64px));
  }

  .section {
    padding-block: clamp(7.5rem, 9vw, 10.5rem);
  }

  /* A more architectural header on wide screens */
  .site-header {
    background: transparent;
  }

  .utility-bar {
    background: #07160f;
  }

  .utility-inner {
    min-height: 2.65rem;
  }

  .main-nav {
    min-height: 6.4rem;
    padding-inline: 1.65rem;
    border: 1px solid rgba(23, 32, 25, 0.09);
    border-top: 0;
    border-radius: 0 0 1.35rem 1.35rem;
    background: rgba(251, 248, 241, 0.97);
    box-shadow: 0 18px 45px rgba(11, 27, 20, 0.08);
    backdrop-filter: blur(16px);
  }

  .site-header.is-sticky .main-nav {
    box-shadow: 0 22px 55px rgba(11, 27, 20, 0.13);
  }

  .brand {
    width: 212px;
  }

  .brand img {
    height: 76px;
  }

  .nav-menu {
    gap: clamp(1.7rem, 2.2vw, 2.8rem);
  }

  .nav-menu a {
    font-size: 0.69rem;
  }

  .nav-quote {
    min-height: 3rem;
    padding-inline: 1.35rem;
  }

  /* Layered editorial hero */
  .hero-grid {
    min-height: calc(100vh - 9.05rem);
    grid-template-columns: minmax(0, 1.05fr) minmax(500px, 0.95fr);
    gap: clamp(5rem, 7.5vw, 8.5rem);
    padding-top: clamp(4.5rem, 6vw, 7rem);
    padding-bottom: clamp(6rem, 8vw, 8.5rem);
  }

  .hero-copy {
    position: relative;
    padding: 2rem 0 2rem 1.45rem;
  }

  .hero-copy::before {
    position: absolute;
    top: 2.15rem;
    bottom: 2.15rem;
    left: 0;
    width: 1px;
    content: "";
    background: linear-gradient(to bottom, var(--leaf), rgba(168, 189, 99, 0.05));
  }

  .hero-copy::after {
    position: absolute;
    bottom: 2.3rem;
    left: -1.1rem;
    color: rgba(255, 255, 255, 0.28);
    content: "CHEPSIR · KENYA";
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transform: rotate(-90deg);
    transform-origin: left bottom;
  }

  .hero h1 {
    max-width: 800px;
    margin-bottom: 2rem;
    font-size: clamp(5.2rem, 6vw, 6.6rem);
    line-height: 0.83;
  }

  .hero-lead {
    max-width: 650px;
    padding-right: 1.25rem;
    font-size: 1.1rem;
  }

  .hero-actions {
    margin-top: 2.35rem;
  }

  .hero-proof {
    margin-top: clamp(4.5rem, 6.5vw, 6.5rem);
  }

  .hero-proof div {
    min-height: 6.1rem;
    padding-top: 1.25rem;
  }

  .hero-proof span {
    font-size: 0.9rem;
  }

  .hero-media {
    height: clamp(640px, 71vh, 790px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14rem 1.5rem 1.5rem 1.5rem;
    box-shadow: 0 45px 110px rgba(3, 12, 7, 0.48);
  }

  .hero-media::before {
    position: absolute;
    bottom: 1.75rem;
    left: 1.75rem;
    z-index: 3;
    width: 218px;
    height: 150px;
    border: 8px solid rgba(251, 248, 241, 0.95);
    border-radius: 0.45rem 0.45rem 2.4rem 0.45rem;
    content: "";
    background: url("assets/images/stacked-posts.jpg") center / cover no-repeat;
    box-shadow: 0 22px 50px rgba(4, 13, 8, 0.38);
    transform: rotate(-2.5deg);
    transition: transform 350ms cubic-bezier(0.2, 0.7, 0, 1);
  }

  .hero-media:hover::before {
    transform: rotate(0) translateY(-5px);
  }

  .hero-media::after {
    z-index: 1;
    background: linear-gradient(to bottom, rgba(5, 16, 10, 0.03) 35%, rgba(5, 16, 10, 0.82));
  }

  .hero-media img {
    object-position: 48% center;
  }

  .hero-media figcaption {
    right: 2.25rem;
    bottom: 2.15rem;
    left: 18rem;
    z-index: 4;
  }

  .hero-media figcaption strong {
    max-width: 18rem;
    font-size: 1.65rem;
  }

  .hero-stamp {
    top: 2.7rem;
    right: 2.2rem;
    z-index: 4;
    width: 8rem;
    height: 8rem;
  }

  .hero-stamp b {
    font-size: 1.95rem;
  }

  .hero-ticker div {
    padding-block: 0.95rem;
    font-size: 0.7rem;
  }

  /* More confident section introductions */
  .split-heading {
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.55fr);
    gap: clamp(6rem, 10vw, 11rem);
    margin-bottom: 5.25rem;
  }

  .split-heading h2 {
    font-size: clamp(4.5rem, 5.8vw, 6.5rem);
  }

  .split-heading > p {
    padding-bottom: 0.5rem;
    font-size: 1rem;
  }

  /* Asymmetric product showcase */
  .product-families {
    padding-bottom: clamp(9rem, 12vw, 13rem);
  }

  .product-card-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: 1.15rem;
  }

  .product-card {
    min-height: 590px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.8rem;
    box-shadow: 0 28px 70px rgba(11, 27, 20, 0.14);
  }

  .product-card::before {
    position: absolute;
    top: 0;
    left: 10%;
    z-index: 3;
    width: 80%;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(168, 189, 99, 0.9), transparent);
    opacity: 0;
    transition: opacity 250ms ease;
  }

  .product-card:hover::before {
    opacity: 1;
  }

  .product-card-large {
    min-height: 690px;
    grid-column: span 6;
  }

  .product-card:nth-child(2) {
    min-height: 585px;
    grid-column: span 3;
    margin-top: 4.2rem;
  }

  .product-card:nth-child(3) {
    min-height: 635px;
    grid-column: span 3;
    margin-top: 1.3rem;
  }

  .product-card-top,
  .product-card-content {
    right: 2rem;
    left: 2rem;
  }

  .product-card-top {
    top: 1.8rem;
  }

  .product-card-content {
    bottom: 2.1rem;
  }

  .product-card-large .product-card-content h3 {
    max-width: 540px;
    font-size: 4.4rem;
  }

  .product-card:not(.product-card-large) .product-card-content h3 {
    font-size: 2.8rem;
  }

  .product-card-text .product-card-pattern {
    background:
      radial-gradient(circle at 78% 20%, transparent 0 3rem, rgba(16, 39, 29, 0.16) 3.05rem 3.12rem, transparent 3.17rem 5.5rem, rgba(16, 39, 29, 0.11) 5.55rem 5.62rem, transparent 5.67rem),
      repeating-linear-gradient(135deg, transparent 0 52px, rgba(16, 39, 29, 0.045) 53px 54px),
      linear-gradient(135deg, transparent 48%, rgba(16, 39, 29, 0.08));
  }

  /* Catalogue becomes a polished buying workspace */
  .catalogue-header {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.45fr);
    gap: clamp(7rem, 11vw, 13rem);
    margin-bottom: 4.75rem;
  }

  .catalogue-header h2 {
    font-size: clamp(5rem, 6.5vw, 7.2rem);
  }

  .catalogue-shell {
    grid-template-columns: 370px minmax(0, 1fr);
    border-radius: 2rem;
    box-shadow: 0 45px 110px rgba(0, 0, 0, 0.3);
  }

  .length-panel {
    padding: 3rem;
    background:
      linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
      radial-gradient(circle at 0 100%, rgba(168, 189, 99, 0.1), transparent 45%);
  }

  .length-tabs {
    gap: 0.6rem;
  }

  .length-tab {
    min-height: 3.7rem;
    border-radius: 0.8rem;
  }

  .price-panel {
    padding: 3.25rem clamp(3.5rem, 5vw, 5rem);
  }

  .price-panel-heading {
    margin-bottom: 2rem;
  }

  .price-panel-heading h3 {
    font-size: 3.8rem;
  }

  th,
  td {
    padding-block: 1.25rem;
  }

  .price-panel tbody tr {
    transition: background 180ms ease;
  }

  .price-panel tbody tr:hover {
    background: rgba(96, 122, 70, 0.055);
  }

  .calculator-grid {
    gap: 1.15rem;
    margin-top: 1.15rem;
  }

  .calculator-card {
    min-height: 305px;
    grid-template-columns: 0.88fr 1.25fr 0.72fr;
    border-radius: 1.6rem;
  }

  .calculator-heading,
  .calculator-form,
  .calculator-result {
    padding: 2.4rem;
  }

  .calculator-aside {
    min-height: 305px;
    padding: 2.5rem;
    border-radius: 1.6rem;
  }

  /* Larger industrial imagery and more breathing room */
  .transmission-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
    gap: clamp(6rem, 9vw, 10rem);
  }

  .transmission-image {
    height: 700px;
    border-radius: 1.1rem 1.1rem 10rem 1.1rem;
    box-shadow: 0 35px 90px rgba(6, 19, 12, 0.25);
  }

  .transmission-copy {
    padding-right: 2rem;
  }

  .transmission-copy h2 {
    font-size: clamp(4.8rem, 5.6vw, 6.5rem);
  }

  .pole-lengths {
    margin-block: 3rem;
  }

  .pole-lengths span {
    padding-block: 1.25rem;
    font-size: 1.65rem;
  }

  .capability-feature {
    grid-template-columns: minmax(0, 1.72fr) minmax(360px, 0.56fr);
    gap: 1.2rem;
  }

  .capability-image {
    min-height: 700px;
    border-radius: 2rem;
    box-shadow: 0 28px 70px rgba(11, 27, 20, 0.12);
  }

  .quality-card {
    padding: 3.7rem 3.25rem;
    border-radius: 2rem;
  }

  .quality-card h3 {
    font-size: 2.8rem;
  }

  .quality-card li {
    padding-block: 1rem;
  }

  .service-grid {
    gap: 1.2rem;
    margin-top: 1.2rem;
  }

  .service-card {
    min-height: 360px;
    padding: 2.15rem;
    border-radius: 1.1rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(242, 237, 226, 0.26));
  }

  .service-card h3 {
    margin-top: 3.2rem;
    font-size: 2.15rem;
  }

  .process-heading {
    grid-template-columns: 1.25fr 0.95fr 0.58fr;
    gap: 4rem;
    margin-bottom: 5.5rem;
  }

  .process-heading h2 {
    font-size: clamp(5rem, 6vw, 6.8rem);
  }

  .process-track li {
    min-height: 295px;
    padding: 1.8rem 1.45rem;
  }

  .process-track li::before {
    left: 1.45rem;
  }

  .process-track span {
    margin-bottom: 5.3rem;
  }

  .process-track strong {
    font-size: 2.05rem;
  }

  .industries-grid {
    grid-template-columns: minmax(360px, 0.62fr) minmax(0, 1.38fr);
    gap: clamp(8rem, 12vw, 14rem);
  }

  .industries-intro h2 {
    font-size: clamp(4.5rem, 5.3vw, 6rem);
  }

  .industry-list article {
    min-height: 7rem;
    grid-template-columns: 3rem minmax(190px, 0.8fr) 1.2fr;
    padding-block: 1.9rem;
  }

  .industry-list h3 {
    font-size: 1.95rem;
  }

  /* Cinematic gallery proportions */
  .gallery-heading {
    margin-bottom: 4.5rem;
  }

  .gallery-heading h2 {
    font-size: clamp(4.7rem, 5.8vw, 6.5rem);
  }

  .gallery-grid {
    grid-auto-rows: 300px;
    grid-template-columns: 1.2fr 0.78fr 0.96fr;
    gap: 1.1rem;
  }

  .gallery-item {
    border-radius: 1.35rem;
    box-shadow: 0 22px 55px rgba(11, 27, 20, 0.11);
  }

  .gallery-item > span {
    right: 1.6rem;
    bottom: 1.35rem;
    left: 1.6rem;
  }

  .forestry-grid {
    grid-template-columns: minmax(420px, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(7rem, 10vw, 11rem);
  }

  .forestry-copy h2 {
    font-size: clamp(4.8rem, 5.8vw, 6.5rem);
  }

  .forestry-image {
    height: 750px;
  }

  .forestry-image img {
    border-radius: 11rem 1.2rem 1.2rem 1.2rem;
    box-shadow: 0 38px 90px rgba(6, 19, 12, 0.28);
  }

  .faq-grid {
    grid-template-columns: minmax(360px, 0.62fr) minmax(0, 1.38fr);
    gap: clamp(8rem, 12vw, 14rem);
  }

  .faq-heading h2 {
    font-size: clamp(4.4rem, 5vw, 5.7rem);
  }

  .faq-list summary {
    min-height: 6rem;
    font-size: 1.45rem;
  }

  .contact-section {
    padding-top: 2rem;
  }

  .contact-card {
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.55fr);
    gap: clamp(7rem, 10vw, 11rem);
    padding: clamp(5.5rem, 7vw, 7.5rem);
    border-radius: 4rem 4rem 0 0;
    box-shadow: 0 -24px 70px rgba(11, 27, 20, 0.08);
  }

  .contact-copy h2 {
    font-size: clamp(5.5rem, 7vw, 8rem);
  }

  .contact-details a,
  .contact-details div {
    padding-block: 1.35rem;
  }

  .footer-main {
    grid-template-columns: 0.8fr 1.7fr;
    gap: 8rem;
  }

  .footer-brand img {
    width: 250px;
  }
}

@media (min-width: 1500px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(600px, 0.95fr);
  }

  .hero-media {
    height: min(790px, 72vh);
  }

  .hero-lead {
    max-width: 680px;
  }
}
