/* =========================================================
   CANADA DWARFS — CLEAN + STYLED (still simple + readable)
   Adds: nicer typography, link styling, subtle shadows,
         better spacing, table polish, and responsive tweaks
   ========================================================= */

/* -------------------------
   1) RESET / BASE
-------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Page */
  --page-max: 1200px;
  --page-padding: 20px;

  /* Colors */
  --bg: #f8f8f8;
  --text: #111;
  --muted: #666;

  --header-bg: #c60000;      /* slightly nicer than pure red */
  --header-text: #fff;

  --rule: #FF0000;

  /* Cards / borders */
  --border: #e5e5e5;
  --img-border: #ddd;
  --radius: 10px;
  --shadow: 0 6px 18px rgba(0,0,0,0.08);

  /* Buttons */
  --btn: #c60000;
  --btn-hover: #900;

  /* Links */
  --link: #c60000;
  --link-hover: #900;

  /* Spacing */
  --gap: 12px;

  /* Grid image heights */
  --img-h-desktop: 300px;
  --img-h-tablet: 240px;
  --img-h-phone: 200px;
  --img-h-small: 180px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);

  max-width: var(--page-max);
  margin: auto;
  padding: var(--page-padding);
  line-height: 1.5;
}

/* Make headings look cleaner */
h1, h2, h3 {
  letter-spacing: 0.2px;
}
h1 { font-size: 30px; }
h2 { font-size: 22px; margin-bottom: 6px; }
h3 { font-size: 18px; margin-bottom: 6px; }

/* Nice default paragraphs */
p {
  color: var(--text);
}

/* Links (global) */
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}


/* -------------------------
   2) HEADER (first table)
-------------------------- */
table:first-of-type {
  width: 100%;
  background: linear-gradient(90deg, var(--header-bg), #ff2a2a);
  color: var(--header-text);

  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

table:first-of-type td {
  padding: 14px 16px;
  vertical-align: middle;
}

table:first-of-type h1 {
  margin: 0;
  color: var(--header-text);
}

/* Header links */
table:first-of-type a {
  color: var(--header-text);
  margin-left: 10px;
  font-weight: bold;
  text-decoration: none;
  opacity: 0.95;
}

table:first-of-type a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Slightly nicer pipes */
table:first-of-type td[align="right"] {
  white-space: nowrap;
}


/* -------------------------
   3) DIVIDERS
-------------------------- */
hr {
  margin: 26px auto;
  width: 96%;
  border: none;
  border-top: 2px solid var(--rule);
  opacity: 0.85;
}


/* -------------------------
   4) INTRO IMAGE (2nd table)
   + makes intro section feel like a card
-------------------------- */
body > table:nth-of-type(2) {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

body > table:nth-of-type(2) td {
  padding: 18px !important;
}

body > table:nth-of-type(2) img {
  width: 100%;
  max-width: 500px;
  height: auto !important;
  display: block;
  border-radius: var(--radius);
  border: 2px solid var(--img-border);
}


/* -------------------------
   5) GALLERY / GRID TABLES
   NOTE: targets tables with align="center"
-------------------------- */
table[align="center"] {
  table-layout: fixed;
  width: 100%;
  border-collapse: separate;
  border-spacing: 10px; /* gives “card spacing” */
}

/* Each cell as a mini-card */
table[align="center"] td {
  width: 20%;
  text-align: center;
  padding: 12px;
  vertical-align: top;

  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

table[align="center"] td:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

/* Uniform image sizing + crop */
table[align="center"] img {
  width: 100%;
  height: var(--img-h-desktop);
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  border: 2px solid var(--img-border);
  display: block;
}

/* Captions + description text (if you add more <p>) */
table[align="center"] p {
  margin-top: 8px;
  font-weight: bold;
}

table[align="center"] td p + p {
  margin-top: 6px;
  font-weight: normal;
  color: var(--muted);
  font-size: 14px;
}

/* Make emphasized notes look nicer */
em {
  color: var(--muted);
}


/* -------------------------
   6) BUTTON LINKS
   Only links with .services-btn class will look like buttons
-------------------------- */
.services-btn,
a[href="#top"] {
  background: var(--btn);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;  /* pill button */
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  box-shadow: 0 8px 18px rgba(198,0,0,0.18);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}


/* CANCEL BUTTON STYLE FOR HEADER NAV LINK */
table:first-of-type a[href="services.html"] {
  background: none !important;
  color: var(--header-text) !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* STOP HOVER MOVEMENT ON HEADER "SERVICES" LINK */
table:first-of-type a[href="services.html"]:hover {
  transform: none !important;
  box-shadow: none !important;
  background: none !important;
}


a[href="services.html"]:hover,
a[href="#top"]:hover {
  background: var(--btn-hover);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(198,0,0,0.24);
}


/* -------------------------
   7) RESPONSIVE BREAKPOINTS
-------------------------- */
@media (max-width: 900px) {
  table[align="center"] td {
    width: 33.33%;
  }
  table[align="center"] img {
    height: var(--img-h-tablet);
  }
}

@media (max-width: 600px) {
  body {
    padding: 14px;
  }

  table:first-of-type td {
    padding: 12px;
  }

  table[align="center"] td {
    width: 50%;
  }
  table[align="center"] img {
    height: var(--img-h-phone);
  }
}

@media (max-width: 420px) {
  table[align="center"] td {
    width: 100%;
  }
  table[align="center"] img {
    height: var(--img-h-small);
  }
}
