/*
Theme Name: EMSANTA OY Theme
Theme URI: http://emsanta.fi
Author: Antigravity AI
Description: Custom premium theme for EMSANTA OY.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: emsanta-theme
*/
:root {
  --ink: #2a2a2a;
  --cream: #f5f2ec;
  --warm: #ede8df;
  --warm2: #e4ddd1;
  --gold: #b8954a;
  --gold-light: #d4b06a;
  --muted: #5a5550;
  --border: rgba(184, 149, 74, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ─── NAV ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 60px;
  background: rgba(245, 242, 236, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s, box-shadow 0.3s;
}

nav.scrolled {
  padding: 14px 60px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 700;
  color: #E5C158;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  gap: 44px;
  list-style: none;
}

.nav-links a {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
}

.lang-switch button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 7px 12px;
  transition: all 0.2s;
}

.lang-switch button.active {
  background: var(--gold);
  color: var(--cream);
}

.lang-switch button:hover:not(.active) {
  color: var(--gold);
}

.nav-cta {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 11px 28px;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--cream);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink);
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cream);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding-top: 80px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a,
.mobile-menu button {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Montserrat', sans-serif;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--gold);
}

.mobile-lang {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
}

.mobile-lang button {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  color: var(--muted);
  transition: all 0.2s;
}

.mobile-lang button.active {
  background: var(--gold);
  color: var(--cream);
}

/* ─── HERO ─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background: url('photo_5852560452192242986_y.jpg') center center / cover no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease-out;
  z-index: 0;
}

.hero-photo.loaded {
  transform: scale(1);
}

/* Gradient overlay for text readability */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      rgba(10, 8, 4, 0.90) 0%,
      rgba(10, 8, 4, 0.68) 55%,
      rgba(10, 8, 4, 0.22) 100%);
  z-index: 1;
}

.hero-left {
  position: relative;
  z-index: 2;
  padding: 160px 80px 100px;
  max-width: 720px;
}

/* Helsinki badge over photo */
.hero-badge {
  position: absolute;
  background: rgba(20, 16, 10, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(184, 149, 74, 0.4);
  padding: 18px 24px;
  z-index: 2;
}

.hero-badge .val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--cream);
  line-height: 1;
}

.hero-badge .val span {
  color: var(--gold);
  font-size: 18px;
}

.hero-badge .label {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.6);
  margin-top: 6px;
}

.hero-badges {
  position: absolute;
  bottom: 48px;
  right: 60px;
  display: flex;
  gap: 12px;
  z-index: 2;
}

.hero-content {
  max-width: 620px;
}

.hero-tag {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 6vw, 86px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  color: var(--cream);
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero p {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(245, 242, 236, 0.75);
  max-width: 480px;
  margin-bottom: 52px;
  font-weight: 400;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 18px 40px;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 500;
}

.hero-cta::after {
  content: '→';
  transition: transform 0.3s;
}

.hero-cta:hover {
  background: var(--gold-light);
}

.hero-cta:hover::after {
  transform: translateX(4px);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content>* {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

.hero-tag {
  animation-delay: 0.15s;
}

.hero h1 {
  animation-delay: 0.25s;
}

.hero p {
  animation-delay: 0.35s;
}

.hero-cta {
  animation-delay: 0.45s;
}

/* ─── ABOUT ─────────────────────────────────────────── */
.about {
  padding: 80px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  background: var(--ink);
  color: var(--cream);
}

.about-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.about h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 32px;
}

.about h2 em {
  font-style: italic;
  color: var(--gold-light);
}

.about-left p {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(245, 242, 236, 0.65);
  font-weight: 400;
}

.about-right {
  border-left: 1px solid rgba(184, 149, 74, 0.3);
  padding-left: 60px;
}

.about-right p {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(245, 242, 236, 0.65);
  margin-bottom: 40px;
  font-weight: 400;
}

.principles {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.principles li {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.5);
  padding: 16px 0;
  border-bottom: 1px solid rgba(184, 149, 74, 0.15);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: color 0.3s;
}

.principles li::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.principles li:hover {
  color: var(--gold-light);
}

.gold-line {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 36px 0;
}

/* ─── SERVICES ─────────────────────────────────────── */
.services {
  padding: 40px 60px 0;
  background: var(--cream);
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-header-labels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-header-labels .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
  display: inline-block;
}

.section-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 4.5vw, 58px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 20px;
}

.section-header-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 400;
  max-width: 520px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.service-card {
  background: var(--cream);
  padding: 48px 36px;
  transition: background 0.4s;
  cursor: default;
}

@media (hover: hover) {
  .service-card:hover {
    background: var(--ink);
  }

  .service-card:hover .service-num {
    color: rgba(184, 149, 74, 0.2);
  }

  .service-card:hover .service-icon {
    opacity: 1;
    filter: brightness(5);
  }

  .service-card:hover h3 {
    color: var(--cream);
  }

  .service-card:hover p {
    color: rgba(245, 242, 236, 0.5);
  }

  .service-card:hover .service-items li {
    color: rgba(245, 242, 236, 0.4);
  }
}

.service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: 32px;
  transition: color 0.4s;
}

