/*
Theme Name: Geraldine
Description: Standalone replacement stylesheet for the restored Claire Makes Cakes site.
*/

/*!
 * Claire Makes Cakes: standalone site stylesheet
 *
 * For the restored WordPress site (Geraldine theme). Pages load two theme
 * stylesheets: /wp-content/themes/Geraldine/stylesheet.css and
 * /wp-content/themes/Geraldine/style.css. This one file covers the whole
 * page; upload it at stylesheet.css (and at style.css too if that one is
 * missing) with the MIME type text/css. No page needs to be edited.
 *
 * Look: a country cake studio. The site's own sage (#88b3b2) and mint
 * (#d5ebde) as decoration, a deeper sage for text that must be read,
 * PT Serif for text, Great Vibes script for "Welcome", Montserrat for the
 * menu, and scalloped "piped icing" edges along the sections.
 *
 * The theme's inline colour settings load after this file and set white
 * links, white text on light grey and pale sage headings; several selectors
 * here are more specific so the text stays readable.
 */

/* PT Serif, Great Vibes and Montserrat are loaded by the page itself */


/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  --cm-sage: #88b3b2;              /* the site's own colour, decorative */
  --cm-sage-deep: #3f6e6d;         /* sage that reads as text on white */
  --cm-mint: #d5ebde;              /* the site's second colour */
  --cm-cream: #fbf8f3;
  --cm-paper: #ffffff;
  --cm-line: #e5ece8;

  --cm-ink: #3d3a3a;
  --cm-ink-soft: #6b6767;

  --cm-font-text: "PT Serif", Georgia, "Times New Roman", serif;
  --cm-font-script: "Great Vibes", "Brush Script MT", cursive;
  --cm-font-ui: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --cm-page: 1000px;
  --cm-gutter: clamp(1rem, 4vw, 2rem);

  /* piped-icing edge: a row of half circles */
  --cm-scallop: radial-gradient(circle at 12px 0, transparent 11.5px, #000 12px) 0 0 / 24px 12px repeat-x;
}


/* ==========================================================================
   2. Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--cm-font-text);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--cm-ink);
  /* the page's own background image points at another website; this soft
     mint wash shows if it does not load */
  background-color: #eef5f1;
}

