/* ============================================================
   DESIGN TOKENS
   All colors, fonts, and spacing live here.
   Change a value here and it updates everywhere.
   ============================================================ */

:root {
  /* Accents (Tropical Punch) */
  --color-orange:      #FF8243; 
  --color-yellow:      #FCE883;
  --color-teal:        #069494; 
  --color-pink:        #FFC0CB; 
  
  /* Neutrals */
  --color-white:       #FFFFFF;
  --color-light-gray:  #FAF9F7; 
  --color-med-gray:    #EDECEA; 
  --color-gray:        #7A7A7A; 
  --color-dark-gray:   #3A3A3A; 
  --color-near-black:  #1A1A1A;
  --color-black:       #000000;
  

  /* Text colors */
  --color-link-text:        var(--color-teal);
  --color-link-hover-text:  var(--color-teal);
  --color-title-text:       var(--color-near-black);
  --color-body-text:        var(--color-dark-gray);
  --color-heading-text:     var(--color-near-black);
  --color-meta-text:        var(--color-gray);
  --color-h1-text:          var(--color-orange);
  --color-h2-text:          var(--color-orange);
  --color-h3-text:          var(--color-orange);

  /* Structural colors */
  --color-page-bg:       var(--color-white);
  --color-title-block:   var(--color-orange);
  --color-nav-block:     var(--color-yellow);
  --color-card-bg:       var(--color-light-gray);
  --color-card-bg-hover: var(--color-med-gray);
  --color-card-thumb:    var(--color-med-gray);
  --color-modal-bg:      var(--color-med-gray);
  --color-border:        var(--color-med-gray);
  --color-icons:         var(--color-pink);
  

  /* Typography */
  --font-main: 'Inter', sans-serif;

  /* Font sizes */
  --text-hero-name:   2rem;
  --text-hero-role:   1.25rem;
  --text-extra-big:   1.375rem;
  --text-big:         1.0625rem;
  --text-body:        1rem;
  --text-small:       0.8125rem;
  --text-extra-small: 0.75rem;

  /* Font weights */
  --font-weight-light:      200;
  --font-weight-normal:     400;
  --font-weight-bold:       600;
  --font-weight-extra-bold: 900;

  /* Spacing */
  --page-margin:       4rem;
  --section-gap:       3rem;
  --card-gap:          2rem;
  --card-padding:      2rem;
  --paragraph-gap:     1.25rem;
  
  /* Line Height */
  --line-spacing-body:    1.5rem;
  --line-spacing-heading: 1.25rem;

  /* Widths */
  --max-text-width:    700px;    
  --max-width:         1100px;   
  --header-nav-width:  200px;  
  
  /* Image Sizes */
  --header-photo-size: 100px;    
  --testimonial-photo-size: 50px;
}


/* ============================================================
   RESET AND BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-weight: var(--font-weight-normal);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: var(--text-body);
  color: var(--color-body-text);
  background: var(--color-page-bg);
  line-height: var(--line-spacing-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-link-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

p + p {
  margin-top: var(--paragraph-gap);
}


/* ============================================================
   CONTENT WRAPPER
   Constrains content to --max-width and centers it.
   Used inside full-bleed sections so backgrounds can still
   stretch edge to edge while content stays aligned.
   ============================================================ */

.content-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}


/* ============================================================
   HEADER / HERO
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-hero {
  display: flex;
  min-height: 100px;
  /* Full-bleed background colors are on pseudo-elements so content can be wrapped */
  position: relative;
}

/* The content wrapper inside the header is also a flex row */
.header-hero .content-wrapper {
  display: flex;
  min-height: 100px;
}

/* Left orange block */
.header-identity {
  background: var(--color-title-block);
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1.375rem;
  padding: 1.5rem var(--page-margin);
  text-decoration: none;
}
.header-identity:hover {
  text-decoration: none;
}

/* Extend orange background to fill left edge on wide screens */
.header-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: calc(var(--header-nav-width));
  bottom: 0;
  background: var(--color-title-block);
  z-index: -1;
}

/* Extend yellow background to fill right edge on wide screens */
.header-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  bottom: 0;
  background: var(--color-nav-block);
  z-index: -1;
}

.header-photo {
  width: var(--header-photo-size);
  height: var(--header-photo-size);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.header-name-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.header-name {
  font-size: var(--text-hero-name);
  font-weight: var(--font-weight-extra-bold);
  color: var(--color-heading-text);
  line-height: var(--line-spacing-heading);
}

.header-role {
  font-size: var(--text-hero-role);
  color: var(--color-heading-text);
  line-height: var(--line-spacing-heading);
}

/* Right yellow block */
.header-nav-block {
  background: var(--color-nav-block);
  width: var(--header-nav-width);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 1.5rem var(--page-margin);
}

/* Desktop nav */
.desktop-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}

.nav-link {
  font-size: var(--text-small);
  font-weight: var(--font-weight-normal);
  color: var(--color-heading-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--color-link-hover-text);
  text-decoration: none;
}

