/* Colors */
:root {
  --sand: #EAD9C7;
  --charcoal: #1E1B19;
  --coffee: #6B4F44;
  --cappuccino: #A67C52;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  color: var(--charcoal);
}

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

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

/* Header */
header {
  background: var(--sand);
  border-bottom: 1px solid rgba(30, 27, 25, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--coffee);
}

.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--charcoal);
  color: white;
}

.btn-primary:hover {
  background: var(--coffee);
}

.btn-secondary {
  background: var(--cappuccino);
  color: white;
}

.btn-secondary:hover {
  background: #8a6644;
}

/* Hero */
.hero {
  background: var(--sand);
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-family: Georgia, serif;
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  color: rgba(30, 27, 25, 0.8);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 40rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(40px 40px 60px rgba(0, 0, 0, 0.15));
}

/* Social Strip */
.social-strip {
  background: var(--coffee);
  padding: 2rem 0;
}

.social-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
}

.social-item svg {
  width: 2.25rem;
  height: 2.25rem;
}

.social-item-text span {
  font-weight: 600;
  font-size: 1.125rem;
}

.social-item-text div {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Notes */
.notes {
  background: var(--charcoal);
  padding: 4rem 0;
}

.notes .container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.note-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.note-item:nth-child(even) {
  direction: rtl;
}

.note-item:nth-child(even) > * {
  direction: ltr;
}

.note-content h2 {
  font-family: Georgia, serif;
  font-size: 1.75rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1rem;
}

.note-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.note-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.gallery img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery div:hover img {
  transform: scale(1.1);
}

/* Store */
.store {
  background: var(--charcoal);
  padding: 4rem 0;
}

.store h2 {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  text-align: center;
  margin-bottom: 3rem;
}

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

.store-item {
  text-align: center;
  color: white;
}

.store-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.store-item h3 {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.store-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* Footer */
footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-main {
  padding: 3rem 0;
}

.footer-main .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.footer-newsletter h3 {
  font-family: Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.footer-newsletter form {
  display: flex;
  gap: 0.75rem;
}

.footer-newsletter input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter input:focus {
  outline: none;
  border-color: var(--cappuccino);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}

.social-icons a:hover {
  background: var(--cappuccino);
}

.social-icons svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
  color: white;
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* Legal Pages */
.legal-page {
  background: var(--sand);
  min-height: 100vh;
  padding: 4rem 0;
}

.legal-page h1 {
  font-family: Georgia, serif;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--charcoal);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-page p {
  color: rgba(30, 27, 25, 0.8);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-page ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: rgba(30, 27, 25, 0.8);
}

.legal-page li {
  margin-bottom: 0.5rem;
}

.legal-page .back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--coffee);
  font-weight: 500;
}

.legal-page .back-link:hover {
  text-decoration: underline;
}

/* Order Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 42rem;
  max-height: 90vh;
  overflow: hidden;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.modal-header h2 {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: calc(90vh - 200px);
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.order-item {
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
}

.order-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
}

.order-item h3 {
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.order-item .size {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.order-item .price {
  color: var(--coffee);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.quantity-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.quantity-control button {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d1d1;
  border-radius: 0.25rem;
  background: white;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.quantity-control button:hover:not(:disabled) {
  background: #f5f5f5;
}

.quantity-control button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quantity-control input {
  width: 3rem;
  height: 2rem;
  text-align: center;
  border: 1px solid #d1d1d1;
  border-radius: 0.25rem;
  font-size: 1rem;
}

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.subtotal {
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e5e5;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #e5e5e5;
  background: #f9f9f9;
}

.modal-footer .total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-footer .total-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal);
}

.modal-footer .total-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--coffee);
}

.modal-footer .buttons {
  display: flex;
  gap: 0.5rem;
}

.modal-footer .btn-cancel {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #d1d1d1;
  border-radius: 0.375rem;
  background: white;
  color: var(--charcoal);
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.modal-footer .btn-cancel:hover {
  background: #f5f5f5;
}

.modal-footer .btn-buy {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 0.375rem;
  background: var(--charcoal);
  color: white;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.modal-footer .btn-buy:hover:not(:disabled) {
  background: var(--coffee);
}

.modal-footer .btn-buy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  nav {
    display: none;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    width: 16rem;
    height: 16rem;
  }

  .social-strip .container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .note-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .note-item:nth-child(even) {
    direction: ltr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main .container,
  .footer-bottom .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-newsletter form {
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
