/* =============================================
   TUDOR PERSONAL TAILOR — Landing Page Styles
   Version: 1.0
   ============================================= */

/* ── 1. Custom Properties ── */
:root {
    --clr-bg:          #ffffff;
    --clr-surface:     #f8f8f7;
    --clr-border:      #e4e4e7;
    --clr-text:        #18181b;
    --clr-muted:       #71717a;
    --clr-accent:      #C78A5E;
    --clr-accent-dark: #a0703a;
    --clr-dark:        #18181b;

    --ff-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --ff-sans:  'Inter', system-ui, -apple-system, sans-serif;

    --max-w:   1200px;
    --nav-h:   80px;
    --ease:    0.3s ease;
}

/* ── 2. Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  {
    font-family: var(--ff-sans);
    color: var(--clr-text);
    background: var(--clr-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img   { display: block; max-width: 100%; height: auto; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
button { font-family: inherit; }

/* ── 3. Layout ── */
.container {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: 24px;
}

/* ── 4. Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 32px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--ease), color var(--ease), border-color var(--ease);
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn-primary  { background: var(--clr-dark); color: #fff; border-color: var(--clr-dark); }
.btn-primary:hover { background: var(--clr-accent); border-color: var(--clr-accent); }
.btn-outline  { background: transparent; color: var(--clr-text); border-color: var(--clr-border); }
.btn-outline:hover { background: var(--clr-surface); }
.btn-white    { background: #fff; color: var(--clr-text); border-color: #fff; }
.btn-white:hover { background: var(--clr-accent); color: #fff; border-color: var(--clr-accent); }

/* ── 5. Navbar ── */
#navbar {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-border);
    transition: box-shadow var(--ease);
}
#navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.07); }

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 32px;
}
.navbar-logo img { height: 32px; width: auto; }

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}
.navbar-nav a {
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--clr-muted);
    transition: color var(--ease);
}
.navbar-nav a:hover     { color: var(--clr-text); }
.navbar-nav a.nav-accent { color: var(--clr-accent); font-weight: 500; }

.navbar-cta { height: 40px; padding: 0 20px; font-size: 11px; }

/* hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 36px;
    height: 36px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--clr-text);
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── 6. Mobile Menu ── */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: #fff;
    z-index: 99;
    padding: 40px 24px;
    flex-direction: column;
    overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu nav  { display: flex; flex-direction: column; gap: 28px; }
.mobile-menu nav a {
    font-size: 20px;
    color: var(--clr-muted);
    font-weight: 300;
    letter-spacing: 0.03em;
    transition: color var(--ease);
}
.mobile-menu nav a:hover    { color: var(--clr-text); }
.mobile-menu nav a.nav-accent { color: var(--clr-accent); }
.mobile-menu nav .btn { margin-top: 8px; align-self: flex-start; }

/* ── 7. Hero ── */
.hero {
    padding-top: calc(var(--nav-h) + 80px);
    padding-bottom: 80px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.hero-text { max-width: 560px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin-bottom: 32px;
    border: 1px solid rgba(199,138,94,0.3);
    background: rgba(199,138,94,0.05);
    color: var(--clr-accent);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.hero h1 {
    font-family: var(--ff-serif);
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--clr-muted); }

.hero-desc {
    font-size: 17px;
    color: var(--clr-muted);
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 40px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-img-wrap { position: relative; }
.hero-img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--clr-surface);
    transform: translate(16px, 16px);
    z-index: -1;
}
.hero-img-wrap img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: top center;
}

/* ── 8. Steps Section ── */
.steps-section {
    padding: 96px 0;
    background: var(--clr-surface);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
}
.section-heading { text-align: center; max-width: 560px; margin: 0 auto 80px; }
.section-heading h2 {
    font-family: var(--ff-serif);
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 300;
    margin-bottom: 16px;
}
.heading-rule {
    width: 48px; height: 1px;
    background: var(--clr-accent);
    margin: 0 auto 24px;
}
.heading-rule--left { margin-inline-start: 0; }
.section-heading p { font-size: 17px; color: var(--clr-muted); font-weight: 300; line-height: 1.7; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    position: relative;
}
.steps-grid::before {
    content: '';
    position: absolute;
    top: 24px; left: 10%; right: 10%;
    height: 1px;
    background: var(--clr-border);
    z-index: 0;
}
.step { text-align: center; }
.step-icon {
    width: 48px; height: 48px;
    margin: 0 auto 24px;
    background: #fff;
    border: 1px solid var(--clr-border);
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1;
    color: var(--clr-text);
    transition: border-color var(--ease), color var(--ease);
}
.step:hover .step-icon { border-color: var(--clr-accent); color: var(--clr-accent); }
.step h3 { font-size: 15px; font-weight: 500; letter-spacing: 0.03em; margin-bottom: 12px; }
.step p  { font-size: 13px; color: var(--clr-muted); font-weight: 300; line-height: 1.65; }

