/* ============================================================
   GLOBAL CSS — Lauren Hawkes Portfolio
   ============================================================ */

/* ------------------------------------------------------------
   GOOGLE FONTS
   ------------------------------------------------------------ */

@import url('https://fonts.googleapis.com/css2?family=Droid+Sans:wght@400;700&display=swap');


/* ------------------------------------------------------------
   CSS CUSTOM PROPERTIES
   ------------------------------------------------------------ */

:root {

  /* Colours */
  --colour-background:   #FFFFFF;
  --colour-navy:         #001846;
  --colour-yellow:       #FFC52F;
  --colour-pink:         #FF3D8A;
  --colour-green:        #9ED040;
  --colour-cobalt:       #2952CC;
  --colour-orange:       #FF8C00;
  --colour-lavender:     #C4A8E0;
  --colour-sky:          #8DD9F0;
  --colour-orange-red:   #E8501A;
  --colour-violet:       #9B59B6;

  /* Typography */
  --font-family:         'Droid Sans', sans-serif;
  --font-weight-regular: 400;
  --font-weight-bold:    700;

  /* Type scale */
  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-md:    1.125rem;   /* 18px */
  --text-lg:    1.5rem;     /* 24px */
  --text-xl:    2rem;       /* 32px */
  --text-2xl:   2.5rem;     /* 40px */
  --text-3xl:   3.5rem;     /* 56px */
  --text-4xl:   5rem;       /* 80px */

  /* Spacing */
  --space-1:    0.25rem;    /* 4px */
  --space-2:    0.5rem;     /* 8px */
  --space-3:    0.75rem;    /* 12px */
  --space-4:    1rem;       /* 16px */
  --space-5:    1.5rem;     /* 24px */
  --space-6:    2rem;       /* 32px */
  --space-7:    3rem;       /* 48px */
  --space-8:    4rem;       /* 64px */
  --space-9:    6rem;       /* 96px */
  --space-10:   8rem;       /* 128px */

  /* Border radius */
  --radius-sm:   0.5rem;    /* 8px */
  --radius-md:   1rem;      /* 16px */
  --radius-lg:   1.5rem;    /* 24px */
  --radius-full: 9999px;    /* pill */

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0, 24, 70, 0.08);
  --shadow-md:  0 4px 16px rgba(0, 24, 70, 0.12);
  --shadow-lg:  0 8px 32px rgba(0, 24, 70, 0.16);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --max-width:         1200px;
  --page-padding:      var(--space-6);
}


/* ------------------------------------------------------------
   RESET
   ------------------------------------------------------------ */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--colour-background);
  color: var(--colour-navy);
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scrollbar-gutter: stable;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
}


/* ------------------------------------------------------------
   TYPOGRAPHY
   ------------------------------------------------------------ */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
  color: var(--colour-navy);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--colour-navy);
}

small {
  font-size: var(--text-sm);
}


/* ------------------------------------------------------------
   LAYOUT UTILITIES
   ------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--page-padding);
}


/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-sm);
  line-height: 1;
  padding: var(--space-3) var(--space-5);
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--colour-navy);
  border-color: var(--colour-navy);
  gap: var(--space-2);
  text-decoration: none;
}

.btn-outline svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}


/* ------------------------------------------------------------
   BADGES / PILLS
   ------------------------------------------------------------ */

.badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge-real {
  background-color: var(--colour-navy);
  color: var(--colour-background);
}

.badge-case-study {
  background-color: var(--colour-background);
  color: var(--colour-navy);
  border: 1.5px solid var(--colour-navy);
}


/* ------------------------------------------------------------
   ACCESSIBILITY
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--colour-navy);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 768px) {
  :root {
    --text-4xl: 3rem;
    --text-3xl: 2.25rem;
    --text-2xl: 1.75rem;
    --page-padding: var(--space-5);
  }
}

@media (max-width: 480px) {
  :root {
    --text-4xl: 2.25rem;
    --text-3xl: 1.75rem;
    --text-2xl: 1.5rem;
    --page-padding: var(--space-4);
  }
}
