/* ============================================
   PAVIEPHOTOS — MAIN STYLESHEET
   Design system: variables, base styles, typography
   ============================================ */


/* --- Design Tokens (CSS Variables) ---
   Change these to restyle the whole site at once */
:root {
  /* Colours */
  --color-bg:         #ffffff;
  --color-bg-soft:    #f8f8f6;        /* very light warm grey for section backgrounds */
  --color-text:       #1a1a1a;        /* near-black for body text */
  --color-text-muted: #767676;        /* grey for secondary text */
  --color-navy:       #0d1f35;        /* navy blue accent */
  --color-accent:     #0d1f35;        /* primary accent colour */
  --color-border:     #e8e8e4;        /* subtle divider lines */

  /* Typography */
  --font-body:        'Inter', sans-serif;
  --font-display:     'Bebas Neue', sans-serif;    /* bold display font for headings */

  /* Spacing scale */
  --space-xs:   0.5rem;    /*  8px */
  --space-sm:   1rem;      /* 16px */
  --space-md:   1.5rem;    /* 24px */
  --space-lg:   3rem;      /* 48px */
  --space-xl:   5rem;      /* 80px */
  --space-xxl:  8rem;      /* 128px */

  /* Layout */
  --max-width:  1200px;    /* widest the content ever gets */
  --nav-height: 72px;

  /* Transitions */
  --transition: 0.2s ease;
}

/* --- Reset ---
   Removes browser default spacing/sizing so we start clean */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;  /* crisper text on Mac/retina */
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;   /* Safari: disable image drag */
  user-select: none;
}

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

ul {
  list-style: none;
}

/* --- Typography scale --- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 500;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;  /* Bebas Neue looks best with minimal tracking */
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

h3 {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

p {
  max-width: 65ch;   /* ~65 characters wide — optimal reading line length */
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* --- Layout helpers --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;   /* centres the container */
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-xl);
}

.section--soft {
  background-color: var(--color-bg-soft);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition), background-color var(--transition);
}

.btn--primary {
  background-color: var(--color-navy);
  color: var(--color-bg);
}

.btn--primary:hover {
  opacity: 0.85;
}

.btn--outline {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}

.btn--outline:hover {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-bg);
}

/* --- Section label (small uppercase text above headings) --- */
.label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

/* --- Responsive utilities --- */
@media (max-width: 767px) {
  .section {
    padding-block: var(--space-lg);
  }

  /* Footer: center-aligned on mobile */
  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }


}

/* --- Inner page layout --- */
.page-main {
  padding-top: var(--nav-height);
}

/* --- Site footer (used across shop, about, contact, success) --- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-lg);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.site-footer__copy {
  font-size: 0.8125rem;
  max-width: none;
}

/* --- Contact form --- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-input {
  padding: 0.75rem 1rem;
  min-height: 48px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  width: 100%;
  transition: border-color var(--transition);
}

.form-input:focus {
  border-color: var(--color-text);
}

/* Contact form — layout and mobile submit button */
.contact-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-form .btn {
  align-self: flex-start;
}

@media (max-width: 767px) {
  .contact-form .btn {
    align-self: stretch;
    text-align: center;
  }
}


/* ============================================
   IMAGE PROTECTION
   Transparent overlay shields each image from
   drag-to-desktop. Watermark credits the shot.
   ============================================ */

/* Transparent drag shield over shop card images */
.product-card__image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* VIEW PRINT hover overlay must sit above the shield */
.product-card__overlay {
  z-index: 2;
}


/* Drag shield over the modal image */
.modal-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}


/* © watermark — bottom-right of the home page hero slideshow */
.hero-image::after {
  content: '\00a9 Pavie Photos';
  position: absolute;
  bottom: 4rem;
  right: 4rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  z-index: 10;
  pointer-events: none;
  user-select: none;
}
