/* Vermont Scarf Company - site styles
   Edit the colors and fonts here; every page uses this one file. */

:root {
  --navy: #1b1650;        /* main brand navy (header, headings), matched to the Wix site */
  --slate: #3c4a57;       /* dark gray-blue text */
  --gray: #8a97a3;        /* stripe gray accent */
  --cream: #f6f3ee;       /* light section background */
  --white: #ffffff;
  --accent: #b23a2e;      /* deep red buttons */
  --accent-dark: #8e2c22;
  --heading-font: "Oswald", "Arial Narrow", Arial, sans-serif;
  --body-font: "Open Sans", Arial, Helvetica, sans-serif;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
}

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

a { color: var(--navy); }

h1, h2, h3 {
  font-family: var(--heading-font);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--navy);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo img { width: 254px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; }
.nav a {
  font-family: var(--heading-font);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--slate);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active { color: var(--navy); border-bottom-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(15, 30, 45, 0.45); }
.hero > * { position: relative; }
.hero h1, .hero h2 { color: var(--white); }
.hero p { font-size: 1.3rem; margin: 0 0 1.4em; }
.hero.short { min-height: 320px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: var(--heading-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 28px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--accent-dark); }
.btn.outline { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn.outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section.alt { background: var(--cream); }
.section.dark { background: var(--navy); color: var(--white); }
.section.dark h2, .section.dark h3 { color: var(--white); }
.center { text-align: center; }
.kicker { font-family: var(--heading-font); letter-spacing: 0.12em; color: var(--gray); margin: 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }

.banner { height: 300px; background-size: cover; background-position: center; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.card { background: var(--white); border: 1px solid #e3e0da; }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 25%; }
.card .card-body { padding: 20px; }
.price { font-size: 1.3rem; font-weight: 600; color: var(--navy); margin: 0 0 0.6em; }
.small { font-size: 0.9rem; color: #66727d; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 14px; }
.form label { font-weight: 600; font-size: 0.95rem; }
.form input, .form textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #c9ced3;
  border-radius: 2px;
}
.form textarea { min-height: 140px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate); color: #dfe4e8; padding: 40px 0; text-align: center; font-size: 0.95rem; }
.site-footer a { color: var(--white); text-decoration: none; margin: 0 10px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0.6em 0; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse > :first-child { order: 0; }
  .site-header { position: static; }
  .site-header .container { justify-content: center; }
  .hero { min-height: 380px; }
  .section { padding: 50px 0; }
}

/* ---------- Giving Back (home page) ---------- */
.giving {
  background: #f3f3f4 url("../images/topo-background.svg") center / cover;
  color: var(--navy);
}
.giving h2 { font-size: 2.6rem; margin-bottom: 40px; }
.give-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.give .icon {
  width: 72px; height: 72px; margin: 0 auto 14px;
  fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: miter;
}
.give h3 { font-family: var(--body-font); font-weight: 600; font-size: 1.25rem; letter-spacing: 0; }
.give p { margin: 0; }
@media (max-width: 760px) { .give-grid { grid-template-columns: 1fr; } }

/* ---------- Scarf photos under the home page welcome ---------- */
.scarf-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 30px 0 34px; }
.scarf-row a { text-decoration: none; color: var(--navy); font-family: var(--heading-font); letter-spacing: 0.06em; }
.scarf-row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; margin-bottom: 10px; }
.scarf-row a:hover img { opacity: 0.9; }
.center .btn + .btn { margin-left: 10px; }
@media (max-width: 760px) { .scarf-row { gap: 10px; } .scarf-row span { font-size: 0.8rem; } }

/* ---------- Our Story photos beside the text ---------- */
.story-img { width: 320px; margin-bottom: 15px; }
.story-img.right { float: right; margin-left: 28px; }
.story-img.left { float: left; margin-right: 28px; }
@media (max-width: 760px) { .story-img, .story-img.left, .story-img.right { float: none; width: 100%; margin: 0 0 20px; } }

/* ---------- Scarf on the right side of the home banner ---------- */
.hero .hero-scarf {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%) rotate(-4deg);
  height: 86%;
  width: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}
@media (max-width: 1000px) { .hero .hero-scarf { right: 2%; height: 60%; opacity: 0.95; } }
@media (max-width: 760px) { .hero .hero-scarf { display: none; } }
@media (min-width: 761px) { .hero.has-scarf .container { padding-right: 32%; } }
@media (min-width: 1300px) { .hero.has-scarf .container { padding-right: 24%; } }
