/* ===========================================================
   Putnam GDVC — Custom Styles for Divi 5
   Add via: WPCode > + Add Snippet > Create Your Own > CSS Snippet
   Location: Site Wide Header   Priority: 10
   Fonts: Big Shoulders Display (900/800) + Archivo (400/600/700).
   Divi loads them from the module settings; if a font isn't in
   Divi's list, add the Google Fonts snippet from INSTRUCTIONS.md.
   =========================================================== */

/* --- Brand tokens (change colors here) --------------------- */
:root {
  --gdvc-black: #070706;   /* press black, matches the artwork */
  --gdvc-teal: #008a9a;    /* plate teal */
  --gdvc-teal-deep: #005b66;
  --gdvc-red: #ed4d32;     /* spot red */
  --gdvc-red-deep: #c93a22;
  --gdvc-amber: #f09a30;
  --gdvc-amber-light: #ffbf56;
  --gdvc-paper: #eef2f1;   /* proof white */
  --gdvc-ink: #173138;
  --gdvc-muted: #4f646b;
  --gdvc-rule: #cdd9da;
  --gdvc-field: #b4c7ca;
  --gdvc-error: #b62b36;
  --gdvc-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --gdvc-body: "Archivo", Arial, Helvetica, sans-serif;
  --gdvc-header-h: 112px;  /* used to offset anchor jumps */
}

