/*
Theme Name: Ross House
Theme URI: 
Author: 
Author URI: 
Description: 
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 1.0.11
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ross-house
Tags: 
*/

:root {
  --line-height-0: 1.25;
  --line-height-1: 1.53;
  --line-height-2: 1.44;
  --line-height-3: 1.36;
  --line-height-4: 1.28;
  --line-height-5: 1.2;

  /* @link https://utopia.fyi/type/calculator?c=360,16,1.25,1440,24,1.25,6,1,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */

  /* Step -1: 14px → 20px TWEAKED */
  --font-size--1: clamp(0.875rem, 0.75rem + 0.5556vw, 1.25rem);
  /* Step 0: 16px → 24px */
  --font-size-0: clamp(1rem, 0.8333rem + 0.7407vw, 1.5rem);
  /* Step 1: 20px → 30px */
  --font-size-1: clamp(1.25rem, 1.0417rem + 0.9259vw, 1.875rem);
  /* Step 2: 25px → 37.5px */
  --font-size-2: clamp(1.5625rem, 1.3021rem + 1.1574vw, 2.3438rem);
  /* Step 3: 31.25px → 46.875px */
  --font-size-3: clamp(1.9531rem, 1.6276rem + 1.4468vw, 2.9297rem);
  /* Step 4: 39.0625px → 58.5938px */
  --font-size-4: clamp(2.4414rem, 2.0345rem + 1.8084vw, 3.6621rem);
  /* Step 5: 48.8281px → 73.2422px */
  --font-size-5: clamp(3.0518rem, 2.5431rem + 2.2606vw, 4.5776rem);
  /* Step 6: 61.0352px → 91.5527px */
  --font-size-6: clamp(3.8147rem, 3.1789rem + 2.8257vw, 5.722rem);

  --space-logo: clamp(48px, 34.6667px + 3.7037vw, 88px);

  /* @link https://utopia.fyi/clamp/calculator?a=360,1440,16—48 */
  --space-m: clamp(16px, 5.3333px + 2.963vw, 48px);
  /* @link https://utopia.fyi/clamp/calculator?a=360,1440,24—96 */
  --space-xl: clamp(24px, 0px + 6.6667vw, 96px);
  /* @link https://utopia.fyi/clamp/calculator?a=360,1440,8—24 */
  --space-s: clamp(8px, 2.6667px + 1.4815vw, 24px);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wp-block-image,
.wp-block-cover {
  background-color: var(--wp--preset--color--overlay-background);
}

img.fade-in {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

img.fade-in.is-loaded {
  opacity: 1;
}

.wp-block-cover .wp-block-heading {
  text-wrap: balance;
}

.bg-none {
  background: none !important;
}

.p-m {
  padding: var(--space-m);
}

.py-m {
  padding-block: var(--space-m);
}

.py-xl {
  padding-block: var(--space-xl);
}

.px-m {
  padding-inline: var(--space-m);
}

.m-0 {
  margin: 0;
}

.my-0 {
  margin-block: 0;
}

.mt-0 {
  margin-top: 0;
}

strong {
  font-weight: 400;
}

/* Hide post title in editor */
.edit-post-visual-editor__post-title-wrapper {
  display: none;
}

header {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
}

header,
footer {
  font-size: var(--font-size--1);
}

footer {
  line-height: 1.5;
}

footer .wp-block-navigation {
  display: block;
}

footer .wp-block-navigation .wp-block-navigation-item {
  display: list-item;
}

.logo {
  width: var(--space-logo);
  height: auto;
  display: block;
}

.logo svg {
  width: 100%;
  height: auto;
  display: block;
}

.logo svg path {
  fill: var(--wp--preset--color--primary);
}

.logo.negative svg path {
  fill: var(--wp--preset--color--primary);
}

.header-absolute {
  width: 100%;
  color: var(--wp--preset--color--page-background);
}

/* Make absolute header absolute in editor */
.header-absolute-template-part {
  position: absolute !important;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
}

/* Remove margin from home cover in editor */
.header-absolute-template-part + * {
  margin-top: 0 !important;
}

/* Fix column order to always put image first on mobile */
/* TODO: Where do I find the mobile breakpoint variable? */
@media (max-width: 781px) {
  .wp-block-column:has(.wp-block-image) {
    order: -1;
  }
}

:root :where(.is-layout-constrained) > *.no-margin-block-start {
  margin-top: 0;
}

header .wp-block-navigation .wp-block-navigation-item a {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: opacity 0.3s ease;
  opacity: 0.6;
}

header .wp-block-navigation .wp-block-navigation-item.current-menu-item a,
header .wp-block-navigation .wp-block-navigation-item a:hover {
  opacity: 1;
}

.wp-block-navigation__responsive-container.has-modal-open {
  background-color: #e9e8e1 !important;
  font-size: var(--font-size-2);
}

.home-page-heading {
  font-size: var(--font-size-6) !important;
  transform: translateY(-10vh);
}

.is-style-column-fill .wp-element-caption {
  position: absolute;
  padding: var(--space-s);
  bottom: 0;
  font-size: var(--font-size--1);
  box-sizing: border-box;
  width: 100%;
  font-weight: 400;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0)
  );
  color: var(--wp--preset--color--page-background);
}

.wp-element-caption {
  margin: 0;
}

.aspect-ratio-1-1 {
  aspect-ratio: 1 / 1;
}

.aspect-ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.aspect-ratio-9-16 {
  aspect-ratio: 9 / 16;
}

.aspect-ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.aspect-ratio-3-4 {
  aspect-ratio: 3 / 4;
}

.aspect-ratio-3-2 {
  aspect-ratio: 3 / 2;
}

.aspect-ratio-2-3 {
  aspect-ratio: 2 / 3;
}

a:where(:not(.wp-element-button)) {
  text-decoration-thickness: 1px !important;
}

.form-wrapper {
  width: 100%;
}

.form-wrapper > .ef-ctrl-wrp {
  width: 100%;
  margin-block-start: 0;
}

form.ef-progress input,
form.ef-progress label,
form.ef-progress button {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.25;
}

form.ef-progress::after {
  content: "Submitting...";
  display: block;
  font-size: var(--font-size-0);
  font-family: var(--wp--preset--font-family--calibre);
  font-weight: 400;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  padding: 8px 12px;
  border-radius: 4px;
}

form > .ef-ctrl-wrp:has(textarea) {
  display: none;
}

.ef-ctrl-wrp label {
  display: none;
}

.ef-ctrl-wrp label:has(input) {
  display: block;
}

label,
input[type="text"],
input[type="email"] {
  color: var(--wp--preset--color--custom-text);
  font-family: var(--wp--preset--font-family--calibre);
  font-size: var(--font-size--1);
  font-weight: 300;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 12px;
  margin: 8px 0 0;
  border-radius: 4px;

  display: inline-block;
  border: none;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 1px;
}

button[type="submit"] {
  width: 100%;
  padding: 12px;
  margin: 8px 0 0;
  border-radius: 4px;

  background-color: var(--wp--preset--color--primary);
  color: white;
  border: none;
  cursor: pointer;
  font-family: var(--wp--preset--font-family--calibre);
  font-size: var(--font-size--1);
  font-weight: 400;
}

button[type="submit"]:hover {
  background-color: #2a5389;
}

.ef-error,
.ef-success {
  border: 0 !important;
  font-size: var(--font-size--1);
  border-radius: 4px;
  font-weight: 400;
}

.ef-error {
  background-color: #f44336;
  color: #fff;
}

.ef-success {
  background-color: #4caf50;
  color: #fff;
}
