/*
Theme Name: Elzadent V2
Theme URI: https://elzadent.hu
Author: Hajdú Lajos
Author URI: https://www.kreativoldal.hu
Description: Egyedi WordPress téma az Elzadent fogászati rendelő számára (V2 – új arculat). Elegáns, professzionális, kétnyelvű (HU/EN) design mély ametisztlila, arany és levendula színvilággal.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: elzadent
Tags: dental, medical, bilingual, custom-theme
*/

/* ===================================
   CSS CUSTOM PROPERTIES
   =================================== */
:root {
    /* Brand Colors */
    --color-primary:     #4B2E6E;
    --color-primary-dark: #36214F;
    --color-primary-light: #6E4E97;
    --color-secondary:   #C2A15B;
    --color-secondary-dark: #A9863F;
    --color-accent:      #8E6BB8;
    --color-accent-light: #B79BD6;

    /* Neutral Colors */
    --color-bg:          #F7F1E9;
    --color-bg-alt:      #FFFFFF;
    --color-bg-dark:     #221733;
    --color-text:        #221733;
    --color-text-light:  #6B7280;
    --color-border:      #E6DCEF;

    /* Typography */
    --font-heading:      'Playfair Display', Georgia, serif;
    --font-body:         'Inter', system-ui, -apple-system, sans-serif;

    /* Font Sizes */
    --fs-xs:   0.75rem;
    --fs-sm:   0.875rem;
    --fs-base: 1rem;
    --fs-lg:   1.125rem;
    --fs-xl:   1.25rem;
    --fs-2xl:  1.5rem;
    --fs-3xl:  1.875rem;
    --fs-4xl:  2.25rem;
    --fs-5xl:  3rem;
    --fs-6xl:  3.75rem;

    /* Spacing */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Layout */
    --container-max:     1200px;
    --container-wide:    1400px;
    --container-narrow:  800px;

    /* Border Radius */
    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(75, 46, 110, 0.08);
    --shadow-md:  0 4px 16px rgba(75, 46, 110, 0.12);
    --shadow-lg:  0 8px 32px rgba(75, 46, 110, 0.16);
    --shadow-xl:  0 16px 48px rgba(75, 46, 110, 0.20);

    /* Transitions */
    --transition-fast:   150ms ease;
    --transition-base:   250ms ease;
    --transition-slow:   400ms ease;

    /* Header */
    --header-height: 112px;
}

/* ===================================
   BASE RESET & GLOBAL STYLES
   =================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

p {
    margin-bottom: var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

/* ===================================
   LAYOUT UTILITIES
   =================================== */
.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-6);
}

.container--wide {
    max-width: var(--container-wide);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding-block: var(--space-20);
}

.section--sm {
    padding-block: var(--space-12);
}

.section--lg {
    padding-block: var(--space-24);
}

.section--white {
    background-color: var(--color-bg-alt);
}

.section--cream {
    background-color: var(--color-bg);
}

.section--dark {
    background-color: var(--color-bg-dark);
    color: #fff;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: #fff;
}

/* ===================================
   TYPOGRAPHY UTILITIES
   =================================== */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl));
    font-weight: 700;
    margin-bottom: var(--space-4);
    line-height: 1.15;
}

.section-subtitle {
    font-size: var(--fs-lg);
    color: var(--color-text-light);
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: var(--space-12);
    line-height: 1.7;
}

.section-header {
    margin-bottom: var(--space-12);
}

.section-header.text-center .section-subtitle {
    margin-inline: auto;
}

/* ===================================
   GOLD ORNAMENT (arany díszvonal + gyémánt – új arculat)
   Minta: vonal — rombusz — vonal (szimmetrikus)
   =================================== */
.section-title,
.page-hero h1 {
    position: relative;
    padding-bottom: 30px;
}

/* The symmetric gold line (fades on both ends) */
.section-title::before,
.page-hero h1::before {
    content: "";
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 180px;
    height: 2px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg,
        rgba(194, 161, 91, 0) 0%,
        var(--color-secondary) 50%,
        rgba(194, 161, 91, 0) 100%);
}

/* The gold diamond gem – sits in the MIDDLE of the line */
.section-title::after,
.page-hero h1::after {
    content: "";
    position: absolute;
    bottom: 7px;
    left: 90px; /* a 180px vonal közepe */
    width: 11px;
    height: 11px;
    transform: translateX(-50%) rotate(45deg);
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    box-shadow: 0 0 0 4px rgba(194, 161, 91, 0.16);
}

/* Középre igazított címek (és minden page-hero) → középre horgonyzott dísz */
.text-center .section-title::before,
.section-header.text-center .section-title::before,
.page-hero h1::before {
    left: 50%;
    transform: translateX(-50%);
}

.text-center .section-title::after,
.section-header.text-center .section-title::after,
.page-hero h1::after {
    left: 50%;
    transform: translate(-50%, 0) rotate(45deg);
}

/* ===================================
   REUSABLE GOLD ORNAMENT (blokkokhoz)
   <div class="ornament ornament--center"><span class="ornament__gem"></span></div>
   =================================== */
.ornament {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-4) 0 var(--space-6);
    color: var(--color-secondary);
}

.ornament::before,
.ornament::after {
    content: "";
    height: 1px;
    flex: 1 1 40px;
    max-width: 90px;
}

.ornament::before {
    background: linear-gradient(90deg, rgba(194, 161, 91, 0), var(--color-secondary));
}

.ornament::after {
    background: linear-gradient(90deg, var(--color-secondary), rgba(194, 161, 91, 0));
}

.ornament__gem {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    transform: rotate(45deg);
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    box-shadow: 0 0 0 3px rgba(194, 161, 91, 0.16);
}

.ornament--center {
    justify-content: center;
}

/* ===================================
   DECORATIVE DIVIDERS
   =================================== */
.divider {
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
}

.divider--center {
    margin-inline: auto;
}

/* ===================================
   SKIP LINK (ACCESSIBILITY)
   =================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    background: var(--color-primary);
    color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-weight: 600;
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-4);
    color: white;
}

/* ===================================
   SCREEN READER ONLY
   =================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
