/*
Theme Name: Tonitek
Theme URI: https://tonitek.fi
Author: Tonitek Oy
Description: Tonitek Oy virallinen teema
Version: 1.0
*/

:root {
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-dark: #9A7A2E;
  --black: #0A0A0A;
  --black-soft: #111111;
  --black-card: #161616;
  --white: #F5F0E8;
  --white-dim: #B0A898;
  --border: rgba(201,168,76,0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--white); font-family: 'Barlow', sans-serif; font-weight: 300; line-height: 1.7; overflow-x: hidden; }

/* NAV */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(10,10,10,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); height: 70px; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 700; color: var(--gold); letter-spacing: 0.08em; text-decoration: none; }
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-menu ul { list-style: none; display: flex; gap: 2rem; }
.nav-menu ul li a { color: var(--white-dim); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.3s; }
.nav-menu ul li a:hover { color: var(--gold); }
.nav-cta { background: var(--gold); color: var(--black) !important; padding: 0.5rem 1.2rem; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; transition: background 0.3s; }
.nav-cta:hover { background: var(--gold-light); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--gold); }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; padding: 120px 2rem 4rem; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(201,168,76,0.08) 0%, transparent 70%); }
.hero-lines { position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(201,168,76,0.04) 80px); }
.hero-content { position: relative; max-width: 800px; }
.hero-eyebrow { font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; }
.hero-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(3rem, 8vw, 6rem); font-weight: 700; line-height: 1.05; color: var(--white); margin-bottom: 1.5rem; }
.hero-title span { color: var(--gold); }
.hero-sub { font-size: 1rem; color: var(--white-dim); max-width: 520px; margin: 0 auto 2.5rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-scroll span { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white-dim); }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scrollPulse 2s infinite; }

/* BUTTONS */
.btn-primary { background: var(--gold); color: var(--black); padding: 0.9rem 2rem; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; transition: background 0.3s, transform 0.2s; display: inline-block; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--gold); color: var(--gold); padding: 0.9rem 2rem; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; transition: all 0.3s; display: inline-block; }
.btn-outline:hover { background: var(--gold); color: var(--black); transform: translateY(-2px); }

/* SECTIONS */
section { padding: 6rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; color: var(--white); margin-bottom: 1rem; }
.section-desc { color: var(--white-dim); max-width: 540px; font-size: 0.95rem; }
.gold-line { width: 60px; height: 1px; background: var(--gold); margin: 1.5rem 0; }

/* PALVELUT */
.palvelut-section { background: var(--black-soft); }
.palvelut-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; margin-top: 3rem; border: 1px solid var(--border); }
.palvelu-card { background: var(--black-card); padding: 2.5rem 2rem; border: 1px solid var(--border); transition: background 0.3s, transform 0.3s; text-decoration: none; display: block; }
.palvelu-card:hover { background: #1a1a1a; transform: translateY(-4px); }
.palvelu-icon { font-size: 2rem; margin-bottom: 1.2rem; }
.palvelu-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; color: var(--gold); margin-bottom: 0.8rem; }
.palvelu-desc { color: var(--white-dim); font-size: 0.9rem; line-height: 1.6; }
.palvelu-list { list-style: none; margin-top: 0.8rem; }
.palvelu-list li { color: var(--white-dim); font-size: 0.85rem; padding: 0.2rem 0 0.2rem 1rem; position: relative; }
.palvelu-list li::before { content: '—'; position: absolute; left: 0; color: var(--gold-dark); font-size: 0.7rem; }

/* INFO STRIP */
.info-strip { background: var(--gold); padding: 3rem 2rem; text-align: center; }
.info-strip p { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.2rem, 3vw, 1.8rem); color: var(--black); font-weight: 600; max-width: 700px; margin: 0 auto; line-height: 1.4; }