.nav-link--active {
  font-weight: var(--font-weight-extra-bold);
  color: var(--color-heading-text);
}

/* Hamburger button (hidden on desktop) */
.hamburger-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color-heading-text);
  padding: 0.25rem;
  line-height: 1;
}


/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: fit-content;
  min-width: 200px;
  height: 100%;
  background: var(--color-nav-block);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav-overlay.is-open {
  transform: translateX(0);
}

.mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color-heading-text);
  align-self: flex-end;
  margin-bottom: 2rem;
  padding: 0.25rem;
  line-height: 1;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-heading-text);
  text-decoration: none;
}

.mobile-nav-link:hover {
  color: var(--color-orange);
  text-decoration: none;
}

/* Backdrop behind the overlay */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 150;
}

.mobile-nav-backdrop.is-visible {
  display: block;
}


/* ============================================================
   PAGE SECTIONS (shared)
   ============================================================ */

.page-section {
  padding: var(--section-gap) var(--page-margin);
}

.page-section + .page-section {
  padding-top: 0;
}

.section-heading {
  font-size: var(--text-extra-big);
  font-weight: var(--font-weight-bold);
  color: var(--color-h2-text);
  margin-bottom: var(--paragraph-gap);
}

.section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.view-all-link {
  font-size: var(--text-extra-small);
  font-weight: var(--font-weight-thin);
  color: var(--color-link-text);
  text-decoration: none;
  white-space: nowrap;
  text-align: right;
}

.view-all-link:hover {
  text-decoration: underline;
}

#about,
#portfolio,
#testimonials,
#contact {
  scroll-margin-top: var(--header-height, 100px);
}


/* ============================================================
   ABOUT SECTION
   ============================================================ */

.about-section {
  padding: var(--section-gap) var(--page-margin) calc(var(--section-gap) * 0.6);
}

.about-bio {
  font-size: var(--text-big);
  color: var(--color-body-text);
  line-height: var(--line-spacing-body);
  max-width: var(--max-text-width);
}


/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */

.portfolio-section {
  padding: calc(var(--section-gap) * 0.6) var(--page-margin) var(--section-gap);
}

.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
  margin-bottom: 1.25rem;
}

.portfolio-card {
  display: flex;
  gap: var(--card-gap);
  background: var(--color-card-bg);
  padding: var(--card-padding);
  text-decoration: none;
  transition: background 0.15s ease;
}

.portfolio-card:hover {
  background: var(--color-card-bg-hover);
  text-decoration: none;
}

.portfolio-card-thumbnail {
  width: 100px;
  height: 76px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-card-thumb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B0B0AA;
  font-size: 1.25rem;
}

.portfolio-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  max-width: var(--max-text-width)
}

.portfolio-card-title {
  font-size: var(--text-big);
  font-weight: var(--font-weight-bold);
  color: var(--color-h3-text);
  line-height: var(--line-spacing-heading);
}

.portfolio-card-meta {
  font-size: var(--text-small);
  font-weight: var(--font-weight-light);
  line-height: var(--line-spacing-heading);
  color: var(--color-meta-text);
}

.portfolio-card-summary {
  font-size: var(--text-body);
  color: var(--color-body-text);
  line-height: var(--line-spacing-body);
  margin-top: 0.25rem;
}


/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */

.testimonials-section {
  padding: calc(var(--section-gap) * 0.6) var(--page-margin) var(--section-gap);
}

.testimonials-row {
  display: flex;
  gap: var(--card-gap);
  margin-bottom: 1.25rem;
}

.testimonial-card {
  flex: 1;
  background: var(--color-card-bg);
  padding: var(--card-padding);
  min-width: 0;
  cursor: pointer;
  text-decoration: none;
}

.testimonial-card:hover {
  background: var(--color-card-bg-hover);
  text-decoration: none;
}

.testimonial-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.testimonial-photo {
  width: var(--testimonial-photo-size, 50px);
  height: var(--testimonial-photo-size, 50px);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #E0E0DC;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-border);
}

.testimonial-name {
  font-size: var(--text-big);
  font-weight: var(--font-weight-bold);
  color: var(--color-heading-text);
  margin: 0;
  color: var(--color-h3-text);
}

.testimonial-role {
  font-size: var(--text-small);
  font-weight: var(--font-weight-light);
  color: var(--color-meta-text);
  margin: 0;
}

.testimonial-quote {
  font-size: var(--text-body);
  color: #4A4A4A;
  line-height: var(--line-spacing-body);
  font-style: italic;
  margin-bottom: 0.625rem;
}

.testimonial-read-more {
  font-size: var(--text-extra-small);
  font-weight: var(--font-weight-bold);
  color: var(--color-link-text);
  cursor: pointer;
  text-decoration: none;
}

.testimonial-read-more:hover {
  text-decoration: underline;
}


