/* plumlines polish layer – Oct 2026
   Loaded after styles.css. Presentation only: no text or samples change here.
   Remove the <link> to this file to return to the original look. */

:root {
  --radius: 10px;
  --shadow-soft: 0 1px 2px rgba(15, 60, 62, 0.04), 0 6px 20px rgba(15, 60, 62, 0.06);
  --shadow-lift: 0 2px 4px rgba(15, 60, 62, 0.05), 0 14px 34px rgba(15, 60, 62, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Short gold rule under section headings */
section h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--accent);
}

/* ── Header: soft frosted glass once the page scrolls ── */
header {
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  header.is-scrolled {
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
  }
}

header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 60, 62, 0.08); }

/* Menu links: a thin underline that grows on hover */
nav a {
  position: relative;
  padding: 4px 0;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

nav a:hover::after,
nav a:focus-visible::after,
nav a.active::after { transform: scaleX(1); }

/* ── Hero: gentle gradient and faint flowing lines ── */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(223, 175, 52, 0.10) 0%, rgba(223, 175, 52, 0) 55%),
    linear-gradient(180deg, #e3f3f3 0%, #eef8f8 60%, #f7fbfb 100%);
  border-bottom-color: #dcecec;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -10% -5% -10% 35%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 500' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%230F7476' stroke-linecap='round'%3E%3Cpath stroke-opacity='.14' stroke-width='1.2' d='M-20 420 C 180 330, 300 470, 470 360 S 720 180, 820 230'/%3E%3Cpath stroke-opacity='.11' stroke-width='1.2' d='M-20 380 C 170 290, 320 430, 480 320 S 710 140, 820 190'/%3E%3Cpath stroke-opacity='.09' stroke-width='1.2' d='M-20 340 C 160 250, 330 390, 490 280 S 700 100, 820 150'/%3E%3Cpath stroke-opacity='.07' stroke-width='1.2' d='M-20 300 C 150 210, 340 350, 500 240 S 690 60, 820 110'/%3E%3Cpath stroke-opacity='.05' stroke-width='1.2' d='M-20 260 C 140 170, 350 310, 510 200 S 680 20, 820 70'/%3E%3C/g%3E%3Cpath fill='none' stroke='%23DFAF34' stroke-opacity='.28' stroke-width='1.4' stroke-linecap='round' d='M-20 460 C 190 370, 290 500, 460 400 S 730 220, 820 270'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.hero .cta-link {
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(15, 116, 118, 0.22);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.hero .cta-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 116, 118, 0.28);
}

/* Pull quote: soft card with an ornamental quotation mark */
.hero-quote {
  position: relative;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-soft);
  padding-top: 34px;
}

.hero-quote::before,
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: -6px;
  right: 18px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 88px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.22;
  pointer-events: none;
}

/* ── Service tiles ── */
.tile {
  position: relative;
  border-radius: var(--radius);
  border-color: #e6ecec;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}

.tile::before {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--teal), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.tile:hover {
  transform: translateY(-3px);
  border-color: #cfe4e4;
  box-shadow: var(--shadow-lift);
}

.tile:hover::before { transform: scaleX(1); }

.tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--teal-light);
  color: var(--teal);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.tile-icon svg { width: 22px; height: 22px; }

.tile:hover .tile-icon { background: var(--teal); color: #fff; }

.tile a.tile-link { margin-top: auto; padding-top: 16px; }
.tile a.tile-link:hover { text-decoration: none; }

.tile-arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

.tile:hover .tile-arrow,
.tile a.tile-link:focus-visible .tile-arrow { transform: translateX(5px); }

/* Whole tile is clickable (the "View samples" link stretches over it) */
.tile a.tile-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* ── Testimonials ── */
.testimonials {
  background: linear-gradient(180deg, var(--teal-light) 0%, #f3fafa 100%);
}

.testimonial {
  position: relative;
  border-radius: 0 var(--radius) var(--radius) 0;
  border-color: #dcecec;
  border-left-color: var(--accent);
  box-shadow: var(--shadow-soft);
  padding-top: 40px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.testimonial:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

/* ── Closing band ── */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(90% 140% at 50% 120%, rgba(223, 175, 52, 0.16) 0%, rgba(223, 175, 52, 0) 60%),
    linear-gradient(135deg, #0d6668 0%, var(--teal) 50%, #12807f 100%);
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-width='1.2'%3E%3Cpath stroke-opacity='.10' d='M-20 240 C 260 150, 520 300, 800 200 S 1100 120, 1220 160'/%3E%3Cpath stroke-opacity='.07' d='M-20 270 C 270 180, 530 330, 810 230 S 1110 150, 1220 190'/%3E%3Cpath stroke-opacity='.05' d='M-20 210 C 250 120, 510 270, 790 170 S 1090 90, 1220 130'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.cta-band .btn {
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.cta-band .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  background: #fff;
}

/* ── Keyboard focus: clear but quiet ── */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Scroll reveal (only when JavaScript is running) ── */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Respect visitors who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .tile:hover, .testimonial:hover, .hero .cta-link:hover, .cta-band .btn:hover { transform: none; }
}

@media (max-width: 920px) {
  .hero::before { inset: auto -40% -4% -40%; height: 46%; opacity: 0.45; }
}

/* Jump links (e.g. Portfolio → #services) land below the sticky header */
section[id] { scroll-margin-top: 110px; }

/* Tagline under the name: sized to run the same width as the wordmark.
   The name is clamp(30px, 7vw, 52px); the tagline is 0.45 of that. */
.logo-tagline {
  display: block;
  margin-top: 6px;
  font-size: clamp(13.5px, 3.15vw, 23.4px);
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--tagline, #3D3D3D);
}
