/*
Theme Name: Hannah Alberts Ceramic Artist
Theme URI: https://hannahalberts.com
Author: Hannah Alberts
Author URI: https://hannahalberts.com
Description: A clean, minimal portfolio theme for Hannah Alberts, Ceramic Artist.
Version: 1.0
Tags: portfolio, artist, minimal, gallery
Text Domain: hannah-alberts
*/

/* =============================================
   CSS VARIABLES
============================================= */
:root {
  --navy: #1a2744;
  --navy-mid: #2c3e6b;
  --navy-light: #4a5a8a;
  --white: #ffffff;
  --off-white: #ffffff;
  --light-gray: #ececea;
  --mid-gray: #c8c8c4;
  --text-gray: #6b6b6b;
  --font-primary: 'DM Sans', sans-serif;
  --font-display: 'DM Sans', sans-serif;
  --transition: 0.3s ease;
  --max-width: 1400px;
  --header-height: 80px;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--white);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;

}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* =============================================
   TYPOGRAPHY
============================================= */
h1, h2, h3, h4 {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.8rem); }

p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-gray);
  max-width: 65ch;
}

/* =============================================
   LAYOUT UTILITIES
============================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

.section-pad {
  padding: 100px 0;
}

/* =============================================
   HEADER / NAV
============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26, 39, 68, 0.07);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(26, 39, 68, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

/* Site Title */
.site-title {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-title a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.site-title__name {
  font-family: var(--font-primary);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--navy);
}

.site-title__subtitle {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-light);
  margin-top: 2px;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Nav */
.primary-nav {
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: var(--transition);
}

.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: 36px;
}

.primary-nav > ul > li {
  position: relative;
}

.primary-nav > ul > li > a {
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color var(--transition);
  padding: 4px 0;
  position: relative;
}

.primary-nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--navy);
  transition: width var(--transition);
}

.primary-nav > ul > li > a:hover::after,
.primary-nav > ul > li.current-menu-item > a::after {
  width: 100%;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 20px);
  right: 0;
  background: var(--white);
  border: 1px solid rgba(26, 39, 68, 0.1);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.22s ease;
  z-index: 200;
}

.primary-nav > ul > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 12px 20px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  transition: background var(--transition), color var(--transition);
  border-bottom: 1px solid rgba(26,39,68,0.06);
}

.dropdown li:last-child a {
  border-bottom: none;
}

.dropdown li a:hover {
  background: var(--white);
  color: var(--navy-mid);
}

/* Instagram Icon */
.instagram-link {
  display: flex;
  align-items: center;
  color: var(--navy);
  transition: opacity var(--transition);
}

.instagram-link:hover {
  opacity: 0.6;
}

.instagram-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.5;
}

/* =============================================
   MAIN CONTENT OFFSET
============================================= */
.site-main {
  padding-top: var(--header-height);
  min-height: 100vh;
}

/* =============================================
   PAGE TITLE BAR (replaces hero on all pages)
============================================= */
.page-title-bar {
  padding: 0px 0 32px;
  border-bottom: 1px solid var(--light-gray);
}

.page-title-bar h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Home Intro strip */
.home-intro {
  padding: 80px 0;
  background: var(--white);
}

.home-intro .container {
  display: flex;
  align-items: center;
  gap: 80px;
}

.home-intro__text {
  flex: 1;
}

.home-intro__text h2 {
  margin-bottom: 20px;
}

.home-intro__image {
  flex: 1;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.home-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.home-intro__image:hover img {
  transform: scale(1.03);
}

.btn {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 28px;
  border: 1px solid var(--navy);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  transition: background var(--transition), color var(--transition);
  font-family: var(--font-primary);
  cursor: pointer;
}

.btn:hover {
  background: var(--navy);
  color: var(--white);
}

/* =============================================
   ABOUT PAGE
============================================= */
.about-body {
  padding: 20px 0px 100px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: start;
}

.about-image {
  position: sticky;
  top: calc(var(--header-height) + 40px);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
	  padding: 5px 40px 0px 0px;

}

.about-text h2 {
  margin-bottom: 24px;
}

.about-text p + p {
	margin-top: 20px;
}

/* =============================================
   CONTACT PAGE
============================================= */
.contact-body {
  padding: 20px 0px 100px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 12px;
}

.contact-info a {
  color: var(--navy);
  border-bottom: 1px solid var(--mid-gray);
  transition: border-color var(--transition);
}

.contact-info a:hover {
  border-color: var(--navy);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--mid-gray);
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--navy);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

