@import url('variables.css');

/* ==========================================================================
   BASE & GLOBAL LAYOUT
   ========================================================================== */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1.05rem;
}

/* Main outer page frame */
.site-wrapper {
  max-width: 1840px;
  margin: 0 auto;
  padding: 55px 4%;
}

/* ==========================================================================
   HEADER & NAVIGATION (DESKTOP)
   ========================================================================== */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-bottom: 64px;
  position: relative;
  text-align: center;
}

.logo-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.brand-link {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  text-decoration: none;
  color: var(--color-text);
  padding-bottom: 8px;
}

.site-logo {
  height: 138px;
  width: auto;
  max-height: 138px;
  object-fit: contain;
  display: block;
}

.site-title {
  font-weight: 600;
  font-size: 1.84rem;
  letter-spacing: -0.015em;
  color: var(--color-text);
  line-height: 1;
}

.site-title-part {
  font-size: 1.44rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.015em;
  white-space: nowrap;
  line-height: 1.1;
}

/* Mobile-only brand row (hidden on desktop) */
.mobile-brand-row {
  display: none;
}

/* Centered desktop navigation bar */
.site-nav,
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 37px;
  width: 100%;
}

.site-nav ul,
.nav-menu ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 37px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a,
.nav-menu a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 1.04rem;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

.site-nav a:hover,
.nav-menu a:hover {
  opacity: 0.5;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

/* Hamburger button (shown only on mobile) */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 4px 0;
  background-color: var(--color-text);
  transition: all 0.3s ease;
}

/* ==========================================================================
   HEADER NAVIGATION MENU DROPDOWN ("WORK")
   ========================================================================== */
.site-nav li.nav-dropdown,
.nav-menu li.nav-dropdown {
  position: relative;
}

.site-nav .nav-dropdown-menu,
.nav-menu .nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  padding: 10px 0;
  margin-top: 8px;
  background-color: var(--color-bg);
  border: 1px solid #e2dfd9;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

/* Small hover bridge so moving the cursor from "Work" to the menu doesn't close it */
.site-nav .nav-dropdown-menu::before,
.nav-menu .nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

.site-nav li.nav-dropdown:hover > .nav-dropdown-menu,
.site-nav li.nav-dropdown:focus-within > .nav-dropdown-menu,
.nav-menu li.nav-dropdown:hover > .nav-dropdown-menu,
.nav-menu li.nav-dropdown:focus-within > .nav-dropdown-menu {
  display: flex;
}

.site-nav .nav-dropdown-menu li,
.nav-menu .nav-dropdown-menu li {
  width: 100%;
}

.site-nav .nav-dropdown-menu a,
.nav-menu .nav-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.96rem;
  white-space: nowrap;
  text-align: center;
}

.site-nav .nav-dropdown-menu a:hover,
.nav-menu .nav-dropdown-menu a:hover {
  opacity: 1;
  background-color: #faf8f5;
}

/* Mobile menu (< 768px): show submenu inline inside the mobile drawer */
/* keep submenu collapsed until toggled */

@media screen and (max-width: 768px) {
  .mobile-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 10px;
  }

  .site-nav .nav-dropdown-menu,
  .nav-menu .nav-dropdown-menu {
    display: none;
    position: static;
    transform: none;
    min-width: 100%;
    margin-top: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background-color: #faf8f5;
  }

  .site-nav li.nav-dropdown.open > .nav-dropdown-menu,
  .site-nav li.nav-dropdown:focus-within > .nav-dropdown-menu,
  .nav-menu li.nav-dropdown.open > .nav-dropdown-menu,
  .nav-menu li.nav-dropdown:focus-within > .nav-dropdown-menu {
    display: flex;
  }

  .site-nav .nav-dropdown-menu::before,
  .nav-menu .nav-dropdown-menu::before {
    display: none;
  }

  .site-nav .nav-dropdown-menu a,
  .nav-menu .nav-dropdown-menu a {
    padding: 12px 20px;
    font-size: 0.95rem;
    background-color: #faf8f5;
  }
}