body.custom-background {
  background-color: #eef5f1;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

/* The theme's settings make every link white; readable sage here */
.wrap a {
  color: var(--cm-sage-deep);
  text-decoration: none;
}

.wrap a:hover {
  color: var(--cm-ink);
}

.wrap h1,
.wrap h2,
.wrap h3,
.wrap h4,
.wrap h5 {
  margin: 0 0 0.5em;
  font-family: var(--cm-font-text);
  font-weight: 700;
  line-height: 1.25;
  color: var(--cm-sage-deep);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clearfix:empty,
.clearfix:has(> :only-child:empty) {
  display: none;
}

::selection {
  color: var(--cm-ink);
  background: var(--cm-mint);
}

:focus-visible {
  outline: 2px solid var(--cm-sage-deep);
  outline-offset: 3px;
}


/* ==========================================================================
   3. Parts that need the theme's scripts
   ========================================================================== */

.back-top,
.tinynav,                          /* the phone menu's drop-down list */
.header h1,
.header h5,
.header-desc {
  display: none !important;
}


/* ==========================================================================
   4. Page frame
   ========================================================================== */

.wrap {
  padding: clamp(0rem, 3vw, 2rem) 0;
}

.wrap > .container {
  max-width: var(--cm-page);
  margin: 0 auto;
  overflow: hidden;
  background: var(--cm-paper);
  border-radius: clamp(0px, 1.5vw, 14px);
  box-shadow: 0 20px 50px -30px rgba(63, 110, 109, 0.45);
}


/* ==========================================================================
   5. Header: logo and menu
   ========================================================================== */

.header {
  padding: clamp(1.25rem, 4vw, 2rem) var(--cm-gutter) 0;
  text-align: center;
}

.header-title {
  display: block;
  width: auto;
  max-height: 180px;
  margin: 0 auto clamp(0.75rem, 2vw, 1.25rem);
}

/* menu: the theme's settings give white text on light grey */
.header .nav,
.header .nav-inner {
  display: block;
  background: transparent;
}

.header .nav {
  border-top: 1px solid var(--cm-line);
  border-bottom: 1px solid var(--cm-line);
}

.header .nav ul.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.header .nav li {
  position: relative;
}

.header .nav ul.menu > li > a {
  display: block;
  padding: 0.95rem 1.1rem;
  font-family: var(--cm-font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cm-ink);
}

.header .nav ul.menu > li > a:hover,
.header .nav ul.menu > li:focus-within > a,
.header .nav ul.menu > li.current-menu-item > a {
  color: var(--cm-sage-deep);
}

.header .nav ul.menu > li.current-menu-item > a {
  box-shadow: inset 0 -3px 0 var(--cm-sage);
}

.header .nav ul.menu > li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0.34rem;
  height: 0.34rem;
  margin-left: 0.5rem;
  vertical-align: 0.2em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

/* "Gallery" dropdown */
.header .nav ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 50;
  min-width: 13rem;
  padding: 0.5rem 0;
  text-align: left;
  background: var(--cm-paper);
  border-top: 3px solid var(--cm-sage);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 18px 32px -16px rgba(63, 110, 109, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: opacity 0.15s ease, visibility 0s linear 0.15s;
}

.header .nav li:hover > ul.sub-menu,
.header .nav li:focus-within > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.header .nav ul.sub-menu a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-family: var(--cm-font-text);
  font-size: 0.98rem;
  color: var(--cm-ink);
}

.header .nav ul.sub-menu a:hover {
  color: var(--cm-sage-deep);
  background: #f2f8f5;
}

@media (max-width: 720px) {
  .header .nav {
    margin: 0 calc(-1 * var(--cm-gutter));
    overflow-x: auto;
    scrollbar-width: none;
  }

  .header .nav::-webkit-scrollbar {
    display: none;
  }

  .header .nav ul.menu {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    margin: 0 auto;
    padding: 0 calc(var(--cm-gutter) - 0.75rem);
  }

  .header .nav ul.menu > li > a {
    padding: 0.9rem 0.75rem;
    white-space: nowrap;
  }

  .header .nav ul.sub-menu,
  .header .nav ul.menu > li.menu-item-has-children > a::after {
    display: none;
  }
}


/* ==========================================================================
   6. Slideshow: the first picture (the slider script rotates them if it runs)
   ========================================================================== */

.flexslider {
  position: relative;
  margin: clamp(1rem, 3vw, 1.75rem) var(--cm-gutter) 0;
  overflow: hidden;
  border-radius: 10px;
}

.flexslides > li {
  display: none;
}

.flexslides > li:first-child,
.flexslides > li.flex-active-slide {
  display: block;
}

.flexslides img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 420;
  object-fit: cover;
}

/* previous / next buttons, if the slider script adds them */
.flex-direction-nav a {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 2.6rem;
  height: 2.6rem;
  margin-top: -1.3rem;
  overflow: hidden;
  text-indent: -999em;
  background: rgba(255, 255, 255, 0.85) !important;
  border-radius: 50%;
}

.flex-direction-nav a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-top: 2px solid var(--cm-sage-deep);
  border-right: 2px solid var(--cm-sage-deep);
}

.flex-direction-nav .flex-prev {
  left: 0.75rem;
}

.flex-direction-nav .flex-prev::after {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.flex-direction-nav .flex-next {
  right: 0.75rem;
}

.flex-direction-nav .flex-next::after {
  transform: translate(-70%, -50%) rotate(45deg);
}


/* ==========================================================================
   7. Home page
   ========================================================================== */

/* the page title "Home" and its empty text are not needed on the home page */
.home .section-wide .page-header,
.post-content:not(:has(:not(.comment-box:empty))) {
  display: none;
}

.section-wide {
  padding: 0 var(--cm-gutter);
}

/* Three boxes under a scalloped edge */
.home-widgets-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.7fr) minmax(0, 1.2fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--cm-gutter) clamp(2rem, 5vw, 3rem);
  background: var(--cm-cream);
}

