@charset "UTF-8";

/* ========================================
   FableLoc — Website Styles
   Palette: Twilight Sorcery
   Fonts: Almendra (headings) + Lato (body)
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:          #F5F3EF;
  --bg-alt:      #EAE7E1;
  --bg-card:     #FFFFFF;
  --bg-dark:     #0D1117;
  --text:        #2C2C2C;
  --text-muted:  #5A5A5A;
  --gold:        #9C7A3C;
  --gold-dim:    #7A5F2E;
  --rosewood:    #793A2B;
  --rosewood-light: #9C5640;
  --cyan:        #2ED6C4;
  --cyan-dim:    #00CFC0;
  --cyan-glow:   rgba(46, 214, 196, 0.15);
  --border:      #D8D4CE;
  --font-heading: 'Almendra', serif;
  --font-body:    'Lato', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
}


/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-dark);
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}

.nav.scrolled {
  background: var(--bg-dark);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo-img {
  height: 36px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-cta {
  color: var(--bg-dark) !important;
  background: var(--cyan);
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover {
  background: var(--gold);
  color: #FFFFFF !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 80px;
  background: var(--bg-dark);
  color: #E6E1D8;
}

.hero-logo {
  max-width: 480px;
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: 23px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
  line-height: 1.6;
  font-weight: 300;
}

.hero-about {
  max-width: 800px;
  margin: 0 auto 30px;
  padding: 0 40px;
}

.hero-about p {
  font-size: 18px;
  line-height: 1.4;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}

.hero-about p:last-child {
  margin-bottom: 0;
}


/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  border: none;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--gold);
  color: #FFFFFF;
}


/* --- Sections --- */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--rosewood);
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 17px;
}


/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

.service-card h3 {
  font-family: var(--font-body);
  color: var(--rosewood);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}


/* --- How It Works (removed — content merged into FAQ) --- */


/* --- Why FableLoc --- */
.hero-reasons {
  max-width: 960px;
  margin: 32px auto 24px;
}

.hero-reasons .reasons-grid {
  margin-top: 0;
}

.hero-reasons .reason h3 {
  color: var(--cyan);
}

.hero-reasons .reason p {
  color: rgba(255,255,255,0.5);
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.reason {
  text-align: center;
}

.reason h3 {
  font-family: var(--font-body);
  color: var(--rosewood);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.reason p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}


/* --- Projects --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-info {
  padding: 28px 28px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card h3 {
  font-family: var(--font-body);
  color: var(--rosewood);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-info > p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  flex: 1;
  text-align: justify;
}

.project-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  color: var(--rosewood) !important;
  text-decoration: underline;
}

.project-link:hover {
  color: var(--gold) !important;
}

.project-thumb-wrap {
  flex-shrink: 0;
  padding: 0 0 20px;
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
}


/* --- FAQ --- */
.faq-list {
  max-width: 700px;
  margin: 48px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item summary {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 22px;
  color: var(--rosewood);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 12px;
  padding-right: 32px;
}


/* --- About --- */
/* --- Contact --- */
#contact {
  text-align: center;
}

#contact .section-subtitle {
  margin-bottom: 32px;
}

.contact-email {
  font-size: 18px;
  color: var(--text);
}

.contact-email a {
  color: var(--rosewood);
  font-weight: 700;
  text-decoration: underline;
}

.contact-email a:hover {
  color: var(--gold);
}

.contact-options {
  margin-bottom: 16px;
}

.contact-note {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
}


/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  padding: 32px 0;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}


/* --- Mobile --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .hero-logo {
    max-width: 336px;
  }

  .hero-tagline {
    font-size: 20px;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    gap: 32px;
  }
}
