/* Inner-page overrides that match the live demo, measured page by page. Loaded on every page after hm.css. */

/* How to read this file
   - Every value was measured in Chrome at a 1718px wide window on the live demo (wp.ravextheme.com/adon)
     and on our page, element by element. "demo" is the demo's value, "was" is ours before the rule.
   - Rules inside the 1600 to 1919px block fix things that only differ at that window width: the HTML
     template steps sizes and spacing down below 1920px and the demo does not, and the demo's columns
     have slightly different pixel widths there.
   - Rules outside the block hold at every width (a colour, a letter-spacing).
   - This file is linked last on every inner page, after hm-core.css, hm-services.css and hm-work.css,
     so a rule here wins over an equally specific rule in those files and in hm.css.
   - Every selector starts with a section class that the homepage and the blog do not use. */

@media (min-width: 1600px) and (max-width: 1919px) {

  /* ================= Page title height, all inner layouts ================= */
  /* Top padding of the title block: demo 100px, was 90px (the template steps it down below 1920px).
     Works together with the 24px push further down; between them the title sits the same distance
     under the menu bar as on the demo. The about title block already had the demo's 80px. */
  .hero-area-service-details .hero-area-service-details-inner.section-spacing-top,
  .page-title-area.contact-title .page-title-area-inner.section-spacing-top,
  .page-title-area.hm-work-detail .page-title-area-inner.section-spacing-top {
    padding-top: 100px;
  }

  /* ================= Service pages (demo: Service Details) ================= */

  /* Space under the top block, under each text block and around the dark band: demo 150px, was 120px. */
  .hero-area-service-details .hero-area-service-details-inner.section-spacing-bottom-150,
  .approach-area-service-details-page .approach-area-service-details-page-inner.section-spacing-bottom-150 {
    padding-bottom: 150px;
  }
  .approach-area-service-details-page .approach-area-service-details-page-inner.section-spacing-150,
  .feature-area .feature-area-inner.section-spacing-150 {
    padding-top: 150px;
    padding-bottom: 150px;
  }

  /* Page title: its left edge is 668px from the left edge of the window on the demo (was 710px).
     The demo centres a short two-word title; our titles are longer, so the column is widened to the
     left instead (834px, was 792px), which puts the first letter where the demo's is. */
  .hero-area-service-details .section-header {
    grid-template-columns: 834px;
  }
  /* Keep the title clear of the "[Next]" link, which sits over the right-hand 50px of that column.
     A long first line ("Shopify Web Design") ran into it; the last 70px are now kept free, so such
     a line wraps instead. The title's left edge does not move. */
  .hero-area-service-details .section-header .title-wrapper {
    padding-right: 70px;
  }

  /* Top block: the left text column is 470px on the demo (was 500px), so the picture starts at 731px
     from the left edge and is 770px wide (was 762px and 740px). */
  .hero-area-service-details .section-content-wrapper {
    grid-template-columns: 470px 1fr;
  }

  /* Steps block and long copy: right column 758px wide starting 744px from the left edge
     (was 790px starting at 712px); the left column with the big number is 508px (was 440px). */
  .approach-area-service-details-page .approach-wrapper-box {
    grid-template-columns: 1fr 758px;
    gap: 20px 24px;
  }
  /* Each step row: number 73px, title 267px, text 328px (was 60, 245 and 395px). */
  .approach-area-service-details-page .approach-box {
    grid-template-columns: 73px 1fr 328px;
  }
  /* Heading to first step row: demo 70px (the heading's own bottom margin), was 93px.
     Only where the rows follow the heading directly; a page with an intro paragraph in between
     (.hm-process-intro, from hm-services.css) keeps the spacing its builder set. */
  .approach-area-service-details-page .section-header + .approach-wrapper {
    margin-top: 0;
  }
  /* Big step count ("05"): demo has no letter-spacing, was -16.5px. */
  .approach-area-service-details-page .approach-wrapper-content .steps {
    letter-spacing: 0;
  }
  /* Step titles: demo letter-spacing is -0.07px, was -2.1px (the titles read tighter than the demo's). */
  .approach-area-service-details-page .approach-box .title {
    letter-spacing: -0.07px;
  }

  /* "Let's get started" call to action (demo: the same block on the Team page): 100px above and below, was 90px. */
  .cta-area-team-page .cta-area-team-page-inner.section-spacing {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  /* ---- Grey "More services" / "What we do" link list (demo: Services ST. Pulse) ---- */
  /* Space above and below the grey band, and between its heading and the list: demo 100px, was 90px. */
  .service-5.section-spacing {
    padding-top: 100px;
    padding-bottom: 100px;
  }
  .service-5 .service-5__content.section-spacing-top {
    padding-top: 100px;
  }
  /* Two equal 626px columns with no gap, so the link list starts 1072px from the left edge
     (was a 500px text column, a 30px gap and a 723px list starting at 975px). */
  .service-5 .service-5__content {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  /* ================= Project pages (demo: Portfolio Details) ================= */

  /* Page title to the first detail row: demo 154px, was 109px. On the demo the title's 45px bottom
     margin and the block's 110px top margin add up; in the template they overlap into 110px. */
  .page-title-area.hm-work-detail + .work-details-area .work-details-area-inner {
    margin-top: 155px;
  }
  /* The description on the right is 508px wide on the demo (was 465px). The detail rows keep their
     520px column because our labels ("Tools & Technologies:") are longer than the demo's. */
  .work-details-area .work-details-wrapper {
    grid-template-columns: 520px 508px;
    justify-content: space-between;
    gap: 30px;
  }

  /* ================= Portfolio index (demo: Portfolio ST. Classic) ================= */

  /* Page title to the first thing under it: demo 154px, was 61px. */
  .work-area.hm-work-index .work-area-inner {
    padding-top: 93px;
  }
  /* Space between rows of cards: demo 85px, was 65px. */
  .work-area.hm-work-index .works-wrapper {
    gap: 85px 10px;
  }
  /* Space under the last row: demo 150px. */
  .work-area.hm-work-index .work-area-inner.section-spacing-bottom {
    padding-bottom: 150px;
  }

  /* ================= About and White label (demo: About Us) ================= */

  /* Text column of the "Our story" style blocks: starts 715px from the left edge and is 786px wide
     on the demo (was 732px and 741px). */
  .who-we-are .who-we-are__wrapper {
    grid-template-columns: 483px 1fr;
  }
  .who-we-are .who-we-are__content {
    max-width: 786px;
  }
  /* Wide picture under the page title: 865px tall on the demo (see also the full-width rule at the end). */
  .about-us .about-us__media img {
    height: 865px;
    object-fit: cover;
  }

  /* ================= Services index (demo: Services ST. Nova) ================= */

  /* Space above and below the list of services: demo 100px, was 90px. */
  .our-expertise-7.section-spacing {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  /* ================= Contact and the two lead forms (demo: Contact) ================= */

  /* Offices band: 100px above and 150px below on the demo (was 90px and 120px). */
  .contact-us.section-spacing-top {
    padding-top: 100px;
  }
  .contact-us.section-spacing-bottom-150 {
    padding-bottom: 150px;
  }
  /* Dark "Our offices" box: 343px wide on the demo (was 355px), so the grey box starts at 570px. */
  .contact-us .contact-us__wrapper {
    grid-template-columns: 343px 1fr;
  }

  /* ================= Design process (demo: Faq, for the accordion) ================= */

  /* The accordion starts 813px from the left edge on the demo (was 842px). */
  .faq-area .faq-area-inner {
    grid-template-columns: 571px 1fr;
  }
  /* Service pages that end with the same accordion: there it lines up with the page's own text
     column instead (744px from the left edge, 758px wide), so it does not sit 69px to the right
     of the copy above it. */
  .hero-area-service-details ~ .faq-area .faq-area-inner {
    grid-template-columns: 502px 1fr;
  }
  /* Space under the accordion: demo 150px, was 120px (same step-down as the other blocks). */
  .faq-area .faq-area-inner.section-spacing-bottom-150 {
    padding-bottom: 150px;
  }

  /* ================= 404 (demo: Error Page) ================= */

  /* Heading: demo 70px. Ours was 90px because the site-wide heading rule in hm.css reached it. */
  .error-area .section-title {
    font-size: 70px;
  }
}

/* ---------------- At every width ---------------- */

/* Contact form fields: on the demo the label line is 21.6px tall and the typing line 24px, which makes
   each field 104px tall. Ours were 18px and 26px (102px fields). */
.contact-page .contact-formfield label {
  line-height: 1.2;
}
.contact-page .contact-formfield input {
  height: 24px;
  line-height: 24px;
}
/* Office phone numbers: dark text with slightly tight spacing on the demo (was grey, no spacing). */
.contact-us .contact-us__item a.phone {
  color: var(--primary);
  letter-spacing: -0.36px;
}

/* About: the wide picture under the page title fills the window on the demo. Ours stopped at the
   file's own 1600px, which left a white strip on the right of any window wider than that
   (113px at 1718px). */
.about-us .about-us__media img {
  width: 100%;
}

/* 404: the button sits centred under the heading on the demo; our two buttons were pushed to the left. */
.error-area .section-content .btn-wrapper {
  justify-content: center;
}

/* ---------------- Page title height: the push under the menu bar ---------------- */
/* Our menu bar ends 104px from the top of the window (20px gap plus an 84px bar); the demo's ends at
   80px. hm.css and hm-core.css push the first block of every inner page down by 40px to clear it.
   24px is the real difference, and with it the gap between the bar and the page title equals the
   demo's: 46px on service pages, 50px on contact, index and project titles, 60px on about.
   (Was 52, 56 and 76px.) From 1600px up only: below that the template shrinks the title padding
   and the larger push is still needed to keep the title clear of the bar.
   Blog pages and the privacy page are left on the 40px push: the blog is out of scope here. */
/* 2026-11-16: no longer needed. Inner pages now use the template's full-width menu, which ends at 80px
   like the demo's, so the pushes in hm.css, hm-core.css and here were removed. */

/* ---------------- White label: "Proof" cards ---------------- */
/* The two cards sat in a 1650px container (32px to 1682px across the window) while every other block
   on the page uses the standard container (212px to 1502px). Same widths as the standard container
   at each screen size. */
@media (min-width: 576px)  { .who-we-are + .work-area > .container.rr-container-1650 { max-width: 540px; } }
@media (min-width: 768px)  { .who-we-are + .work-area > .container.rr-container-1650 { max-width: 720px; } }
@media (min-width: 992px)  { .who-we-are + .work-area > .container.rr-container-1650 { max-width: 960px; } }
@media (min-width: 1200px) { .who-we-are + .work-area > .container.rr-container-1650 { max-width: 1140px; } }
@media (min-width: 1400px) { .who-we-are + .work-area > .container.rr-container-1650 { max-width: 1320px; } }

/* ======================================================================================
   Phone and tablet
   Checked at 390 x 844 (phone) and 768 x 1024 (tablet). Nothing here is about matching the
   demo: each rule fixes something that was cut off, overlapping or too small to tap.
   Every rule sits inside a max-width query, so desktop is untouched.
   ====================================================================================== */

/* Menu button (three lines, top right): the touch area was 19 by 22px. Same icon in the same
   place, with a 43 by 46px touch area around it. */
@media (max-width: 1199px) {
  .header-area .header__navicon .side-toggle {
    padding: 12px;
    margin: -12px;
  }
}

/* Service pages: the "[Services]" and "[Next]" links above the title were 24px tall.
   Same position, 44px touch area. */
@media (max-width: 991px) {
  .hero-area-service-details .service-meta a {
    display: inline-block;
    padding: 10px 0;
    margin: -10px 0;
  }
}

/* Contact and the two lead forms on tablets: the email address in the left column is set at 30px
   and is about 300px long, but the column is only 215 to 290px wide there, so it ran across the
   first form field. It now scales with the screen (18px at 768px wide, 30px again from 1200px). */
@media (min-width: 768px) and (max-width: 1199px) {
  .contact-page .direct-contact a {
    font-size: clamp(18px, 2.4vw, 30px);
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
  }
}

/* Footer copyright line on phones.
   - It sits directly in the footer with no side gutter, so the text touched both screen edges.
     It now starts 15px in, like the footer columns above it.
   - The back-to-top circle and, on most pages, the floating "Get a quote" button sit in the bottom
     right corner and covered the end of the line at the very bottom of the page. The text is
     left-aligned and kept out of the right-hand 90px, and on pages with the button there is room
     below it as well. (Form pages have no button.) */
@media (max-width: 767px) {
  .footer-area .copyright-area-inner {
    padding-left: 15px;
    padding-right: 90px;
  }
  .footer-area .copyright-text .text {
    text-align: left;
    line-height: 1.4;
  }
  body:not(:has(main form)) .footer-area .copyright-area-inner {
    padding-bottom: 84px;
  }
}

@media (max-width: 575px) {
  /* Project pages: the label column was 100px, too narrow for "Technologies:" (112px), which ran
     into the value next to it. */
  .work-details-area .meta-item {
    grid-template-columns: 118px 1fr;
    gap: 12px;
  }

  /* Portfolio index: the three labels above each group ("(Featured project)", its description and
     the count) were squeezed into two narrow columns with 38px line spacing, so the description
     broke into three right-aligned lines. They now stack, left-aligned, at normal line spacing. */
  .work-area.hm-work-index .work-header-meta {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .work-area.hm-work-index .work-header-meta span {
    text-align: left;
    line-height: 26px;
  }
}

/* Blog posts between 576 and 1199px wide: the category and date pills at the top of the article
   started 1px under the menu bar (the bar ends 104px down, the pills began at 105px).
   24px more room above them. Phones already had 21px and are left alone. */
/* 2026-11-16: removed with the pill bar; the template's own spacing clears the 80px menu. */
