/*
Theme Name: ninety°
Theme URI: https://ninety.com.qa
Author: ninety°
Description: Brand theme for ninety° نايتني — tailoring, made simple. Warm-white gallery pages, Ninety Blue as the single signal, and 90° corner brackets framing every photo.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ninety
*/

/* ---------- base ---------- */
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { text-wrap: balance; }
:where(.wp-site-blocks) :focus-visible { outline: 2px solid var(--wp--preset--color--blue); outline-offset: 3px; }
.wp-site-blocks > main { margin-block-start: 0; }
img { max-width: 100%; height: auto; }

/* placeholder highlight (standard Highlight format) */
mark.has-inline-color { padding: 0 .25em; border-bottom: 1.5px dashed var(--wp--preset--color--blue); }

/* ---------- header ---------- */
.nt-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 251, 247, .95); backdrop-filter: blur(8px); border-bottom: 1px solid #DDD7D0; }
.admin-bar .nt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .nt-header { top: 46px; } }
.nt-header .wp-block-site-logo img, .nt-header .nt-logo img { height: 38px; width: auto; }
.nt-header .wp-block-navigation { font-size: 15px; }
.nt-header .wp-block-navigation a:where(:not(.wp-element-button)) { text-decoration: none; }
.nt-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--blue); box-shadow: inset 0 -2px 0 var(--wp--preset--color--blue); }
.nt-header .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; background: var(--wp--preset--color--warm-white); }