.home-widgets-wrap::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--cm-cream);
  -webkit-mask: var(--cm-scallop);
  mask: var(--cm-scallop);
  transform: scaleY(-1);
}

/* the theme's settings give these boxes a grey background and white text */
.home-widgets-wrap .home-widgets {
  background: transparent;
}

.home-widgets-wrap .home-widget-inner {
  color: var(--cm-ink);
}

.home-widget-inner p {
  font-size: 1.02rem;
}

/* "Welcome" in script */
.home-widget-inner p > em:first-child {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--cm-font-script);
  font-size: clamp(2.6rem, 2rem + 2.4vw, 3.6rem);
  font-style: normal;
  line-height: 1.1;
  color: var(--cm-sage-deep);
}

.home-widgets.col1 .home-widget-inner p:first-child {
  font-size: 1.15rem;
}

/* the centre photo */
.home-widgets.col2 img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
  border: 6px solid var(--cm-paper);
  border-radius: 999px 999px 12px 12px;
  box-shadow: 0 14px 30px -18px rgba(63, 110, 109, 0.6);
}

.home-widgets.col3 .home-widget-inner {
  padding-left: clamp(0rem, 2vw, 1.5rem);
  border-left: 2px solid var(--cm-mint);
}

@media (max-width: 760px) {
  .home-widgets-wrap {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .home-widgets.col3 .home-widget-inner {
    padding: 1.25rem 0 0;
    border-left: 0;
    border-top: 2px solid var(--cm-mint);
  }
}


/* ==========================================================================
   8. Footer
   ========================================================================== */

/* the theme's settings set a light grey background here */
.wrap .footer {
  position: relative;
  margin: 0;
  color: #e7f1ee;
  background: var(--cm-sage-deep);
}

.wrap .footer::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--cm-sage-deep);
  -webkit-mask: var(--cm-scallop);
  mask: var(--cm-scallop);
  transform: scaleY(-1);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(2rem, 4vw, 2.5rem) var(--cm-gutter);
}

.footer-widget h4,
.wrap .footer-widget h4 {
  margin: 0 0 0.75rem;
  font-family: var(--cm-font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer .location li {
  position: relative;
  padding: 0.2rem 0 0.2rem 1.6rem;
}

.footer .location li::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 1rem;
  height: 1rem;
  background: var(--cm-mint);
  -webkit-mask: var(--cm-ico) center / contain no-repeat;
  mask: var(--cm-ico) center / contain no-repeat;
}

.footer .location .address { --cm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-6.2-7-11.2a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.8' r='2.5'/%3E%3C/svg%3E"); }
.footer .location .email   { --cm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 6.5 8.5 6.5 8.5-6.5'/%3E%3C/svg%3E"); }
.footer .location .phone   { --cm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 4h3.5l1.8 4.5-2.3 1.4a11 11 0 0 0 6.1 6.1l1.4-2.3L20 15.5V19a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }

/* the social list holds only names, without links */
.widget_ace_social,
.footer-right:not(:has(a)) {
  display: none;
}

.footer-copy {
  max-width: var(--cm-page);
  margin: 1rem auto 0;
  padding: 0 var(--cm-gutter);
  font-family: var(--cm-font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--cm-ink-soft);
}


/* ==========================================================================
   9. Other pages: titles, text, forms, buttons
   ========================================================================== */

.article .page-title,
.article .post-title {
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem);
  text-align: center;
}

.section-wide .post-content {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
}

.post-content img {
  border-radius: 8px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font: inherit;
  color: var(--cm-ink);
  background: var(--cm-paper);
  border: 1px solid var(--cm-line);
  border-radius: 8px;
}

.wrap input[type="submit"],
.wrap .post-button {
  padding: 0.7rem 1.6rem;
  font-family: var(--cm-font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--cm-sage-deep);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.wrap input[type="submit"]:hover,
.wrap .post-button:hover {
  color: var(--cm-ink);
  background: var(--cm-mint);
  border: 0;
}


@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}