/* Optimized font loading - moved to HTML head with font-display */

* {
  margin: 0;
  padding: 0;
}

:root {
  --padding: 1.333rem; /* Was 1.5rem */
  --color-black: #000;
  --color-white: #fff;
  --color-grey: #666666; /* Enhanced from #777 for better contrast (4.6:1 ratio) */
  --color-light: #f5f5f5; /* Enhanced from #efefef for better contrast */
  --color-text: var(--color-black);
  --color-text-grey: var(--color-grey);
  --color-background: var(--color-white);
  --color-focus: #3b82f6; /* Blue focus color for accessibility */
  --color-error: #dc2626; /* Red for errors */
  --color-success: #059669; /* Green for success */
  --color-warning: #d97706; /* Orange for warnings */
  --color-code-light-grey:  #cacbd1;
  --color-code-comment:     #a9aaad;
  --color-code-white:       #c5c9c6;
  --color-code-red:         #d16464;
  --color-code-orange:      #de935f;
  --color-code-yellow:      #f0c674;
  --color-code-green:       #a7bd68;
  --color-code-aqua:        #8abeb7;
  --color-code-blue:        #7e9abf;
  --color-code-purple:      #b294bb;
  --font-family-sans: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-family-headings: 'Taviraj', serif; /* Added for headings */
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  
  /* Shadow variables for consistency */
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.15);
  --overlay-light: rgba(0, 0, 0, 0.4);
  --overlay-medium: rgba(0, 0, 0, 0.5);
  --overlay-heavy: rgba(0, 0, 0, 0.8);
}

html {
  font-family: var(--font-family-sans);
  color: var(--color-text);
  background: var(--color-background);
  font-size: 18px; /* Base font size */
  
  /* Performance optimizations */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed; /* Prioritize speed over quality for better performance */
}

img {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  
  /* Ensure crisp image rendering, especially for logos */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: auto; /* Fallback for better browser support */
  -ms-interpolation-mode: nearest-neighbor; /* IE fallback */
  
  /* Performance: GPU acceleration for images */
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Performance: Optimize animations and transitions */
*,
*::before,
*::after {
  will-change: auto; /* Reset will-change to auto by default */
}

body {
  margin: 0;
  padding: 0;
  
  /* Performance: Enable hardware acceleration for smooth scrolling */
  -webkit-overflow-scrolling: touch;
}

/* Content container for width constraints - reuse Tailwind's container sizing */
.content-container {
  max-width: 62.222rem; /* Match existing constraint */
  margin: 0 auto;
  padding: var(--padding); /* Basic horizontal padding */
}
li {
  list-style: none;
}
a {
  color: currentColor;
  text-decoration: none;
}
button {
  font-family: var(--font-family-sans); 
  font-weight: 700; 
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}
strong, b {
  font-weight: 600;
}
small {
  font-size: inherit;
  color: var(--color-text-grey);
}

/* Utility classes - keeping only what Tailwind doesn't cover */

.section {
  padding: 2.667rem 0; /* Was 3rem */
}

.grid {
  --columns: 12;
  --gutter: 2.667rem; /* Was 3rem */
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr; /* Default mobile: single column */
}
.grid > .column {
  margin-bottom: var(--gutter); /* Uses scaled --gutter */
}

/* Desktop grid system with 12 columns */
@media screen and (min-width: 60rem) {
  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
  
  .grid > .column {
    grid-column: span calc(var(--columns, 12));
    margin-bottom: 0;
  }
  
  /* Slider specific grid adjustments */
  .slider .grid {
    align-items: stretch;
  }
}

.autogrid {
  --gutter: 2.667rem; /* Was 3rem */
  --min: 8.889rem; /* Was 10rem */
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings); 
  font-size: inherit;
  font-weight: 400; 
  line-height: inherit;
}

