/* Arthur's Pizza - phpList public pages, styled to match arthurspizza.com.au.
   Lives in /arthurs/ so phpList upgrades never overwrite it.
   Header/footer HTML is in phpList Settings > Subscription UI (pageheader / pagefooter). */
:root {
  --accent: #D2401E;      /* site buttons + small headings */
  --accent-dark: #B33517;
  --heading: #303030;
  --text: #858585;
  --ink: #1F1F1F;
  --line: #E6E6E6;
  --white: #FFFFFF;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--white);
  color: var(--text);
  font: 15px/24px "Open Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
.ap-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Header bar */
.ap-top { background: var(--white); }
.ap-top .ap-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 16px; }
.ap-top img { display: block; width: 190px; height: auto; }
.ap-btn, .ap-card input[type=submit], .ap-card button {
  display: inline-block; cursor: pointer; border: 0; border-radius: 0;
  background: var(--accent); color: #FFF !important; text-decoration: none;
  font: 400 12px/1 "Oswald", Arial, sans-serif; letter-spacing: 2.4px; text-transform: uppercase;
  padding: 18px 34px; -webkit-appearance: none; appearance: none;
  transition: background-color .2s ease;
}
.ap-btn:hover, .ap-card input[type=submit]:hover, .ap-card button:hover { background: var(--accent-dark); }

