/* ==========================================================================
   Craving For Brownies — cravingforbrownies.com
   Rebuilt as plain HTML/CSS to replace the Weebly site.
   Colours and fonts match the original Weebly theme.
   ========================================================================== */

:root {
  --page-bg:      #f9f9f9;   /* page background            */
  --header-bg:    #ffffff;   /* white band behind the logo */
  --title:        #484848;   /* CRAVING FOR BROWNIES       */
  --nav:          #8e8e8e;   /* menu links                 */
  --nav-active-bg:#efefef;   /* current page pill          */
  --heading:      #314043;   /* CONTACT US / TESTIMONIALS  */
  --text:         #90999f;   /* body copy                  */
  --strong:       #6f7a80;   /* bold text inside copy      */
  --rule:         #e4e4e4;   /* hairlines                  */
  --button:       #5199a8;   /* teal buttons               */
  --button-hover: #437f8b;
  --required:     #cc3333;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Droid Serif", "Noto Serif", Georgia, serif;
  font-size: 15px;
  line-height: 1.85;
}

img { max-width: 100%; height: auto; border: 0; }

/* phone numbers never break across two lines */
.tel { white-space: nowrap; }

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

:focus-visible { outline: 2px solid var(--button); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------- header -- */

.site-header {
  background: var(--header-bg);
  padding: 34px 0 0;
}

.site-title {
  display: block;
  text-align: center;
  font-family: Poly, Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--title);
  text-decoration: none;
}
.site-title:hover { text-decoration: none; color: var(--title); }

/* nav sits on a hairline that runs the width of the page */
.site-nav {
  margin-top: 26px;
  padding-bottom: 18px;
  text-align: center;
  position: relative;
}
.site-nav::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
}

.site-nav ul {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0 14px;
  list-style: none;
  background: var(--header-bg);
}

.site-nav a {
  display: block;
  padding: 8px 14px;
  font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--nav);
  text-decoration: none;
}
.site-nav a:hover { color: var(--title); text-decoration: none; }
.site-nav a.current { background: var(--nav-active-bg); color: var(--title); }

/* ----------------------------------------------------------------- main -- */

main { padding: 30px 0 50px; }

h2.page-title {
  margin: 0 0 18px;
  font-family: Lato, "Helvetica Neue", Arial, sans-serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--heading);
}

p { margin: 0 0 1.5em; }
strong, b { color: var(--strong); font-weight: 700; }

/* --------------------------------------------------------------- button -- */

.button {
  display: inline-block;
  padding: 14px 26px;
  background: var(--button);
  color: #ffffff;
  font-family: Lato, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.button:hover { background: var(--button-hover); color: #fff; text-decoration: none; }

.button-row { text-align: center; margin: 34px 0 10px; }

/* ------------------------------------------------------- home: gallery --- */

.logo-banner { text-align: center; padding: 10px 0; }
.logo-banner img { width: auto; max-width: 100%; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 10px;   /* extra row gap so each caption reads with the photo above it */
  margin: 20px 0 0;
}

.gallery figure { margin: 0; }

.gallery .frame {
  display: block;
  position: relative;
  padding-bottom: 75%;      /* 4:3, same crop as the Weebly gallery */
  overflow: hidden;
}

.gallery figcaption {
  padding: 10px 4px 4px;
  text-align: center;
  font-family: Lato, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--heading);
}
.gallery img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* -------------------------------------------------- testimonials page --- */

.testimonial {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 30px;
  align-items: start;
  padding: 26px 0;
}
.testimonial + .testimonial { border-top: 1px solid var(--rule); }
.testimonial .photo img { width: 145px; display: block; }
.testimonial .quote p:last-child { margin-bottom: 0; }
.testimonial .signoff { white-space: pre-line; }

/* ------------------------------------------------------- contact page --- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: start;
}

.info-list { margin: 0 0 1.5em; }
.info-list .label { text-decoration: underline; }

.badge { margin-top: 10px; }
.badge img { width: 128px; }

.wide-photo { margin: 40px 0 0; }
.wide-photo img { width: 100%; display: block; }

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}
.photo-pair img { width: 100%; display: block; }

/* ----------------------------------------------------------------- form -- */

.form-note { font-size: 13px; margin-bottom: 18px; }
.req { color: var(--required); }

.field { margin-bottom: 18px; }

.field > label,
.field > .field-label {
  display: block;
  margin-bottom: 6px;
  font-family: Lato, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--heading);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  padding: 9px 10px;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 0;
  font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #444;
}
.field textarea { min-height: 150px; resize: vertical; }

