/* ==========================================================================
   Homesafe Inspections — Base Styles
   Reset, typography, and body defaults
   ========================================================================== */

/* ---- Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---- Font Faces ----
   PRODUCTION: These are already loaded in the C# MVC layout.
   For local mockup preview, we use Google Fonts fallbacks (Playfair Display + Montserrat).
   Uncomment the @font-face blocks below if you have the OTF files locally.
*/

/*
@font-face {
  font-family: 'Gordita';
  src: url('https://homesafe.blob.core.windows.net/assets/GorditaLight.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Gordita';
  src: url('https://homesafe.blob.core.windows.net/assets/GorditaRegular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Gordita';
  src: url('https://homesafe.blob.core.windows.net/assets/GorditaMedium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Gordita';
  src: url('https://homesafe.blob.core.windows.net/assets/GorditaBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'TestTiemposFine';
  src: url('https://homesafe.blob.core.windows.net/assets/TestTiemposFine-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'TestTiemposFine';
  src: url('https://homesafe.blob.core.windows.net/assets/TestTiemposFine-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-family: 'Founders Grotesk';
  src: url('https://homesafe.blob.core.windows.net/assets/FoundersGrotesk-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Founders Grotesk';
  src: url('https://homesafe.blob.core.windows.net/assets/FoundersGrotesk.Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
*/

/* ---- Body ---- */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-light);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: var(--leading-loose);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--text-grey);
  line-height: var(--leading-tight);
}

h1 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-light);
}

h2 {
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
}

h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--text-grey);
}

h4 {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
}

h5 {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--text-grey);
  text-transform: uppercase;
  letter-spacing: 1px;
}

p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-light);
  line-height: var(--leading-loose);
  color: var(--text-grey);
}

a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-grey);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---- Utility Classes ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

/* Section spacing */
.section {
  padding: var(--space-4xl) var(--page-padding);
}

.section--cream {
  background: var(--bg-cream);
}

.section--warm {
  background: var(--bg-warm);
}

.section--sage {
  background: var(--accent-soft);
}

.section--dark {
  background: var(--text-dark);
  color: var(--bg-white);
}

.section--dark h2,
.section--dark h3,
.section--dark p {
  color: var(--bg-white);
}

.section--dark p {
  opacity: 0.7;
}

/* ---- Desktop Overrides ---- */
@media (min-width: 1024px) {
  h1 {
    font-size: var(--text-4xl);
  }

  h2 {
    font-size: var(--text-xl);
    max-width: 375px; /* matches live site constraint */
  }
}
