/*
Theme Name: Amesthetique
Theme URI: https://amesthetique.it/
Author: Antigravity
Description: Pixel-perfect replica of amesthetique.it
Version: 4.0.0
Text Domain: amesthetique
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --c-gold:    #E1C45A;
  --c-dark:    #232323;
  --c-light:   #F4F4F4;
  --c-accent:  #B7B7B7;
  --c-white:   #ffffff;

  --f-sans:    "Open Sans", sans-serif;
  --f-serif:   "Philosopher", serif;

  --max-w:     1140px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--c-dark);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-gold); text-decoration: none; }
*:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.ame-wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 15px;
}

/* ============================================================
   SITE HEADER
   ─────────────────────────────────────────────
   Home: Absolute at the bottom of the hero image (top: 100vh)
   Inner pages: Relative at the top of the page (normal flow)
   Fascia: Full screen (100% width)
   ============================================================ */
.site-header {
  width: 100%;
  z-index: 999;
}

/* Home positioning: sits at the bottom margin of the hero */
.home .site-header {
  position: absolute;
  top: 100vh;
  transform: translateY(-100%);
}

/* Inner page positioning: normal flow */
body:not(.home) .site-header {
  position: relative;
  background-color: var(--c-white);
}

/* Full-width bar matching Elementor container */
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 50px; /* Full-screen padding */
}

/* Homepage background & blur */
.home .site-header__bar {
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  background-color: rgba(255, 255, 255, 0.43);
}

/* Inner pages: simple header style */
body:not(.home) .site-header__bar {
  background-color: var(--c-white);
}

/* ── Logo Column (33%) ── */
.site-header__logo-col {
  flex: 0 0 33.333%;
  max-width: 33.333%;
}

.site-header__logo-col a { display: inline-block; line-height: 0; }

.site-header__logo-col img {
  width: 60%;
  max-width: 220px;
  height: auto;
}

/* ── Nav Column (66%) ── */
.site-header__nav-col {
  flex: 0 0 66.666%;
  max-width: 66.666%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Desktop nav menu */
.ame-nav {
  display: flex;
  align-items: center;
  list-style: none;
}

.ame-nav a {
  display: block;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-dark);
  text-decoration: none;
  padding: 50px 16px;
  position: relative;
  transition: color 0.3s;
}

.ame-nav a:hover,
.ame-nav .current-menu-item > a,
.ame-nav .current_page_item > a {
  color: var(--c-gold);
}

/* Overline indicator */
.ame-nav a::before {
  content: '';
  position: absolute;
  top: 36px; left: 16px; right: 16px;
  height: 2px;
  background-color: var(--c-gold);
  opacity: 0;
  transition: opacity 0.3s;
}

.ame-nav a:hover::before,
.ame-nav .current-menu-item > a::before,
.ame-nav .current_page_item > a::before { opacity: 1; }

/* Mobile hamburger */
.ame-toggle {
  display: none;
  background: var(--c-white);
  border: none;
  cursor: pointer;
  padding: 8px;
  line-height: 0;
  margin-left: auto;
}

.ame-toggle svg { width: 24px; height: 24px; fill: var(--c-dark); }

/* ============================================================
   HERO SECTION  (front-page)
   ============================================================ */
.ame-hero {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.ame-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(225, 196, 90, 0.5);
  z-index: 1;
}

.ame-hero__title {
  position: absolute;
  bottom: 400px;
  right: 50px;
  z-index: 2;
  text-align: right;
  font-family: var(--f-serif);
  font-size: 50px;
  font-weight: 400;
  font-style: italic;
  line-height: 55px;
  color: var(--c-light);
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.88);
}

/* ============================================================
   INTRO SECTION  (front-page)
   ============================================================ */
.ame-intro {
  margin-top: 50px;
}

.ame-intro__heading {
  font-family: var(--f-sans);
  font-size: 23px;
  font-weight: 600;
  color: var(--c-dark);
  text-align: center;
  line-height: 1.4;
  margin-bottom: 20px;
}

.ame-intro__heading b { font-weight: 700; }

.ame-intro__text {
  font-family: var(--f-sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--c-dark);
  text-align: center;
  line-height: 1.65;
  max-width: 900px;
  margin: 0 auto;
}

.ame-intro__divider {
  display: flex;
  justify-content: center;
  padding: 15px 0;
}

.ame-intro__divider-line {
  display: block;
  width: 30%;
  height: 1px;
  background-color: var(--c-gold);
  border: none;
}

