/* ============================================
   Art Corner PH - Styles
   Fonts: Spectral + Karla
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Karla:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --color-charcoal: #2C2C2C;
  --color-warm-black: #1A1A1A;
  --color-cream: #FAF7F2;
  --color-gold: #C9A84C;
  --color-gold-light: #D4B95E;
  --color-gold-dark: #A8893A;
  --color-taupe: #B8A99A;
  --color-slate: #6B6B6B;
  --color-light-gray: #E8E4DF;
  --color-white: #FFFFFF;
  --color-overlay: rgba(26, 26, 26, 0.85);

  --font-heading: 'Spectral', Georgia, serif;
  --font-body: 'Karla', 'Helvetica Neue', sans-serif;

  --max-width: 1200px;
  --header-height: 80px;
  --transition: 0.3s ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-gold-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-gold);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-warm-black);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p {
  margin-bottom: 1rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- Utility Classes ---------- */
.section {
  padding: 5rem 0;
}

.section--dark {
  background-color: var(--color-warm-black);
  color: var(--color-cream);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-cream);
}

.section--alt {
  background-color: var(--color-light-gray);
}

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

.text-gold {
  color: var(--color-gold);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header .divider {
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  margin: 1rem auto;
}

.section-header p {
  color: var(--color-slate);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn:hover {
  background: var(--color-gold);
  color: var(--color-warm-black);
}

.btn--filled {
  background: var(--color-gold);
  color: var(--color-warm-black);
}

.btn--filled:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-warm-black);
}

.btn--white {
  border-color: var(--color-white);
  color: var(--color-white);
}

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

/* ---------- Fade-in Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ---------- Header / Navbar ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: var(--color-warm-black);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.header__logo span {
  color: var(--color-gold);
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav__link {
  color: var(--color-cream);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-gold);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger__line {
  width: 28px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition);
}

.hamburger.active .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 1rem 0;
  margin-top: var(--header-height);
  background: var(--color-warm-black);
}

.breadcrumb__list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.breadcrumb__list li {
  color: var(--color-taupe);
}

.breadcrumb__list li a {
  color: var(--color-gold);
}

.breadcrumb__list li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: var(--color-slate);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-warm-black);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  max-width: 700px;
  padding: 2rem;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero__desc {
  font-size: 1.15rem;
  color: var(--color-taupe);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

/* ---------- Highlight Cards ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.highlight-card {
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.highlight-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.highlight-card__body {
  padding: 1.5rem;
}

.highlight-card__body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.highlight-card__body p {
  color: var(--color-slate);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.highlight-card__body a {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- About Preview ---------- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-preview__img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.about-preview__text h2 {
  margin-bottom: 1rem;
}

.about-preview__text p {
  color: var(--color-slate);
  margin-bottom: 1.5rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  text-align: center;
  padding: 4rem 2rem;
}

.cta-banner h2 {
  color: var(--color-cream);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--color-taupe);
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* ---------- Artists / Products Grid ---------- */
.artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.artist-card {
  background: var(--color-white);
  overflow: hidden;
  border: 1px solid var(--color-light-gray);
  transition: transform var(--transition), box-shadow var(--transition);
}

.artist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}

.artist-card__img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.artist-card__body {
  padding: 1.5rem;
}

.artist-card__body h3 {
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}

.artist-card__body .artist-card__series {
  color: var(--color-gold-dark);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.artist-card__body p {
  color: var(--color-slate);
  font-size: 0.93rem;
}

.artist-card__price {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  font-size: 0.9rem;
}

/* ---------- Gallery Grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__overlay span {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-align: center;
  padding: 1rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox__img {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 2001;
  line-height: 1;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 3rem;
  cursor: pointer;
  padding: 1rem;
  z-index: 2001;
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--next {
  right: 1rem;
}

.lightbox__caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-taupe);
  font-size: 0.95rem;
  text-align: center;
  max-width: 80%;
}

/* ---------- Contact Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  color: var(--color-charcoal);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-light-gray);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-charcoal);
  transition: border-color var(--transition);
}

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

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

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  background: var(--color-gold);
  color: var(--color-warm-black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-info__text h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.contact-info__text p {
  color: var(--color-slate);
  font-size: 0.93rem;
  margin-bottom: 0;
}

.map-container {
  width: 100%;
  height: 350px;
  margin-top: 2rem;
  border: 1px solid var(--color-light-gray);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Social Links ---------- */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--color-gold);
  color: var(--color-warm-black);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-warm-black);
  color: var(--color-taupe);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer__about p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 0.6rem;
}

.footer__links a {
  color: var(--color-taupe);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--color-gold);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: var(--color-warm-black);
  padding: 8rem 0 3rem;
  text-align: center;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--color-taupe);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- About Page ---------- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content__img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
}

.value-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-gold);
}

.value-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.value-card p {
  color: var(--color-slate);
  font-size: 0.93rem;
}

/* ---------- Exhibitions Tab Nav ---------- */
.tab-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.6rem 1.5rem;
  background: transparent;
  border: 1px solid var(--color-light-gray);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-slate);
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-warm-black);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .about-preview,
  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  h1 { font-size: 2.4rem; }
  .hero__title { font-size: 2.8rem; }
}

@media (max-width: 768px) {
  .nav__list {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--color-warm-black);
    flex-direction: column;
    padding: 2rem;
    gap: 1.2rem;
  }

  .nav__list.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero__title { font-size: 2.2rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }

  .section {
    padding: 3.5rem 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: 1.8rem; }
  .container { padding: 0 1rem; }
  .header__inner { padding: 0 1rem; }

  .lightbox__nav { font-size: 2rem; }
  .lightbox__close { font-size: 2rem; }
}
