/*
Theme Name: Corner House Books
Theme URI: 
Author: Corner House Books
Description: Custom one-page theme for Corner House Books, Rosseau ON
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

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

:root {
  --cream: #F5EDE0;
  --dark: #1a1208;
  --mid: #3d2e1a;
  --muted: #7a6a55;
  --border: #c8b89a;
  --accent: #5c3d1e;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--dark);
  font-family: 'EB Garamond', serif;
  font-size: 20px;
  line-height: 1.7;
}

/* NAV */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background-color: var(--cream);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 70px;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--dark); }

/* HAMBURGER */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--dark);
  transition: all 0.2s;
}

/* HERO */
#home {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 60%;
  filter: brightness(0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero-logo {
  width: 400px;
  max-width: 80%;
  margin-bottom: 2.5rem;
  filter: brightness(0) invert(1);
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 2rem;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--cream);
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--cream);
  margin: 2rem auto;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--cream);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Cormorant Garamond', serif;
}

/* SECTIONS */
.site-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 6rem 2rem;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 2rem;
}

.section-body {
  font-size: 1.1em;
  color: var(--mid);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

/* ABOUT PHOTO */
.about-photo {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  margin-bottom: 2.5rem;
}

/* ABOUT DETAILS */
.about-details {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.detail-block h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.detail-block p {
  font-size: 1.2rem;
  color: var(--mid);
  line-height: 1.7;
}

.detail-block a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}

.detail-block a:hover { border-color: var(--accent); }

/* GALLERY */

.carousel {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
}

.carousel-track-wrapper {
  overflow: hidden;
  flex: 1;
  height: 480px;
  min-width: 0;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.carousel-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--dark);
  color: var(--cream);
  border-color: var(--dark);
}

/* CONTACT FORM */
.contact-form {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--dark);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  align-self: flex-start;
  margin-top: 0.5rem;
  background: var(--dark);
  color: var(--cream);
  border: none;
  padding: 0.75rem 2.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover { background: var(--accent); }

.form-success {
  display: none;
  font-style: italic;
  color: var(--muted);
  margin-top: 1rem;
}

/* FOOTER */
footer.site-footer {
  text-align: center;
  padding: 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer-social {
  margin-top: 0.75rem;
}

.footer-social a {
  color: var(--muted);
  transition: color 0.2s;
  border-bottom: none;
}

.footer-social a:hover {
  color: var(--dark);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-logo { font-size: 0.85rem; }
  nav.site-nav { padding: 0 1.2rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1rem 0;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }
  .about-details { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-section { padding: 4rem 1.2rem; }
  .carousel-track-wrapper { height: 300px; }
  .carousel-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
  }
}