/* ---------- section rhythm ---------- */
.nt-section { padding-block: var(--wp--preset--spacing--60); }
.nt-section.nt-tight { padding-block: 56px; }
.nt-pagehead { padding-block: 72px 40px; border-bottom: 1px solid #DDD7D0; }

/* labels (eyebrows) */
.nt-label { font-family: Inter, Alexandria, sans-serif; font-size: 12px !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--blue); unicode-bidi: plaintext; margin-bottom: 0; }
.has-ink-background-color .nt-label, .has-blue-background-color .nt-label { color: #A9BBF5; }
.nt-lead { font-size: 19px; max-width: 58ch; }
.nt-muted { color: var(--wp--preset--color--mute); }
.has-ink-background-color .nt-muted { color: #CFCAC4; }
.has-blue-background-color .nt-muted { color: #D9E1FB; }

/* ---------- 90° frame on images ---------- */
.nt-frame { position: relative; overflow: visible; }
.nt-frame::before, .nt-frame::after { content: ""; position: absolute; width: 56px; height: 56px; border: 0 solid var(--wp--preset--color--blue); pointer-events: none; z-index: 1; }
.nt-frame::before { top: -12px; inset-inline-start: -12px; border-top-width: 6px; border-inline-start-width: 6px; }
.nt-frame::after { bottom: -12px; inset-inline-end: -12px; border-bottom-width: 6px; border-inline-end-width: 6px; }
.nt-frame img { display: block; width: 100%; object-fit: cover; }
.has-blue-background-color .nt-frame::before, .has-blue-background-color .nt-frame::after { border-color: var(--wp--preset--color--warm-white); }

/* ---------- hero ---------- */
.nt-hero h1 em { font-style: normal; color: var(--wp--preset--color--blue); }
.nt-hero .nt-frame img { aspect-ratio: 4 / 5; max-height: 640px; }

/* promise strip */
.nt-promise { border-top: 1px solid var(--wp--preset--color--ink); margin-top: 40px !important; gap: 0 !important; }
.nt-promise > .wp-block-column { padding-top: 16px; }
.nt-promise > .wp-block-column + .wp-block-column { padding-inline-start: 20px; border-inline-start: 1px solid #DDD7D0; }
.nt-promise p { margin: 0; }
.nt-promise .nt-big { font-size: 22px; font-weight: 700; color: var(--wp--preset--color--blue); }
.nt-promise .nt-small { font-size: 14px; color: var(--wp--preset--color--mute); }

/* ---------- cards ---------- */
.nt-cards .wp-block-image img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; transition: transform .6s; }
.nt-cards .wp-block-image { overflow: hidden; margin-bottom: 0; }
.nt-cards .wp-block-column:hover .wp-block-image img { transform: scale(1.03); }
.nt-cardmeta { border-top: 1px solid var(--wp--preset--color--ink); padding-top: 12px; justify-content: space-between; }
.nt-cardmeta h3 { margin: 0; }
.nt-price { font-family: Inter, sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; direction: ltr; margin: 0; }

/* ---------- values / numbered columns ---------- */
.nt-values { border-top: 1px solid currentColor; gap: 18px !important; }
.nt-values > .wp-block-column { padding-top: 22px; }
.nt-values .nt-n { font-family: Inter, sans-serif; font-weight: 700; font-size: 13px; opacity: .6; margin: 0; }
.nt-values h3 { font-size: 19px; margin: 6px 0; }
.nt-values p { font-size: 15px; }

/* ---------- steps ---------- */
.nt-steps { gap: 24px !important; }
.nt-steps > .wp-block-column { border-top: 6px solid var(--wp--preset--color--blue); padding-top: 26px; }
.has-blue-background-color .nt-steps > .wp-block-column { border-top-color: var(--wp--preset--color--warm-white); }
.nt-num { font-family: Inter, sans-serif; font-size: 56px !important; font-weight: 700; line-height: 1 !important; color: var(--wp--preset--color--blue); margin: 0; }
.has-blue-background-color .nt-num { color: var(--wp--preset--color--warm-white); }
.nt-steps h3 { margin: 10px 0 4px; }
.nt-steps p:not(.nt-num) { font-size: 15px; }

/* ---------- tables used as info rows ---------- */
.nt-table table { border-collapse: collapse; width: 100%; border-top: 1px solid var(--wp--preset--color--ink); }
.nt-table td, .nt-table th { border: 0 !important; border-bottom: 1px solid #DDD7D0 !important; padding: 18px 0 !important; text-align: start; vertical-align: baseline; }
.nt-table td:first-child { color: var(--wp--preset--color--mute); width: 34%; padding-inline-end: 20px !important; }
.nt-table.nt-strong td:first-child { color: var(--wp--preset--color--ink); font-weight: 600; font-size: 18px; }
.nt-table td:last-child:not(:first-child) { }
.nt-table figcaption { display: none; }

/* ---------- fabrics ---------- */
.nt-fab { border: 1px solid var(--wp--preset--color--ink); gap: 0 !important; }
.nt-fab > .wp-block-column { padding: 28px; }
.nt-fab > .wp-block-column + .wp-block-column { border-inline-start: 1px solid var(--wp--preset--color--ink); }
.nt-fab .nt-w { font-family: Inter, sans-serif; font-weight: 700; font-size: 28px; letter-spacing: .04em; color: var(--wp--preset--color--blue); margin: 0; }
.nt-swatch { height: 90px; border: 1px solid #DDD7D0; }

/* ---------- FAQ ---------- */
.nt-faq { border-top: 1px solid var(--wp--preset--color--ink); }
.nt-faq .wp-block-details { border-bottom: 1px solid #DDD7D0; padding-block: 4px; margin: 0 !important; }
.nt-faq .wp-block-details summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 20px; }
.nt-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.nt-faq .wp-block-details summary::after { content: "+"; font-family: Inter, sans-serif; color: var(--wp--preset--color--blue); font-size: 24px; line-height: 1; }
.nt-faq .wp-block-details[open] summary::after { content: "−"; }
.nt-faq .wp-block-details p { color: var(--wp--preset--color--mute); padding-bottom: 18px; margin: 0; }

/* ---------- misc ---------- */
.nt-ph-box { display: grid; place-items: center; text-align: center; min-height: 260px; background: repeating-linear-gradient(-45deg, #EFEBE7 0 10px, #E6E1DB 10px 20px); border: 1.5px dashed var(--wp--preset--color--blue); color: var(--wp--preset--color--blue); font-weight: 500; padding: 24px; }
.nt-markbox { display: grid; place-items: center; aspect-ratio: 1 / 1; }
.nt-markbox .wp-block-image img { width: 58%; margin: auto; }
.nt-endorse { font-family: Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; font-size: 12px !important; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--blue); border-color: var(--wp--preset--color--blue); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--blue); color: var(--wp--preset--color--warm-white); }
.has-blue-background-color .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: var(--wp--preset--color--warm-white); color: var(--wp--preset--color--blue); border-color: var(--wp--preset--color--warm-white); }
.has-blue-background-color .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--warm-white); border-color: var(--wp--preset--color--ink); }

/* footer */
.nt-footer a { color: inherit; text-decoration: none; opacity: .9; }
.nt-footer a:hover { opacity: 1; text-decoration: underline; }
.nt-footer .nt-bottom { border-top: 1px solid rgba(255, 251, 247, .3); padding-top: 20px; font-size: 13px; opacity: .85; }
.nt-footer mark.has-inline-color { color: var(--wp--preset--color--warm-white) !important; background: rgba(255, 255, 255, .14) !important; border-color: #BFCCF6; }
.nt-footer .wp-block-image img { height: 54px; width: auto; }
.nt-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* WhatsApp float */
.nt-wa { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 60; background: var(--wp--preset--color--ink); color: var(--wp--preset--color--warm-white) !important; text-decoration: none; display: flex; align-items: center; gap: 10px; padding: 12px 18px; font-size: 15px; font-weight: 500; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.nt-wa svg { width: 20px; height: 20px; }

@media (max-width: 781px) {
  .nt-promise > .wp-block-column + .wp-block-column { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid #DDD7D0; padding-top: 12px; }
  .nt-fab > .wp-block-column + .wp-block-column { border-inline-start: 0; border-top: 1px solid var(--wp--preset--color--ink); }
  .nt-table td { display: block; width: auto !important; padding: 4px 0 !important; border-bottom: 0 !important; }
  .nt-table tr { display: block; border-bottom: 1px solid #DDD7D0; padding: 12px 0; }
  .nt-hero .nt-frame img { aspect-ratio: 4 / 4.4; }
  .nt-wa { padding: 10px; bottom: 14px; inset-inline-end: 14px; }
  .nt-wa span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