/* Photo banner */
.ap-hero {
  position: relative; color: #FFF;
  background: #222 url("hero.jpg?v=1") center / cover no-repeat;
}
.ap-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.48); }
.ap-hero .ap-wrap { position: relative; padding-top: 110px; padding-bottom: 100px; }
.ap-kicker {
  display: block; margin: 0 0 14px; font: 400 14px/1.2 "Oswald", Arial, sans-serif;
  letter-spacing: 2.8px; text-transform: uppercase;
}
.ap-hero h1 {
  margin: 0 0 14px; font: 500 60px/1.05 "Oswald", Arial, sans-serif;
  text-transform: uppercase; color: #FFF;
}
.ap-hero p { margin: 0; max-width: 520px; font-size: 17px; line-height: 27px; color: #FFF; }

/* Content */
.ap-main { padding: 80px 0 70px; }
.ap-card { max-width: 640px; }
.ap-card h1, .ap-card h2, .ap-card h3, .ap-card h4 {
  font-family: "Oswald", Arial, sans-serif; font-weight: 500; color: var(--heading);
  text-transform: uppercase; line-height: 1.1; margin: 0 0 22px;
}
.ap-card h3 { font-size: 40px; }
.ap-card h3::before {
  content: "Arthur's Pizza"; display: block; margin-bottom: 16px; color: var(--accent);
  font: 400 14px/1.2 "Oswald", Arial, sans-serif; letter-spacing: 2.8px;
}
.ap-card p { margin: 0 0 16px; }
/* Instruction line under a heading (see english.inc), like the website's contact page */
.ap-card h3 .ap-sub {
  display: block; margin-top: 18px; font: 400 15px/24px "Open Sans", Arial, sans-serif;
  color: var(--text); text-transform: none; letter-spacing: 0;
}
.ap-card p.information { margin-top: -6px; }

/* phpList form markup (table based) */
.ap-card form { margin-top: 8px; }
.ap-card form table { width: 100%; border-collapse: collapse; }
.ap-card form tr, .ap-card form td { display: block; padding: 0; }
.ap-card form tr { margin-bottom: 14px; }
.ap-card label {
  display: inline-block; margin-bottom: 8px; color: var(--heading);
  font: 400 13px/1.2 "Oswald", Arial, sans-serif; letter-spacing: 1.6px; text-transform: uppercase;
}
/* Checkbox text stays normal; the optional fields (First name, store, birthday) use the same label style as Email */
.ap-card span.attributename label { font: 15px/24px "Open Sans", Arial, sans-serif; letter-spacing: 0; text-transform: none; color: var(--text); }
.ap-card select {
  background: #FFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231F1F1F' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 22px center;
  padding-right: 52px; cursor: pointer;
}
.ap-card .required, .ap-card span.required { color: inherit; }
.ap-card div.error { color: var(--accent); margin-bottom: 16px; }
.ap-card div.error:has(> span.required:only-child) { display: none; }
/* Hide "I prefer to receive emails in HTML format". It is ticked by default, so everyone
   gets the normal (HTML) email; phpList still includes a plain-text version in each one. */
.ap-card tr:has(#htmlemail) { display: none; }
/* Home page: phpList prints plain <p><a> links straight inside the card; show them as website buttons.
   First (Subscribe) is solid, the rest (Unsubscribe) are outlined. */
.ap-card > p:has(> a:only-child) { display: inline-block; margin: 0 14px 14px 0; }
.ap-card > p > a:only-child {
  display: inline-block; text-decoration: none; border-radius: 0;
  font: 400 12px/1 "Oswald", Arial, sans-serif; letter-spacing: 2.4px; text-transform: uppercase;
  padding: 18px 34px; border: 1.6px solid var(--accent);
  background: transparent; color: var(--accent);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ap-card > p:first-of-type > a:only-child { background: var(--accent); color: #FFF; }
.ap-card > p > a:only-child:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #FFF; }
@media (max-width: 680px) {
  .ap-card > p:has(> a:only-child) { display: block; margin-right: 0; }
  .ap-card > p > a:only-child { display: block; text-align: center; }
}
/* Birthday month field (attribute 3): say why we ask */
.ap-card label[for="attribute3"]::after { content: "  \2014  for a birthday treat \1F381"; letter-spacing: 1px; color: var(--accent); }
/* Hide phpList's "Contact the administrator" mailto line; the footer has a Contact us link instead */
.ap-card p:has(> a[href^="mailto:"]) { display: none; }
.ap-card input[type=text], .ap-card input[type=email], .ap-card input[type=password],
.ap-card select, .ap-card textarea {
  width: 100%; max-width: 100%; font: 15px/24px "Open Sans", Arial, sans-serif; color: var(--ink);
  padding: 19px 24px; border: 1.6px solid var(--ink); border-radius: 0; background: transparent;
  -webkit-appearance: none; appearance: none;
}
.ap-card input[type=text]:focus, .ap-card input[type=email]:focus, .ap-card select:focus, .ap-card textarea:focus {
  outline: none; border-color: var(--accent);
}
.ap-card input[type=checkbox], .ap-card input[type=radio] { accent-color: var(--accent); width: 18px; height: 18px; vertical-align: -3px; margin-right: 8px; }
.ap-card input[type=submit] { margin: 10px 18px 10px 0; }
.ap-card form > a { color: var(--text); font-size: 14px; }
.ap-card form > a:hover { color: var(--accent); }

/* phpList prints its credit inside the content; we show it once in the footer instead (.ap-credit) */
.ap-card div[style*="small-caps"], .ap-card .poweredby { display: none !important; }
/* Confirm page lists the internal list name; not needed with a single list */
.ap-card > ul:has(li.list) { display: none; }

/* Footer */
.ap-foot { border-top: 1px solid var(--line); text-align: center; padding: 44px 0 40px; font-size: 14px; }
.ap-foot img.ap-foot__logo { width: 170px; height: auto; display: inline-block; margin-bottom: 18px; }
.ap-social { margin: 0 0 18px; }
.ap-social a { display: inline-block; margin: 0 9px; opacity: .75; transition: opacity .2s; }
.ap-social a:hover { opacity: 1; }
.ap-social img { width: 22px; height: 22px; display: block; }
.ap-foot p { margin: 0 0 6px; }
.ap-foot a.ap-link { color: var(--text); text-decoration: none; }
.ap-foot a.ap-link:hover { color: var(--accent); }
.ap-foot .ap-small { font: 400 12px/1.4 "Oswald", Arial, sans-serif; letter-spacing: 2.4px; text-transform: uppercase; color: var(--heading); margin-top: 14px; }
.ap-foot .ap-credit { margin-top: 14px; font-size: 11px; color: #B5B5B5; }
.ap-foot .ap-credit a { color: #B5B5B5; text-decoration: none; }
.ap-foot .ap-credit a:hover { color: var(--text); }

@media (max-width: 680px) {
  .ap-top .ap-wrap { min-height: 70px; }
  .ap-top img { width: 150px; }
  .ap-top .ap-btn { padding: 14px 22px; }
  .ap-hero .ap-wrap { padding-top: 70px; padding-bottom: 64px; }
  .ap-hero h1 { font-size: 44px; }
  .ap-hero p { font-size: 15px; line-height: 24px; }
  .ap-main { padding: 50px 0 50px; }
  .ap-card h3 { font-size: 32px; }
  .ap-card input[type=submit] { width: 100%; margin-right: 0; }
}