/* ==========================================================================
   PORTFOLIO GALLERY IMAGE GRID
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  width: 100%;
}

.gallery-item {
  text-decoration: none;
  color: inherit;
  display: block;
}

.image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2.5;
  overflow: hidden;
  background-color: #f4f4f4;
  border-radius: 6px;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
  border-radius: 6px;
}

.gallery-item:hover .image-wrapper img {
  opacity: 0.75;
}

.item-meta {
  margin-top: 14px;
}

.item-title {
  display: block;
  font-weight: 500;
  font-size: 1.06rem;
  line-height: 1.25;
  color: var(--color-text);
}

.item-category {
  display: block;
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-top: 3px;
  font-weight: 400;
}

.pswp__img {
  border-radius: 9px;
}

/* ==========================================================================
   HOMEPAGE INTRO SECTION (Full-Bleed Band, Centered Inner Content)
   ========================================================================== */
.dkr-intro-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: #f4f3f0;
  padding: 48px 5% 52px 5%;
  margin-bottom: 0;
  text-align: center;
}

.dkr-intro-content {
  max-width: 960px;
  margin: 0 auto;
}

/* Higher specificity than global heading rules to preserve regular 400 weight */
h1.dkr-intro-title,
.dkr-intro-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  text-align: center;
}

.dkr-intro-divider {
  width: 100px;
  height: 1px;
  background-color: #d8d4cd;
  margin: 0 auto 24px auto;
}

.dkr-intro-text {
  font-family: var(--font-primary);
  font-size: 1rem;
  color: #4a4a4a;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 14px;
}

/* ==========================================================================
   ALTERNATING SPLIT SHOWCASE COMPONENT (Full-Bleed Edge-to-Edge 3:2.3 Blocks)
   ========================================================================== */
.split-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  margin-bottom: 0px;
  border: none;
  border-radius: 0;
  overflow: hidden;
}

.split-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #A0F6FF; /* Temporary dev background matching .split-content */
}

.split-media img {
  width: 100%;
  height: auto;
  display: block;
}

.split-content {
  /* background-color: #faf8f5; */ /* Brand off-white background */
  background-color: #A0F6FF; /* Temporary dev background for layout inspection */
  padding: 40px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.split-content h2 {
  font-size: 2.85rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.split-subtitle {
  font-size: 1.25rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2dfd9;
  width: 100%;
}

/* Checkmark feature list */
.split-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  width: 100%;
}

.split-checklist li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 1.18rem;
  color: var(--color-text);
}

.split-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--color-text);
}

/* Two-column service breakdown */
.split-services-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  margin-bottom: 20px;
}

.split-service-group h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.split-service-group ul {
  list-style: disc;
  padding-left: 16px;
  margin: 0;
}

.split-service-group li {
  font-size: 1.08rem;
  color: var(--color-muted);
  margin-bottom: 4px;
}

/* Shared pill CTA button */
.btn-pill {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--color-bg);
  color: var(--color-text);
  border: 1px solid #dcdcdc;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-pill:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

/* ==========================================================================
   HOME PAGE CATEGORY GALLERY GRID (3-Column Centered Showcase)
   ========================================================================== */
.dkr-category-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: #faf8f5;
  padding: 48px 5%;
  margin-top: 0;
  margin-bottom: 64px;
}

/* Automatically wraps onto new 3-column rows if more than 3 cards are added */
.dkr-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.dkr-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dkr-category-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text);
  margin: 0 0 10px 0;
}

.dkr-category-divider {
  width: 40px;
  height: 1px;
  background-color: #d4cfc7;
  margin: 0 auto 16px auto;
}

.dkr-category-media {
  width: 100%;
  aspect-ratio: 2 / 3;
  /* aspect-ratio: 3 / 3.2; */
  overflow: hidden;
  margin-bottom: 18px;
  background-color: #ece9e2;
}