/* ── 9. Benefits Section ── */
.benefits-section { padding: 120px 0; overflow: hidden; }
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.benefits-img-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.benefits-img-grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.benefits-img-grid .img-offset { margin-top: 48px; }

.benefits-text h2 {
    font-family: var(--ff-serif);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 48px;
}
.benefits-text h2 em { font-style: italic; color: var(--clr-muted); }

.benefits-list { display: flex; flex-direction: column; gap: 36px; }
.benefits-list li { display: flex; gap: 24px; align-items: flex-start; }
.bullet {
    flex-shrink: 0;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--clr-accent);
    margin-top: 7px;
}
.benefits-list strong {
    display: block;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}
.benefits-list p { font-size: 14px; color: var(--clr-muted); font-weight: 300; line-height: 1.65; }

.link-accent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 48px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-accent);
    transition: color var(--ease);
}
.link-accent:hover { color: var(--clr-text); }

/* ── 10. Catalog Section ── */
.catalog-section {
    padding: 96px 0;
    border-top: 1px solid var(--clr-border);
}
.catalog-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
    gap: 24px;
}
.catalog-heading h2 {
    font-family: var(--ff-serif);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 300;
    margin-bottom: 16px;
}
.link-muted {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-muted);
    transition: color var(--ease);
    white-space: nowrap;
    padding-bottom: 4px;
}
.link-muted:hover { color: var(--clr-text); }

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.catalog-card { cursor: pointer; }
.catalog-img-wrap {
    position: relative;
    overflow: hidden;
    background: var(--clr-surface);
    aspect-ratio: 3/4;
    margin-bottom: 20px;
}
.catalog-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.catalog-card:hover .catalog-img-wrap img { transform: scale(1.04); }
.catalog-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.catalog-card:hover .catalog-overlay { transform: translateY(0); }
.catalog-overlay span {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 12px 24px;
    color: var(--clr-text);
}
.catalog-card h3 { font-size: 15px; font-weight: 500; letter-spacing: 0.03em; margin-bottom: 4px; }
.catalog-card p  { font-size: 13px; color: var(--clr-muted); font-weight: 300; }

/* ── 11. CTA Band ── */
.cta-band {
    padding: 120px 0;
    background: var(--clr-dark);
    color: #fff;
    text-align: center;
}
.cta-band h2 {
    font-family: var(--ff-serif);
    font-size: clamp(28px, 3.5vw, 46px);
    font-weight: 300;
    margin-bottom: 24px;
    max-width: 700px;
    margin-inline: auto;
    line-height: 1.2;
}
.cta-band p {
    font-size: 17px;
    color: rgba(255,255,255,0.5);
    font-weight: 300;
    margin-bottom: 48px;
    max-width: 540px;
    margin-inline: auto;
    line-height: 1.75;
}

/* ── 12. Footer / Contact ── */
#contact {
    background: var(--clr-bg);
    border-top: 1px solid var(--clr-border);
    padding-top: 80px;
    padding-bottom: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}
.footer-brand img { height: 32px; margin-bottom: 24px; }
.footer-brand p   { font-size: 13px; color: var(--clr-muted); font-weight: 300; line-height: 1.75; }

.footer-col h4 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.footer-col > ul { display: flex; flex-direction: column; gap: 16px; }
.footer-col > ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: var(--clr-muted);
    font-weight: 300;
    line-height: 1.6;
}
.footer-col > ul li svg { flex-shrink: 0; margin-top: 2px; }
.footer-col > ul li small { font-size: 12px; }
.footer-col > ul li a { transition: color var(--ease); }
.footer-col > ul li a:hover { color: var(--clr-accent); }

