/*
Theme Name: BraddaRanCan
Theme URI: https://thefreewebsiteguys.com
Author: The Free Website Guys
Author URI: https://thefreewebsiteguys.com
Description: WordPress theme generated from BraddaRanCan project.
Version: 1.0.11
License: GNU General Public License v2 or later
Text Domain: tmt
*/

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
}

#tmt-app {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  contain: inline-size;
}

#tmt-app .site-page,
#tmt-app #main {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

/* Beats Tailwind Button inline-flex on the header call link. */
#tmt-app .header-call {
  display: inline-flex;
  align-items: center;
}

/*
 * Mobile/tablet only: viewport-anchored gutters for Customizer preview.
 * Desktop uses Lovable centered shells (see min-width: 1024px below).
 */
@media (max-width: 1023px) {
  #tmt-app .page-shell,
  #tmt-app .content-shell,
  #tmt-app .hero-content,
  #tmt-app .coverage-copy {
    width: var(--content-width, min(78rem, calc(100vw - 2rem)));
    max-width: 100%;
    margin-left: var(--content-margin, 1rem);
    margin-right: var(--content-margin, 1rem);
    box-sizing: border-box;
  }

  #tmt-app .nav-shell {
    width: var(--nav-width, min(86rem, calc(100vw - 2rem)));
    max-width: 100%;
    margin-left: var(--nav-margin, 1rem);
    margin-right: var(--nav-margin, 1rem);
    box-sizing: border-box;
  }

  #tmt-app .hero-proof,
  #tmt-app .mobile-contact-dock {
    left: var(--content-margin, 1rem);
    width: var(--content-width, min(78rem, calc(100vw - 2rem)));
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Desktop: match Lovable layout — do not constrain coverage or hero-proof. */
@media (min-width: 1024px) {
  #tmt-app .content-shell,
  #tmt-app .hero-content {
    width: min(calc(100% - (2 * var(--page-gutter, 1.5rem))), 78rem);
    margin-inline: auto;
    box-sizing: border-box;
  }

  #tmt-app .nav-shell {
    width: min(calc(100% - (2 * var(--page-gutter, 1.5rem))), 86rem);
    margin-inline: auto;
    box-sizing: border-box;
  }

  #tmt-app .coverage-copy {
    width: auto;
    max-width: none;
    margin-inline: 0;
  }

  #tmt-app .hero-proof {
    left: auto;
    right: var(--page-gutter, 1.5rem);
    width: min(36rem, 44vw);
    max-width: none;
  }
}