.dkr-category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Pinned to bottom of card so buttons align across multi-line titles */
.dkr-category-cta {
  margin-top: auto;
  display: inline-block;
  padding: 9px 20px;
  background-color: var(--color-bg);
  color: var(--color-text);
  border: 1px solid #d4cfc7;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dkr-category-cta:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

/* ==========================================================================
   TYPOGRAPHY & FONT VARIATIONS
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: 1.15rem;
}

h1 { font-size: 2.875rem; }
h2 { font-size: 2.3rem; }
h3 { font-size: 1.725rem; }

.text-sans {
  font-family: var(--font-primary) !important;
}

.text-serif {
  font-family: var(--font-serif) !important;
}

.text-display {
  font-family: var(--font-display) !important;
}

.text-mono {
  font-family: var(--font-mono) !important;
  font-size: 1.03em;
}

.text-lead {
  font-size: 1.38rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
}

.text-editorial {
  font-family: var(--font-serif);
  font-size: 1.265rem;
  line-height: 1.8;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: 115px;
  padding-top: 23px;
  font-size: 1.15rem;
  color: var(--color-muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

/* ==========================================================================
   TEXT CONTENT CONTAINERS
   ========================================================================== */
.content-container {
  display: block;
  width: 100%;
  max-width: var(--container-width, 1265px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.725rem;
  padding-right: 1.725rem;
  box-sizing: border-box;
}

.content-container--full {
  --container-width: 100%;
}

.content-container--wide {
  --container-width: 1610px;
}

.content-container--standard {
  --container-width: 1265px;
}

.content-container--narrow {
  --container-width: 920px;
}

.content-container p {
  line-height: 1.7;
  margin-bottom: 1.725rem;
}

.content-container ul {
  margin-bottom: 1.725rem;
  padding-left: 1.725rem;
}

.content-container li {
  margin-bottom: 0.575rem;
}

.content-container img {
  max-width: 100%;
  height: auto;
  display: block;
}

.content-container a.bold-link {
  font-weight: bold;
}

/* ==========================================================================
   CONTACT PAGE STYLING
   ========================================================================== */
.contact-section {
  padding: 2.3rem 0;
}

.contact-intro {
  margin-bottom: 2.3rem;
  color: #555;
  line-height: 1.6;
}

.content-container ul.contact-links-list,
.contact-links-list {
  list-style: none;
  padding: 0;
  margin: 24px auto 0 auto;
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  margin-bottom: 1.725rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid #eee;
}

.contact-label {
  font-size: 0.975rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 0.2875rem;
}

.contact-link {
  font-size: 1.265rem;
  color: #111;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

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

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Portfolio grid: 2 columns at <= 1024px */
@media screen and (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet & smaller screens: <= 960px */
@media screen and (max-width: 960px) {
  /* Stack split showcase into single column and allow text block height to expand naturally */
  .split-showcase {
    grid-template-columns: 1fr;
  }

  .split-content {
    aspect-ratio: auto;
    padding: 44px 24px;
    overflow: visible;
  }

  .split-media--second {
    order: 3;
  }

  .split-content--second {
    order: 4;
  }

  /* 2-column category grid on tablet */
  .dkr-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }
}

/* Mobile navigation, header & intro: <= 768px */
@media screen and (max-width: 768px) {
  .site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 30px;
    position: relative;
  }

  .logo-container .brand-link .desktop-brand,
  .logo-container .brand-link .desktop-brand-part {
    display: none;
  }

  .logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .site-logo {
    height: 110px;
    max-height: 110px;
  }

  .mobile-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 10px;
  }

  .mobile-brand-text {
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.015em;
    text-decoration: none;
  }

  .mobile-brand-text:hover,
  .mobile-brand-text:focus {
    text-decoration: none;
    opacity: 0.75;
  }

  .mobile-menu-toggle {
    display: block !important;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
  }

  .site-wrapper {
    padding: 20px 16px;
    max-width: 100%;
  }

  .site-footer {
    font-size: 0.8rem;
    margin-top: 40px;
  }

  .site-nav,
  .nav-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background-color: var(--color-bg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 1000;
  }

  .site-nav.active,
  .nav-menu.active {
    display: flex !important;
  }

  .site-nav ul,
  .nav-menu ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .site-nav li,
  .nav-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  .site-nav a,
  .nav-menu a {
    display: block;
    padding: 16px 20px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
  }

  .mobile-menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .dkr-intro-title {
    font-size: 1.8rem;
  }

  .dkr-intro-section {
    padding: 35px 16px 40px 16px;
  }
}

/* Small mobile screens: <= 600px */
@media screen and (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dkr-category-section {
    padding: 48px 16px;
    margin-bottom: 48px;
  }

  .dkr-category-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .content-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Narrow mobile screens: <= 520px */
@media screen and (max-width: 520px) {
  .split-services-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .split-content h2 {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   CONTACT PAGE EMBEDDED MAP
   ========================================================================== */
.contact-map-wrapper {
  width: 100%;
  margin-top: 32px;
  border: 1px solid #d8d4cd;
  border-radius: 6px;
  overflow: hidden;
  background-color: #ece9e2;
}

.contact-map-wrapper iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 450px;
  border: 0;
}

@media screen and (max-width: 768px) {
  .contact-map-wrapper {
    margin-top: 24px;
  }

  .contact-map-wrapper iframe {
    height: 300px;
  }
}