.text {
  line-height: 1.5em; /* em is relative to current font-size, so this should be fine */
  padding-bottom: 1.333rem
}
.text a {
  text-decoration: underline;
}
.text :first-child {
  margin-top: 0;
}
.text :last-child {
  margin-bottom: 0;
}
.text p,
.text ul,
.text ol {
  margin-bottom: 1.333rem; /* Was 1.5rem */
}
.text ul,
.text ol {
  margin-left: 0.889rem; /* Was 1rem */
}
.text ul p,
.text ol p {
  margin-bottom: 0;
}
.text ul > li {
  list-style: disc;
}
.text ol > li {
  list-style: decimal;
}
.text ul ol,
.text ul ul,
.text ol ul,
.text ol ol {
  margin-bottom: 0;
}
/* .text h1, */
.h1,
.intro {
  font-size: 1.778rem; /* Was 2rem */
  margin-bottom: 2.667rem; /* Was 3rem */
  line-height: 1.25em;
}
/* .text h2, */
.h2 {
  font-size: 1.111rem; /* Was 1.25rem */
  margin-bottom: 1.111rem; /* Was 1.25rem */
}
.text .codeblock {
  display: grid;
}
.text code {
  font-family: var(--font-family-mono);
  font-size: 1em; /* em is relative, should be fine */
  background: var(--color-light);
  padding: 0 0.444rem; /* Was 0.5rem */
  display: inline-block;
  color: var(--color-black);
}
.text pre {
  margin: 2.667rem 0; /* Was 3rem */
  background: var(--color-black);
  color: var(--color-white);
  padding: 1.333rem; /* Was 1.5rem */
  overflow-x: scroll;
  overflow-y: hidden;
  line-height: 1.333rem; /* Was 1.5rem */
}
.text pre code {
  padding: 0;
  background: none;
  color: inherit;
}
.text hr {
  margin: 5.333rem 0; /* Was 6rem */
}
.text dt {
  font-weight: 600;
}
.text blockquote {
  font-size: 1.111rem; /* Was 1.25rem */
  line-height: 1.325em;
  border-left: 2px solid var(--color-black);
  padding-left: 0.889rem; /* Was 1rem */
  margin: 2.667rem 0; /* Was 3rem */
}
.text blockquote footer {
  font-size: 0.778rem; /* Was 0.875rem */
  font-style: italic;
}
.text figure {
  margin: 2.667rem 0; /* Was 3rem */
  height: 100%;
  display: flex; /* RESTORED */
  flex-direction: column; /* RESTORED */
  position: relative; 
}
.text figcaption {
  padding-top: 0.667rem; /* Was 0.75rem */
  color: var(--color-text-grey);
}
.text figure ul {
  line-height: 0;
  display: grid;
  gap: 1.333rem; /* Was 1.5rem */
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(8.889rem, 1fr)); /* minmax value from autogrid --min */
}
.text figure ul li {
  list-style: none;
}

/* Specific rule for the image's anchor tag to make it fill the figure */
.text figure > a.img {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

hr {
  border: 0;
  background: currentColor;
  height: 2px;
  width: 1.333rem; /* Was 1.5rem */
  margin: 2.667rem auto; /* Was 3rem */
}

.align-center {
  text-align: center;
}

/* .intro {
 max-width: 35.556rem;  Was 40rem (40 * 8/9) 
}*/
.intro *:not(:last-child) {
  margin-bottom: 1em;
}

.cta {
  font-family: var(--font-family-sans); 
  font-weight: 700; 
  background: var(--color-black);
  color: var(--color-white);
  display: inline-flex;
  justify-content: center;
  padding: 0.667rem 1.333rem; /* Was 0.75rem 1.5rem */
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-black);
}

.box {
  background: var(--color-light);
  padding: 1.333rem; /* Was 1.5rem */
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-light);
}

.video,
.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
}
.img img,
.video iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.img[data-contain] img {
  object-fit: contain;
}
.img-caption,
.video-caption {
  padding-top: 0.667rem; /* Was 0.75rem */
  line-height: 1.5em;
}

.footer {
  padding: 8rem 0 5.333rem; /* Was 9rem 0 6rem */
  line-height: 1.5em;
}
.footer:before {
  content: "";
  display: block;
  width: 1.333rem; /* Was 1.5rem */
  height: 2px;
  background: var(--color-black);
  margin-bottom: 1.333rem; /* Was 1.5rem */
}