.service-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 24px;
  opacity: 0.5;
  transition: opacity 0.4s, filter 0.4s;
}

.service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--ink);
  transition: color 0.4s;
}

.service-card p {
  font-size: 12px;
  line-height: 1.8;
  color: #3a3632;
  font-weight: 400;
  transition: color 0.4s;
}

.service-items {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-items li {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  padding-left: 12px;
  position: relative;
  transition: color 0.4s;
  font-weight: 400;
}

.service-items li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ─── WHY ─────────────────────────────────────────── */
.why {
  padding: 80px 60px;
  background: #333333;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.why-box {
  background: rgba(245, 242, 236, 0.05);
  border: 1px solid rgba(184, 149, 74, 0.2);
  padding: 40px;
}

.why-box .big-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 120px;
  font-weight: 300;
  color: rgba(184, 149, 74, 0.15);
  line-height: 0.8;
  margin-bottom: 24px;
}

.why-box blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.5;
  margin-bottom: 48px;
}

.why-box blockquote em {
  color: var(--gold-light);
  font-style: normal;
}

.trust-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(184, 149, 74, 0.15);
}

.trust-metric {
  background: rgba(245, 242, 236, 0.04);
  padding: 20px;
}

.trust-metric .t-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 6px;
}

.trust-metric .t-label {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.45);
  line-height: 1.4;
}

.why-right .section-label {
  color: var(--gold);
}

.why-right h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 5.5vw, 72px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 40px;
}

.why-features {
  display: flex;
  flex-direction: column;
}

.why-feature {
  padding: 24px 0;
  border-bottom: 1px solid rgba(184, 149, 74, 0.15);
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.why-feature-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: var(--gold);
  flex-shrink: 0;
  padding-top: 2px;
}

.why-feature-text h4 {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 6px;
}

.why-feature-text p {
  font-size: 12px;
  color: rgba(245, 242, 236, 0.4);
  line-height: 1.7;
  font-weight: 400;
}

/* ─── CONTACT ─────────────────────────────────────── */
.contact {
  padding: 10px 60px 60px;
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: flex-start;
}

.contact-left {
  padding-top: 0;
}

.contact-left .section-label {
  margin-bottom: 16px;
}

.contact-left h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 32px;
  color: var(--ink);
}

.contact-left h2 em {
  font-style: italic;
  color: var(--gold);
}

.contact-left p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  font-weight: 400;
}

.contact-info {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.contact-item-text small {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

.contact-item-text a,
.contact-item-text span {
  text-decoration: none;
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
}

.contact-right {
  background: var(--ink);
  padding: 40px;
}

.contact-right h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.4);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(245, 242, 236, 0.05);
  border: 1px solid rgba(184, 149, 74, 0.2);
  padding: 14px 16px;
  color: var(--cream);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(245, 242, 236, 0.2);
}

.form-submit {
  width: 100%;
  background: var(--gold);
  border: none;
  padding: 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.3s;
  font-weight: 500;
}

.form-submit:hover {
  background: var(--gold-light);
}

/* ─── FOOTER ─────────────────────────────────────── */
footer {
  padding: 40px 60px;
  background: var(--ink);
  border-top: 1px solid rgba(184, 149, 74, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer .logo-name {
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  letter-spacing: 0.12em;
}

footer p {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(245, 242, 236, 0.3);
}

footer p span {
  color: var(--gold);
}

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  nav {
    padding: 18px 32px;
  }

  nav.scrolled {
    padding: 12px 32px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-left {
    padding: 120px 32px 60px;
    min-height: 70vh;
  }

  .hero-left::after {
    display: none;
  }

  .hero-right {
    min-height: 50vw;
  }

  .about,
  .why {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 60px 32px;
  }

  .contact {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 8px 32px 40px;
  }

  .about-right {
    border-left: none;
    border-top: 1px solid rgba(184, 149, 74, 0.3);
    padding: 40px 0 0;
  }

  .services {
    padding: 32px 32px 0;
  }

  .section-header {
    grid-template-columns: 1fr 1fr;
  }

  .section-header-counter {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 32px 24px;
  }
}

@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 40px 20px;
    gap: 40px;
  }

  .section-header {
    margin-bottom: 16px;
    padding-bottom: 10px;
  }

  .service-items {
    gap: 3px;
    margin-top: 10px;
  }

  nav {
    padding: 16px 20px;
  }

  nav.scrolled {
    padding: 12px 20px;
  }

  .logo-text {
    font-size: 20px;
  }

  .nav-links,
  .nav-cta,
  .lang-switch {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-left {
    padding: 100px 20px 50px;
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-header-desc {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 20px 0 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-badges {
    flex-direction: column;
    bottom: 20px;
    left: 20px;
    gap: 8px;
  }

  .why-box {
    padding: 36px 28px;
  }

  .contact-right {
    padding: 40px 28px;
  }

  .about,
  .why {
    padding: 40px 16px;
  }

  .contact {
    padding: 6px 16px 30px;
    gap: 40px;
  }

  .services {
    padding: 24px 16px 0;
  }

  footer {
    padding: 28px 20px;
  }
}