/* =============================================
   GALLERY LANDING PAGE (Projects Gallery)
============================================= */
.gallery-landing {
  padding: 0px 0px 100px !important;
}

.gallery-landing h1 {
  margin-bottom: 12px;
}

.gallery-landing__intro {
  margin-bottom: 60px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.category-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  display: block;

}

.category-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
	
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,39,68,0.5) 0%, transparent 25%);
  display: flex;
  align-items: flex-end;
  padding: 18px 24px;
  transition: background 0.4s ease;
}

.category-card:hover .category-card__image {
  transform: scale(1.05);
}

.category-card:hover .category-card__overlay {
  background: linear-gradient(to top, rgba(26,39,68,0.82) 0%, rgba(26,39,68,0.15) 60%);
}

.category-card__title {
  color: var(--white);
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1;
}

.category-card__sub {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* =============================================
   SUBCATEGORY GALLERY (e.g., Sculpture)
============================================= */
.subcategory-header {
  padding: 40px 0 20px;
}

.subcategory-header .breadcrumb {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-gray);
  margin-bottom: 16px;
}

.subcategory-header .breadcrumb a {
  color: var(--navy-light);
  transition: color var(--transition);
}

.subcategory-header .breadcrumb a:hover {
  color: var(--navy);
}

.subcategory-header .breadcrumb span {
  margin: 0 8px;
  color: var(--mid-gray);
}

.image-gallery {
  padding: 20px 0 100px;
}

.gallery-grid {
  columns: 3;
  column-gap: 8px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
  opacity: 0.9;
}

.gallery-item__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,39,68,0);
  transition: background 0.3s ease;
  pointer-events: none;
}

.gallery-item__zoom svg {
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  width: 28px;
  height: 28px;
}

.gallery-item:hover .gallery-item__zoom {
  background: rgba(26,39,68,0.18);
}

.gallery-item:hover .gallery-item__zoom svg {
  opacity: 1;
}

/* =============================================
   LIGHTBOX
============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 15, 30, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img-wrap {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img-wrap img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease;
}

.lightbox__img-wrap img.fade {
  opacity: 0;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
  padding: 8px;
  line-height: 0;
}

.lightbox__close:hover {
  color: var(--white);
}

.lightbox__close svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  padding: 16px;
  line-height: 0;
}

.lightbox__nav:hover {
  color: var(--white);
}

.lightbox__nav svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

.lightbox__counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.lightbox__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 24px 20px;
  background: linear-gradient(to top, rgba(10,15,30,0.72) 0%, transparent 100%);
  color: rgba(255,255,255,0.82);
  font-size: 0.82rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox__caption.fade {
  opacity: 0;
}

/* =============================================
   FOOTER
============================================= */
.site-footer {
  border-top: 1px solid var(--light-gray);
  padding: 40px 0;
  background: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-gray);
}

.footer-instagram {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--navy);
  transition: opacity var(--transition);
}

.footer-instagram:hover {
  opacity: 0.6;
}

.footer-instagram svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.5;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image {
    position: relative;
    top: 0;
  }

  .home-intro .container {
    flex-direction: column;
    gap: 48px;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .category-card {
    aspect-ratio: 14/9;
  }

  .gallery-grid {
    columns: 2;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 24px;
  }

  .primary-nav > ul {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--light-gray);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    align-items: flex-start;
  }

  .primary-nav.open > ul {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .primary-nav > ul > li {
    width: 100%;
    border-bottom: 1px solid var(--light-gray);
  }

  .primary-nav > ul > li > a {
    display: block;
    padding: 16px 24px;
    font-size: 0.8rem;
  }

  .primary-nav > ul > li > a::after {
    display: none;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    border-top: 1px solid var(--light-gray);
    box-shadow: none;
    display: none;
  }

  .primary-nav > ul > li.open .dropdown {
    display: block;
  }

  .dropdown li a {
    padding-left: 40px;
  }

  .nav-toggle {
    display: flex;
  }

  .gallery-grid {
    columns: 2;
  }

  .footer-inner {
    padding: 0 24px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .lightbox__nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    columns: 1;
  }
}

/* =============================================
   FADE-IN ANIMATION
============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* WordPress default styles */
.wp-caption { max-width: 100%; }
.aligncenter { display: block; margin: 0 auto; }
.alignright { float: right; margin-left: 20px; }
.alignleft { float: left; margin-right: 20px; }
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