.field input:focus, .field textarea:focus {
  border-color: var(--button);
  outline: none;
}

.name-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sub-label {
  display: block;
  margin-top: 5px;
  font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  color: var(--text);
}

/* honeypot — hidden from people, catches bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.footnotes {
  margin-top: 26px;
  font-size: 13px;
  line-height: 1.7;
}

/* --------------------------------------------------------------- footer -- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 26px 0 40px;
  text-align: center;
}
.site-footer .footer-nav {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}
.site-footer .footer-nav a {
  display: block;
  padding: 6px 12px;
  font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--nav);
}
.copyright {
  margin: 0;
  font-size: 13px;
  color: var(--text);
}

/* --------------------------------------------------- order form blocks --- */

fieldset.block {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0 0 26px;
  padding: 18px 0 0;
}
fieldset.block:first-of-type { border-top: 0; padding-top: 0; }

fieldset.block legend {
  padding: 0 10px 0 0;
  font-family: Lato, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--heading);
}

.field select {
  width: 100%;
  padding: 9px 10px;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 0;
  font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #444;
}
.field select:focus { border-color: var(--button); outline: none; }

.field input[type="number"],
.field input[type="date"] {
  width: 100%;
  padding: 9px 10px;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 0;
  font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #444;
}
.field input[type="number"]:focus,
.field input[type="date"]:focus { border-color: var(--button); outline: none; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* one quantity box per flavour, so mixed orders are unambiguous */
.qty-list {
  list-style: none;
  margin: 8px 0 10px;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.qty-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--rule);
}
.qty-list label {
  font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  color: #555;
  cursor: pointer;
}
.qty-list li:hover label { color: var(--heading); }

.qty-list input.qty {
  flex: none;
  width: 74px;
  padding: 7px 8px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 0;
  font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #444;
}
.qty-list input.qty:focus { border-color: var(--button); outline: none; }

/* room to breathe before the send button */
.submit-row { margin-top: 26px; }

/* live total */
.estimate {
  margin-top: 20px;
  padding: 14px 16px;
  background: #f0f2f2;
  border-left: 3px solid var(--button);
}
.estimate:empty { display: none; }
.estimate-label {
  display: block;
  font-family: Lato, "Helvetica Neue", Arial, sans-serif;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
}
.estimate-sum {
  display: block;
  font-family: Poly, Georgia, serif;
  font-size: 1.65rem;
  line-height: 1.2;
  color: var(--heading);
  margin: 2px 0 4px;
}
.estimate-detail {
  display: block;
  font-size: 13px;
  color: var(--text);
}

/* ---------------------------------------------- thank-you / error page --- */

.notice {
  max-width: 620px;
  margin: 30px auto 60px;
  padding: 34px 34px 30px;
  background: #ffffff;
  border: 1px solid var(--rule);
}
.notice .lead { font-size: 1.08rem; color: var(--heading); }
.notice .small { font-size: 13.5px; }
.notice .button-row { margin-top: 30px; text-align: left; }

/* ------------------------------------------------------------ responsive - */

@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; gap: 34px; }
  .testimonial { grid-template-columns: 1fr; gap: 16px; }
  .testimonial .photo img { width: 145px; }
  .site-title { font-size: 22px; letter-spacing: 2px; }
  main { padding-top: 22px; }
}

@media (max-width: 520px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .photo-pair { grid-template-columns: 1fr; }
  .name-parts { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .notice { padding: 24px 20px 22px; margin-top: 10px; }
  .site-nav ul { gap: 0; }
  .site-nav a { padding: 8px 10px; font-size: 12px; }
}
