/* ============================================================
   jacobtippetts.com — Stylesheet v2
   Design: faithful recreation of original Perch CMS site
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 16px;
  line-height: 1.75;
  color: #222;
  background: #111;
}

a { color: #333; text-decoration: underline; }
a:hover { color: #000; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #fff;
  z-index: 200;
  border-bottom: 3px solid #111;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  height: 80px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.logo-wrap img { width: 56px; height: auto; }

.logo-name {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #555;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
nav a:hover, nav a.active { color: #111; border-bottom-color: #111; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: #111; }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 16px 36px 24px;
  gap: 14px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #444;
  text-decoration: none;
}
.mobile-nav a:hover { color: #111; }

/* ============================================================
   PAGE BACKGROUND
   ============================================================ */
.page-bg {
  min-height: 100vh;
  padding-top: 80px;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: flex-start;
}

/* ============================================================
   HOME PAGE
   ============================================================ */
.home-bg {
  /*
   * BACKGROUND IMAGE NEEDED:
   * Place your family photo at: files/img/bg-home.jpg
   * It should be the B&W photo of you with Chase and Sydnee.
   * Recommended size: 1920x1080px or larger.
   */
  background-image: url('files/img/bg-home.jpg');
  background-position: center center;
  background-position: center top;
}

.home-screen {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.home-content {
  background: rgba(240, 238, 235, 0.97);
  padding: 22px 48px 14px;
}

.home-tagline {
  font-family: 'Cinzel', serif;
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-align: center;
  color: #111;
  margin-bottom: 14px;
}

.home-body {
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  max-width: 100%;
}
.home-body strong { font-weight: 600; }
.home-body a { color: #222; }

.home-copyright {
  text-align: right;
  font-size: 11px;
  color: #888;
  margin-top: 10px;
}

/* ============================================================
   INTERIOR PAGES
   ============================================================ */
.interior-bg {
  /*
   * BACKGROUND IMAGE NEEDED:
   * Place the B&W railway/industrial photo at: files/img/bg-interior.jpg
   * This is the dark background with dramatic lighting used on all
   * interior pages (About, Beliefs, My Empire, Projects, Contact).
   * Recommended size: 1920x1080px or larger.
   */
  background-image: url('files/img/bg-interior.jpg');
}

/* Large coat of arms on the right — CSS-rendered using the crest PNG */
.crest-right {
  position: fixed;
  right: -20px;
  top: 80px;
  bottom: 0;
  width: 48%;
  background-image: url('files/img/crest_header.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 0.22;
  pointer-events: none;
  z-index: 1;
}

/* Floating white content panel on the left */
.content-panel {
  position: relative;
  z-index: 2;
  width: 55%;
  background: rgba(241, 239, 236, 0.97);
  padding: 36px 44px 44px;
  margin: 70px 0 70px 60px;
  /* Box floats with background visible on all four sides */
}

/* ── Typography ── */
.content-panel h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.65rem;
  font-weight: 400;
  font-variant: small-caps;
  color: #111;
  margin-bottom: 20px;
}

.content-panel h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111;
  margin: 26px 0 8px;
}

.content-panel h3 {
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  color: #222;
  margin: 20px 0 8px;
}

.content-panel p {
  font-size: 15px;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.75;
}

.content-panel blockquote {
  margin: 18px 24px;
  font-style: italic;
  font-size: 15px;
  color: #333;
  text-align: center;
  line-height: 1.7;
}

.content-panel a { color: #222; }

.award-img {
  max-width: 260px;
  margin: 14px 0;
  border: 1px solid #bbb;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.project-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid #ccc;
}
.project-row:first-of-type { border-top: 1px solid #ccc; }

.project-logo-box {
  flex-shrink: 0;
  width: 155px;
  min-height: 75px;
  background: #fff;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.project-logo-box img {
  max-height: 55px;
  width: auto;
  object-fit: contain;
}
/* Text fallback if logo image missing */
.project-logo-box span {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: #333;
  text-align: center;
}

.project-info h2 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 6px;
}
.project-info p { font-size: 14px; color: #333; line-height: 1.7; margin-bottom: 0; }
.project-info a { color: #222; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-intro { margin-bottom: 18px; }

.contact-form label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 3px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #bbb;
  background: #fff;
  padding: 7px 10px;
  font-family: 'Crimson Text', serif;
  font-size: 15px;
  color: #222;
  margin-bottom: 12px;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: #444; }
.contact-form textarea { min-height: 110px; resize: vertical; }

.btn-send {
  background: #333;
  color: #fff;
  border: none;
  padding: 9px 26px;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background .2s;
}
.btn-send:hover { background: #111; }

/* ============================================================
   FOOTER (fixed, bottom-right corner)
   ============================================================ */
.page-footer {
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 5px 14px;
  font-size: 11px;
  color: #bbb;
  background: rgba(0,0,0,0.4);
  z-index: 10;
  letter-spacing: 0.04em;
}
.page-footer a { color: #ccc; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .logo-name { font-size: 1.3rem; }
  .header-inner { padding: 0 20px; }

  .content-panel { width: calc(100% - 32px); margin: 30px 16px; padding: 24px 20px 40px; }
  .crest-right { display: none; }

  .home-content { padding: 20px 20px 14px; }
  .home-tagline { font-size: 1.2rem; }

  .project-row { flex-direction: column; }
  .project-logo-box { width: 100%; min-height: 60px; }
}
