/*
Theme Name: Devillin Labs - WordPress Theme
Author: Devillin Labs
Author URI: http://www.devillinlabs.com/
Description: Custom WordPress theme for Devillin Labs
Version: 1.0
*/

/* =========================================
   01. GLOBAL ELEMENTS
========================================= */

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

html {
  background-color: var(--dev-soul);
  scroll-behavior: smooth;
}

/* Brand Colors */
:root {
  --dev-soul: #090205;
  --dev-bone: #F4F4F4;
  --dev-blood: #922336;
  --dev-wine: #270A16;
  --dev-skin: #647973;
}

/* Flexbox & Masonry */
.container {
  display: flex;
  flex-wrap: nowrap;
}

.flex-column {
  flex-direction: column;
  margin-bottom: 32px;
}

.flex-row {
  flex-direction: row;
  gap: 32px;
}

.masonry {
  columns: 3 200px;
  gap: 12px;
  padding: 2rem;
}

/* =========================================
   02. NAVIGATION
========================================= */

/* Navbar Container */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(8px);
  color: var(--dev-bone);
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hamburger Menu */
.menu-toggle {
  width: 30px;
  height: 20px;
  cursor: pointer;
  position: relative;
  z-index: 3000; /* ensures button is above overlay */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--dev-bone);
  border-radius: 2px;
  transition: all 0.4s ease;
}

/* Animate to "X" */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Overlay Menu */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--dev-blood);
  display: flex;
  flex-direction: column;
  gap: 3rem;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 2500; /* below toggle, above hero */
}

.nav-overlay.active {
  transform: translateX(0);
}

/* Menu Links */
.nav-overlay ul {
  list-style: none;
  text-align: center;
}

.nav-overlay ul li {
  margin: 1.5rem 0;
}

.nav-overlay ul li a {
  color: var(--dev-bone);
  font-size: 3.5rem;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-overlay ul li a:hover {
  color: var(--dev-soul);
}

/* Nav Logo */
.menu-logo { 
    color: var(--dev-soul); 
    width: 96px; 
    height: 96px; 
    transition: color 0.3s ease; 
} 
.menu-logo:hover { 
    color: var(--dev-bone); 
}

.menu-logo-nav { 
    color: var(--dev-bone); 
    width: 36px; 
    height: 36px; 
    transition: color 0.3s ease; 
} 
.menu-logo-nav:hover { 
    color: var(--dev-blood); 
}

.menu-social {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.menu-social-icon {
  color: var(--dev-bone);
  height: 36px;
  weight: 36px;
  transition: color 0.3s ease;
}

.menu-social-icon:hover {
  color: var(--dev-soul);
}

/* =========================================
   03. PORTFOLIO ELEMENTS
========================================= */

.port-item {
  max-width: 100%;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  cursor: arrow;
}
.port-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: 0.4s ease;
}
.port-caption {
  position: absolute;
  inset: 0;
  background: rgba(9, 2, 5, 0.9);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-wrap: pretty;
  padding: 2.6rem;
  transition: opacity 0.3s ease;
}
.port-caption-wrapper {
  padding: 64px;
}
.port-item:hover img {
  transform: scale(1.05);
  filter: blur(2px);
}
.port-item:hover .port-caption {
  opacity: 1;
}

.gallery-caption span {
	color: var(--dev-bone);
	font-size: 1rem;
}

/* =========================================
   04. BODY & TYPOGRAPHY
========================================= */

body {
  font-family: Barlow Condensed, Arial, sans-serif;
  font-weight: 300;
  font-size: 20px;
  color: var(--dev-bone);
  line-height: 1.8rem;
  margin: 0;
  padding: 0;
}

section {
  width: 100%;
}

span {
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 1.3rem;
  color: var(--dev-blood);
  font-weight: 500;
}

h1 {
  font-family: Barlow Condensed, Arial, sans-serif;
  font-weight: 400;
  font-size: 32px;
  text-transform: uppercase;
  color: var(--dev-bone);
  line-height: 0.5rem;
  letter-spacing: 0.4rem;
}

h1.accent {
  font-family: Bokor, serif;
  font-weight: 300;
  font-size: 96px;
  margin: 12px 0 0;
  text-transform: lowercase;
  color: var(--dev-bone);
  line-height: 4.5rem;
  letter-spacing: -0.2rem;
}

h2 {
  font-family: Bokor, Times New Roman, serif;
  font-weight: 300;
  font-size: 64px;
  text-transform: lowercase;
  color: var(--dev-blood);
  line-height: 1rem;
  letter-spacing: -0.25rem;
}

h3 {
  font-family: Barlow Condensed, Arial, sans-serif;
  font-weight: 300;
  font-size: 28px;
  color: var(--dev-blood);
  line-height: 2.4rem;
  margin: 0;
}

h4 {
  font-family: Barlow Condensed, Arial, sans-serif;
  font-weight: 400;
  font-size: 26px;
  color: var(--dev-bone);
  line-height: 2.1rem;
  letter-spacing: 0.08rem;
  margin: 0;
}

p {
  margin-bottom: 2rem;
}

p.lead {
  font-size: 2.5rem;
  line-height: 3.2rem;
  font-weight: 400;
  margin-bottom: 2.2rem;
}

span.intro {
  font-family: Bokor, Times New Roman, serif;
  color: var(--dev-bone);
  text-transform: lowercase;
  letter-spacing: 0.01rem;
  font-weight: 300;
  font-size: 4.5rem;
  line-height: 2.6rem;
}

b { font-weight: 500; }
i { font-style: italic; }

/* Links & Buttons */
a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover,
a:focus {
  color: var(--dev-blood);
}

ul {
	list-style-position: inside;
	list-style-type: none;
	margin-left: 12px;
}

/* Default Gutenberg Button Styling */
.wp-block-button__link {
    display: inline-block;
    padding: 0.5em 1.2em;
    margin-bottom: 2rem;
    background-color: #922235; /* Your brand color */
    color: var(--dev-bone);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 0!important;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover / Focus States */
.wp-block-button__link:hover,
.wp-block-button__link:focus {
    background-color: #b93a4f; /* Slightly lighter tone for hover */
    color: var(--dev-soul);
}

/* Outline Style (when the user selects 'Outline' in Gutenberg) */
.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--dev-blood);
    border: 2px solid var(--dev-blood);
}

