/* ============================================================
   custom.css — Business Card Site Template
   Pairs with simple.css (loaded first).

   HOW TO USE THIS FILE:
   1. Fill in the Brand Variables block below with client values.
   2. Upload the client's logo and update the header accordingly.
   3. Do not edit the Layout & Components section unless the
      project scope requires it.
   ============================================================ */

/* ------------------------------------------------------------
   Brand Variables — EDIT THIS BLOCK PER CLIENT
   ------------------------------------------------------------ */
:root {
  /* Colors */
  --color-header:       #1e2430;   /* Header & footer background */
  --color-accent:       #0050A7;   /* Primary accent: buttons, highlights */
  --color-accent-dark:  #191970;   /* Body link color (needs contrast on --color-body-bg) */
  --color-body-bg:      #f8f9fa;   /* Page background */
  --color-text:         #1e2430;   /* Primary body text */
  --color-muted:        #5a6270;   /* Secondary / muted text */
  --color-border:       #d8dce2;   /* Borders and rules */
  --color-surface:      #ffffff;   /* Cards, info blocks */

  /* Override simple.css variables so its components inherit client palette */
  --bg:           var(--color-body-bg);
  --text:         var(--color-text);
  --text-light:   var(--color-muted);
  --border:       var(--color-border);
  --accent:       var(--color-accent-dark);
  --accent-hover: var(--color-accent);
  --accent-bg:    var(--color-surface);
}


/* ------------------------------------------------------------
   Base Typography
   ------------------------------------------------------------ */
body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-body-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

p {
  margin-bottom: 1rem;
}

strong {
  font-weight: 700;
}


/* ------------------------------------------------------------
   Links
   ------------------------------------------------------------ */
a,
a:visited {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-accent);
  text-decoration: none;
}


/* ------------------------------------------------------------
   Header
   NOTE: Must use `body > header` to match simple.css specificity
   and override its --accent-bg background rule.
   No nav on the Business Card tier — Legal link lives in footer.
   Business name in header.php is an <a> link back to index.php.
   ------------------------------------------------------------ */
body > header {
  background-color: var(--color-header);
  color: #ffffff;
  padding: 1.25rem 1.5rem 1.25rem; 
  border-bottom: none;
}

body > header h1 a,
body > header h1 a:visited {
  color: #ffffff;
  text-decoration: none;
}

body > header h1 a:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

/* Tagline beneath business name */ 
body > header > p {
  color: rgba(255, 255, 255, 0.8);    
}

/* Logo — left of business name when present  */
body > header img.logo {
  height: 48px;
  width: auto;
  vertical-align: middle;
  margin-right: 0.5rem;
}


/* ------------------------------------------------------------
   Footer
   NOTE: grid-column keeps the footer full-width as simple.css
   intends; we swap background and text colors for brand.
   ------------------------------------------------------------ */
body > footer {
  background-color: var(--color-header);
  color: rgba(255, 255, 255, 0.55);
  border-top: none;
  font-size: 0.85rem;
  padding: 1.5rem 1rem;
  text-align: center;
  grid-column: 1 / -1;
}

body > footer a,
body > footer a:visited {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

body > footer a:hover {
  color: #ffffff;
}

/* ------------------------------------------------------------
   Layout & Components — Business Card Tier
   simple.css handles alignment and text flow.
   These classes provide structure, spacing, and surface color
   only. Add overrides here only when simple.css falls short.
   ------------------------------------------------------------ */

/* Hero / intro block */
.bc-hero {
  background-color: var(--color-surface);
  border: none;
  border-radius: 6px;
  box-shadow: var(--color-border) 2px 2px;  
  padding: 2rem;
  margin: 1.5rem 0;
}

.bc-hero h2 {
  margin-top: 0;
  padding-top: 1rem;
  font-size: 1.5rem;
}

.bc-hero p {
  color: var(--color-muted);
}

/* Contact info block */
.bc-contact {
  background-color: var(--color-surface);
  border: none;
  border-radius: 6px;
  box-shadow: var(--color-border) 2px 2px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}

.bc-contact h2 {
  margin-top: 0;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  font-weight: 600;
}

.bc-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bc-contact ul li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.05rem;
}

.bc-contact ul li:last-child {
  border-bottom: none;
}

.bc-contact .label {
  font-weight: 600;
  display: inline-block;
  min-width: 6rem;
  color: var(--color-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Hours table */
.bc-hours {
  background-color: var(--color-surface);
  border: none;
  border-radius: 6px;
  box-shadow: var(--color-border) 2px 2px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}

.bc-hours h2 {
  margin-top: 0;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  font-weight: 600;
}

.bc-hours table {
  margin: 0;
  width: 100%;
  border-collapse: collapse;
}

.bc-hours th,td {
  border: none;
  padding: 0.35rem 0;
  font-size: 1rem;
}

.bc-hours tr:nth-child(even) {
  background-color: transparent;
}

.bc-hours .day {
  font-weight: 600;
  width: 9rem;
}

/* Map / directions block */
.bc-map {
  background-color: var(--color-surface);
  border: none;
  border-radius: 6px;
  box-shadow: var(--color-border) 2px 2px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}

.bc-map h2 {
  margin-top: 0;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  font-weight: 600;
}

.bc-map p {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.bc-map > a.button {
	background-color: var(--color-header);
	border: var(--color-header);
	margin: 0 0 1rem 0;
}

.bc-map > a.button:hover{
	color: #ffffff;	
}