/* ============================================================
   TESTIMONIAL MODAL
   ============================================================ */

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal {
  background: var(--color-modal-bg);
  max-width: var(--max-text-width);
  width: 100%;
  padding: 2rem;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--color-meta-text);
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-heading-text);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.modal-name {
  font-size: var(--text-big);
  font-weight: var(--font-weight-bold);
  color: var(--color-heading-text);
  margin: 0;
}

.modal-role {
  font-size: var(--text-small);
  color: var(--color-meta-text);
  margin: 0;
}

.modal-quote {
  font-size: var(--text-body);
  color: var(--color-body-text);
  line-height: var(--line-spacing-body);
  font-style: italic;
}


/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact-section {
  padding: calc(var(--section-gap) * 0.6) var(--page-margin) calc(var(--section-gap) * 1.5);
}

.contact-cards-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-card {
  flex: 1;
  min-width: 200px;
  background: var(--color-card-bg);
  padding: var(--card-padding);
}

.contact-card-heading {
  font-size: var(--text-big);
  font-weight: var(--font-weight-bold);
  color: var(--color-heading-text);
  margin-bottom: 1.125rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  list-style: none;
}

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

.contact-icon {
  font-size: var(--text-body);
  color: var(--color-icons);
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
}

.contact-item-text {
  font-size: var(--text-body);
  color: var(--color-meta-text);
}

.contact-item-link {
  font-size: var(--text-body);
  /* font-weight: var(--font-weight-bold); */
  color: var(--color-link-text);
  text-decoration: none;
}

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


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  padding: 1.5rem var(--page-margin);
  border-top: 1px solid var(--color-border);
}

.footer-text {
  font-size: var(--text-extra-small);
  color: var(--color-meta-text);
}


/* ============================================================
   CASE STUDY PAGE
   ============================================================ */

.case-study-page {
  max-width: calc(var(--max-width) * 0.7);
  margin: 0 auto;
  padding: var(--section-gap) var(--page-margin);
}

.case-study-hero {
  margin-bottom: 2rem;
}

.case-study-hero-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.case-study-hero-placeholder {
  width: 100%;
  height: 320px;
  background: var(--color-card-thumb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #B0B0AA;
}

.case-study-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.meta-category,
.meta-year {
  font-size: var(--text-small);
  font-weight: var(--font-weight-bold);
  color: var(--color-meta-text);
}

.case-study-title {
  font-size: var(--text-title);
  font-weight: var(--font-weight-bold);
  color: var(--color-h1-text);
  line-height: var(--line-spacing-heading);
  margin-bottom: 1rem;
}

.case-study-summary {
  font-size: var(--text-body);
  color: var(--color-body-text);
  line-height: var(--line-spacing-body);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.case-study-content {
  font-size: var(--text-body);
  color: var(--color-body-text);
  line-height: var(--line-spacing-body);
}

.case-study-content h2 {
  font-size: var(--text-big);
  font-weight: var(--font-weight-bold);
  color: var(--color-h2-text);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.case-study-content p {
  margin-bottom: 1.25rem;
}

.case-study-content ul,
.case-study-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.case-study-content li {
  margin-bottom: 0.5rem;
}

.case-study-contact-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.case-study-contact-cta p {
  font-size: var(--text-body);
  color: var(--color-meta-text);
  margin: 0;
}

.cta-link {
  font-size: var(--text-body);
  font-weight: var(--font-weight-bold);
  color: var(--color-link-text);
}

.cta-link:hover {
  text-decoration: underline;
}


/* ============================================================
   RESPONSIVE: MOBILE
   ============================================================ */

@media (max-width: 768px) {

  :root {
    --page-margin: 1.25rem;
    --section-gap: 2rem;
  }

  /* Header: stack identity block full width, hide yellow nav block */
  .header-hero {
    flex-direction: column;
  }

  .header-identity {
    padding: 1.25rem var(--page-margin);
  }

  .header-photo {
    width: 52px;
    height: 52px;
  }

  .header-name {
    font-size: 1.25rem;
  }

  /* Hide desktop nav, show hamburger */
  .header-nav-block {
    display: none;
  }

  /* Show hamburger by repositioning it inside the identity block */
  .header-identity {
    position: relative;
  }

  .hamburger-button {
    display: flex;
    align-items: center;
    position: absolute;
    right: var(--page-margin);
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-nav-block);
    padding: 0.5rem;
    color: var(--color-heading-text);
  }

  /* Portfolio cards: stack thumbnail above text on very small screens */
  .portfolio-card {
    flex-direction: column;
    gap: 0.875rem;
  }

  .portfolio-card-thumbnail {
    width: 100%;
    height: 160px;
  }

  /* Testimonials: stack vertically */
  .testimonials-row {
    flex-direction: column;
  }

  /* Contact: stack cards */
  .contact-cards-row {
    flex-direction: column;
  }

  /* Case study page */
  .case-study-page {
    padding: 1.5rem var(--page-margin);
  }

  .case-study-hero-image,
  .case-study-hero-placeholder {
    height: 200px;
  }

  .case-study-title {
    font-size: 1.375rem;
  }

}
