/************************************************************
  CROW — overrides.css (clean)
  Loads AFTER the theme’s style.css
************************************************************/

/* ==========================================================
   0) GLOBAL HEADINGS & BODY TEXT
   - H2 locked smaller site-wide
========================================================== */
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.15; }
h2 { font-size: clamp(22px, 3vw, 40px); line-height: 1.25; } /* smaller, consistent */
h3 { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.30; }
h4 { font-size: clamp(18px, 2.2vw, 24px); line-height: 1.35; }
h5 { font-size: clamp(16px, 2vw, 20px); line-height: 1.40; }
h6 { font-size: clamp(14px, 1.8vw, 18px); line-height: 1.40; }

body { font-size: clamp(16px, 1.05vw, 18px); line-height: 1.7; }
p, li { font-size: 1em; line-height: inherit; }

/* ==========================================================
   1) MAIN NAVIGATION
========================================================== */
.main-navigation a,
nav a {
  font-size: clamp(14px, 0.95vw, 16px);
  font-weight: 400; /* not bold */
}

/* ==========================================================
   2) FORMS (CF7 + native)
========================================================== */
.wpcf7-form-control,
input[type="text"], input[type="email"], input[type="tel"],
input[type="url"],  input[type="number"], input[type="password"],
textarea {
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.4;
  padding: 8px 10px;
}
.wpcf7-form-control::placeholder,
input::placeholder, textarea::placeholder {
  font-size: clamp(13px, 0.95vw, 15px);
}

/* ==========================================================
   3) TITLES (generic + page-specific)
========================================================== */
/* Big section headers like “Solutions & Industries” */
.section__title {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.2;
  margin: 0 0 .5em 0;
}

/* Contact page hero title: tidy wrap + left align */
.contact .section__title { max-width: 420px; text-align: left; }

/* Internal device pages */
body:not(.home) h2.device_title {
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.3;
}

/* Features titles (e.g., “Cloud-Based Management”) */
.features__title {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.3;
}

/* Titles inside solution cards/rows (e.g., CrowNest) */
.solutions__item-title {
  font-size: clamp(20px, 1.6vw, 26px);
  margin-bottom: 10px;
}

/* ==========================================================
   4) INDUSTRIES GRID (cards with big images + small captions)
========================================================== */
/* Card height controls overall section height on desktop */
.industries__item {
  height: 320px;                 /* tweak: 300–360px */
  overflow: hidden;
  position: relative;
}

/* Image fills the card (no top/bottom gaps) */
.industries__item-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Caption under/over image (icon + label) */
.industries__item-title {
  font-size: 16px;               /* subtler label size */
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
}
.industries__item-title img {
  width: 20px;
  height: auto;
}

/* Mobile/tablet: let cards expand naturally */
@media (max-width: 992px) {
  .industries__item { height: auto; }
  .industries__item-image { height: auto; }
}

/* ==========================================================
   5) SOLUTIONS ROWS (image + text layout that repeats)
========================================================== */
.solutions {
    margin-top: 80px;
    overflow-x: hidden;

.solutions__item {
  min-height: 380px;             /* tweak: 340–420px */
  align-items: stretch !important;
  gap: 32px;
}
.solutions__item-image {
  height: 100% !important;
  width: 100% !important;
  display: block;
  object-fit: cover;
  object-position: center;
}
.solutions__item-text {
  display: flex;
  flex-direction: column;
  justify-content: center;       /* vertically center text */
}
.solutions__item-description {
  font-size: clamp(16px, 1.1vw, 18px);
  font-weight: 400;
}
.button__custom { margin-top: 10px; }

@media (max-width: 992px) {
  .solutions__item { min-height: auto; gap: 20px; }
  .solutions__item-image { height: auto !important; }
  .solutions__item-title { margin-bottom: 8px; }
}

/* ==========================================================
   6) FOOTER & SMALL TEXT
========================================================== */
.small, .meta, .caption,
.site-footer, .footer-widgets,
.footer-widgets li a {
  font-size: clamp(12px, 0.9vw, 14px);
  line-height: 1.5;
}

/* Solutions rows – proportional split between image and text */
.solutions__item {
  display: flex;
  align-items: stretch;
  gap: 32px;
  height: clamp(320px, 45vh, 420px);   /* shorter section height */
}

/* Image column – not full width anymore */
.solutions__item-image {
  flex: 0 0 62%;             /* take ~62% of the row */
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Text column – takes the rest */
.solutions__item-text {
  flex: 1;                   /* remaining space */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /*padding: clamp(12px, 2vw, 20px);*/
}

/* Titles and body text sizing */
.solutions__item-title {
  font-size: clamp(20px, 1.6vw, 24px);
  margin-bottom: 8px;
}
.solutions__item-description {
  font-size: clamp(16px, 1.1vw, 17px);
  line-height: 1.5;
}

/* Mobile – stack vertically */
@media (max-width: 992px) {
  .solutions__item {
    flex-direction: column;
    height: auto;
  }
  .solutions__item-image {
    flex: none;
    width: 100%;
    height: auto !important;
  }
}

/* Solutions: fix "More details" button sizing & layout */
.solutions__item-text .button__custom {
  display: inline-flex !important;   /* keep label + icon on one line */
  align-items: center;
  gap: 12px;                          /* space between text and arrow */
  white-space: nowrap;                /* prevent wrapping */
  width: max-content !important;      /* shrink to content */
  padding: 12px 24px;                 /* comfortable hit area */
  align-self: flex-start;             /* don't stretch across the column */
}

/* If your arrow is an <svg> or <span>, ensure it doesn't wrap */
.solutions__item-text .button__custom > svg,
.solutions__item-text .button__custom > span {
  flex: 0 0 auto;
}

/* Add left/right padding to Solutions text area */
.solutions__item-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /*padding: clamp(12px, 2vw, 20px) clamp(24px, 4vw, 40px);*/ /* top/bottom | left/right */
}