/*
Theme Name:   Always Gorgeous
Theme URI:    https://alwaysgorgeousbeauty.com
Template:     astra
Author:       Victolab
Version:      1.0
Description:  Child theme for Always Gorgeous LLC, Boca Raton.
*/

/* The logo is black script on white and the photography is already
   rich - hair work and kittens both. A competing accent colour would
   fight them, so the palette stays neutral and the photos carry it. */
:root {
  --ag-ink:  #1a1a1a;
  --ag-warm: #b8926a;
  --ag-soft: #f7f4f0;
  --ag-line: #e5ded6;
}

/* ---------- buttons ---------- */
/* Quiet, not shouty. The next step here is usually a conversation,
   not an impulse purchase.                                          */
.ast-button, .button, button, input[type="submit"],
.wp-block-button__link,
.woocommerce a.button, .woocommerce button.button,
.woocommerce #respond input#submit, .woocommerce input.button {
  background: var(--ag-ink) !important;
  border: 1px solid var(--ag-ink) !important;
  color: #fff !important;
  border-radius: 2px !important;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 500;
  padding: .8em 1.8em !important;
  text-decoration: none !important;
  transition: background .18s ease, color .18s ease;
}
.ast-button:hover, .button:hover, button:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: transparent !important;
  color: var(--ag-ink) !important;
}

/* Enquiry buttons read differently from Add to Cart, so a visitor can
   tell at a glance which products are actually buyable.              */
.woocommerce .product_type_external .button {
  background: var(--ag-warm) !important;
  border-color: var(--ag-warm) !important;
}

/* ---------- layout ---------- */
.ag-hero { padding: 3rem 0 1.5rem; }
.ag-hero h1 {
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: .6rem;
}

.ag-section { padding: 2.5rem 0; }
.ag-section--soft {
  background: var(--ag-soft);
  padding: 3rem 2rem;
  margin-top: 1rem;
}
.ag-section h2 { font-weight: 400; margin-bottom: .7rem; }

.ag-lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4a4a4a;
  max-width: 42rem;
}

/* Hair and kittens side by side - the two pillars of the business.
   Products sit full width beneath as the add-on they are.            */
.ag-pair {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1.8rem;
}
@media (max-width: 880px) { .ag-pair { grid-template-columns: 1fr; } }

.ag-card {
  border: 1px solid var(--ag-line);
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* The photographs are portrait - a short crop decapitates the subject,
   an uncropped one makes the page endless. Fixed height weighted to
   the top keeps faces in frame without the scroll.                   */
.ag-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.ag-card__body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.ag-card__body h3 { margin: 0 0 .5rem; font-weight: 500; font-size: 1.15rem; }
.ag-card__body p { color: #5a5a5a; margin-bottom: 1.1rem; flex: 1; }
.ag-card__body .ast-button { align-self: flex-start; }

/* Products card is wide: image left, text right */
.ag-wide .ag-card { display: grid; grid-template-columns: 38% 62%; }
.ag-wide .ag-card img { height: 100%; min-height: 240px; }
@media (max-width: 880px) {
  .ag-wide .ag-card { grid-template-columns: 1fr; }
  .ag-wide .ag-card img { height: 240px; }
}

/* ---------- shop ---------- */
.woocommerce ul.products li.product { text-align: left; }
.woocommerce ul.products li.product img { border-radius: 3px; margin-bottom: .8rem; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1rem; font-weight: 500; padding-bottom: .2rem;
}
.woocommerce span.onsale { display: none; }
.ag-kitten-meta { font-size: .85rem; color: #7a7a7a; letter-spacing: .02em; }

/* ---------- header and footer ---------- */
.ast-primary-header-bar { border-bottom: 1px solid var(--ag-line); }
.ag-footer-links { text-align: center; padding: 1rem 0 .3rem; font-size: .86rem; }
.ag-footer-links a { color: #666; margin: 0 .6rem; text-decoration: none; }
.ag-footer-links a:hover { color: var(--ag-ink); text-decoration: underline; }

/* Responsive video - YouTube embeds are fixed-size by default and
   overflow on phones */
.ag-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1.5rem 0;
  border-radius: 3px;
}
.ag-video iframe,
.ag-video object,
.ag-video embed {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

/* ---- enquiry form on product pages ---- */
.ag-enquiry-form {
  margin-top: 2rem; padding: 1.8rem;
  background: var(--ag-soft);
  border: 1px solid var(--ag-line);
  border-radius: 3px;
}
.ag-enquiry-form h3 { margin: 0 0 .6rem; font-weight: 500; font-size: 1.2rem; }
.ag-enquiry-note { font-size: .95rem; color: #5a5a5a; margin-bottom: 1.3rem; line-height: 1.6; }
.ag-enquiry-form label { display: block; margin-bottom: .9rem; font-size: .88rem; color: #444; }
.ag-enquiry-form input[type=text],
.ag-enquiry-form input[type=email],
.ag-enquiry-form input[type=tel],
.ag-enquiry-form input[type=date],
.ag-enquiry-form select,
.ag-enquiry-form textarea {
  width: 100%; margin-top: .3rem; padding: .6rem .7rem;
  border: 1px solid var(--ag-line); border-radius: 2px;
  font-size: .95rem; background: #fff;
}
.ag-enquiry-form textarea { min-height: 100px; }
.wpcf7-not-valid-tip { font-size: .82rem; color: #b32d2e; }
.wpcf7-response-output { margin: 1rem 0 0 !important; padding: .8rem !important; font-size: .9rem; }
