/*
Theme Name: Office All In One
Theme URI: https://officeallinone.co.uk
Author: Joci
Author URI: https://officeallinone.co.uk
Description: Egyedi kétnyelvű (magyar/angol) téma az Office All In One kreatív stúdióhoz. Newspaper stílusú, egyoldalas megjelenés.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: officeallinone
*/

  :root {
    --ink: #1a1a1a;
    --paper: #f5f0e8;
    --paper-dark: #e8e0d0;
    --accent: #8b0000;
    --rule: #2a2a2a;
    --faded: #6b6560;
    --highlight: #d4c5a9;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Old Standard TT', 'Times New Roman', serif;
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* Newspaper texture */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
      repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.008) 2px, rgba(0,0,0,0.008) 4px);
    pointer-events: none;
    z-index: 1000;
  }

  /* ===================== LANGUAGE TOGGLE ===================== */
  .lang-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 999;
    display: flex;
    border: 1px solid var(--ink);
    background: var(--paper);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
  }

  .lang-btn {
    padding: 6px 14px;
    font-family: 'Old Standard TT', serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--faded);
    transition: all 0.3s;
  }

  .lang-btn.active {
    background: var(--ink);
    color: var(--paper);
  }

  .lang-btn:hover:not(.active) { background: var(--paper-dark); }

  .hu { display: none; }
  body.lang-hu .hu { display: block; }
  body.lang-hu .en { display: none; }
  body.lang-hu .hu-inline { display: inline; }
  body.lang-hu .en-inline { display: none; }
  body.lang-en .hu-inline { display: none; }
  body.lang-en .en-inline { display: inline; }

  /* ===================== MASTHEAD / LOGO ===================== */
  .masthead {
    text-align: center;
    padding: 35px 20px 0;
    max-width: 1100px;
    margin: 0 auto;
  }

  .logo-container {
    margin: 0 auto 0;
    max-width: 550px;
    padding: 0 20px;
  }

  .logo-container svg {
    width: 100%;
    height: auto;
  }

  /* Inline SVG logo styles */
  .logo-frame-outer { fill: none; stroke: #1a1a1a; stroke-width: 3; }
  .logo-frame-inner { fill: none; stroke: #1a1a1a; stroke-width: 1; }
  .logo-rule-thick { stroke: #1a1a1a; stroke-width: 2.5; }
  .logo-rule-thin { stroke: #1a1a1a; stroke-width: 0.75; }
  .logo-title { font-family: 'Georgia', 'Times New Roman', serif; fill: #1a1a1a; }
  .logo-subtle { font-family: 'Georgia', 'Times New Roman', serif; fill: #6b6560; }
  .logo-accent { fill: #8b0000; }
  .logo-banner { fill: #1a1a1a; }
  .logo-banner-text { font-family: 'Georgia', 'Times New Roman', serif; fill: #f5f0e8; }
  .logo-bg { fill: #f5f0e8; }

  .edition-strip {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 10px 20px;
    font-family: 'Old Standard TT', serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--faded);
    border-bottom: 1px solid var(--rule);
  }

  .edition-strip .sep { color: var(--accent); }

  /* ===================== HERO ===================== */
  .hero {
    text-align: center;
    padding: 50px 20px 40px;
    max-width: 1100px;
    margin: 0 auto;
    border-bottom: 2px solid var(--ink);
  }

  .hero-kicker {
    font-family: 'Old Standard TT', serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--accent);
    margin-bottom: 18px;
  }

  .hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 5vw, 50px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 18px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-deck {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: clamp(14px, 2vw, 18px);
    color: var(--faded);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
  }

  .hero-flag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    padding: 10px 28px;
    border: 2px solid var(--ink);
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
  }

  .hero-flag .flag-emoji { font-size: 18px; }

  /* ===================== HERO CTA BUTTONS ===================== */
  .hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
  }

  .hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border: 2px solid var(--ink);
    transition: transform .2s ease, box-shadow .2s ease;
  }

  .hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.15);
  }

  .hero-btn-wa {
    background: var(--ink);
    color: var(--paper);
  }

  .hero-btn-email {
    background: var(--paper);
    color: var(--ink);
  }

  .hero-btn .btn-icon { font-size: 17px; }

  @media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-btn { justify-content: center; }
  }

  /* ===================== NEWSPAPER BODY ===================== */
  .newspaper-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px;
  }

  /* ===================== MAGYAR COMMUNITY SECTION ===================== */
  .magyar-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 2px solid var(--ink);
  }

  .magyar-left {
    padding: 30px 25px 30px 0;
    border-right: 1px solid var(--rule);
  }

  .magyar-right {
    padding: 30px 0 30px 25px;
  }

  .section-label {
    font-family: 'Old Standard TT', serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
  }

  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 15px;
  }

  .body-text {
    font-family: 'Old Standard TT', serif;
    font-size: 15px;
    line-height: 1.75;
    text-align: justify;
    hyphens: auto;
  }

  .body-text + .body-text { margin-top: 12px; }

  .dropcap::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 54px;
    float: left;
    line-height: 0.8;
    margin-right: 6px;
    margin-top: 5px;
    font-weight: 900;
  }

  /* ===================== SERVICES ===================== */
  .services-banner {
    background: var(--ink);
    color: var(--paper);
    text-align: center;
    padding: 12px 20px;
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    letter-spacing: 6px;
    text-transform: uppercase;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-bottom: 2px solid var(--ink);
  }

  .service-item {
    padding: 28px 18px;
    border-right: 1px solid var(--rule);
    text-align: center;
    transition: background 0.3s;
    cursor: default;
  }

  .service-item:last-child { border-right: none; }
  .service-item:hover { background: var(--paper-dark); }

  .service-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
    filter: grayscale(100%);
  }

  .service-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .service-desc {
    font-family: 'Old Standard TT', serif;
    font-size: 13px;
    line-height: 1.6;
    color: var(--faded);
  }

  /* 2nd row of services */
  .services-grid-2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-bottom: 2px solid var(--ink);
  }

  .services-grid-2 .service-item {
    border-top: none;
  }

  /* ===================== WHY US - EDITORIAL ===================== */
  .editorial-section {
    padding: 35px 0;
    border-bottom: 1px solid var(--rule);
  }

  .editorial-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(22px, 3.5vw, 36px);
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
  }

  .editorial-columns {
    column-count: 3;
    column-gap: 25px;
    column-rule: 1px solid #ddd;
  }

  .editorial-columns p {
    font-family: 'Old Standard TT', serif;
    font-size: 14px;
    line-height: 1.75;
    text-align: justify;
    margin-bottom: 12px;
  }

  /* ===================== AD SECTION / CTA ===================== */
  .ad-section {
    border: 3px double var(--ink);
    padding: 35px;
    margin: 35px 0;
    text-align: center;
    position: relative;
    background: var(--paper);
  }

  .ad-section::before {
    content: '★';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--paper);
    padding: 0 12px;
    font-size: 18px;
  }

  .ad-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 3.5vw, 34px);
    font-weight: 900;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
  }

  .ad-body {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 16px;
    line-height: 1.65;
    max-width: 620px;
    margin: 0 auto 22px;
    color: var(--faded);
  }

  .ad-cta {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 2px solid var(--ink);
    padding: 12px 38px;
    color: var(--ink);
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
  }

  .ad-cta:hover {
    background: var(--ink);
    color: var(--paper);
  }

  /* ===================== CLASSIFIEDS / STATS ===================== */
  .classifieds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 2px solid var(--ink);
    margin: 0 0 35px;
  }

  .classified-item {
    padding: 22px 18px;
    border-right: 1px solid var(--rule);
    text-align: center;
  }

  .classified-item:nth-child(3n) { border-right: none; }

  .classified-number {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 5px;
  }

  .classified-label {
    font-family: 'Old Standard TT', serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--faded);
    margin-bottom: 3px;
  }

  .classified-detail {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    font-weight: 700;
  }

  /* ===================== TESTIMONIALS ===================== */
  .testimonial-section {
    padding: 35px 0;
    text-align: center;
    border-bottom: 2px solid var(--ink);
    border-top: 2px solid var(--ink);
  }

  .testimonial-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(17px, 2.5vw, 24px);
    line-height: 1.55;
    max-width: 700px;
    margin: 0 auto 15px;
    position: relative;
    padding: 0 30px;
  }

  .testimonial-quote::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    position: absolute;
    top: -25px;
    left: -5px;
    color: var(--highlight);
    line-height: 1;
  }

  .testimonial-author {
    font-family: 'Old Standard TT', serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--faded);
  }

  /* ===================== PROCESS ===================== */
  .process-section {
    padding: 35px 0;
    border-bottom: 1px solid var(--rule);
  }

  .process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 20px;
  }

  .process-step {
    padding: 20px;
    border-right: 1px solid var(--rule);
    text-align: center;
  }

  .process-step:last-child { border-right: none; }

  .process-number {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 900;
    color: var(--highlight);
    line-height: 1;
    margin-bottom: 8px;
  }

  .process-name {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
  }

  .process-desc {
    font-family: 'Old Standard TT', serif;
    font-size: 13px;
    line-height: 1.5;
    color: var(--faded);
  }

  /* ===================== CONTACT ===================== */
  .contact-section {
    padding: 35px 0;
    text-align: center;
    border-bottom: 2px solid var(--ink);
  }

  .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 22px;
  }

  .contact-item-label {
    font-family: 'Old Standard TT', serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--faded);
    margin-bottom: 5px;
  }

  .contact-item-value {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 700;
  }

  .contact-item-value a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    transition: color 0.3s;
  }

  .contact-item-value a:hover { color: var(--accent); }

  /* ===================== FOOTER ===================== */
  .footer {
    text-align: center;
    padding: 25px 20px;
    font-family: 'Old Standard TT', serif;
    font-size: 11px;
    color: var(--faded);
    letter-spacing: 1px;
  }

  .footer-ornament {
    font-size: 18px;
    margin-bottom: 8px;
    display: block;
  }

  /* ===================== ANIMATIONS ===================== */
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .masthead { animation: fadeInUp 0.8s ease-out; }
  .hero { animation: fadeInUp 0.8s ease-out 0.15s both; }
  .magyar-section { animation: fadeInUp 0.8s ease-out 0.25s both; }

  /* ===================== RESPONSIVE ===================== */
  @media (max-width: 900px) {
    .magyar-section { grid-template-columns: 1fr; }
    .magyar-left { border-right: none; padding-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 25px; }
    .magyar-right { padding-left: 0; }
    .services-grid, .services-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .service-item:nth-child(2n) { border-right: none; }
    .service-item { border-bottom: 1px solid var(--rule); }
    .editorial-columns { column-count: 2; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-step { border-bottom: 1px solid var(--rule); }
    .contact-grid { grid-template-columns: 1fr; gap: 15px; }
    .classifieds { grid-template-columns: repeat(3, 1fr); }
  }

  @media (max-width: 600px) {
    .services-grid, .services-grid-2 { grid-template-columns: 1fr; }
    .service-item { border-right: none !important; }
    .editorial-columns { column-count: 1; }
    .process-grid { grid-template-columns: 1fr; }
    .process-step { border-right: none; }
    .edition-strip { flex-direction: column; gap: 5px; }
    .classifieds { grid-template-columns: 1fr; }
    .classified-item { border-right: none !important; border-bottom: 1px solid var(--rule); }
    .classified-item:last-child { border-bottom: none; }
    .logo-container { max-width: 90%; }
  }

  html { scroll-behavior: smooth; }
