/* Custom properties/variables */
.loading-info {
  display: none !important;
  visibility: hidden !important;
}

:root {
  --main-white: #f0f0f0;
  --main-red: #bfa691; /* TOP */
  --main-blue: #bfa691; /* Catalogue surround */
  --main-gray: #303841;
}

/* Base reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
  overflow-x: hidden; 
}

body {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--main-gray); 
  overflow-x: hidden;
}

h1 {
  font-family: Helvetica, sans-serif;
  font-size: 2rem;
  text-align: left;
  color: rgb(0, 0, 0);
}

h2 {
  font-family: Helvetica, sans-serif;
  font-weight: 700;
  font-size: 4.2rem;
  text-align: center;
  color: rgb(0, 0, 0);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--main-red);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 100; 
  padding: 0 3rem;
  height: 60px; 
}

.nav-title {
  white-space: nowrap; 
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); 
  color: #ffffff;
}

.nav-list {
  display: flex;
  list-style: none;
  flex-shrink: 0; 
}

.nav-list a {
  display: block;
  padding: 0 1.5rem; 
  line-height: 60px; 
  color: #000;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem); 
  transition: background 0.3s;
}

.nav-list a:hover {
  background: rgba(0,0,0,0.05);
}

/* Projects / Flipbook Section */
.projects-section {
  text-align: center;
  padding: 100px 0 40px 0; /* Zeroed horizontal padding so it stretches edge-to-edge */
  background: var(--main-blue); /* Fills section with your brown/tan color */
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Container controlling book sizing without borders */
.book-container {
  width: 90%;
  max-width: 1100px;
  height: 70vh; /* Controlled window height for the book */
  border-radius: 4px;
  background-color: var(--main-blue);
  overflow: hidden; /* Keeps book inside the boundaries */
}

#book_pdf {
  height: 100% !important;
  width: 100% !important;
}


/* Contact section */
.contact-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  width: 100%;
  min-height: 50vh;
  padding: 6rem 2rem;
  background: #fff;
  border-top: 1px solid #ddd;
}

.contact-section-header > h2 {
  font-size: 3.2rem;
  margin-bottom: 3rem;
  color: #333;
}

/* Contact Cards Grid */
.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-content: center;
  max-width: 1200px;
  gap: 2.5rem;
  width: 100%;
}

.contact-card {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  text-align: left; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
}

.contact-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #333;
}

.contact-card ul {
  list-style-type: disc;
  padding-left: 18px; 
}

.contact-card li {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: #555;
}

/* Link overrides */
.contact-card a {
  color: var(--main-gray);
  text-decoration: underline;
}

.contact-card a:hover {
  color: #000;
}

/* DFlip Controls Customization */
.df-ui-btn {
  display: none !important;
}


/* Mobile Overrides for Edge-to-Edge Flipbook */
@media only screen and (max-width: 768px) {
  .projects-section {
    padding: 60px 0 0 0 !important; /* Strips all section padding */
    height: 100vh !important;
  }

  .book-container {
    width: 100% !important; /* Stretches past the 90% boundary */
    max-width: 100% !important;
    height: 100% !important; /* Fills full height of mobile viewport */
    border-radius: 0 !important; /* Removes curved edges if any */
  }
  
  /* Targeted DFlip engine overrides to force full edge bleeding */
  .df-container, 
  .df-book-wrapper, 
  .df-render-container {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }
}