.footer-links { display: flex !important; flex-direction: column !important; gap: 12px !important; }
.footer-links li { display: block !important; }
.footer-links a { font-size: 13px; color: var(--clr-muted); font-weight: 300; transition: color var(--ease); }
.footer-links a:hover { color: var(--clr-accent); }

.map-wrap {
    border: 1px solid var(--clr-border);
    overflow: hidden;
    margin-bottom: 48px;
}
.map-wrap iframe { display: block; }

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--clr-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: var(--clr-muted); font-weight: 300; }

.footer-bottom-links { display: flex; gap: 24px; align-items: center; }
.footer-bottom-links a { font-size: 12px; color: var(--clr-muted); font-weight: 300; transition: color var(--ease); }
.footer-bottom-links a:hover { color: var(--clr-text); }
.admin-link { color: #d4d4d8 !important; font-size: 11px !important; }
.admin-link:hover { color: var(--clr-muted) !important; }

/* ── 13. Fade-in Animation ── */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── 14. Responsive ── */
@media (max-width: 1024px) {
    .footer-grid    { grid-template-columns: 1fr 1fr; }
    .benefits-grid  { gap: 48px; }
}

@media (max-width: 768px) {
    :root { --nav-h: 64px; }

    .navbar-nav, .navbar-cta { display: none; }
    .hamburger { display: flex; }

    .hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 56px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-text { max-width: 100%; }
    .hero-image { order: -1; }
    .hero-img-wrap img { aspect-ratio: 16/9; object-position: top; }
    .hero-img-wrap::before { display: none; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; justify-content: center; }

    .steps-section { padding: 64px 0; }
    .steps-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .steps-grid::before { display: none; }
    .section-heading { margin-bottom: 48px; }

    .benefits-section { padding: 80px 0; }
    .benefits-grid { grid-template-columns: 1fr; gap: 48px; }
    .benefits-images { order: 2; }
    .benefits-img-grid .img-offset { margin-top: 0; }

    .catalog-section { padding: 64px 0; }
    .catalog-grid { grid-template-columns: 1fr 1fr; }
    .catalog-heading { flex-direction: column; align-items: flex-start; }
    .link-muted { display: none; }

    .cta-band { padding: 80px 0; }

    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
    .steps-grid  { grid-template-columns: 1fr; }
    .catalog-grid { grid-template-columns: 1fr; max-width: 360px; }
}

/* ── 15. Modal Programare ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-box {
    background: #fff;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.25s ease;
}
.modal-overlay.active .modal-box { transform: translateY(0); }

.modal-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: var(--clr-muted);
    cursor: pointer;
    padding: 4px 8px;
    transition: color var(--ease);
}
.modal-close:hover { color: var(--clr-text); }

.modal-header { margin-bottom: 28px; }
.modal-header h2 {
    font-family: var(--ff-serif);
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 8px;
}
.modal-header p { font-size: 14px; color: var(--clr-muted); font-weight: 300; }

/* Form elements */
.form-group { margin-bottom: 20px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-text);
    margin-bottom: 8px;
}
.req { color: var(--clr-accent); }
.form-group input,
.form-group select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--clr-border);
    background: #fff;
    font-family: var(--ff-sans);
    font-size: 14px;
    color: var(--clr-text);
    outline: none;
    transition: border-color var(--ease);
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--clr-accent); }
.form-group input.input-error,
.form-group select.input-error { border-color: #e53e3e; }

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2371717a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}
.form-group select:disabled { background-color: var(--clr-surface); color: var(--clr-muted); cursor: not-allowed; }

.field-error {
    display: block;
    font-size: 12px;
    color: #e53e3e;
    margin-top: 5px;
    min-height: 16px;
}
.form-general-error { margin-top: 4px; font-size: 13px; }

.form-actions { margin-top: 28px; }
.form-actions .btn { width: 100%; height: 52px; font-size: 13px; }
.form-actions .btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Success state */
.form-success {
    text-align: center;
    padding: 32px 0;
}
.success-icon {
    width: 56px; height: 56px;
    margin: 0 auto 20px;
    background: rgba(199,138,94,0.1);
    color: var(--clr-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.form-success p {
    font-size: 15px;
    color: var(--clr-text);
    font-weight: 300;
    line-height: 1.7;
    max-width: 360px;
    margin: 0 auto;
}

@media (max-width: 520px) {
    .modal-box { padding: 28px 20px; }
    .form-row  { grid-template-columns: 1fr; gap: 0; }
}