/* --- Base ---------------------------------------------------- */
body { font-family: var(--gdvc-body); color: var(--gdvc-ink); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
#services, #process, #quote { scroll-margin-top: 24px; }

[class*="gdvc-"] a:focus-visible,
[class*="gdvc-"] button:focus-visible,
.gdvc-form input:focus-visible,
.gdvc-form select:focus-visible,
.gdvc-form textarea:focus-visible {
  outline: 3px solid var(--gdvc-amber);
  outline-offset: 3px;
}

/* Divi adds bottom margins to modules and padding under headings and
   paragraphs. Spacing in these sections is set per module instead. */
[class*="gdvc-"] .et_pb_column > .et_pb_module:not(:last-child) { margin-bottom: 0; }
[class*="gdvc-"] .et_pb_text_inner h1,
[class*="gdvc-"] .et_pb_text_inner h2,
[class*="gdvc-"] .et_pb_text_inner h3 { padding-bottom: 0; margin: 0; }
[class*="gdvc-"] .et_pb_text_inner p { padding-bottom: 0; margin: 0; }
[class*="gdvc-"] .et_pb_text_inner p + p { margin-top: 0.9em; }

/* --- Buttons --------------------------------------------------- */
a.et_pb_button.gdvc-btn,
.gdvc-btn a.et_pb_button {
  display: inline-block;
  font-family: var(--gdvc-body);
  font-weight: 700;
  line-height: 1.2;
  border: 0;
  border-radius: 2px;
  transition: background-color .15s ease, transform .15s ease;
}
a.et_pb_button.gdvc-btn:hover,
.gdvc-btn a.et_pb_button:hover { padding-left: 26px !important; padding-right: 26px !important; }
a.et_pb_button.gdvc-btn:active,
.gdvc-btn a.et_pb_button:active { transform: translate(2px, 2px); }

/* --- Header ---------------------------------------------------- */
.gdvc-header { border-bottom: 5px solid var(--gdvc-red); }
.gdvc-header .et_pb_row.gdvc-header__row {
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 24px;
}
.gdvc-header .et_pb_row.gdvc-header__row { padding-top: 0; padding-bottom: 0; }
.gdvc-header__cta a.et_pb_button, a.et_pb_button.gdvc-header__cta { white-space: nowrap; }
.gdvc-header .et_pb_row.gdvc-header__row > .et_pb_column {
  width: auto !important; margin: 0 !important; float: none;
}
.gdvc-header .et_pb_column.gdvc-header__nav {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: flex-end; gap: 32px;
}
.gdvc-header__nav > .et_pb_module { margin: 0 !important; }

.gdvc-brand { display: flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; }
.gdvc-brand__logo { display: block; height: 76px; width: auto; flex: 0 0 auto; }
.gdvc-brand__words { display: flex; flex-direction: column; }
.gdvc-brand__school {
  font-family: var(--gdvc-display); font-weight: 900; font-size: 40px; line-height: .9;
  letter-spacing: 3px; text-transform: uppercase; color: #fff;
}
.gdvc-brand__academy {
  font-weight: 700; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--gdvc-amber-light); margin-top: 6px; line-height: 1.3;
}
.gdvc-brand__dept { font-size: 13px; color: #b9c6c9; margin-top: 3px; line-height: 1.3; }

.gdvc-nav { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0 !important; }
.gdvc-nav li { padding: 0; }
.gdvc-nav a {
  color: #fff; font-weight: 600; font-size: 15px; text-decoration: none;
  border-bottom: 2px solid transparent; padding: 6px 0;
}
.gdvc-nav a:hover { border-bottom-color: var(--gdvc-amber); }

/* --- Hero: halftone field + misregistered headline ------------- */
.gdvc-hero { position: relative; overflow: hidden; isolation: isolate; }
.gdvc-hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: -10%; right: -8%; width: 70%; height: 120%;
  background-image: radial-gradient(circle, var(--gdvc-teal) 2px, transparent 2.6px);
  background-size: 15px 15px;
  opacity: .32;
  -webkit-mask-image: radial-gradient(ellipse at 70% 45%, #000 0%, transparent 68%);
          mask-image: radial-gradient(ellipse at 70% 45%, #000 0%, transparent 68%);
}
.gdvc-hero .et_pb_row { position: relative; z-index: 1; }
.gdvc-hero .et_pb_row.gdvc-hero__row { display: flex; align-items: center; }

.gdvc-hero__kicker { border-left: 5px solid var(--gdvc-red); padding-left: 12px; }

.gdvc-hero h1 {
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 6px 6px 0 var(--gdvc-teal);
}
@media (prefers-reduced-motion: no-preference) {
  .gdvc-hero h1 { animation: gdvc-register .7s cubic-bezier(.2, .8, .2, 1) .15s both; }
}
/* The teal plate drops into place, like a second color going down on press. */
@keyframes gdvc-register {
  from { text-shadow: 22px -14px 0 rgba(0, 138, 154, 0); }
  60%  { text-shadow: 4px 7px 0 var(--gdvc-teal); }
  to   { text-shadow: 6px 6px 0 var(--gdvc-teal); }
}

.gdvc-hero__intro { max-width: 30em; }
.gdvc-hero__copy .et_pb_button_module_wrapper {
  display: inline-block; vertical-align: middle; margin: 40px 28px 0 0 !important;
}
.gdvc-hero__alt { display: inline-block; vertical-align: middle; margin-top: 40px !important; }
.gdvc-textlink {
  color: #fff; text-decoration: underline; text-decoration-color: var(--gdvc-amber);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.gdvc-textlink:hover { color: var(--gdvc-amber-light); }

.gdvc-hero__art img { display: block; width: 100%; height: auto; }

/* --- Services: ink swatch list -------------------------------- */
.gdvc-swatches {
  list-style: none; margin: 0; padding: 0 !important;
  columns: 2; column-gap: 48px;
  border-top: 2px solid var(--gdvc-black);
}
.gdvc-swatches li {
  break-inside: avoid;
  display: flex; align-items: center; gap: 18px;
  padding: 16px 0; border-bottom: 1px solid var(--gdvc-rule);
  font-family: var(--gdvc-display); font-weight: 800; font-size: 34px; line-height: 1;
  color: var(--gdvc-black);
}
.gdvc-swatches li::before {
  content: ""; flex: 0 0 26px; width: 26px; height: 26px;
  background: var(--sw, var(--gdvc-teal));
  box-shadow: 5px 0 0 var(--sw2, var(--gdvc-red));
}
.gdvc-swatches li:nth-child(4n+1) { --sw: var(--gdvc-teal);  --sw2: var(--gdvc-red); }
.gdvc-swatches li:nth-child(4n+2) { --sw: var(--gdvc-red);   --sw2: var(--gdvc-amber); }
.gdvc-swatches li:nth-child(4n+3) { --sw: var(--gdvc-amber); --sw2: var(--gdvc-teal); }
.gdvc-swatches li:nth-child(4n+4) { --sw: var(--gdvc-black); --sw2: var(--gdvc-teal); }

/* --- Process: three steps, one ink each ----------------------- */
.gdvc-process .et_pb_row:first-child { padding-bottom: 48px; }
.gdvc-step { border-top: 8px solid var(--step); padding-top: 22px; }
.gdvc-step--1 { --step: var(--gdvc-teal); }
.gdvc-step--2 { --step: var(--gdvc-amber); }
.gdvc-step--3 { --step: var(--gdvc-red); }
.gdvc-step__num {
  display: block; font-family: var(--gdvc-display); font-weight: 900;
  font-size: 112px; line-height: .8; color: var(--step); margin-bottom: 20px;
}
.gdvc-step .et_pb_text_inner p { margin-top: 12px; max-width: 30em; }

/* --- Quote section -------------------------------------------- */
@media (min-width: 981px) {
  .gdvc-quote .et_pb_row { display: flex; align-items: flex-start; }
  .gdvc-quote .et_pb_column.gdvc-quote__aside { position: sticky; top: 32px; }
  .admin-bar .gdvc-quote .et_pb_column.gdvc-quote__aside { top: 64px; }
}
.gdvc-aside-block { border-top: 1px solid var(--gdvc-rule); padding-top: 20px; }
.gdvc-aside-block h3 { margin-bottom: 6px !important; }

.gdvc-quote .et_pb_column.gdvc-quote__panel {
  background: #fff; border: 1px solid var(--gdvc-rule); border-top: 6px solid var(--gdvc-black);
  padding: 44px 48px;
}

/* --- Contact Form 7 quote form -------------------------------- */
.gdvc-form { color: var(--gdvc-ink); font-family: var(--gdvc-body); }
.gdvc-form p { margin: 0; padding: 0; }
.gdvc-form br { display: none; }
.gdvc-form__step {
  border: 0; margin: 0 0 32px; padding: 0 0 32px; min-width: 0;
  border-bottom: 1px solid var(--gdvc-rule);
}
.gdvc-form__step legend {
  display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 22px;
  font-family: var(--gdvc-display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--gdvc-black);
}
.gdvc-form__step legend small {
  font-family: var(--gdvc-body); font-weight: 400; font-size: 14px; color: var(--gdvc-muted); margin-left: 4px;
}
.gdvc-form__num {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  background: var(--gdvc-teal); color: #fff; font-size: 22px;
}
.gdvc-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gdvc-field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; margin: 0; }
.gdvc-field--full { grid-column: 1 / -1; }
.gdvc-form .wpcf7-form-control-wrap { display: block; }

.gdvc-form input[type="text"], .gdvc-form input[type="email"], .gdvc-form input[type="tel"],
.gdvc-form input[type="number"], .gdvc-form input[type="date"], .gdvc-form select, .gdvc-form textarea {
  width: 100%; min-height: 48px; padding: 11px 12px; margin: 0;
  font-family: var(--gdvc-body); font-size: 16px; font-weight: 400; color: var(--gdvc-ink);
  background: #fff; border: 1px solid var(--gdvc-field); border-radius: 2px; box-shadow: none;
}
.gdvc-form textarea { resize: vertical; min-height: 130px; }
.gdvc-form select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--gdvc-ink) 50%), linear-gradient(135deg, var(--gdvc-ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.gdvc-form input:focus, .gdvc-form select:focus, .gdvc-form textarea:focus {
  outline: 3px solid var(--gdvc-teal); outline-offset: 1px; border-color: var(--gdvc-teal);
}
.gdvc-form ::placeholder { color: #75878c; opacity: 1; }

.gdvc-form__check { margin-top: 20px; }
.gdvc-form .wpcf7-list-item { margin: 0; }
.gdvc-form .wpcf7-list-item label { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 400; cursor: pointer; }
.gdvc-form input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--gdvc-teal); margin: 0; }

/* Upload zone */
.gdvc-upload {
  display: grid; gap: 14px; padding: 22px;
  background: #f3f8f8; border: 2px dashed #70b4bc; border-radius: 2px;
}
.gdvc-upload__slot[hidden] { display: none; }
.gdvc-form input[type="file"] {
  width: 100%; font-family: var(--gdvc-body); font-size: 14px; font-weight: 400; color: var(--gdvc-muted);
}
.gdvc-form input[type="file"]::file-selector-button {
  margin-right: 14px; padding: 10px 18px; cursor: pointer;
  font-family: var(--gdvc-body); font-weight: 700; font-size: 14px; color: var(--gdvc-teal-deep);
  background: #fff; border: 1px solid #70b4bc; border-radius: 2px;
}
.gdvc-form input[type="file"]::file-selector-button:hover { background: #e0f1f3; }
.gdvc-upload__add {
  justify-self: start; padding: 8px 0; background: none; border: 0; cursor: pointer;
  font-family: var(--gdvc-body); font-weight: 700; font-size: 14px; color: var(--gdvc-teal-deep);
  text-decoration: underline; text-underline-offset: 4px;
}
.gdvc-upload__status { font-size: 14px; color: var(--gdvc-muted); margin: 0; }
.gdvc-upload__status.is-error { color: var(--gdvc-error); font-weight: 600; }
.gdvc-upload__rules { font-size: 13px; color: var(--gdvc-muted); margin-top: 10px !important; }

/* Submit row */
.gdvc-form__submit { display: flex; align-items: center; gap: 24px; }
.gdvc-form__submit p { flex: 1; font-size: 13px; line-height: 1.6; color: var(--gdvc-muted); }
.gdvc-form input.wpcf7-submit {
  flex: 0 0 auto; min-height: 50px; padding: 14px 28px; cursor: pointer;
  font-family: var(--gdvc-body); font-weight: 700; font-size: 16px; color: #fff;
  background: var(--gdvc-red); border: 0; border-radius: 2px;
  transition: background-color .15s ease, transform .15s ease;
}
.gdvc-form input.wpcf7-submit:hover { background: var(--gdvc-red-deep); }
.gdvc-form input.wpcf7-submit:active { transform: translate(2px, 2px); }
.gdvc-form input.wpcf7-submit:disabled { opacity: .6; cursor: progress; }

/* CF7 validation + response messages */
.gdvc-quote .wpcf7 form.init .wpcf7-response-output,
.gdvc-quote .wpcf7 form.resetting .wpcf7-response-output,
.gdvc-quote .wpcf7 form.submitting .wpcf7-response-output { display: none; }
.gdvc-quote .wpcf7-not-valid-tip { color: var(--gdvc-error); font-size: 13px; font-weight: 600; margin-top: 6px; }
.gdvc-quote .wpcf7-not-valid { border-color: var(--gdvc-error) !important; }
.gdvc-quote .wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0; padding: 14px 16px; border: 0; border-left: 4px solid var(--gdvc-teal);
  background: #e9f6f7; color: var(--gdvc-teal-deep); font-size: 15px;
}
.gdvc-quote .wpcf7 form.invalid .wpcf7-response-output,
.gdvc-quote .wpcf7 form.unaccepted .wpcf7-response-output,
.gdvc-quote .wpcf7 form.failed .wpcf7-response-output,
.gdvc-quote .wpcf7 form.spam .wpcf7-response-output {
  border-left-color: var(--gdvc-error); background: #fff0ed; color: #9e222e;
}

/* --- Request received page ------------------------------------ */
.gdvc-thanks .et_pb_button_module_wrapper { margin-top: 40px !important; }
.gdvc-thanks .et_pb_text_inner p { max-width: 36em; }
.gdvc-note { color: var(--gdvc-amber-light); font-weight: 700; font-size: 17px; }

/* --- Footer ---------------------------------------------------- */
.gdvc-footer__motto {
  font-family: var(--gdvc-display); font-weight: 900; font-size: 64px; line-height: .95;
  text-transform: uppercase; color: #fff; text-shadow: 4px 4px 0 var(--gdvc-teal);
}
.gdvc-footer__links {
  list-style: none; margin: 0; padding: 0 !important;
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 32px;
}
.gdvc-footer__links li { padding: 0; }
.gdvc-footer__links a { color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.gdvc-footer__links a:hover { color: var(--gdvc-amber-light); text-decoration: underline; text-underline-offset: 4px; }
.gdvc-footer .et_pb_row:first-child { display: flex; align-items: flex-end; }
.gdvc-footer .et_pb_row.gdvc-footer__base {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid #2c2c2c;
}

/* --- Tablet (Divi: 980px and below) --------------------------- */
@media (max-width: 980px) {
  .gdvc-brand__logo { height: 64px; }
  .gdvc-brand__school { font-size: 34px; }
  .gdvc-nav { display: none; }
  .gdvc-hero .et_pb_row.gdvc-hero__row { flex-direction: column; align-items: stretch; }
  .gdvc-hero__artcol { max-width: 560px; margin: 8px auto 0 !important; }
  .gdvc-hero::before { width: 100%; right: -30%; top: 30%; }
  .gdvc-swatches li { font-size: 30px; }
  .gdvc-step__num { font-size: 88px; }
  .gdvc-quote .et_pb_column.gdvc-quote__panel { padding: 32px; }
  .gdvc-footer .et_pb_row:first-child { display: block; }
  .gdvc-footer__links { justify-content: flex-start; margin-top: 28px; }
}

/* --- Phone (Divi: 767px and below) ---------------------------- */
@media (max-width: 767px) {
  .gdvc-header .et_pb_row.gdvc-header__row { gap: 12px; }
  .gdvc-brand { gap: 10px; }
  .gdvc-brand__logo { height: 52px; }
  .gdvc-brand__school { font-size: 28px; letter-spacing: 2px; }
  .gdvc-brand__academy { font-size: 10px; letter-spacing: .6px; }
  .gdvc-brand__dept { display: none; }
  .gdvc-header__cta a.et_pb_button, a.et_pb_button.gdvc-header__cta { font-size: 14px !important; padding: 10px 14px !important; }
  .gdvc-hero h1 { text-shadow: 4px 4px 0 var(--gdvc-teal); letter-spacing: 0 !important; }
  .gdvc-hero__copy .et_pb_button_module_wrapper, .gdvc-hero__alt { display: block; margin-right: 0 !important; }
  .gdvc-hero__alt { margin-top: 20px !important; }
  .gdvc-swatches { columns: 1; }
  .gdvc-swatches li { font-size: 28px; padding: 13px 0; }
  .gdvc-quote .et_pb_column.gdvc-quote__panel { padding: 24px 18px; }
  .gdvc-form__grid { grid-template-columns: 1fr; gap: 16px; }
  .gdvc-form__step legend { font-size: 26px; }
  .gdvc-upload { padding: 16px; }
  .gdvc-form__submit { flex-direction: column; align-items: stretch; gap: 16px; }
  .gdvc-footer__motto { font-size: 48px; }
}
@media (max-width: 400px) {
  .gdvc-brand__academy { display: none; }
}
