/* antonovich-design.ae, site-wide type and corners (2026-12-04).
 Owner picks: headings = the logo serif (Cormorant Garamond 600), text = the logo sans (Jost 400-600), Arabic = Noto Naskh
 Arabic (headings) and Noto Sans Arabic (text). Corners as in the homepage demo v2. Fonts: SIL OFL 1.1, licences next to
 the files in /themes/default/app/fonts/ag/. Rules: knowledge/guides/ui-design-rules.md 1.1, 1.3, 1.5, 1.6, 3.6.
 Revert: remove the <link> to this file in layouts/app.blade.php. */
@font-face{font-family:"AG Head";src:url("/themes/default/app/fonts/ag/cormorant-garamond-cyrillic-ext.woff2?v=1") format("woff2");font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:"AG Head";src:url("/themes/default/app/fonts/ag/cormorant-garamond-cyrillic.woff2?v=1") format("woff2");font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:"AG Head";src:url("/themes/default/app/fonts/ag/cormorant-garamond-latin-ext.woff2?v=1") format("woff2");font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"AG Head";src:url("/themes/default/app/fonts/ag/cormorant-garamond-latin.woff2?v=1") format("woff2");font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"AG Text";src:url("/themes/default/app/fonts/ag/jost-cyrillic.woff2?v=1") format("woff2");font-weight:400 600;font-style:normal;font-display:swap;unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:"AG Text";src:url("/themes/default/app/fonts/ag/jost-latin-ext.woff2?v=1") format("woff2");font-weight:400 600;font-style:normal;font-display:swap;unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"AG Text";src:url("/themes/default/app/fonts/ag/jost-latin.woff2?v=1") format("woff2");font-weight:400 600;font-style:normal;font-display:swap;unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"AG Text Ar";src:url("/themes/default/app/fonts/ag/noto-sans-arabic-arabic.woff2?v=1") format("woff2");font-weight:400 600;font-style:normal;font-display:swap;unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
@font-face{font-family:"AG Head Ar";src:url("/themes/default/app/fonts/ag/noto-naskh-arabic-arabic.woff2?v=1") format("woff2");font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}

:root {
  --ag-head: "AG Head", "AG Head Ar", Georgia, serif;
  --ag-text: "AG Text", "AG Text Ar", Arial, sans-serif;
  --ag-r: 16px;      /* cards, photos, video, panels, popups */
  --ag-r-s: 8px;     /* fields, dropdowns, small boxes */
  --ag-pill: 999px;  /* buttons, tabs, chips, slider arrows */
}

/* ---------- 1. Typefaces: headings Cormorant Garamond, text Jost, Arabic Noto Naskh / Noto Sans (rule 1.5: two families).
   The logo wordmark keeps its own inline fonts. Weights are set by the @font-face ranges above, not here. */
html body,
body *:not(:is(.s-header-logo, .s-footer-logo, .s-menu-logo) *) {
  font-family: var(--ag-text) !important;
  font-synthesis-weight: none;
}
body :is(h1, h2, h3:not(.fh-inq-label), h4, h5, h6, .s-text-descr [style*="font-size: 3"], .s-text-descr [style*="font-size: 4"],
  .s-questions-title, .lp-visual__title, .lp-social__num, .s-why-num, .pstep-n, .arch-stat > b, .psn > b,
  .hero-stats .n, .world-metrics .n, .st > .n, .m > .n, .rv-agg > b, .sign .nm, .pbody .ttl, .text-style,
  .rt, .ax-h3, .text-left-half, .rl-reel-cta-title, .p-notfound-hero-descr, .arch-card-title),
body :is(h1, h2, h3:not(.fh-inq-label), h4, h5, h6, .s-text-descr [style*="font-size: 3"], .s-text-descr [style*="font-size: 4"],
  .s-questions-title, .lp-visual__title, .lp-social__num, .s-why-num, .pstep-n, .arch-stat > b, .psn > b,
  .hero-stats .n, .world-metrics .n, .st > .n, .m > .n, .rv-agg > b, .sign .nm, .pbody .ttl, .text-style,
  .rt, .ax-h3, .text-left-half, .rl-reel-cta-title, .p-notfound-hero-descr, .arch-card-title) * {
  font-family: var(--ag-head) !important;
  font-style: normal !important;            /* no italic serif */
  font-variant-numeric: lining-nums;
}
/* rule 1.6: no positive tracking on large type */
body :is(h1, h2, .s-questions-title, .lp-visual__title, .text-style, .rt, .text-left-half, .p-notfound-hero-descr,
  .s-services-cont-title1, .rv-agg > b, .ax-h3, .s-text-descr [style*="font-size: 3"], .s-text-descr [style*="font-size: 4"]),
body :is(h1, h2, .s-questions-title, .lp-visual__title, .text-style, .rt, .text-left-half, .p-notfound-hero-descr,
  .s-services-cont-title1) * { letter-spacing: 0 !important; }
/* rule 1.3: a heading is never smaller than the text around it */
body :is(li.pstep > h3, .arch-step h3, .arch-service h3) { font-size: 20px !important; line-height: 1.25 !important; }
@media (max-width: 767px) { body h1.text-style-portfolio { font-size: 32px !important; line-height: 1.25 !important; } }

/* rule 1.1: running text 1.5 line height */
body :is(p, dd, blockquote, td, .s-posts-descr, .s-team-item-descr, .p-construction-services-descr, .arch-faq-a,
  .s-footer-copy, .s-features-descr, .s-text-descr, .s-text-descr li, article li, main li > p,
  .p-landscape-solutions-descr, .s-offer-item-descr, summary):not(:is(.s-header-logo, .s-footer-logo, .s-menu-logo) *) {
  line-height: 1.5 !important;
}

/* ---------- 2. Corners (demo v2): 16 cards and photos, 8 fields and dropdowns, pill buttons, circle icons. Full-width photos stay square. */
/* buttons, tabs, chips, arrows */
body :is(.btn, .btn-submit, .arch-btn, .fh-btn, .lp-submit, .lp-whatsapp, .s-header-phone, .agpc-tab, .rl-tab,
  .tab, .arch-chip, .pl-btn, .p-portfolio-nav-arrow, .s-furniture-slider-arrow, .s-furniture-slider-arrow-inner,
  .home-shorts__arrow, .hero-award, .lp-visual__badge, .mixitup-control, .s-projects-pages a, .ag-gsrc,
  .btn-cart-add, .s-breadcrumb-list a, .ppi-band-btn, .world-pills span, .rpause, .palace-caps span, .vbadge,
  button[type=submit], input[type=submit]) {
  border-radius: var(--ag-pill) !important;
}
.p-portfolio-nav-arrow picture { border-radius: 50%; overflow: hidden; }
/* fields */
body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]), textarea, select, .nice-select) {
  border-radius: var(--ag-r-s) !important;
}
/* dropdowns */
body :is(.s-header-menu-sub-list, .nice-select-dropdown, .nice-select .list, .ring a.slice) { border-radius: var(--ag-r-s) !important; }
/* cards and photos */
body :is(.s-projects-item, .s-posts-slider-item > a, .s-posts-slider-item .overflow-hidden, .js-video-modal, .home-shorts__media,
  .home-shorts__play, .s-questions-img picture, .arch-card, .arch-service, .arch-hero-media picture, .lp-card,
  .p-portfolio-gallery-img a, .p-portfolio-gallery-img picture, .s-about-img picture, .s-team-item-img, .s-services-item,
  .agsc-img, .kav-card, .ipv-card, .agv-card, .fov-card, .ldv-card, .agab-card,
  a.cat, a.res-card, a.proj, article.rv, li.pstep, .svid, .pillar, a.furn, .thumb, .ls-vid, .palace-figure, .palace-media, .about-media img,
  .hero-stats, .world-metrics .m, .award-card, .cert-card, .tw-t,
  .s-text-descr picture, :is(.s-text-descr, article) img:not(picture > img), article picture, p > a > picture, p > picture,
  .p-furnitureitem-item-bg, .s-text-descr p > a:has(> picture, > img), a.lead-private, .lead-form, .ax-tgrid > li > a, .rl-hs-frame) {
  border-radius: var(--ag-r) !important;
}
body :is(.s-projects-item, .s-posts-slider-item > a, .s-posts-slider-item .overflow-hidden, .home-shorts__media, .s-questions-img picture,
  .arch-card, .arch-hero-media picture, .lp-card, .p-portfolio-gallery-img a, .s-about-img picture, .s-team-item-img, .agsc-img,
  .s-text-descr picture, article picture, p > a > picture, p > picture, .palace-figure) { overflow: hidden; }
/* certificate and award scans sit inside a padded card: square, as rule 3.6 asks (16 - 27 < 0) */
body :is(.cert-card, .award-card) img { border-radius: 0 !important; }
body .arch-hero-media::before { border-radius: var(--ag-r) !important; } /* the offset frame follows the photo's corners */

/* ---------- 3. Rule 1.2 with the new text face: Jost is about 7 % narrower than OktaNeue / Hanken Grotesk, so these blocks
   went past 75 characters per line. 30em keeps them at 62-71 (EN 6.7 px, RU 7.7 px per character at 16 px). */
body :is(.section-head > p, .row-head .lhs > p, .about-in .reveal > p, .seo-body .clamp > p:not(:first-child), .agab-card-text,
  .p-construction-services-top-descr) { max-width: 30em !important; }
body .p-construction-services-top-descr { margin-inline: auto !important; }