.footer h2 {
  font-weight: 400; 
  margin-bottom: 0.667rem; /* Was 0.75rem */
}
.footer ul,
.footer p {
  color: var(--color-text-grey);
}
.footer p {
  max-width: 13.333rem; /* Was 15rem */
}
.footer a:hover {
  color: var(--color-text);
}


.map {
  --w: 2;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}
.map iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* SLIDER COMPONENT STYLES */

.slider-block-wrapper {
  position: relative;
}

.slider {
  width: 100%;
  height: calc(100vh - (132px + var(--padding)));
  background-size: cover;
  background-position: center;
  position: relative;
  display: block;
  overflow: hidden;
  margin-bottom: 2.667rem;
}

.slider-content-container {
  max-width: 62.222rem; /* Match content-container */
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem; /* Match content-container padding */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

.slider-content {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.333rem;
  border-radius: 5px;
  margin-bottom: var(--padding);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slider-content h2 {
  margin-top: 0;
  font-size: 1.556rem;
  font-weight: 400;
  margin-bottom: 0.444rem;
}

.slider-content p {
  margin-bottom: 0.889rem;
  font-size: 0.889rem;
}

.slider-content .cta {
  font-family: var(--font-family-sans);
  display: inline-block;
  padding: 0.667rem 1.333rem;
  background-color: var(--color-black);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 3px;
  font-weight: bold;
  margin-top: auto;
  align-self: flex-start;
}

/* Multi-slide functionality */
.slider .slide {
  width: 100%;
  min-height: 100%;
  background-size: cover;
  background-position: center;
  display: none;
  align-items: stretch;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}

.slider .slide.active {
  display: flex;
  opacity: 1;
  position: relative;
}

/* Slider controls */
.slider-controls {
  position: absolute;
  top: 50%;
  left: 10px;
  right: 10px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  z-index: 10;
}

.slider-controls button {
  background-color: var(--overlay-medium);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
}

.slider-controls button:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 10;
}

.slider-dots button {
  background-color: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.5);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  padding: 0;
}

/* New styles for slider aside image column */
.slider-aside-image-column {
  position: relative;
  overflow: hidden;
}

.slider-aside-image-column img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Mobile and Desktop slider styles */
@media screen and (max-width: 59.99rem) {
  .slider .grid {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
  }
  
  .slider .slider-content {
    --columns: 12;
    order: 2;
  }
  
  .slider .slider-aside-image-column {
    --columns: 12;
    order: 1;
    height: 200px;
    margin-bottom: 1rem;
  }
}

@media screen and (min-width: 60rem) {
  .slider .grid {
    margin-bottom: 3rem;
  }
}

.slider-dots button.active {
  background-color: var(--overlay-heavy);
}

/* PHOTOGRAPHY GRID STYLES */

.home-grid {
  display: grid;
  list-style: none;
  gap: 1.5rem;
  line-height: 0;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
  grid-auto-rows: 200px;
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  padding: 0;
}

.home-grid li {
  position: relative;
  --cols: 1;
  --rows: 1;
  overflow: hidden;
  background: var(--color-black);
  line-height: 0;
  height: 100%;
  grid-column: span var(--cols);
  grid-row: span var(--rows);
}

.home-grid figure {
  height: 100%;
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.home-grid figure > a.img {
  display: block;
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}

.home-grid img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-grid figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: #fff;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent);
  text-align: center;
  line-height: 1.5rem;
  font-size: 1.2rem;
  transition: background 0.3s ease;
}

.home-grid figcaption a {
  color: #fff;
  text-decoration: none;
}

.home-grid figcaption:hover {
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.6), rgba(0,0,0,0.1));
}

/* Mobile Photography Grid */
@media screen and (max-width: 59.99rem) {
  .home-grid {
    grid-template-columns: 1fr !important;
    grid-auto-flow: row;
    grid-auto-rows: auto;
  }
  
  .home-grid li {
    --cols: 1 !important;
    --rows: 1 !important;
  }
  
  .home-grid.columns-1,
  .home-grid.columns-2,
  .home-grid.columns-3,
  .home-grid.columns-4 { 
    grid-template-columns: 1fr !important; 
  }
}