/* ============================================================
   SERVICES GRID  (front-page 2×2)
   ============================================================ */
.ame-services { width: 100%; }

.ame-services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.ame-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  overflow: hidden;
  text-decoration: none;
  color: var(--c-white);
  text-align: center;
}

.ame-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1500ms ease;
  z-index: 1;
}

.ame-card:hover .ame-card__bg,
.ame-card:focus-visible .ame-card__bg {
  transform: translateY(-6%) scale(1.05);
}

.ame-card__overlay {
  position: absolute;
  inset: 0;
  background-color: #E1C45A1F;
  transition: background-color 1500ms ease;
  z-index: 2;
}

.ame-card:hover .ame-card__overlay,
.ame-card:focus-visible .ame-card__overlay { background-color: #E1C45AA1; }

.ame-card__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ame-card__icon {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity calc(1000ms / 3) ease,
              transform calc(1000ms / 3) ease;
}

.ame-card__icon svg { width: 26px; height: 26px; fill: var(--c-white); }

.ame-card:hover .ame-card__icon,
.ame-card:focus-visible .ame-card__icon { opacity: 1; transform: translateY(0); }

.ame-card__title {
  font-family: var(--f-sans);
  font-size: 23px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-white);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity calc(1000ms / 3) ease calc(1000ms / 3),
              transform calc(1000ms / 3) ease calc(1000ms / 3);
}

.ame-card:hover .ame-card__title,
.ame-card:focus-visible .ame-card__title { opacity: 1; transform: translateY(0); }

/* ============================================================
   INNER PAGE BANNER
   ─────────────────────────────────────────────
   Continuous gold border both above and below
   Includes overlay matching the original site design
   ============================================================ */
.ame-page-banner {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-top: 2px solid var(--c-gold);
  border-bottom: 2px solid var(--c-gold);
  padding: 55px 0;
}

/* Semi-transparent gold overlay to ensure content readability */
.ame-page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(233, 196, 84, 0.65); /* #e9c454 at 65% opacity */
  z-index: 1;
}

.ame-page-banner__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 0;
}

.ame-page-banner__title-col {
  flex: 0 0 50%;
  max-width: 50%;
}

.ame-page-banner__title-col h1 {
  font-family: var(--f-sans);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--c-dark);
  line-height: 1;
}

.ame-page-banner__breadcrumb-col {
  flex: 0 0 50%;
  max-width: 50%;
  text-align: right;
}

.ame-page-banner__breadcrumb {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 13px;
  color: var(--c-dark);
}

.ame-page-banner__breadcrumb a { color: var(--c-dark); text-decoration: none; }
.ame-page-banner__breadcrumb a:hover { color: var(--c-gold); }

/* ============================================================
   SERVICES MAIN PAGE LAYOUT
   ============================================================ */
.ame-services-layout {
  display: flex;
  align-items: stretch;
}

.ame-services-layout__image {
  flex: 0 0 50%;
  max-width: 50%;
  min-height: 500px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.ame-services-layout__content {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 35px;
}

.ame-services-layout__heading {
  font-family: var(--f-sans);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-dark);
  margin-bottom: 20px;
}

.ame-icon-list {
  list-style: none;
}

.ame-icon-list li {
  padding: 6px 0;
}

.ame-icon-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-sans);
  font-size: 24px;
  font-weight: 700;
  color: var(--c-gold);
  text-decoration: none;
  transition: color 0.3s;
}

.ame-icon-list a:hover { color: var(--c-dark); }

.ame-icon-list__icon {
  font-size: 21px;
  line-height: 1;
  flex-shrink: 0;
}

