/* Paalika Group — Design System & Styles */

:root {
  /* Color tokens — sampled from the navy/gold logo artwork. The navies are
     the lockup's own background and panel tones, the golds its wordmark
     gradient, so anything painted with these sits flush against the logo. */
  --cream: #F6F4F0;
  --navy: #132241;
  --navy-mid: #1B2E57;
  --navy-line: #2F3F63;
  --gold: #B98D3C;
  --gold-bright: #C79E4B;
  --gold-soft: #E7CE93;
  /* Gold darkened until it clears 4.5:1 on cream, for text and link hovers. */
  --gold-deep: #8A6A28;

  /* Roles. Kept under the old names so existing rules keep working:
     --ink is the dark brand surface, --clay the primary action colour. */
  --ink: var(--navy);
  --clay: var(--navy-mid);
  --clay-hover: var(--navy);
  --accent: var(--gold);
  --sage: #4E5B55;
  --grey: #6B6560;
  --border: #DDD8D0;
  --text: #1C1F1E;
  --text-light: #DDD8D0;
  --link-hover: var(--gold-deep);

  /* Typography */
  --font-display: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-serif: "Cormorant Garamond", "Garamond", "Times New Roman", serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--cream);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 0;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--clay);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Eyebrows & labels */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clay);
  margin-bottom: var(--spacing-md);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  background-color: var(--clay);
  color: white;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
}

.btn:hover {
  background-color: var(--clay-hover);
}

.btn-ghost {
  background-color: transparent;
  color: var(--clay);
  border: 1.5px solid var(--clay);
  padding: calc(0.875rem - 1.5px) calc(1.5rem - 1.5px);
}

.btn-ghost:hover {
  border-color: var(--link-hover);
  color: var(--link-hover);
}

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

/* Tags & badges */
/* Gold fill with navy type, the way the wordmark sits on the logo panel.
   White on gold does not clear contrast at this size; navy clears it easily. */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--gold-bright);
  color: var(--navy);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tag-muted {
  background-color: var(--border);
  color: var(--grey);
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(20px, 5vw, 48px);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 5vw, 48px);
}

.row.col-3 {
  grid-template-columns: repeat(3, 1fr);
}

.row.col-5 {
  grid-template-columns: repeat(5, 1fr);
}

/* Header & Nav */
header {
  background-color: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) clamp(20px, 5vw, 48px);
  max-width: 1280px;
  margin: 0 auto;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.header-logo svg,
.header-logo img {
  height: 32px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: clamp(20px, 3vw, 40px);
}

nav a {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.header-phone {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text);
  white-space: nowrap;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 1px;
  transition: 0.3s;
}

/* Hero Carousel */
.hero {
  position: relative;
  height: 70vh;
  background-color: var(--ink);
  overflow: hidden;
}

.carousel {
  display: flex;
  height: 100%;
  position: relative;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 34, 65, 0.4) 0%, rgba(19, 34, 65, 0.78) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem clamp(20px, 5vw, 48px) 2rem;
  color: white;
}

.carousel-content h1 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.carousel-content p {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--spacing-lg);
  pointer-events: none;
  transform: translateY(-50%);
}

.carousel-btn {
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s;
  pointer-events: auto;
}

.carousel-btn:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.carousel-dot.active {
  background-color: white;
}

.carousel-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(199, 158, 75, 0.94);
  color: var(--navy);
  padding: 0.5rem 1rem;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Spec Strip */
.spec-strip {
  background-color: var(--cream);
  color: var(--ink);
  padding: 14px clamp(20px, 5vw, 48px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.spec-strip-condensed {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.3s;
}

.spec-strip-full {
  transition: opacity 0.3s;
}

.spec-strip .spec-cta {
  flex-shrink: 0;
  font-size: 14px !important;
  padding: 10px 16px !important;
  white-space: nowrap;
}

/* Sticky Active State */
.spec-strip.sticky-active {
  position: sticky;
  top: 72px;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 16px clamp(20px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.spec-strip.sticky-active .spec-strip-condensed {
  display: none;
}

.spec-strip.sticky-active .spec-strip-full {
  display: block;
  grid-column: 1;
}

.spec-strip.sticky-active {
  position: sticky;
  top: 72px;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey);
  margin-bottom: 0.5rem;
}

.spec-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
}

/* Sections with backgrounds */
.section-dark {
  background-color: var(--ink);
  color: var(--text-light);
  padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 48px);
}

.section-dark h2,
.section-dark h3 {
  color: white;
}

.section-dark a {
  color: var(--gold-soft);
}

/* Photo Grid & Gallery */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
}

.photo-tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.photo-tile:hover img {
  transform: scale(1.05);
}

.gallery-more {
  position: absolute;
  inset: 0;
  background-color: rgba(19, 34, 65, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 200;
  padding: var(--spacing-lg);
  overflow-y: auto;
}

.lightbox.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

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

.lightbox-nav {
  display: flex;
  gap: var(--spacing-lg);
  position: absolute;
  inset: 0;
  padding: 0 var(--spacing-lg);
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.lightbox-btn {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 2px;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.2s;
}

.lightbox-btn:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

/* Video player */
.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: black;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.video-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-player video {
  display: none;
  width: 100%;
  height: 100%;
}

.video-player.playing img {
  display: none;
}

.video-player.playing video {
  display: block;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: var(--clay);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  pointer-events: none;
}

.video-player.playing .video-play-icon {
  display: none;
}

/* Forms */
form {
  display: grid;
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

input,
textarea,
select {
  padding: 0.875rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background-color: white;
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(27, 46, 87, 0.12);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  color: #d32f2f;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-success {
  background-color: #e8f5e9;
  border: 1px solid #4caf50;
  color: #1b5e20;
  padding: var(--spacing-md);
  border-radius: 4px;
  margin-bottom: var(--spacing-md);
}

/* Card & Box components */
.card {
  background-color: white;
  border-radius: 4px;
  padding: var(--spacing-lg);
  border: 1px solid var(--border);
}

.card-dark {
  background-color: var(--ink);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Placeholder graphics */
.placeholder-image {
  background-color: #f0ebe4;
  border: 2px dashed var(--sage);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--sage);
  padding: 2rem;
  min-height: 200px;
}

/* Footer */
footer {
  background-color: var(--navy);
  color: var(--text-light);
  padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-2xl);
  max-width: 1280px;
  margin: 0 auto 2rem;
}

.footer-col h3 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  color: var(--text-light);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: var(--gold-soft);
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  font-size: 0.875rem;
  text-align: center;
  color: var(--grey);
  max-width: 1280px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

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

  .row.col-3,
  .row.col-5 {
    grid-template-columns: 1fr;
  }

  nav ul {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* The lockup is wider than the old mark-plus-text logo, so give the
     crowded phone header back the width it used to have. */
  .header-logo img {
    height: 28px;
  }

  .spec-strip {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .hero {
    height: 50vh;
  }
}