/* Desktop Photography Grid */
@media screen and (min-width: 60rem) {
  .home-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
  }
  
  .home-grid.columns-1 { grid-template-columns: repeat(1, 1fr) !important; }
  .home-grid.columns-2 { grid-template-columns: repeat(2, 1fr) !important; }
  .home-grid.columns-3 { grid-template-columns: repeat(3, 1fr) !important; }
  .home-grid.columns-4 { grid-template-columns: repeat(4, 1fr) !important; }
  
  /* Masonry layout */
  .home-grid li:first-child { --cols: 2; --rows: 3; }
  .home-grid li:nth-child(2) { --cols: 1; --rows: 3; }
  .home-grid li:nth-child(3) { --cols: 1; --rows: 2; }
  .home-grid li:nth-child(4) { --cols: 2; --rows: 2; }
  .home-grid li:nth-child(5) { --cols: 2; --rows: 2; }
  .home-grid li:nth-child(6) { --cols: 1; --rows: 4; }
  .home-grid li:nth-child(7) { --cols: 1; --rows: 2; }
  .home-grid li:nth-child(8) { --cols: 1; --rows: 2; }
}

/* =================================================================
   PHOTOGRAPHY PAGE STYLES
   ================================================================= */

.photography-albums-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 0;
}

.album-preview-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.album-preview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: #d1d5db;
}

.album-preview-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  min-height: 200px;
}

.album-preview-card:focus,
.album-preview-card:focus-within,
.album-preview-link:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-color: var(--color-focus);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.album-preview-image {
  position: relative;
  overflow: hidden;
  width: 300px;
  flex-shrink: 0;
  background: #f3f4f6;
}

.album-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.album-preview-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.album-preview-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111827;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.album-preview-card:hover .album-preview-title {
  color: #2563eb;
}

.album-preview-text {
  color: #6b7280;
  line-height: 1.7;
  font-size: 1rem;
}

.album-preview-text p {
  margin-bottom: 0.75rem;
}

.album-preview-text p:last-child {
  margin-bottom: 0;
}

/* Mobile adjustments for photography page */
@media screen and (max-width: 767px) {
  .photography-albums-grid {
    gap: 1.25rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .album-preview-link {
    flex-direction: column;
    min-height: auto;
  }
  
  .album-preview-image {
    width: 100%;
    height: auto;
  }
  
  .album-preview-content {
    padding: 1.5rem;
  }
  
  .album-preview-title {
    font-size: 1.25rem;
  }
}

/* Tablet adjustments */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .album-preview-image {
    width: 250px;
  }
  
  .album-preview-content {
    padding: 1.75rem;
  }
}



/* =================================================================
   COMPONENT STYLES
   ================================================================= */

/* Pagination component */
.pagination {
  display: flex;
  padding-top: 5.333rem;
}
.pagination > span {
  color: var(--color-text-grey);
}
.pagination > * {
  padding: 0.444rem;
  width: 2.667rem;
  text-align: center;
  border: 2px solid currentColor;
  margin-right: 1.333rem;
}
.pagination > a:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

/* Note excerpt component */
.note-excerpt {
  line-height: 1.5em;
}
.note-excerpt header {
  margin-bottom: 1.333rem;
}
.note-excerpt figure {
  margin-bottom: 0.444rem;
}
.note-excerpt-title {
  font-weight: 400;
}
.note-excerpt-date {
  color: var(--color-text-grey);
}

/* =================================================================
   NOTES PAGE STYLES
   ================================================================= */

.notes-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.notes-tag-header {
  margin-bottom: 2rem;
  text-align: center;
}

.notes-tag-header h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag-label {
  color: var(--color-text-grey);
  font-weight: normal;
  font-size: 0.9em;
}

.back-to-all-notes {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-grey);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.back-to-all-notes:hover {
  color: var(--color-text);
}

.close-icon {
  width: 1rem;
  height: 1rem;
}