.ame-icon-list .ame-icon-list__text {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ============================================================
   INNER SERVICES DETAIL LAYOUT (Split Text/Image template)
   ============================================================ */
.ame-service-detail {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.ame-service-detail__content {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 60px 50px;
}

.ame-service-detail__image {
  flex: 0 0 50%;
  max-width: 50%;
  min-height: 500px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* ============================================================
   PAGE CONTENT (Generic inner pages & general markup)
   ============================================================ */
.ame-page-content {
  padding: 50px 0;
}

.entry-content {
  font-family: var(--f-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--c-dark);
  max-width: 820px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--f-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-dark);
  margin: 1.4em 0 0.6em;
}

.entry-content h1 { font-size: 22px; }
.entry-content h2 { font-size: 18px; }
.entry-content h3 { font-size: 16px; }

.entry-content p { margin-bottom: 1em; }
.entry-content a { color: var(--c-gold); text-decoration: underline; }

/* Proper standard list formatting for bullets & numbers */
.entry-content ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 1em;
}

.entry-content ol {
  list-style-type: decimal;
  padding-left: 20px;
  margin-bottom: 1em;
}

.entry-content li {
  margin-bottom: 0.5em;
  font-size: 16px;
  line-height: 1.7;
}

.entry-content img {
  margin-bottom: 1em;
  border-radius: 2px;
}

/* ============================================================
   SITE FOOTER
   ─────────────────────────────────────────────
   Aligned columns with gold links and premium Facebook button
   ============================================================ */
.site-footer {
  background-color: var(--c-dark);
  color: var(--c-light);
  padding: 50px 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.site-footer__col {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--c-light);
}

.site-footer__col-title {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-light);
  margin-bottom: 15px;
}

/* Links inside footer are gold, white on hover */
.site-footer__col a {
  color: var(--c-gold);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__col a:hover {
  color: var(--c-white);
}

.site-footer__col p { margin-bottom: 8px; }

/* Premium Facebook button styling */
.ame-fb-btn {
  display: inline-block;
  background-color: var(--c-gold);
  color: var(--c-dark) !important;
  font-family: var(--f-sans);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 12px 24px;
  border-radius: 4px;
  margin-top: 10px;
  transition: background-color 0.2s, color 0.2s;
}

.ame-fb-btn:hover {
  background-color: var(--c-white);
  color: var(--c-dark) !important;
}

/* ============================================================
   BLOG POST LIST
   ============================================================ */
.ame-posts { display: flex; flex-direction: column; gap: 40px; padding-bottom: 50px; }
.ame-post-item { border-bottom: 1px solid rgba(35,35,35,0.1); padding-bottom: 40px; }
.ame-post-title { font-family: var(--f-sans); font-size: 22px; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; }
.ame-post-title a { color: var(--c-dark); text-decoration: none; transition: color 0.3s; }
.ame-post-title a:hover { color: var(--c-gold); }
.ame-post-excerpt { font-size: 16px; line-height: 1.7; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ame-hero__title { right: 30px; bottom: 260px; }
}

@media (max-width: 767px) {
  /* Hero */
  .ame-hero { min-height: 80vw; }
  .ame-hero__title { font-size: 30px; line-height: 40px; bottom: 100px; right: 15px; }

  /* Header mobile */
  .ame-toggle { display: flex; }

  .site-header__nav-col {
    position: fixed;
    top: 0; right: -280px;
    width: 260px; height: 100vh;
    background: var(--c-white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 20px 20px;
    z-index: 9999;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
  }

  .site-header__nav-col.is-open { right: 0; }

  .ame-nav { flex-direction: column; align-items: flex-start; width: 100%; }
  .ame-nav a { padding: 10px 0; font-size: 15px; color: var(--c-dark) !important; }
  .ame-nav a::before { top: 0; left: 0; right: 0; }

  .site-header__logo-col { flex: 0 0 70%; max-width: 70%; }
  .site-header__nav-col { flex: 0 0 30%; max-width: 30%; }
  .site-header__bar { position: relative; padding: 0 20px; }

  /* Services home grid */
  .ame-services__grid { grid-template-columns: 1fr; }
  .ame-card { min-height: 200px; }
  .ame-card__icon  { opacity: 1; transform: none; transition: none; }
  .ame-card__title { opacity: 1; transform: none; transition: none; }

  /* Services page split layout */
  .ame-services-layout { flex-direction: column-reverse; }
  .ame-services-layout__image  { flex: none; width: 100%; min-height: 260px; }
  .ame-services-layout__content { flex: none; width: 100%; }

  /* Services inner detail split layout */
  .ame-service-detail { flex-direction: column-reverse; }
  .ame-service-detail__image   { flex: none; width: 100%; min-height: 300px; }
  .ame-service-detail__content { flex: none; width: 100%; padding: 30px 15px; }

  /* Page banner */
  .ame-page-banner__inner { flex-direction: column; align-items: center; text-align: center; }
  .ame-page-banner__title-col,
  .ame-page-banner__breadcrumb-col { flex: none; max-width: 100%; width: 100%; }
  .ame-page-banner__breadcrumb-col { text-align: center; margin-top: 15px; }

  /* Footer */
  .site-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .site-footer__col { text-align: center; }
}
