/* Speckmobile — light flex redesign */
:root {
  --ink: #080808;
  --muted: #4a4848;
  --line: #c5c5c5;
  --paper: #f7f9f0;
  --cream: #ecf8b4;
  --lime: #aaca0e;
  --lime-deep: #3c4907;
  --teal: #048f92;
  --teal-deep: #024749;
  --teal-soft: #a9f2e2;
  --ember: #f4461a;
  --ember-soft: #ffa57a;
  --white: #ffffff;
  --max: 1100px;
  --font-display: "Chelsea Market", "Segoe UI", sans-serif;
  --font-body: "Karla", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(170, 202, 14, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(4, 143, 146, 0.14), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, #eef3e4 40%, #f4f6ef 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ember);
}

.site-wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 249, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(60, 73, 7, 0.12);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  color: var(--lime-deep);
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand:hover {
  color: var(--teal);
}

.brand span {
  color: var(--ember);
}

.nav-toggle {
  display: none;
  border: 2px solid var(--lime-deep);
  background: var(--cream);
  color: var(--lime-deep);
  padding: 0.45rem 0.7rem;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  align-items: center;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--teal);
}

.site-nav .has-sub {
  position: relative;
}

.site-nav .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  background: var(--white);
  border: 1px solid rgba(60, 73, 7, 0.15);
  padding: 0.5rem 0;
  box-shadow: 0 10px 24px rgba(8, 8, 8, 0.08);
  z-index: 50;
}

.site-nav .has-sub:hover > .submenu,
.site-nav .has-sub:focus-within > .submenu {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.site-nav .submenu a {
  padding: 0.45rem 1rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

/* Main */
.site-main {
  flex: 1;
  padding-bottom: 3rem;
}

.page-header {
  padding: 2.25rem 0 1rem;
}

.page-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--lime-deep);
  line-height: 1.15;
}

.page-header p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  max-width: 38rem;
}

.page-body {
  padding: 0.5rem 0 2rem;
}

.page-body h2,
.page-body h3,
.page-body h4 {
  font-family: var(--font-display);
  color: var(--teal-deep);
  line-height: 1.25;
}

.page-body h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.65rem;
}

.page-body h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.3rem;
}

.page-body p {
  margin: 0 0 1rem;
}

.page-body ul,
.page-body ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.page-body li {
  margin-bottom: 0.35rem;
}

.page-body blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--lime);
  background: rgba(236, 248, 180, 0.45);
  color: var(--muted);
}

.legal-content h3 {
  scroll-margin-top: 5rem;
}

.legal-content ol > li > a {
  font-weight: 600;
}

/* Hero home */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 71, 73, 0.25) 0%, rgba(8, 8, 8, 0.72) 70%),
    linear-gradient(90deg, rgba(60, 73, 7, 0.45), transparent 55%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 3.5rem 0 3rem;
  animation: riseIn 0.9s ease both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  margin: 0 0 0.35rem;
  line-height: 0.95;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero__brand span {
  color: var(--lime);
}

.hero__tag {
  margin: 0 0 1.25rem;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  max-width: 28rem;
  color: #f2f5ea;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--lime);
  color: var(--lime-deep);
}

.btn--primary:hover {
  background: var(--cream);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.notice {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 2rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(120deg, var(--cream), var(--teal-soft));
  border-left: 5px solid var(--ember);
  animation: riseIn 1s ease 0.15s both;
}

.notice strong {
  color: var(--teal-deep);
}

.section {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 2.75rem;
}

.section__head {
  margin-bottom: 1.25rem;
}

.section__head h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--lime-deep);
}

.section__head p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: center;
}

.split__text {
  flex: 1 1 280px;
}

.split__media {
  flex: 1 1 280px;
  overflow: hidden;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  animation: softFloat 6s ease-in-out infinite;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.feature {
  flex: 1 1 220px;
  padding: 1.25rem 1.1rem;
  background: rgba(255, 255, 255, 0.72);
  border-top: 3px solid var(--teal);
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--teal-deep);
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.quote-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.quote {
  flex: 1 1 280px;
  margin: 0;
  padding: 1.35rem;
  background: var(--white);
  border-left: 4px solid var(--ember);
}

.quote p {
  margin: 0 0 0.85rem;
  font-style: italic;
  color: var(--muted);
}

.quote cite {
  font-style: normal;
  font-weight: 700;
  color: var(--lime-deep);
  font-size: 0.92rem;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed rgba(60, 73, 7, 0.25);
}

.menu-item strong {
  color: var(--teal-deep);
}

.contact-frame {
  width: 100%;
  min-height: 1100px;
  border: 0;
  background: var(--white);
}

/* Blog list (from r-template_blog) */
.blog-container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-card {
  padding: 1.15rem 1.25rem;
  background: rgba(255, 255, 255, 0.8);
  border-left: 4px solid var(--lime);
}

.blog-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.blog-title a {
  color: var(--lime-deep);
  text-decoration: none;
}

.blog-title a:hover {
  color: var(--teal);
}

.blog-preview p {
  margin: 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: linear-gradient(180deg, var(--teal-deep), #012f30);
  color: #dceceb;
  padding: 2.5rem 0 1.5rem;
}

.site-footer a {
  color: var(--cream);
}

.site-footer a:hover {
  color: var(--lime);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
  color: var(--white);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
}

.footer__nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.footer__copy {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(236, 248, 180, 0.2);
  font-size: 0.88rem;
  color: rgba(220, 236, 235, 0.75);
}

.romlifooter {
  margin-top: 1.5rem;
}

.romlifooter img {
  max-width: 140px;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0 0.75rem;
    gap: 0.65rem;
  }

  .site-nav .submenu {
    position: static;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0.25rem 0 0.25rem 0.75rem;
  }

  .hero {
    min-height: 72vh;
  }
}
