/* ===== GLOBAL ===== */
@font-face {
  font-family: "EchoGrotesqueLight";
  src: url("../fonts/echoFont.woff2") format("woff2"),
       url("../fonts/echoFont.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "EchoGrotesqueLight", Arial, Helvetica, sans-serif;
  letter-spacing: 0.02em;
  background-color: #e9e7d4;
}

/* ===== HOMEPAGE LAYOUT ===== */
.home-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* LOGO */
.home-logo {
  width: 500px;
  max-width: 90%;
  height: auto;
  margin-bottom: 0px;
}

/* HOMEPAGE NAV ICONS */
.home-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: center;
  justify-items: center;
}

.nav-item {
  text-decoration: none;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.nav-item img {
  width: 160px;
  height: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
  background: transparent !important;
  padding: 0;
  border: none;
  box-shadow: none;
}

.nav-item span {
  font-size: 18px;
  letter-spacing: 2px;
  font-weight: 600;
}

.nav-item:hover img {
  transform: scale(1.08);
}

.nav-item:hover {
  transform: translateY(-3px);
}

@media (max-width: 900px) {
  .home-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .home-logo {
    width: 400px;
  }
}

@media (max-width: 500px) {
  .home-nav {
    grid-template-columns: 1fr;
  }

  .nav-item img {
    width: 400px;
  }
}

/* ===== CONTENT DEFAULTS ===== */
section {
  padding: 48px 24px;
  border-bottom: none;
}

h2,
h3 {
  font-weight: 600;
  -webkit-text-stroke: 0.15px;
  color: #222;
  margin-bottom: 12px;
}

p {
  font-size: 1.3rem;
  line-height: 1.65;
  color: #444;
}

ul {
  list-style-type: disc;
  margin-left: 24px;
  padding-left: 0;
  color: #444;
  margin-bottom: 24px;
}

.container {
  max-width: 980px;
  margin: 0 auto;
}

/* ===== LOGO LINK WRAPPER (USED, STYLING MINIMAL) ===== */
.logo-link {
  text-decoration: none;
}

/* ===== TITLE BLOCK (HEADER AREA ON PAGES) ===== */
.home-title {
  background: #e9e7d4;
  padding: 12px 18px;
  margin-bottom: 0px;
  text-align: center;
}

/* ===== PAGE WRAPPER ===== */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.container.narrow {
  max-width: 720px;
}

.page-content {
  padding: 0px 12px 30px 12px;
  border-bottom: none;
}

/* ABOUT PAGE TYPOGRAPHY */
.page-content h2 {
  font-size: 28px;
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: 1px;
}

.page-content h3 {
  margin-top: 10px;
  margin-bottom: 12px;
  font-size: 20px;
  letter-spacing: 1px;
}

.page-content p {
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-content strong {
  color: #e21c12;
}

/* ===== LOVE PAGE: PHONE SECTION ===== */
.phone-section {
  padding: 10px 0 80px 0;
  border-bottom: none;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 320px;
  height: 620px;
  border-radius: 48px;
  background: #1c1c1e;
  padding: 10px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);

  /* scaling */
  transform: scale(1.25);
  transform-origin: top center;
}

.phone-notch {
  width: 140px;
  height: 22px;
  background: #000;
  border-radius: 16px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screen {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    Arial, sans-serif;
  width: 100%;
  height: 100%;
  background: #f2f2f7;
  border-radius: 38px;
  padding: 16px 10px 16px 10px;
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  padding: 0 16px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.testimonial-slide.active {
  opacity: 1;
}

.message {
  position: relative;
  max-width: 98%;
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.2px;
}

.message.left {
  background: #e5e5ea;
  color: #000;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  margin-left: 4px;
}

.message p {
  margin: 0;
  line-height: 1.3;
}

.message.left::before {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 0;
  width: 12px;
  height: 12px;
  background: #e5e5ea;
  border-bottom-right-radius: 12px;
}

.message.left::after {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 0px;
  width: 10px;
  height: 12px;
  background: #f2f2f7;
  border-bottom-right-radius: 10px;
}

.carousel-dots {
  position: absolute;
  bottom: 22px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  background: #bbb;
  border-radius: 50%;
  opacity: 0.5;
}

.dot.active {
  opacity: 1;
  background: #333;
}

/* ===== SERVICES PAGE ===== */
.services-hero {
  text-align: center;
  padding: 10px 24px 60px;
}

.services-hero h2 {
  font-size: 26px;
  letter-spacing: 2px;
  margin-bottom: 20px;
  -webkit-text-stroke: 0.15px;
}

.services-grid-elevated {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.service-tile {
  padding: 40px 20px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 14px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.service-tile:hover {
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
  .services-grid-elevated {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: max-height 0.45s ease, opacity 0.35s ease, transform 0.35s ease;
  padding: 0 60px;
  background: rgba(255,255,255,0.6);
}

.service-detail.active {
  max-height: 1200px; /* large enough for content */
  opacity: 1;
  transform: translateY(0);
  padding: 12px 60px 100px;
}

.detail-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.detail-inner h3 {
  font-size: 22px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.detail-divider {
  width: 80px;
  height: 2px;
  background: #e21c12;
  margin: 0 auto 10px;
}

.detail-content {
  display: grid;
  gap: 18px;
  font-size: 16px;
  line-height: 1.6;
}

/* ===== HEADER ICON NAV ===== */
.site-nav-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 0px;
}

.site-nav-icons .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #000;
  transition: transform 0.2s ease;
}

.site-nav-icons img {
  width: 80px;
  height: auto;
  margin-bottom: 0px;
}

.site-nav-icons span {
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 600;
  -webkit-text-stroke: 0.15px;
}

.site-nav-icons .nav-link:hover img {
  transform: scale(1.08);
}

.site-nav-icons .nav-link:hover {
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: #e9e7d4;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 40px 24px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-contact p {
  margin: 4px 0;
  font-size: 14px;
  color: #333;
}

.footer-copy {
  font-size: 11px;
  color: #8a8a8a;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

.sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}

.sub-item {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}
.sub-item:hover {
  background: rgba(255,255,255,0.95);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.sub-item strong {
  font-size: 15px;
  letter-spacing: 0.5px;
}
.sub-detail {
  max-height: 0;
  overflow: hidden;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
}

.sub-item.open .sub-detail {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
}

.sub-item.open .sub-detail {
  max-height: 300px;
}

@media (max-width: 700px) {
  .sub-grid {
    grid-template-columns: 1fr;
  }
}
/* NAV BAR NORMAL STATE */

.nav-bar {
  width: 100%;
  background: #e9e7d4;
  padding: 6px 0;
  z-index: 1000;
}

/* WHEN NAV BECOMES FIXED */

.nav-bar.fixed {
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* PREVENT PAGE JUMP */

#nav-placeholder {
  height: 0;
}

#nav-placeholder.active {
  height: 95px; /* adjust if needed */
}