.notes-intro {
  margin-bottom: 3rem;
  text-align: center;
}

.notes-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.note-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.note-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: #d1d5db;
}

.note-article {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.note-article > a {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.note-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.note-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.note-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: calc(100% - 200px);
}

.note-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #111827;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.note-card:hover .note-title {
  color: #2563eb;
}

.note-date {
  color: var(--color-text-grey);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.note-excerpt {
  color: #6b7280;
  line-height: 1.6;
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.note-read-more {
  color: #2563eb;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: auto;
  transition: color 0.3s ease;
}

.note-card:hover .note-read-more {
  color: #1d4ed8;
}

.notes-pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* Mobile adjustments for notes */
@media screen and (max-width: 767px) {
  .notes-grid-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .note-content {
    padding: 1.25rem;
  }
  
  .note-title {
    font-size: 1.125rem;
  }
  
  .notes-tag-header h1 {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* =================================================================
   UTILITY STYLES & COMPONENTS
   ================================================================= */

/* Services component styles */
.services li, .services h3 {
  margin-bottom: 0.889rem;
}

.services h3 {
  font-weight: 700;
}

/* Album Page Info Boxes Mobile Styling */
@media screen and (max-width: 47.99rem) { /* Mobile only - don't override Tailwind md: breakpoint */
  .info-boxes-section .clickable-info-box {
    margin-bottom: 1rem; /* Ensure spacing between stacked boxes */
  }

  .info-boxes-section .clickable-info-box:last-child {
    margin-bottom: 0; /* Remove margin from the last box */
  }
}

/* =================================================================
   ALBUM INFO BOXES HOVER EFFECTS
   ================================================================= */

/* Album info box container styling */
.clickable-info-box {
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0.5rem;
  overflow: visible; /* Allow tooltip to show */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-light);
}

/* Override default box background for clickable boxes */
.clickable-info-box.box {
  background: var(--color-light);
}

/* Hover effects for info boxes */
.clickable-info-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
  outline-color: #10b981; /* Green accent on hover */
  background: #f9fafb;
}

.clickable-info-box:focus {
  outline: 3px solid #10b981;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Green price triangle in top-right corner */
.price-triangle {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #10b981;
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 0 0.5rem 0 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
}

.clickable-info-box:hover .price-triangle {
  background: #059669;
  transform: scale(1.05);
}

/* Click indicator (arrow) */
.click-indicator {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  opacity: 0.6;
  transition: all 0.3s ease;
  pointer-events: none;
}

.clickable-info-box:hover .click-indicator {
  opacity: 1;
  transform: translateX(3px);
  color: #10b981;
}

/* Tooltip for "Klicken für Kontaktformular" */
.clickable-info-box::after {
  content: "Erfahre mehr über dieses Service";
  position: absolute;
  bottom: 1rem;
  right: 3.5rem;
  background: #1f2937;
  color: white;
  padding: 0.375rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 5;
  pointer-events: none;
}

.clickable-info-box:hover::after,
.clickable-info-box:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Focus states for accessibility */
.clickable-info-box:focus::after {
  opacity: 1;
  visibility: visible;
}

.clickable-info-box:focus::before {
  opacity: 1;
  visibility: visible;
}

/* Enhanced visual feedback */
.clickable-info-box:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

/* Ensure proper stacking */
.album-info-boxes {
  position: relative;
  z-index: 1;
}

/* Add margin to last list item in info boxes */
.clickable-info-box .prose ul li:last-child {
  margin-bottom: 2rem;
}

/* Mobile-specific adjustments */
@media screen and (max-width: 767px) {
  /* Show tooltip by default on mobile */
  .clickable-info-box::after {
    opacity: 1;
    visibility: visible;
    font-size: 0.625rem;
    padding: 0.25rem 0.375rem;
    bottom: 0.75rem;
    right: 25%;
  }
  
  .price-triangle {
    top: 6px;
    right: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .click-indicator {
    bottom: 0.75rem;
    right: 0.75rem;
  }
}

/* =================================================================
   SOCIAL MEDIA ICONS STYLING
   ================================================================= */

/* Social media links base styles */
.social-link {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
}

/* Ensure SVG icons are properly centered */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Platform-specific hover colors */
.social-link[href*="instagram"]:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
  border-color: transparent;
}

.social-link[href*="facebook"]:hover {
  background-color: #1877f2;
  color: white;
  border-color: transparent;
}

.social-link[href*="youtube"]:hover {
  background-color: #ff0000;
  color: white;
  border-color: transparent;
}

.social-link[href*="twitter"]:hover,
.social-link[href*="x.com"]:hover {
  background-color: #1da1f2;
  color: white;
  border-color: transparent;
}

.social-link[href*="linkedin"]:hover {
  background-color: #0077b5;
  color: white;
  border-color: transparent;
}

.social-link[href*="tiktok"]:hover {
  background-color: #000000;
  color: white;
  border-color: transparent;
}

.social-link[href*="pinterest"]:hover {
  background-color: #bd081c;
  color: white;
  border-color: transparent;
}

.social-link[href*="behance"]:hover {
  background-color: #1769ff;
  color: white;
  border-color: transparent;
}

.social-link[href*="flickr"]:hover {
  background-color: #ff0084;
  color: white;
  border-color: transparent;
}

.social-link[href*="500px"]:hover {
  background-color: #0099e5;
  color: white;
  border-color: transparent;
}

.social-link[href*="vsco"]:hover {
  background-color: #000000;
  color: white;
  border-color: transparent;
}

.social-link[href*="whatsapp"]:hover,
.social-link[href^="tel:"]:hover {
  background-color: #25d366;
  color: white;
  border-color: transparent;
}

.social-link[href*="discord"]:hover {
  background-color: #5865f2;
  color: white;
  border-color: transparent;
}

.social-link[href*="mastodon"]:hover {
  background-color: #563acc;
  color: white;
  border-color: transparent;
}

/* About page specific hover effects */
.contact .social-link {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.contact .social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
}

/* Enhanced platform-specific colors for About page */
.contact .social-link[href*="instagram"]:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
  border-color: transparent;
}

.contact .social-link[href*="facebook"]:hover {
  background-color: #1877f2;
  color: white;
  border-color: transparent;
}

.contact .social-link[href*="youtube"]:hover {
  background-color: #ff0000;
  color: white;
  border-color: transparent;
}

.contact .social-link[href*="twitter"]:hover,
.contact .social-link[href*="x.com"]:hover {
  background-color: #1da1f2;
  color: white;
  border-color: transparent;
}

.contact .social-link[href*="linkedin"]:hover {
  background-color: #0077b5;
  color: white;
  border-color: transparent;
}

.contact .social-link[href*="tiktok"]:hover {
  background-color: #000000;
  color: white;
  border-color: transparent;
}

.contact .social-link[href*="pinterest"]:hover {
  background-color: #bd081c;
  color: white;
  border-color: transparent;
}

.contact .social-link[href*="behance"]:hover {
  background-color: #1769ff;
  color: white;
  border-color: transparent;
}

.contact .social-link[href*="flickr"]:hover {
  background-color: #ff0084;
  color: white;
  border-color: transparent;
}

.contact .social-link[href*="500px"]:hover {
  background-color: #0099e5;
  color: white;
  border-color: transparent;
}

.contact .social-link[href*="vsco"]:hover {
  background-color: #000000;
  color: white;
  border-color: transparent;
}

.contact .social-link[href*="whatsapp"]:hover,
.contact .social-link[href*="wa.me"]:hover,
.contact .social-link[href^="tel:"]:hover {
  background-color: #25d366;
  color: white;
  border-color: transparent;
}

.contact .social-link[href*="discord"]:hover {
  background-color: #5865f2;
  color: white;
  border-color: transparent;
}

.contact .social-link[href*="mastodon"]:hover {
  background-color: #563acc;
  color: white;
  border-color: transparent;
}

/* =================================================================
   ACCESSIBILITY UTILITIES
   ============================================= */

/* Screen Reader Only - Hidden visually but available to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Make sr-only content visible when focused */
.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Skip Links */
.skip-link {
  position: absolute;
  top: -1000px;
  left: -1000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  background: var(--color-focus);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 0.25rem;
  font-weight: 600;
  z-index: 9999;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  overflow: visible;
}

/* Enhanced Focus Indicators */
*:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* High contrast focus for buttons and interactive elements */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Remove focus outline for mouse users, keep for keyboard users */
.js-focus-visible *:focus:not(.focus-visible) {
  outline: none;
  box-shadow: none;
}

/* Ensure focus is visible even when focus-visible is used */
.js-focus-visible *:focus.focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* =============================================
   MOTION & CONTRAST PREFERENCES
   ============================================= */

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-grey: #4a4a4a; /* Darker grey for high contrast */
    --color-text: #000000;
    --color-background: #ffffff;
    --color-light: #e5e5e5; /* Darker light color for high contrast */
  }
  
  a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
  }
  
  button {
    border: 2px solid currentColor;
  }
  
  /* Enhanced focus indicators for high contrast */
  *:focus {
    outline: 3px solid #000000;
    outline-offset: 2px;
  }
  
  /* Ensure all interactive elements have visible borders */
  input, textarea, select {
    border: 2px solid #000000 !important;
  }
  
  /* High contrast button styles */
  .bg-indigo-600, .bg-blue-500 {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff;
  }
}