/* ALUEET */
.alueet-section { background: var(--black); }
.alueet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem; align-items: start; }
.alue-list { list-style: none; margin-top: 1rem; }
.alue-list li { padding: 0.8rem 0; border-bottom: 1px solid var(--border); color: var(--white-dim); font-size: 0.9rem; display: flex; align-items: center; gap: 0.8rem; }
.alue-list li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* YHTEYSTIEDOT */
.yhteystiedot-section { background: var(--black); }
.yhteystiedot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; flex-direction: column; gap: 0.3rem; }
.contact-label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.contact-value { color: var(--white); font-size: 1rem; text-decoration: none; transition: color 0.3s; }
.contact-value:hover { color: var(--gold); }
.whatsapp-btn { display: inline-flex; align-items: center; gap: 0.6rem; background: #25D366; color: #fff; padding: 0.8rem 1.5rem; font-size: 0.85rem; font-weight: 500; text-decoration: none; margin-top: 0.5rem; transition: opacity 0.3s; width: fit-content; }
.whatsapp-btn:hover { opacity: 0.85; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--white-dim); }
.form-group input, .form-group textarea, .form-group select { background: var(--black-card); border: 1px solid var(--border); color: var(--white); font-family: 'Barlow', sans-serif; font-size: 0.9rem; padding: 0.8rem 1rem; outline: none; transition: border-color 0.3s; width: 100%; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--black-card); }
.form-submit { background: var(--gold); color: var(--black); border: none; padding: 1rem 2rem; font-family: 'Barlow', sans-serif; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background 0.3s; align-self: flex-start; }
.form-submit:hover { background: var(--gold-light); }

/* PAGE */
.page-main { padding-top: 70px; }
.page-hero-img img { width: 100%; height: 400px; object-fit: cover; }
.page-body { padding: 4rem 0; }
.page-text { color: var(--white-dim); line-height: 1.8; margin-bottom: 2rem; }
.page-text p { margin-bottom: 1rem; }
.page-text h2, .page-text h3 { font-family: 'Cormorant Garamond', serif; color: var(--gold); margin: 1.5rem 0 0.5rem; }
.palvelu-list-large { list-style: none; margin: 1.5rem 0 2rem; }
.palvelu-list-large li { padding: 0.6rem 0 0.6rem 1.2rem; border-bottom: 1px solid var(--border); color: var(--white-dim); position: relative; }
.palvelu-list-large li::before { content: '—'; position: absolute; left: 0; color: var(--gold); }
.page-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* FOOTER */
.site-footer { background: var(--black-card); border-top: 1px solid var(--border); padding: 3rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 700; color: var(--gold); letter-spacing: 0.08em; }
.footer-tagline { font-size: 0.8rem; color: var(--white-dim); margin-top: 0.3rem; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.footer-links a { color: var(--white-dim); text-decoration: none; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { max-width: 1100px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy p { font-size: 0.75rem; color: var(--white-dim); opacity: 0.6; }

/* ANIMAATIOT */
@keyframes scrollPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* MOBIILI */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu { display: none; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: var(--black-card); padding: 2rem; gap: 1.5rem; border-bottom: 1px solid var(--border); }
  .nav-menu.open { display: flex; }
  .nav-menu ul { flex-direction: column; gap: 1.5rem; }
  .alueet-grid, .yhteystiedot-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { flex-direction: column; align-items: flex-start; }
  .page-cta { flex-direction: column; }
}
.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-nav { top: 46px; } }
.nav-contact { display: flex; gap: 1rem; align-items: center; }
.nav-contact a { color: var(--white-dim); text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
.nav-contact a:hover { color: var(--gold); }
@media (max-width: 768px) { .nav-contact { display: none; } }
.nav-phone { display: flex; align-items: center; gap: 6px; color: var(--white) !important; }
.nav-whatsapp { display: flex; align-items: center; gap: 6px; background: #25D366; color: #fff !important; padding: 0.3rem 0.8rem; border-radius: 20px; }
.nav-whatsapp:hover { opacity: 0.85; }
.nav-contact a { font-size: 1rem !important; }
.nav-contact a { font-size: 1.15rem !important; }
.nav-phone { font-weight: 500 !important; }
.top-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 101; background: #111; border-bottom: 1px solid var(--border); padding: 0.4rem 2rem; }
.site-nav { top: 37px; }
.admin-bar .top-bar { top: 32px; }
.admin-bar .site-nav { top: 69px; }
.top-bar-phone, .top-bar-wa { color: #fff !important; text-decoration: none !important; }
.top-bar-wa { background: #25D366; padding: 0.2rem 0.8rem; border-radius: 20px; }
.top-bar-inner { justify-content: flex-end; gap: 1.5rem; }
.nav-links li a { font-size: 0.72rem !important; letter-spacing: 0.06em !important; }
.nav-menu { gap: 1rem !important; }
.nav-links { gap: 0.8rem !important; }
.nav-links li a { font-size: 0.85rem !important; letter-spacing: 0.08em !important; }