.is-style-outline .wp-block-button__link:hover,
.is-style-outline .wp-block-button__link:focus {
    background-color: var(--dev-blood);
    color: var(--dev-bone);
}

/* =========================================
   05. SECTIONS
========================================= */

section.default {
  padding: 192px 0;
}

section.alt {
  background-color: var(--dev-wine);
}

section.hero {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
section.hero-underpage {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 50vh;
  overflow: hidden;
}

section.about {
  z-index: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

/* Hero Parallax */
div.hero-parallax {
  position: relative;
  width: 100%;
  height: 100%;
}

div.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(0);
  z-index: -1;
  will-change: transform;
}

div.hero-block {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  row-gap: 20%;
  margin: 0 36px;
}

div.hero-block-gallery {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  row-gap: 12px;
  margin: 36px;
}

div.hero-scroll {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 12px;
}

div.hero-arrow {
  color: var(--dev-blood);
  width: 24px;
  height: auto;
}

/* About Section */
.about-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: end;
}

.about-block img {
  width: 100%;
  height: auto;
}

.about-text {
  max-width: 90%;
  margin: 0 auto;
  padding: 96px;
}

/* Cards */
.card {
  width: 100%;
  display: inline-block;
}

/* WP Gutenberg Elements */
.wp-block-media-text__content { margin: 48px 0;}

/* =========================================
   06. MEDIA QUERIES
========================================= */

@media screen and (max-width: 768px) {
  p.lead { font-size: 2rem; line-height: 2.6rem; }
  span.intro { font-size: 3.2rem; line-height: 2.6rem; }
  h1 { font-size: 0.8rem; }
  h1.accent { font-size: 4.0rem; line-height: 3.5rem; }
	h2 { font-size: 3rem; margin-top: 12px; }
  section.about { flex-direction: column; }
  div.about-text { padding: 96px 24px; }
}

@media screen and (max-width: 480px) {
  /* mobile-specific tweaks can go here */
}
