/* Font Faces */
@font-face {
  font-family: 'Lemon Milk';
  src: url('/fonts/LEMONMILK-Light.otf') format('opentype');
  font-weight: 300;
}

@font-face {
  font-family: 'Lemon Milk';
  src: url('/fonts/LEMONMILK-Medium.otf') format('opentype');
  font-weight: 500;
}

@font-face {
  font-family: 'Lemon Milk';
  src: url('/fonts/LEMONMILK-Bold.otf') format('opentype');
  font-weight: 700;
}

@font-face {
  font-family: 'Open Sans';
  src: url('/fonts/OpenSans-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
}

@font-face {
  font-family: 'Streetag';
  src: url('/fonts/Streetag-Regular.ttf') format('truetype');
  font-weight: 400;
}

/* CSS Custom Properties */
:root {
  --onyx: #0a0a10;
  --ghost-white: #f7f7ff;
  --blue-slate: #586f7c;
  --hot-fuchsia: #ff3366;
  --sea-green: #0F9044;

  --grey-dark: #38464E;
  --gray-light: #E9EDF0;
  --gray-mid: #BECAD1;
  --pink-pale: #FFE5EC;

  --text-primary: #212135;
  --text-secondary: #50507F;
  --text-muted: #38464E;
  --text-strong: #161C1F;
  --accent-dark: #73001D;

  --font-title: 'Lemon Milk', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-tag: 'Streetag', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--ghost-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 500;
  line-height: 1.2;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--onyx);
  color: var(--ghost-white);
  text-align: center;
  overflow: hidden;
}

.hero-content {
  padding: 2rem;
}

.hero-logo {
  max-width: 120px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.tagline {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 300;
  color: var(--gray-mid);
  max-width: 600px;
  margin: 0 auto;
}

.btn-primary {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--ghost-white);
  background-color: var(--blue-slate);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--sea-green);
}

/* Case Studies Section */
.case-studies {
  padding: 6rem 0;
  background-color: var(--ghost-white);
}

.case-studies h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.case-studies-grid {
  display: grid;
  gap: 2rem;
}

.case-study {
  background-color: var(--gray-light);
  border-radius: 8px;
  overflow: hidden;
}

.case-study-header {
  background-color: var(--onyx);
  color: var(--ghost-white);
  padding: 1.5rem 2rem;
}

.case-study-header h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.case-study-meta {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-slate);
}

.case-study-content {
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .case-study-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.case-study-block h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-slate);
  margin-bottom: 0.75rem;
}

.case-study-block p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Latest Projects */
.latest-projects {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--gray-mid);
}

.latest-projects h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

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

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  display: block;
  background-color: var(--onyx);
  color: var(--ghost-white);
  padding: 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  background-color: var(--grey-dark);
}

.project-name {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.9rem;
  color: var(--gray-mid);
  line-height: 1.5;
}

/* About Section */
.about {
  padding: 6rem 0;
  background-color: var(--ghost-white);
}

.about .container {
  background-color: var(--gray-light);
  border-radius: 8px;
  padding: 3rem;
  max-width: 900px;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.about p {
  max-width: 700px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.about .btn-primary {
  display: block;
  margin: 0.5rem auto 0;
  width: fit-content;
}

/* Services Section */
.services {
  padding: 6rem 0;
  background-color: var(--gray-light);
}

.services h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.services p {
  max-width: 700px;
  color: var(--text-muted);
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background-color: var(--onyx);
  color: var(--ghost-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  text-align: center;
  padding-top: 1rem;
}

.contact-image {
  width: 100%;
  max-width: 280px;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact p {
  color: var(--gray-mid);
}

/* Email Form */
.email-form,
.email-sent {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background-color: rgba(88, 111, 124, 0.2);
  border: 1px solid var(--blue-slate);
  border-radius: 4px;
  overflow: hidden;
}

.email-form.hidden,
.email-sent.hidden {
  display: none;
}

.email-field {
  display: flex;
  align-items: center;
  background-color: var(--onyx);
}

.email-field label {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-slate);
  width: 90px;
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--blue-slate);
}

.email-field input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ghost-white);
  padding: 1rem 1.25rem;
}

.email-field input:focus {
  outline: none;
  background-color: rgba(88, 111, 124, 0.1);
}

.email-field input::placeholder {
  color: var(--blue-slate);
}

.email-field input[readonly] {
  color: var(--gray-mid);
}

.email-field--body {
  flex-direction: column;
  align-items: stretch;
}

.email-field--body label {
  width: 100%;
  border-right: none;
  border-bottom: 1px solid var(--blue-slate);
  padding: 0.75rem 1.25rem;
}

.email-field--body textarea {
  width: 100%;
  min-height: 180px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ghost-white);
  padding: 1rem 1.25rem;
  resize: vertical;
  line-height: 1.6;
}

.email-field--body textarea:focus {
  outline: none;
  background-color: rgba(88, 111, 124, 0.1);
}

.email-field--body textarea::placeholder {
  color: var(--blue-slate);
}

.email-actions {
  background-color: var(--onyx);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: flex-end;
}

.email-actions .btn-primary {
  margin-top: 0;
}

/* Email Sent Confirmation */

.email-sent {
  border-color: var(--sea-green);
}

.email-sent-header {
  background-color: var(--sea-green);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.email-sent-header h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ghost-white);
}

.email-sent-copy {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background-color: var(--onyx);
}

.email-sent-copy .email-field {
  background: transparent;
  border-bottom: 1px solid rgba(88, 111, 124, 0.3);
  padding: 0.75rem 0;
}

.email-sent-copy .email-field:last-child {
  border-bottom: none;
}

.email-sent-copy .email-field label {
  border-right: none;
  padding: 0;
  padding-right: 1rem;
  width: auto;
  min-width: 70px;
}

.email-sent-copy .email-field span,
.email-sent-copy .email-field p {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ghost-white);
  padding: 0;
}

.email-sent-copy .email-field--body {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.email-sent-copy .email-field--body label {
  border-bottom: none;
  padding-bottom: 0;
}

.email-sent-copy .email-field--body p {
  white-space: pre-wrap;
  color: var(--gray-mid);
}

.email-sent .email-actions {
  background-color: var(--onyx);
}

/* Error View */
.email-error-view {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background-color: rgba(88, 111, 124, 0.2);
  border: 1px solid var(--blue-slate);
  border-radius: 4px;
  overflow: hidden;
}

.email-error-view.hidden {
  display: none;
}

.email-error-body {
  background-color: var(--onyx);
  padding: 2rem;
  text-align: center;
}

.email-error-view .email-error-body p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--hot-fuchsia);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-info {
    order: -1;
  }
}

/* Watermark Layer - Container width, full height cutout */
.watermark {
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translateX(-50%) scaleX(1.3);
  width: 120%;
  max-width: 1500px;
  height: calc(100% + 6rem);
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  padding: 0 2rem;
  font-family: var(--font-tag);
  font-size: clamp(5rem, 10vw, 10rem);
  line-height: 0.85;
  color: var(--blue-slate);
  -webkit-text-stroke: 2px var(--blue-slate);
  opacity: 0.08;
  text-transform: uppercase;
  text-align: justify;
}

/* Sections */
section {
  position: relative;
}
