/* ==========================================================================
   Layout Styles - Sections, Containers, Grid
   ========================================================================== */

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: #D9D6CC;
  border-bottom: 1px solid rgba(72, 44, 12, 0.1);
  transition: box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.header__logo {
  flex-shrink: 0;
  padding: var(--space-xs);
  border-radius: var(--radius-md);
}

.logo {
  height: 60px;
  width: auto;
  display: block;
}

/* Navigation */
.nav__list {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.nav__link {
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  transition: color var(--transition-base);
  position: relative;
}

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

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

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-xs);
}

.nav__toggle-icon,
.nav__toggle-icon::before,
.nav__toggle-icon::after {
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  transition: all var(--transition-base);
}

.nav__toggle-icon::before,
.nav__toggle-icon::after {
  content: '';
  display: block;
}

.nav__toggle-icon::before {
  transform: translateY(-8px);
}

.nav__toggle-icon::after {
  transform: translateY(6px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
  background: linear-gradient(135deg, var(--color-bg) 0%, rgba(192, 171, 136, 0.15) 100%);
}

.hero__brand-arc {
  width: 100%;
  max-width: 600px;
  height: 60px;
  margin: 0 auto var(--space-sm);
  display: block;
}

.hero__brand-pill {
  fill: var(--color-light-brown);
  opacity: 0.85;
}

.hero__brand-text {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: var(--font-weight-semibold);
  fill: rgba(72, 44, 12, 0.9);
  letter-spacing: 0.05em;
}

.hero__content {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.hero__title {
  font-size: var(--font-size-xxl);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: var(--font-size-md);
  color: var(--color-text-light);
  max-width: 680px;
  margin: 0 auto;
}

/* Masonry Grid */
.masonry-grid {
  margin-bottom: var(--space-3xl);
}

.masonry-sizer,
.masonry-item {
  width: calc(33.333% - var(--grid-gap) * 2 / 3);
}

.masonry-item {
  margin-bottom: var(--grid-gap);
}

.masonry-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
}

.masonry-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.masonry-card img {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Tall vase card spanning 3 rows */
.masonry-card--tall img {
  height: 940px; /* 3 images (300px each) + 2 gaps (20px each) */
}

/* Contain class for images that should show in full without cropping */
.masonry-card--contain img {
  object-fit: contain;
  background-color: var(--color-white);
}

.masonry-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(72, 44, 12, 0.9), transparent);
  padding: var(--space-md);
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.masonry-card:hover .masonry-card__overlay {
  transform: translateY(0);
}

.masonry-card__title {
  color: var(--color-white);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
}

.hero__cta {
  text-align: center;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  background-color: rgba(192, 171, 136, 0.15);
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about__text {
  max-width: 600px;
}

.about__description {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
}

.about__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==========================================================================
   Products Section
   ========================================================================== */

.products {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.product-category {
  margin-bottom: var(--space-4xl);
}

.product-category:last-child {
  margin-bottom: 0;
}

.product-category__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-md);
}

.product-category__name {
  font-size: var(--font-size-lg);
  color: var(--color-primary);
  margin-bottom: 0;
}

.product-category__price {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  font-family: var(--font-serif);
}

.product-category__description {
  text-align: left;
  color: var(--color-text-light);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-xl);
  max-width: 840px;
}

/* Swiper overrides will be in components.css */

/* ==========================================================================
   Custom Products Section
   ========================================================================== */

.custom-products {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  background: linear-gradient(135deg, rgba(192, 171, 136, 0.1) 0%, var(--color-bg) 100%);
}

.custom-products__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.custom-products__title {
  font-size: var(--font-size-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.custom-products__description {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
  margin-bottom: var(--space-2xl);
}

.custom-products__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.custom-feature {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.custom-feature__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: var(--space-sm);
  background-color: var(--color-light-brown);
  color: var(--color-primary);
  border-radius: var(--radius-md);
}

.custom-feature__title {
  font-size: var(--font-size-md);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
  font-family: var(--font-serif);
}

.custom-feature__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-bottom: 0;
  line-height: var(--line-height-normal);
}

.custom-products__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.custom-products__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==========================================================================
   Process Section
   ========================================================================== */

.process {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  background-color: rgba(192, 171, 136, 0.1);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.process-step {
  text-align: center;
  padding: var(--space-xl);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.process-step__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-light-brown);
  color: var(--color-primary);
  border-radius: var(--radius-full);
}

.process-step__title {
  font-size: var(--font-size-md);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.process-step__description {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
}

.process__description {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-xl);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.process__description p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  background-color: var(--color-primary);
  color: var(--color-white);
}

.contact .section-title {
  color: var(--color-white);
}

.contact__intro {
  text-align: center;
  font-size: var(--font-size-md);
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
  color: var(--color-light-brown);
}

/* Contact form styles in components.css */

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  background-color: var(--color-text);
  color: var(--color-bg);
  text-align: center;
}

.footer__content {
  max-width: 600px;
  margin: 0 auto;
}

.footer__copyright {
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-sm);
}

.footer__tagline {
  font-size: var(--font-size-xs);
  color: var(--color-light-brown);
  margin-bottom: 0;
}