/* Enhanced contrast for specific elements when body has high-contrast class */
body.high-contrast {
  --color-grey: #4a4a4a;
  --color-light: #e5e5e5;
}

body.high-contrast a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

body.high-contrast button {
  border: 2px solid currentColor;
}

/* =============================================
   ARIA & STATE INDICATORS
   ============================================= */

/* Visual indicators for ARIA states - only for dropdowns/collapsible content, not main navigation */
.dropdown[aria-expanded="false"] + *,
.collapsible[aria-expanded="false"] + *,
[role="button"][aria-expanded="false"] + .dropdown-menu {
  display: none;
}

.dropdown[aria-expanded="true"] + *,
.collapsible[aria-expanded="true"] + *,
[role="button"][aria-expanded="true"] + .dropdown-menu {
  display: block;
}

/* Error states */
[aria-invalid="true"] {
  border-color: var(--color-error) !important;
  box-shadow: 0 0 0 1px var(--color-error);
}

/* Required field indicators */
[aria-required="true"] + .required-indicator::after,
[required] + .required-indicator::after {
  content: " *";
  color: var(--color-error);
  font-weight: bold;
}

/* Live region styling */
[aria-live] {
  position: relative;
}

/* Alert styling */
[role="alert"] {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

[role="alert"]:empty {
  display: none;
}

/* =============================================
   KEYBOARD NAVIGATION ENHANCEMENTS
   ============================================= */

/* Focus trap styles */
.focus-trap {
  position: relative;
}

/* Modal and overlay focus management */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

/* Menu keyboard navigation */
[role="menu"] [role="menuitem"]:focus,
[role="listbox"] [role="option"]:focus {
  background-color: var(--color-focus);
  color: white;
}

/* =============================================
   FORM ACCESSIBILITY ENHANCEMENTS
   ============================================= */

/* Form error styling */
.form-error {
  color: var(--color-error);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-error::before {
  content: "⚠ ";
  font-weight: bold;
}

/* Form help text */
.form-help {
  color: var(--color-text-grey);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Fieldset and legend styling */
fieldset {
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

legend {
  padding: 0 0.5rem;
  font-weight: 600;
  color: #374151;
}

/* =============================================
   RESPONSIVE ACCESSIBILITY
   ============================================= */

/* Ensure interactive elements are large enough on touch devices */
@media (max-width: 768px) {
  button,
  a,
  input,
  textarea,
  select {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Larger tap targets for mobile */
  .mobile-tap-target {
    padding: 0.75rem;
  }
}

/* Print accessibility */
@media print {
  .sr-only {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
  
  .skip-link {
    display: none;
  }
}

/* ===== END ACCESSIBILITY UTILITIES ===== */

/* Utility classes - keeping only what Tailwind doesn't cover */
