/* =============================================
   As Above So Below Development LLC — Site CSS
   ============================================= */

/* --- CSS Variables (Color Palette) --- */
:root {
  --color-bg:          #f7f7f5;
  --color-text:        #2b2b2b;
  --color-primary:     #1b3a5c;   /* deep blue */
  --color-secondary:   #2d5a3d;   /* forest green */
  --color-lavender:    #c9bedd;   /* soft lavender */
  --color-border:      #c8c8d4;
  --color-card-bg:     #ffffff;
  --color-footer-bg:   #1b3a5c;
  --color-footer-text: #f0eef5;
  --shadow:            0 2px 8px rgba(27, 58, 92, 0.10);
  --radius:            6px;
  --max-width:         1100px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-secondary);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- Layout Wrapper --- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* =============================================
   HEADER
   ============================================= */
header {
  background-color: var(--color-card-bg);
  border-bottom: 2px solid var(--color-primary);
  padding: 2.5rem 1rem 2rem;
  text-align: center;
}

.header-logo {
  max-width: 220px;
  margin: 0 auto 1rem;
}

.header-logo img {
  margin: 0 auto;
}

header h1 {
  font-size: 1.9rem;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  font-weight: normal;
}

/* =============================================
   BLURB / INTRO
   ============================================= */
.blurb {
  margin: 2.5rem auto;
  max-width: 760px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.6rem 2rem;
  box-shadow: var(--shadow);
  font-size: 1.05rem;
  color: var(--color-text);
}

/* =============================================
   DIVIDERS
   ============================================= */
.divider {
  border: none;
  border-top: 2px solid var(--color-border);
  margin: 2.5rem 0;
}

/* =============================================
   THREE-BRAND ROW
   ============================================= */
.brands-row {
  display: flex;
  gap: 1.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.brand-card {
  flex: 1 1 260px;
  max-width: 320px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.2rem 1.6rem;
  text-align: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.brand-card:hover {
  box-shadow: 0 4px 16px rgba(27, 58, 92, 0.18);
  border-color: var(--color-primary);
}

.brand-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  color: var(--color-text);
}

.brand-card img {
  max-height: 110px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.brand-card .brand-name {
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--color-primary);
}

.brand-card .brand-desc {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.5;
}

/* =============================================
   STANDALONE FEATURED BRAND
   ============================================= */
.featured-brand {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  max-width: 680px;
  margin: 0 auto 2rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem 2rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.featured-brand:hover {
  box-shadow: 0 4px 16px rgba(27, 58, 92, 0.18);
  border-color: var(--color-primary);
}

.featured-brand a.featured-link {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  color: var(--color-text);
  width: 100%;
}

.featured-brand img {
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
  flex-shrink: 0;
}

.featured-brand .featured-text .brand-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.featured-brand .featured-text .brand-desc {
  font-size: 0.97rem;
  color: #555;
  line-height: 1.6;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 1.8rem 1rem;
  text-align: center;
  border-top: 3px solid var(--color-secondary);
}

.footer-logo {
  max-height: 60px;
  width: auto;
  margin: 0 auto 0.8rem;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

footer a:hover .footer-logo {
  opacity: 1;
}

.footer-text {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--color-lavender);
}

/* =============================================
   SECTIONS PADDING
   ============================================= */
.main-content {
  padding: 2rem 0 3rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 700px) {
  header h1 {
    font-size: 1.4rem;
  }

  .brands-row {
    flex-direction: column;
    align-items: center;
  }

  .brand-card {
    max-width: 100%;
  }

  .featured-brand a.featured-link {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .featured-brand img {
    max-width: 120px;
  }
}
