/* Site footer. Loaded on every page, after the other stylesheets. Scoped to the footer. */
footer.site-footer {
  position: relative;
  display: block;
  overflow: hidden;
  background: #F5F0E8;
  border-top: 1px solid #D5A33E;
  border-bottom: 1px solid #D5A33E;
  padding: 0;
  color: #1a2a56;
}
/* Faint gold geometric corners. Decorative only; hidden from assistive technology. */
footer.site-footer::before,
footer.site-footer::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20 L20 0 L40 20 L20 40 Z M20 8 L32 20 L20 32 L8 20 Z' fill='none' stroke='%23D5A33E' stroke-width='0.8'/%3E%3Ccircle cx='20' cy='20' r='2' fill='%23D5A33E'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
footer.site-footer::before { top: -60px; left: -60px; }
footer.site-footer::after { right: -60px; top: 40px; }
footer.site-footer .sf-inner,
footer.site-footer .sf-bottom { position: relative; z-index: 1; }
footer.site-footer .sf-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 8%;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 28px;
  align-items: start;
}
.sf-identity .sf-brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; text-decoration: none; color: #1a2a56; }
.sf-logo { width: 112px; height: 112px; object-fit: contain; flex-shrink: 0; }
.sf-brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; line-height: 1.2; color: #1a2a56; margin: 0; padding-top: 0; }
.sf-identity .sf-brand { margin-top: 0; }
.sf-identity { padding-top: 0; }
.sf-tagline { margin: 8px 0 10px; font-size: 0.92rem; line-height: 1.6; color: #3d4a6b; max-width: 340px; }
.sf-social { display: flex; gap: 12px; margin-top: 22px; }
.sf-social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #D5A33E; border-radius: 50%; color: #B8862A; transition: background 0.3s ease, color 0.3s ease; }
.sf-social-link svg { width: 16px; height: 16px; fill: currentColor; }
.sf-social-link:nth-child(2) svg { fill: none; stroke: currentColor; stroke-width: 2; }
.sf-social-link:hover { background: #1a2a56; border-color: #1a2a56; color: #D5A33E; }
.sf-heading { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: #1a2a56; margin: 0; line-height: 1.2; }
.sf-identity .sf-brand-name { display: block; margin-bottom: 0; }
.sf-identity .sf-brand .sf-divider { margin: 8px 0 14px; }
.sf-divider { display: block; position: relative; width: 96px; height: 1px; background: #D5A33E; margin: 8px 0 10px; }
.sf-divider::after { content: '◆'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 0.55rem; color: #D5A33E; background: #F5F0E8; padding: 0 4px; }
.sf-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.sf-links a { display: inline-flex; align-items: center; min-height: 36px; color: #1a2a56; text-decoration: none; font-size: 0.95rem; }
.sf-links a:hover { color: #B8862A; text-decoration: underline; text-underline-offset: 4px; }
.sf-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sf-contact li { display: flex; align-items: center; gap: 10px; font-size: 0.93rem; line-height: 1.5; min-width: 0; }
.sf-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0; fill: none; stroke: #B8862A; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sf-contact a { color: #1a2a56; text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.sf-contact a:hover { color: #B8862A; text-decoration: underline; text-underline-offset: 4px; }
footer.site-footer a:focus-visible,
footer.site-footer .sf-social-link:focus-visible { outline: 2px solid #D5A33E; outline-offset: 3px; border-radius: 4px; }
.sf-bottom { background: #1a2a56; border-top: 1px solid #D5A33E; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 8% 14px; padding-right: 96px; font-size: 0.78rem; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.85); }
.sf-copy, .sf-designed { margin: 0; }
.sf-designed span { color: #D5A33E; font-weight: 700; }
.scroll-top-btn { background: transparent !important; color: #D5A33E !important; border: none !important; border-radius: 6px; font-size: 1.2rem; }
.scroll-top-btn:focus-visible { outline: 2px solid #D5A33E; outline-offset: 3px; }
@media (max-width: 900px) {
  footer.site-footer .sf-inner { grid-template-columns: 1fr 1fr; gap: 22px 28px; padding: 24px 6%; }
  .sf-identity { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  footer.site-footer .sf-inner { grid-template-columns: 1fr; gap: 20px; padding: 24px 5% 20px; }
  .sf-logo { width: 96px; height: 96px; }
  .sf-links a, .sf-contact a { min-height: 40px; }
  .sf-social-link { width: 44px; height: 44px; }
  .sf-bottom { flex-direction: column; text-align: center; padding: 10px 5% 70px; }
  footer.site-footer::before, footer.site-footer::after { width: 120px; height: 120px; }
}

/* Footer identity: name on one line and a bigger logo (desktop) */
@media (min-width: 901px) {
  footer.site-footer .sf-inner { grid-template-columns: 1.5fr 1fr 1.2fr; }
  .sf-identity .sf-brand-name { white-space: nowrap; font-size: 1.05rem; }
  .sf-identity .sf-logo { width: 140px; height: 140px; }
  .sf-identity .sf-social { margin-top: 16px; justify-content: center; }
}

/* Footer identity: name, divider and logo centred in their column (desktop) */
@media (min-width: 901px) {
  .sf-identity .sf-brand { align-items: center; text-align: center; }
  .sf-identity .sf-brand .sf-divider { margin-left: auto; margin-right: auto; }
}

/* Footer: taller on desktop, more breathing room */
@media (min-width: 901px) {
  footer.site-footer .sf-inner { padding: 48px 8%; gap: 40px; }
  .sf-contact { gap: 14px; }
  .sf-links a { min-height: 30px; }
}

/* Footer gold lines match the width of each heading. The line is the heading's underline; the brand divider matches the name width. */
.sf-col .sf-heading { display: inline-block; position: relative; padding-bottom: 10px; margin-bottom: 16px; border-bottom: 1px solid #D5A33E; }
.sf-col .sf-heading::after { content: '◆'; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); font-size: 0.55rem; color: #D5A33E; background: #F5F0E8; padding: 0 4px; }
.sf-col .sf-divider { display: none; }
.sf-identity .sf-brand .sf-divider { display: block; width: 100%; margin: 8px 0 14px; }

/* Phone footer: logo and social icons centred under the name */
@media (max-width: 600px) {
  .sf-identity .sf-brand { align-items: center; text-align: center; width: 100%; }
  .sf-identity .sf-brand .sf-divider { margin-left: auto; margin-right: auto; }
  .sf-identity .sf-social { justify-content: center; width: 100%; }
}

/* Footer email on one line (desktop) */
@media (min-width: 901px) {
  .sf-contact a[href^="mailto"] { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
}

/* Social icons centred under the logo (desktop): the row shrinks to its icons and sits in the middle */
@media (min-width: 901px) {
  .sf-identity .sf-social { width: fit-content; margin-left: auto; margin-right: auto; }
}

/* Logo block centred in its column (desktop), so the logo and icons share one centre */
@media (min-width: 901px) {
  .sf-identity .sf-brand { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
}

/* Desktop: tighter spacing between the Contact Us lines, matching the links */
@media (min-width: 901px) {
  .sf-contact { gap: 6px; }
}

/* Desktop footer: thinner (less padding above and below) */
@media (min-width: 901px) {
  footer.site-footer .sf-inner { padding: 22px 8%; gap: 28px; }
}

/* Desktop: logo, social icons and the other columns end on one line */
@media (min-width: 901px) {
  .sf-identity .sf-logo { width: 85px; height: 85px; }
  .sf-identity .sf-social { margin-top: 12px; }
  .sf-identity .sf-social-link { width: 30px; height: 30px; }
  .sf-identity .sf-social-link svg { width: 14px; height: 14px; }
}

/* Desktop: smaller social circles with less space between them */
@media (min-width: 901px) {
  .sf-identity .sf-social { gap: 8px; margin-top: 18px; }
  .sf-identity .sf-social-link { width: 24px; height: 24px; }
  .sf-identity .sf-social-link svg { width: 12px; height: 12px; }
}

/* Desktop: icons fill their circles more, so there is less space between icon and circle */
@media (min-width: 901px) {
  .sf-identity .sf-social-link { width: 22px; height: 22px; }
  .sf-identity .sf-social-link svg { width: 14px; height: 14px; }
  .sf-identity .sf-social { margin-top: 20px; }
}

/* Desktop: social row lifted slightly to line up with the text in the other columns */
@media (min-width: 901px) {
  .sf-identity .sf-social { position: relative; top: -4px; }
}

/* Desktop bottom bar: copyright text centred, Designed by stays on the right */
@media (min-width: 901px) {
  .sf-bottom { position: relative; }
  .sf-bottom .sf-copy { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
}

/* Desktop bottom bar: copyright on one row, a thin gold line, then Designed by on its own row below */
@media (min-width: 901px) {
  .sf-bottom { flex-direction: column; justify-content: center; align-items: center; gap: 0; padding: 10px 8% 10px; }
  .sf-bottom .sf-copy { position: static; transform: none; white-space: normal; }
  .sf-bottom .sf-designed { margin: 0; width: 100%; text-align: center; border-top: 1px solid rgba(213, 163, 62, 0.45); padding-top: 8px; margin-top: 8px; }
}

/* Desktop bottom bar: copyright and designer credit on one line, with a gold diamond between them */
@media (min-width: 901px) {
  .sf-bottom { flex-direction: row; justify-content: center; align-items: center; gap: 14px; padding: 12px 8%; }
  .sf-bottom .sf-copy { position: static; transform: none; white-space: normal; }
  .sf-bottom .sf-designed { width: auto; border-top: 0; padding-top: 0; margin: 0; text-align: left; }
  .sf-bottom .sf-designed::before { content: '◆'; color: #D5A33E; font-size: 0.55rem; margin-right: 14px; vertical-align: middle; }
}

/* Phone footer: Explore on the left and Contact Us on the right, with tighter line spacing */
@media (max-width: 600px) {
  footer.site-footer .sf-inner { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .sf-identity { grid-column: 1 / -1; }
  .sf-links a, .sf-contact a { min-height: 26px; }
  .sf-links { gap: 0; }
  .sf-contact { gap: 6px; }
  .sf-contact li { font-size: 0.82rem; gap: 6px; }
  .sf-contact svg { width: 14px; height: 14px; }
  .sf-links a { font-size: 0.85rem; }
  .sf-heading { font-size: 1.05rem; }
}

/* Phone footer: social icons the same size as desktop */
@media (max-width: 600px) {
  .sf-identity .sf-social { gap: 8px; margin-top: 20px; }
  .sf-identity .sf-social-link { width: 22px; height: 22px; }
  .sf-identity .sf-social-link svg { width: 14px; height: 14px; }
}

/* Phone bottom bar: thinner, smaller text */
@media (max-width: 600px) {
  .sf-bottom { padding: 6px 5% 10px; font-size: 0.66rem; line-height: 1.3; gap: 4px; }
  .sf-bottom .sf-designed { margin: 0; }
}

/* Phone footer: no name header above the logo (desktop unchanged) */
@media (max-width: 600px) {
  .sf-identity .sf-brand-name, .sf-identity .sf-brand .sf-divider { display: none; }
}

/* Phone footer: smaller link and contact text */
@media (max-width: 600px) {
  .sf-links a { font-size: 0.76rem; }
  .sf-contact li { font-size: 0.74rem; }
}

/* Phone footer: smaller Explore and Contact Us headings */
@media (max-width: 600px) {
  .sf-heading { font-size: 0.9rem; }
}

/* Phone footer: text left-aligned inside each column, and each column centred on the page */
@media (max-width: 600px) {
  .sf-col { justify-self: center; width: fit-content; text-align: left; }
  .sf-col .sf-heading { display: block; width: auto; margin: 0 0 16px; text-align: left; }
  .sf-col .sf-divider { margin-left: 0; margin-right: auto; }
  .sf-links { justify-items: start; }
  .sf-links li { text-align: left; }
  .sf-contact li { justify-content: flex-start; text-align: left; }
}

/* Phone footer: smaller email */
@media (max-width: 600px) {
  .sf-contact a[href^="mailto"] { font-size: 0.66rem; }
}

/* Phone footer: Contact Us column moved further left */
@media (max-width: 600px) {
  footer.site-footer .sf-inner > div.sf-col:last-of-type { justify-self: start; margin-left: -28px; }
}

/* Phone footer: @gmail.com on its own line. Desktop keeps the email on one line. */
@media (max-width: 600px) {
  .sf-at { display: block; }
}

/* Phone footer: email split into two neat rows, never broken mid-word */
@media (max-width: 600px) {
  .sf-contact a[href^="mailto"] { display: inline-flex; flex-direction: column; align-items: flex-start; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
  .sf-at { display: block; }
}

/* Phone footer: headings and their gold dividers centred over the content below */
@media (max-width: 600px) {
  .sf-col .sf-heading { text-align: center; }
  .sf-col .sf-divider { margin-left: auto; margin-right: auto; }
}

/* Phone footer: bigger logo */
@media (max-width: 600px) {
  .sf-identity .sf-logo { width: 130px; height: 130px; }
}

/* Phone footer: less white space between logo, icons and columns */
@media (max-width: 600px) {
  footer.site-footer .sf-inner { gap: 12px 14px; padding: 16px 5% 12px; }
  .sf-identity .sf-social { margin-top: 10px; }
  .sf-col .sf-heading { margin: 0 0 10px; }
}

/* Phone footer: copyright sits on the ivory footer; the navy strip holds Designed by */
@media (max-width: 600px) {
  .sf-bottom { background: transparent; border-top: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .sf-bottom .sf-copy { background: #F5F0E8; color: #1a2a56; padding: 14px 5% 10px; margin: 0; text-align: center; }
  .sf-bottom .sf-designed { background: #1a2a56; color: rgba(255, 255, 255, 0.85); padding: 10px 5% 14px; margin: 0; text-align: center; }
}

/* Phone footer: thin gold design line above the copyright */
@media (max-width: 600px) {
  .sf-bottom .sf-copy { border-top: 1px solid #D5A33E; margin: 0 5%; padding: 14px 0 10px; }
}
