/* ==========================================================================
   JsK Clicks: main stylesheet
   Look and feel matched to the original site (2014 theme), rebuilt from scratch.
   Desktop: see-through menu panel on the left that folds up.
   Phones and tablets (1024px and below): slim top bar, menu slides down.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no Google requests) ---------- */
@font-face {
  font-family: "Oswald";
  src: url("../f/oswald-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Maven Pro";
  src: url("../f/maven-pro-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Maven Pro";
  src: url("../f/maven-pro-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Colours and sizes (change here, applies everywhere) ---------- */
:root {
  --red: #a10000;
  --panel: rgba(0, 0, 0, 0.7);
  --sub: #adadad;
  --line: rgba(255, 255, 255, 0.28);
  --page-bg: #545454;
  --gold: #e8c9a0;        /* no longer used for links; kept for reference */
  --btn: #d64541;         /* red buttons */
  --ink: #333;            /* headings on white */
  --text: #555;           /* body text on white */
  --rule: #e6e6e6;        /* light lines on white */
  --bar-h: 53px;          /* bottom bar incl. red line */
  --top-h: 64px;          /* phone top bar */
  --fade: 1s;             /* slideshow fade */
  --menu-speed: 0.6s;     /* menu fold speed */
  --head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --body: "Maven Pro", Helvetica, Arial, sans-serif;
  --small: Helvetica, Arial, sans-serif;
}

/* ---------- Basics ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--page-bg);
  color: #fff;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}
body.slideshow { overflow: hidden; }   /* homepage is one full screen; inner pages scroll */
img, svg { display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #e05a5a; outline-offset: 2px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.fill { fill: currentColor; stroke: none; }

/* ==========================================================================
   Slideshow
   ========================================================================== */
.slides {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--page-bg);
}
.slide,
.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.slide img {
  object-fit: cover;
  object-position: center;
  -webkit-user-drag: none;
  user-select: none;
}
.slide {
  opacity: 0;
  transition: opacity var(--fade) ease;
}
.slide.is-active {
  opacity: 1;
  z-index: 1;
}

/* ==========================================================================
   Social icons (top right)
   ========================================================================== */
.social { display: flex; gap: 2px; }
.social a {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: color 0.2s, background-color 0.2s;
}
.social a:hover { color: #e05a5a; }

/* Top right (desktop): dark tiles stacked down the right edge, like the old site */
.social-top {
  position: fixed;
  top: 0; right: 0;
  z-index: 20;
  flex-direction: column;
  gap: 0;
  transition: opacity 0.4s;
}
.social-top a {
  width: 40px; height: 40px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 7px 0 0 7px;
}
.social-top a:hover { color: #fff; background: #444; }
.social-top .fb a:hover { background: #3b5998; }
/* Homepage: the same tiles side by side across the top right, rounded at the bottom (as on the old homepage) */
.slideshow .social-top { flex-direction: row; gap: 2px; right: 12px; }
.slideshow .social-top a { border-radius: 0 0 7px 7px; }
.social-drawer { display: none; }

/* ==========================================================================
   Menu panel (desktop)
   ========================================================================== */
.menu-wrap {
  position: fixed;
  top: 0;
  left: 80px;
  width: 266px;
  max-height: calc(100vh - var(--bar-h));
  overflow-y: auto;
  scrollbar-width: none;
  z-index: 30;
  background: var(--panel);
  transition: transform var(--menu-speed) ease, opacity 0.4s ease;
}
.menu-wrap::-webkit-scrollbar { display: none; }

.menu-bar { padding: 56px 26px 30px; }
.logo { margin: 0; font-size: inherit; font-weight: inherit; }
.logo a { display: block; }
.logo img { width: 214px; height: auto; }
.menu-btn { display: none; }

.main-nav { padding: 0 26px; }
.main-nav a {
  display: block;
  padding: 9px 0 6px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.main-nav .t {
  display: block;
  font-family: var(--head);
  font-size: 17px;
  line-height: 1.25;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.2s;
}
.main-nav .s {
  display: block;
  font-family: var(--small);
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--sub);
}
.main-nav a:hover .t,
.main-nav a:focus-visible .t { color: var(--red); }
/* Like the old site, the current page is not highlighted in the menu or sidebar (only on hover) */

.tagline {
  margin: 16px 26px 0;
  font-family: var(--small);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sub);
}

.fold {
  height: 64px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.fold-btn {
  width: 44px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 3px 3px 0 0;
  background: #fff;
  color: #1c1c1c;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fold-btn svg { stroke-width: 3; transition: transform var(--menu-speed); }

/* Folded up: whole panel slides off the top, the arrow tab stays visible */
.menu-folded .menu-wrap { transform: translateY(calc(-100% + 64px)); overflow: hidden; }
.menu-folded .fold-btn svg { transform: rotate(180deg); }

/* "Eye" button: hide everything except the photo */
.photo-only .menu-wrap,
.photo-only .social-top,
.photo-only .page { opacity: 0; pointer-events: none; }

/* ==========================================================================
   Bottom bar
   ========================================================================== */
.controls {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--bar-h);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 0 6px;
  background: var(--panel);
  border-top: 4px solid var(--red);
}
/* Inner pages: the bar sits over the white panel, so make it darker and frosted
   (like the phone menu) so it matches the homepage and the page text doesn't show through */
.controls.over-page {
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.progress {
  position: absolute;
  top: -4px; left: 0;
  height: 4px;
  width: 0;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.progress.is-running { animation: jsk-progress var(--slide-time, 5s) linear forwards; }
.progress.is-paused { animation-play-state: paused; }
@keyframes jsk-progress { from { width: 0; } to { width: 100%; } }

.ctrl {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  padding: 0;
  border: 0; border-radius: 3px;
  background: none;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.ctrl:hover { background: rgba(255, 255, 255, 0.12); }
.eye-btn[aria-pressed="true"] { color: #e05a5a; }

.copy {
  flex: 1 1 auto;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}
.copy span + span { margin-left: 4px; }
.copy .ln + .ln { margin-left: 0; }
.copy a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--red); }
.copy a:hover, .copy a:focus-visible { border-bottom-color: #fff; }

.slide-ctrls { display: flex; gap: 2px; }
.icon-play { display: none; }
.is-paused-show .icon-play { display: block; }
.is-paused-show .icon-pause { display: none; }

/* ==========================================================================
   Phones and tablets: 1024px and below
   ========================================================================== */
@media (max-width: 1024px) {
  .social-top { display: none; }

  .menu-wrap {
    left: 0; right: 0;
    width: auto;
    max-height: none;
    overflow: visible;
    background: none;
  }
  .menu-bar {
    position: relative;
    z-index: 2;
    height: var(--top-h);
    padding: 0 8px 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.72);
  }
  .logo img { width: 118px; }

  .menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 3px;
    background: none;
    color: #fff;
    cursor: pointer;
    font-family: var(--head);
    font-size: 15px;
    text-transform: uppercase;
  }
  .menu-btn svg { stroke-width: 3; transform: rotate(180deg); transition: transform 0.5s; }
  .menu-open .menu-btn svg { transform: rotate(0); }

  /* The drawer sits under the top bar and slides down */
  .menu-drawer {
    position: absolute;
    top: var(--top-h);
    left: 0; right: 0;
    z-index: 1;
    max-height: calc(100vh - var(--top-h) - var(--bar-h));
    max-height: calc(100dvh - var(--top-h) - var(--bar-h));
    overflow-y: auto;
    padding: 8px 24px 0;
    background: rgba(0, 0, 0, 0.8);
    /* Frosted glass: still see-through, but the page behind is blurred so the menu reads cleanly */
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.5s ease, visibility 0s linear 0.5s;
  }
  .menu-open .menu-drawer {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.5s ease, visibility 0s;
  }
  .main-nav { padding: 0; }
  .main-nav a { padding: 12px 0 9px; }
  .main-nav .t { font-size: 20px; line-height: 1.2; }
  .main-nav .s { font-size: 12px; }
  .tagline { margin: 16px 0 0; font-size: 12px; }

  .fold {
    height: auto;
    padding-top: 14px;
    justify-content: space-between;
  }
  .social-drawer { display: flex; }
  .fold-btn { width: 48px; height: 36px; }

  /* Desktop fold has no meaning on phones */
  .menu-folded .menu-wrap { transform: none; }

  .photo-only .menu-wrap,
  .photo-only .page { opacity: 0; pointer-events: none; }

  .controls { gap: 0; padding: 0 4px; background: rgba(0, 0, 0, 0.75); }
  .controls.over-page { background: rgba(0, 0, 0, 0.9); }

  /* Inner pages: the top bar sits over the white panel too, so it gets the same dark frosted look */
  .inner .menu-bar {
    background: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  /* Review numbers: bigger to tap with a finger */
  .t-dots { gap: 8px; }
  .t-dots button { width: 44px; height: 44px; font-size: 14px; }
  .copy { font-size: 11px; padding: 0 4px; }
  .copy span { display: block; }
  /* Same three neat lines on every page: "...JskClicks" / "Photography. All Rights Reserved." / "Site Design by..." */
  .copy .ln { white-space: nowrap; }
  .copy span + span { margin-left: 0; }
}

/* ==========================================================================
   Inner pages: photo background, white content panel, dark sidebar
   ========================================================================== */
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 8px 14px; background: #fff; color: #000; text-decoration: none;
}
.skip:focus { top: 8px; }

.bg { position: fixed; inset: 0; z-index: 0; }
.bg img { width: 100%; height: 100%; object-fit: cover; }


.page {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 64px 0 355px;
  padding-bottom: calc(var(--bar-h) + 48px);
  transition: opacity 0.4s;
}
.entries {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 990px;
  padding: 18px 36px 44px;
  background: #fff;
  color: var(--text);
  border-top: 4px solid var(--red);
  border-radius: 0 0 22px 22px;
}
.has-side .entries { max-width: 730px; }

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.page-title {
  margin: 0;
  font-family: var(--head);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
}
.entries-toggle {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  padding: 0; border: 0; background: none;
  color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.entries-toggle svg { stroke-width: 3; transition: transform 0.4s; }
.is-collapsed .entries-toggle svg { transform: rotate(180deg); }
.is-collapsed .entry { display: none; }

.crumbs ol { display: flex; flex-wrap: wrap; margin: 0; padding: 6px 0 0; list-style: none; font-size: 11px; color: #999; }
.crumbs li + li::before { content: "\00bb"; margin: 0 5px; }
.crumbs a { color: #666; text-decoration: none; }
.crumbs a:hover { color: var(--red); text-decoration: underline; }

/* ---------- Text inside the panel ---------- */
.entry { padding-top: 22px; font-size: 14px; line-height: 1.75; }
.entry p { margin: 0 0 16px; }
.entry a { color: var(--red); }
.entry h2, .entry h3 {
  margin: 30px 0 14px;
  font-family: var(--head);
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
}
.entry h2 { font-size: 16px; padding-left: 6px; border-left: 1px dotted #888; }
.entry h2.caps { text-transform: uppercase; }
.entry h3 { font-size: 18px; }
.entry > :first-child { margin-top: 0; }
.entry img { max-width: 100%; height: auto; }
.entry .portrait { margin: 0 auto 28px; }

@media (min-width: 768px) {
  .entry p, .checks li { text-align: justify; }
}

/* Tick lists */
.checks { margin: 0 0 22px; padding-left: 4px; }
.checks li {
  position: relative;
  padding: 3px 0 7px 28px;
  line-height: 1.55;
}
.checks li::before {
  content: "";
  position: absolute; left: 2px; top: 7px;
  width: 13px; height: 11px;
  background: currentColor;
  color: #444;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 11'%3E%3Cpath d='M1 6l4 4 7-9' fill='none' stroke='%23000' stroke-width='2.6'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 11'%3E%3Cpath d='M1 6l4 4 7-9' fill='none' stroke='%23000' stroke-width='2.6'/%3E%3C/svg%3E") no-repeat center / contain;
}
@media (min-width: 600px) {
  .checks.cols { columns: 2; column-gap: 28px; }
  .checks.cols li { break-inside: avoid; text-align: left; }
}

/* ---------- Services grid (Photography Services page) ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 28px;
  margin: 34px 0 0;
}
.svc {
  display: flex;
  gap: 14px;
  padding: 0 0 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--rule);
}
.svc img { flex: 0 0 auto; width: 32px; height: 32px; }
.svc h3 { margin: 0 0 8px; font-size: 18px; }
.svc p { margin: 0 0 12px; text-align: left; font-size: 13.5px; line-height: 1.6; }
.svc .more { color: var(--red); text-decoration: none; }
.svc .more:hover { text-decoration: underline; }
@media (max-width: 1199px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px)  { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- Call to action box ---------- */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 32px 0 0;
  padding: 18px 20px;
  background: #ececec;
}
.cta h3 { margin: 0 0 4px; font-size: 20px; }
.cta p { margin: 0; color: #999; text-align: left; line-height: 1.5; }
.btn {
  flex: 0 0 auto;
  display: inline-block;
  padding: 10px 30px;
  border: 0;
  border-radius: 3px;
  background: var(--btn);
  color: #fff !important;
  font-family: var(--head);
  font-size: 19px;
  line-height: 1.4;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--red); }

/* ---------- Testimonials (About) ---------- */
.testimonials {
  margin: 34px 0 0;
  padding: 26px 26px 18px;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.t { display: none; margin: 0; }
.t.is-active { display: block; animation: jsk-fade 0.6s ease; }
.t p { margin: 0 0 10px; font-style: italic; text-align: center !important; }
.t footer { font-family: var(--head); color: var(--ink); }
.t footer::before { content: "\2013\00a0"; }
.t-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.t-dots button {
  width: 30px; height: 30px; padding: 0;
  border: 1px solid #ccc; border-radius: 50%;
  background: #fff; color: #777; font-size: 12px; cursor: pointer;
}
.t-dots button[aria-current="true"] { background: var(--red); border-color: var(--red); color: #fff; }
@keyframes jsk-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Contact ---------- */
.phones { margin: 0 0 24px; }
.phones a { color: var(--ink); text-decoration: none; }
.phones a:hover { color: var(--red); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 4px; font-size: 13px; color: var(--ink); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;   /* 16px or more, or iPhones zoom the page in when a box is tapped */
}
.field textarea { min-height: 120px; resize: vertical; }
/* Phone: country code drop-down + number side by side. Code shows first so it's never cut off. */
.phone-row { display: flex; gap: 6px; }
.field .phone-row select { flex: 0 0 6.6em; width: 6.6em; min-width: 0; padding-right: 4px; text-overflow: ellipsis; }
.field .phone-row input { flex: 1 1 auto; min-width: 0; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #888; outline: 2px solid #e05a5a; outline-offset: 0; }
.field .err { display: block; margin-top: 3px; font-size: 12px; color: var(--red); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0 0 18px; padding: 12px 16px; border-left: 4px solid; }
.form-note.ok  { border-color: #3c8d40; background: #eef7ee; color: #24572a; }
.form-note.bad { border-color: var(--red); background: #fbeeee; color: #7a1010; }
.form-actions { margin-top: 18px; }
.form-actions .btn { font-size: 16px; padding: 8px 26px; }
@media (max-width: 599px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */
.post-card { margin: 0 0 34px; }
.post-card img, .post-img { width: 100%; height: auto; border-radius: 10px; margin-bottom: 16px; }
.post-meta { margin: 0 0 4px !important; font-size: 11px; color: #999; text-transform: uppercase; }
.post-card h2 { margin: 0 0 10px; padding: 0; border: 0; font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--red); }
.post-tags { font-size: 13px; color: #888; }

/* ---------- Sidebar ---------- */
.side {
  flex: 0 0 250px;
  padding: 26px 24px 28px;
  background: var(--panel);
  border-radius: 0 0 22px 22px;
  color: #ccc;
}
.side-title {
  margin: 0 0 12px;
  font-family: var(--head);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.side-title + * + .side-title, .side-posts + .side-title { margin-top: 26px; }
.side-list a {
  display: block;
  position: relative;
  padding: 4px 0 4px 16px;
  color: #ccc;
  font-size: 13px;
  text-decoration: none;
}
.side-list a::before { content: "\203a"; position: absolute; left: 2px; top: 2px; font-size: 16px; line-height: 1.4; }
.side-list a:hover { color: var(--red); }
.side-posts a { display: flex; gap: 10px; color: #ccc; font-size: 12px; line-height: 1.5; text-decoration: none; }
.side-posts img { width: 48px; height: 48px; object-fit: cover; border-radius: 3px; flex: 0 0 auto; }
.side-posts small { display: block; color: #888; }
.side-posts a:hover { color: var(--red); }

/* Bottom bar: back-to-top button sits at the right end of the bar on inner pages
   (where the slideshow buttons are on the homepage), so it never covers the text */
.to-top { margin-left: auto; }

/* ---------- Inner pages: tablets and small laptops ---------- */
@media (max-width: 1279px) {
  .page.has-side { flex-direction: column; align-items: stretch; }
  .has-side .entries { max-width: 990px; }
  .side { flex: none; width: auto; max-width: 990px; }
}
/* ---------- Inner pages: phones and tablets ---------- */
@media (max-width: 1024px) {
  .page {
    flex-direction: column;
    align-items: stretch;
    margin: calc(var(--top-h) + 10px) 10px 0;
    padding-bottom: calc(var(--bar-h) + 24px);
  }
  .entries { padding: 14px 18px 30px; border-radius: 0 0 16px 16px; }
  .page-title { font-size: 21px; }
  .entry { font-size: 15px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .side { border-radius: 16px; }
}
/* Tablets: same layout as phones, but centred with room either side */
@media (min-width: 768px) and (max-width: 1024px) {
  .page { width: calc(100% - 48px); max-width: 860px; margin-left: auto; margin-right: auto; }
  .entries { padding: 18px 30px 40px; }
}

/* Visitors who ask their device for less motion get no fades or slides */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
