/*
 * Style sheet for ArtSweetArt one‑page portfolio
 *
 * This file defines global variables reflecting the color palette and design
 * tokens extracted from the original showcase site. The layout uses a
 * responsive, mobile‑first approach and avoids any external frameworks to
 * remain lightweight. When editing colours or fonts, adjust the variables
 * below. See README.md for guidance.
 */

/* Root design tokens */
:root {
  /* Colour palette derived from the base site (HSL values without commas) */
  --background: 36 33% 97%;
  --foreground: 25 25% 15%;
  --card: 40 20% 96%;
  --card-foreground: 25 25% 15%;
  --primary: 15 55% 55%;
  --primary-foreground: 40 20% 96%;
  --secondary: 85 25% 85%;
  --secondary-foreground: 25 25% 15%;
  --accent: 45 60% 88%;
  --accent-foreground: 25 25% 15%;
  --muted: 40 15% 92%;
  --muted-foreground: 25 15% 45%;
  --border: 40 20% 88%;
  --radius: 0.75rem;

  /* Font families */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
}

/* Global resets and basic styling */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-serif);
  color: hsl(var(--foreground));
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
}

blockquote {
  margin: 1em 0;
  padding-left: 1rem;
  border-left: 4px solid hsl(var(--primary));
  font-style: italic;
  color: hsl(var(--muted-foreground));
}

/* Container utility */
.container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: hsl(var(--background) / 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(var(--border));
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  text-decoration: none;
  color: hsl(var(--foreground));
}

.main-nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: hsl(var(--foreground));
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: hsl(var(--primary));
}

.nav-cta {
  margin-left: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background-color: hsl(var(--primary) / 0.85);
}

.btn-outline {
  border: 2px solid hsl(var(--primary));
  color: hsl(var(--primary));
  background-color: transparent;
}

.btn-outline:hover {
  background-color: hsl(var(--primary) / 0.1);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 80vh;
  background-image: url('../assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: hsl(var(--foreground));
}

.hero-overlay {
  background-color: rgba(255, 255, 255, 0.6);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero-content .highlight {
  color: hsl(var(--primary));
}

.subtitle {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: hsl(var(--muted-foreground));
}

/* Section styling */
.section {
  padding: 4rem 0;
}

.about-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 400px;
  object-fit: cover;
}

/* Portfolio cards */

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

.card {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card h3 {
  font-size: 1.25rem;
  margin: 1rem;
  margin-bottom: 0.5rem;
}

.card p {
  flex: 1;
  margin: 0 1rem 1rem;
  font-size: 0.95rem;
  color: hsl(var(--muted-foreground));
}

.card .btn {
  margin: 0 1rem 1.5rem;
  align-self: flex-start;
}

.store-link {
  margin-top: 2rem;
  text-align: center;
  font-size: 1rem;
}

.store-link a {
  color: hsl(var(--primary));
  font-weight: 600;
}

/* Newsletter */
.newsletter-section {
  background-color: hsl(var(--muted));
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.newsletter-container {
  text-align: left;
}

.form-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}

/* Contact */
.contact-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-item .icon {
  color: hsl(var(--primary));
}

.contact-item a {
  color: hsl(var(--primary));
  font-weight: 500;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-sans);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Legal section */
.legal-section {
  background-color: hsl(var(--muted));
  border-top: 1px solid hsl(var(--border));
}

.legal-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.legal-columns {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.legal-columns > div {
  flex: 1;
}

.legal-columns h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.legal-columns p {
  font-size: 0.95rem;
  color: hsl(var(--muted-foreground));
}

/* Footer */
.site-footer {
  background-color: hsl(var(--muted
  ));
  border-top: 1px solid hsl(var(--border));
  padding: 2rem 0;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  padding: 0.75rem 1rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  z-index: 999;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
  color: hsl(var(--primary));
  text-decoration: underline;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .about-container {
    flex-direction: row;
  }
  .contact-details {
    flex-direction: row;
  }
  .legal-columns {
    flex-direction: row;
  }
}
.alert{padding:.85rem 1rem;border-radius:.5rem;margin:.75rem 0}
.alert--success{background:#e7f6ec;border:1px solid #b9e2c6}
.alert--error{background:#fde8e8;border:1px solid #f5c2c2}
.form__row{margin-bottom:1rem}
.form__row--actions{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}