/*
 Theme Name:  Edmondson and Landon (child) v2
 Theme URI:   https://macdonalddesign.com/
 Description: Child theme for Edmondson and Landon P.C.
 Author:      Macdonald Design LLC
 Author URI:  https://macdonalddesign.com/
 Template:    md-base-theme-v2
 Version:     1.0.0
 License:     GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: md-child-theme
 Tags:        child-theme
*/

/* == Colors == */

/* == Root Variables == */
:root {
    --el-green: rgb(145,168,42);
    --el-dark-green: rgb(77,102,0);
    --el-blue: rgb(32,67,108);
    --el-dark-blue: rgb(20,43,69);
    --el-white: rgb(250,250,250);
    --el-dark-gray: rgb(50,50,50);
    --el-light-gray: rgb(150,150,150);
    --el-light-link: rgb(145,168,42);

    --el-nav-height: 4.5rem;
    --el-nav-a-padding: 0.5em 1em;
}

/* === Font Declarations === */

body {
	font-family: Gotham, "Lucida Grande", Verdana, sans-serif;
    font-size: 1rem;
	color: var(--el-blue);
}

h1 {
	font-family: LibreBaskerville, serif;
}

section h1 {
	font-family: Gotham, "Lucida Grande", Verdana, sans-serif;
}

h2 {
	font-family: Gotham, "Lucida Grande", Verdana, sans-serif;
    font-size: 1.375em;
    font-weight: normal;
    color: var(--el-blue);
    text-align: center;
    padding: 0;
    margin: 1.5em 0 0.5em 0;
}

h3 {
	font-family: Gotham, "Lucida Grande", Verdana, sans-serif;
    font-size: 1.125em;
    font-weight: bold;
    color: var(--el-green);
    padding: 0;
    margin: 1em 0 0.25em 0;    
}

h4 {
	font-family: Gotham, "Lucida Grande", Verdana, sans-serif;
    font-size: 1em;
    font-weight: bold;
    color: var(--el-green);
    padding: 0;
    margin: 1em 0 0.25em 0;    
}

h5 {
	font-family: Gotham, "Lucida Grande", Verdana, sans-serif;
    font-size: 1em;
    font-weight: normal;
    text-transform: uppercase;
    color: var(--el-dark-gray);
    padding: 0;
    margin: 1em 0 0.25em 0;    
}

p {
    font-size: 1rem;
    text-align: justify;
}


/* === Child Theme Test Indicator === */
body::after {
    content: "it works";
    position: fixed;
    display: none;
    top: 8px;
    right: 12px;
    font-size: 12px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    z-index: 99999;
    pointer-events: none;
}

/* Place site-specific overrides below */

div#container {
    margin-top: 0;
}
@media (max-width: 768px){
    div#container {
        margin-top: 0;
    }
}

/* social */
.md-social {
    display: none;
}

/* == Front Page ==*/
#el-hero {
    position: relative;
    height: 27rem;
    background-color: var(--el-dark-blue);
    z-index: 25;
}

#el-hero::before {
    content: "";
    display: block;

    /* keep it centered inside the full-width hero */
    width: min(100%, 1500px);  /* or min(100%, 1500px) if you prefer */
    height: 100%;
    margin-inline: auto;

    background-image: url("https://edmondsonlawpc.com/wp-content/uploads/2025/11/tuscon-court-house-dome.jpg");
    background-size: cover;      /* object-fit: cover equivalent */
    background-position: center top;
    background-repeat: no-repeat;
}

#el-hero-tagline {
    position: absolute;
    left: 3rem;
    bottom: 3rem;
    font-size: 1.5em;
    width: 60%;
    color: var(--el-blue);
}
@media ( min-width: 1501px ){
    #el-hero-tagline {
        margin-left: calc( ( 100% - 1500px ) / 2 );
        width: calc( 1500px * 0.6 );
    }
}
@media (max-width: 768px){
    #el-hero-tagline {
        position: absolute;
        left: 1.5rem;
        bottom: 1.5rem;
        font-size: 1.5em;
        width: 60%;
        margin: 0;
    }
}

#el-hero-tagline span {
    font-style: italic;
	font-family: LibreBaskerville, serif;
    background-color: rgba(255,255,255,0.8);
    padding: 0 0.25em;
}

/* == hero contacts == */
#el-hero-contact {
  position: absolute;
  display: flex;
  justify-content: flex-end;
  bottom: 1rem;
  right: 1rem;
  font-size: 1.25em;
  /*background: rgba(0,0,0,0.25);*/
  line-height: 1;
  z-index: 120;
  width: 6.25rem;
  overflow: hidden;
}
#el-hero-contact i {
  color: var(--el-white);
  margin: 0 1em 0 0;
  cursor: pointer;
}

@media ( min-width: 1501px ){
    #el-hero-contact {
        margin-right: calc( ( ( 100% - 1500px ) / 2 ) + 1rem );
    }
}

/* sections */
section.el-home {
	position: relative;
	display: block;
	width: 100%;
	max-width: unset;
    margin: 0;
	padding: 0;
}
@media ( min-width: 1501px ){
    section.el-home {
        padding-left: calc( ( 100% - 1500px ) / 2 );
        padding-right: calc( ( 100% - 1500px ) / 2 );
    }
}

/* areas of practice */
.el-areas-of-practice {
    background-color: var(--el-blue);
}

.el-areas-of-practice .md-ff-grid {
    padding: 2rem;
}
.el-h-areas-of-practice .md-ffg-1,
.el-h-areas-of-practice .md-ffg-2 {
    /*aspect-ratio: 5 / 3;*/
    background-color: var(--el-green);
}
.el-h-areas-of-practice .md-ffg-1 > h3,
.el-h-areas-of-practice .md-ffg-2 > h3 {
    color: var(--el-dark-blue);
}
.el-h-areas-of-practice .md-ffg-1 > p,
.el-h-areas-of-practice .md-ffg-2 > p {
    color: var(--el-white);
}


.el-landlord {
    position: relative;
    overflow: hidden;     /* important: hides the bleed */
    z-index: 0;
}
.el-landlord::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("https://edmondsonlawpc.com/wp-content/uploads/2025/11/rental-agreement.jpg");
    background-size: cover;        /* or contain / auto, depending on design */
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0.25;     /* adjust to taste */

    z-index: -1;       /* sits behind the content */
    pointer-events: none;
}
.el-real-estate {
    position: relative;
    overflow: hidden;     /* important: hides the bleed */
    z-index: 0;
}
.el-real-estate::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("https://edmondsonlawpc.com/wp-content/uploads/2025/11/real-estate.jpg");
    background-size: cover;        /* or contain / auto, depending on design */
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0.25;     /* adjust to taste */

    z-index: -1;       /* sits behind the content */
    pointer-events: none;
}

/* Video and Blog */
.el-video-blog {
    background-color: var(--el-dark-green);
}
.el-home-video {
    background-color: var(--el-dark-blue);
    padding: 2rem;
}
.el-home-video a {
    display: block;
    position: relative;
    width: 100%;
    text-decoration: none;
    border-radius: 0.5rem;
    overflow: hidden;
}
.el-home-video a img {
    display: block;
    width: 100%;
    height: auto;
}
.el-home-video a img.el-play-button {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    width: 5rem;
    height: 5rem;
    opacity: 0.6;
    transition: 0.2s;
}
.el-home-video a:hover img.el-play-button {
    opacity: 1;
}

.el-home-blog {
    position: relative;
    background-color: var(--el-green);
    padding: 2rem 2rem 3rem 2rem;
    overflow: hidden;     /* important: hides the bleed */
    z-index: 0;
}

.el-home-blog::before {
    content: "";
    position: absolute;

    /* Start with full coverage, then move/scale as needed */
    width: 150%;          /* scale the SVG */
    height: 150%;         /* scale the SVG */

    bottom: -40%;            /* move vertically */
    right: -10%;           /* move horizontally */

    background-image: url("https://edmondsonlawpc.com/wp-content/uploads/2025/11/squiggle.svg");
    background-repeat: no-repeat;
    background-size: 100% 100%;  /* SVG stretches to fill this pseudo-element */

    opacity: 0.125;         /* adjust transparency */

    z-index: -1;
    pointer-events: none;
}

.el-home-blog h3 {
	font-family: LibreBaskerville, serif;
    font-weight: bold;
    font-style: italic;
    font-size: 1.875rem;
    line-height: 1.875rem;
    margin: 0;
    padding: 0;
    color: var(--el-blue);
}
.el-home-blog .el-blog-post {
    display: block;
    margin: 1em 0;
    padding: 0;
}
.el-home-blog .el-blog-post-title {
	font-family: LibreBaskerville, serif;
    font-weight: bold;
    text-align: left;
    font-size: 1.125rem;
    line-height: 1.25rem;
    color: var(--el-dark-blue);
    padding: 0;
    margin: 0;
}
.el-home-blog .el-blog-post-title a {
    color: var(--el-dark-blue) !important;
    text-decoration: none;
}
.el-home-blog .el-blog-post-title a:hover {
    text-decoration: underline;
}
.el-home-blog .el-blog-post-text {
	font-family: LibreBaskerville, serif;
    text-align: left;
    font-size: 1rem;
    line-height: 1.25rem;
    color: var(--el-dark-blue);
    padding: 0;
    margin: 0;
}
.el-home-blog .el-blog-post-date {
	font-family: LibreBaskerville, serif;
    text-align: right;
    font-size: 0.75rem;
    line-height: 1rem;
    color: var(--el-dark-gray);
    padding: 0;
    margin: 0;
}

/* Client Resources */

.el-client-resources {
    background-color: var(--el-white);
    background-image: url("https://edmondsonlawpc.com/wp-content/uploads/2025/12/cactus-on-hill-background.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;     /* important: hides the bleed */
    z-index: 0;
}

.el-client-resources::before {
    content: "";
    position: absolute;
    inset: 0;

    /* keep it centered inside the full-width hero */
    width: min(100vw, 1500px);  /* or min(100%, 1500px) if you prefer */
    height: 100%;
    margin-inline: auto;

    background-image: url("https://edmondsonlawpc.com/wp-content/uploads/2025/12/cactus-on-hill.jpg");
    background-size: cover;        /* or contain / auto, depending on design */
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0.5;     /* adjust to taste */

    z-index: -1;       /* sits behind the content */
    pointer-events: none;
}

/* WRAPPER FOR THE HEADING */
.el-section-heading {
    display: flex;
    padding: 2rem 2rem 0 2rem;
    align-items: center;      /* vertical alignment, adjustable */
    justify-content: center;
    gap: 1.5rem;              /* spacing between text and lines */
    position: relative;
}

/* THE HEADING ITSELF */
.el-section-heading h2 {
    margin: 0;
    padding: 0;
    color: var(--el-dark-blue);
    font-family: serif;
    font-style: italic;
    font-weight: bold;
    font-size: 1.75rem;       /* adjust to your size */
    white-space: nowrap;      /* keeps text from wrapping */
}

/* LEFT AND RIGHT LINES */
.el-section-heading::before,
.el-section-heading::after {
    content: "";
    flex: 1;                   /* fill remaining horizontal space */
    height: 2px;            /* line thickness relative to text height */
    background-color: var(--el-green); /* match to your color */
    transform: translateY(-0.15em);  /* move line up/down as needed */
}

/*
.el-client-resources h2 {
	font-family: LibreBaskerville, serif;
    font-style: italic;
    font-weight: bold;
    margin: 0;
    padding: 2rem 0 0 0;
    font-size: 1.75rem;
    color: var(--el-dark-blue);
}
*/

.el-client-resources .md-thirds-grid {
    padding: 2rem;
}

.el-client-resources .md-3rd {
    background-color: var(--el-dark-blue);
    color: rgb(255,255,255);
}
.el-client-resources .md-3rd h3 {
    background-color: var(--el-green);
    color: rgb(255,255,255);
    margin: 0;
}
.el-client-resources .md-3rd:nth-child(3) {
    background-color: var(--el-green);
    padding: 4.5rem 1rem 1rem 1rem;
} 
.el-client-resources .md-3rd:nth-child(3) h3 {
    background-color: var(--el-dark-blue);
    color: rgb(255,255,255);
}
.el-client-resources .md-3rd:nth-child(3) p {
    color: var(--el-blue);
}

/* Words from Our Clients */
.el-words {
    background-color: var(--el-dark-blue);
}

.el-words-title {
    /*aspect-ratio: 4 / 2;*/
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;     /* important: hides the bleed */
    z-index: 0;
}
.el-words-title::before {
    content: "";
    position: absolute;
    /* Start with full coverage, then move/scale as needed */
    width: 100%;          /* scale the SVG */
    height: 100%;         /* scale the SVG */

    bottom: 0%;            /* move vertically */
    right: 0%;           /* move horizontally */

    background-image: url("https://edmondsonlawpc.com/wp-content/uploads/2025/12/words-background.svg");
    background-repeat: no-repeat;
    background-size: 100% 100%;  /* SVG stretches to fill this pseudo-element */

    opacity: 0.125;         /* adjust transparency */

    z-index: -1;
    pointer-events: none;
}

.el-words .el-word-title-1,
.el-words .el-word-title-2 {
	font-family: LibreBaskerville, serif;
    font-weight: normal;
    font-style: italic;
    font-size: 3rem;
    padding: 0.375rem 0;
    color: var(--el-white);
    align-self: flex-start;
}
.el-words .el-word-title-2 {
    align-self: flex-end;
}


.el-words-slider {
    position: relative;
    background-color: var(--el-white);
    padding: 1em;
    overflow: hidden;
}
.md-wps-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background-color: var(--el-white);
}

.md-wps-slide .el-word-text {
    text-align: center;
}
.md-wps-slide .el-word-text p {
    font-style: italic;
    font-size: 0.75em;
    line-height: 1.25em;
    color: var(--el-dark-gray);
    padding: 0;
    margin: 0;
}

.md-wps-slide .el-word-byline {
    text-align: center;
    font-weight: bold;
    font-size: 0.75em;
    line-height: 2em;
    color: var(--el-dark-blue);
}

/* Disclaimer */
section.el-disclaimer {
    background-color: var(--el-dark-green);
    padding: 1rem;
    margin: 0;
}
@media ( min-width: 1501px ){
    section.el-disclaimer {
        padding-left: calc( ( 100% - 1500px ) / 2 );
        padding-right: calc( ( 100% - 1500px ) / 2 );
    }
}
.el-disclaimer p {
    padding: 0;
    margin: 0 1rem;
	font-family: LibreBaskerville, serif;
    font-style: italic;
    color: var(--el-white);
    font-size: 0.75em;
    line-height: 1.2em;
    text-align: center;
}

/* == Pages == */

/* HERO WRAPPER */
#el-title-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 14rem;

    display: flex;
    justify-content: center;
    align-items: stretch;

    background-color: var(--el-blue); /* shows on sides beyond 1500px */
    z-index: 25;
}

/* THE "IMAGE" INSIDE, MAX 1500PX, CENTERED */
#el-title-hero::before {
    content: "";
    display: block;

    /* keep it centered inside the full-width hero */
    width: min(100vw, 1500px);  /* or min(100%, 1500px) if you prefer */
    height: 100%;
    margin-inline: auto;

    background-image: url("https://edmondsonlawpc.com/wp-content/uploads/2025/11/tuscon-court-house-dome.jpg");
    background-size: cover;      /* object-fit: cover equivalent */
    background-position: center 10%;
    background-repeat: no-repeat;
}

/* PAGE TITLE OVERLAY */
main .md-page-title {
    position: absolute;
    display: inline-block;
    top: 7rem;
    left: 50%;
    margin: 0;
    width: unset;
    padding: 0.5rem 1rem;
    transform: translateX(-50%);
    background-color: rgba(255,255,255,0.75);
    color: var(--el-blue);
    z-index: 50;
}

/* OFFSET MAIN CONTENT FOR HERO HEIGHT */
main#md-page-main,
main.site-main {
    padding-top: 14rem;
}

/* HIDE META (AS YOU HAD) */
main#md-page-main .md-page-meta {
    display: none;
}

/* == Breakouts == */
.el-breakout {
    position: relative;
    border: 1px solid #fff;
    padding: 4.5rem 1rem 3rem 1rem;
}

.el-breakout > h3 {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    margin: 0;
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
    background-color: rgba(255,255,255,0.625)
}
.el-breakout p {
    text-align: center;
    font-size: 1rem;
    line-height: 2rem;
}

.el-breakout-button {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 1rem;
    text-align: center;
}

.el-breakout-button a {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-weight: bold;
    background-color: rgba(255,255,255,1);
    color: var(--el-blue);
    text-decoration: none;
    transition: 0.2s;
}
.el-breakout-button a:hover {
    background-color: rgba(255,255,255,0.75);
}

.el-home-blog .el-breakout-button {
    bottom: 1rem;
    text-align: center;
    padding-left: 2rem;
}

/* footer */
footer {
    position: relative;
    background-color: var(--el-blue);
    color: var(--el-white);
}


#menu-footer-menu {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(4, auto);
  column-gap: 0.25rem;
  row-gap: 0.25rem;

  list-style: none;
  margin: 0 0 0 1rem;
  padding: 0;
  width: 50%;
  min-height: 2rem;
}

#menu-footer-menu li {
    font-size: 0.625rem;
    line-height: 1rem;
    padding: 0;
    margin: 0;
    text-align: left;
}

#menu-footer-menu li a {
    text-decoration: none;
    color: var(--el-white);
}
#menu-footer-menu li a:hover {
    text-decoration: underline;
    color: var(--el-green);
}

@media (max-width: 768px) {
  #menu-footer-menu {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    width: 100%;
  }
}

footer #md-footer-meta {
    position: relative;
    width: 100%;
    padding: 1rem 0 0 0;
    margin: 1rem 0 0 0;
}
footer #md-f-copy {
    position: absolute;
    bottom: 0;
    left: 1rem;
    text-align: left;
    width: 40%;
}
footer #md-f-copy p {
    padding: 0;
    margin: 0;
    font-size: 0.5rem;
    line-height: 0.5rem;
}
footer #md-f-by {
    position: absolute;
    bottom: 0;
    right: 1rem;
    text-align: right;
    width: 40%;
}
footer #md-f-by p {
    padding: 0;
    margin: 0;
    font-size: 0.5rem;
    line-height: 0.5rem;
    text-align: right;
}
footer #md-f-by p a {
    color: var(--el-light-link);
}
footer .md-social {
    position: absolute;
    display: flex;
    bottom: 0;
    left: 50%;
    text-align: right;
    width: 20%;
    transform: translateX(-50%);
}

#md-f-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;

  position: absolute;
  top: 1rem;
  right: 1rem;

  width: 30%;
}

#md-f-logos a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-height: 4rem;
}

#md-f-logos img {
  max-width: 100% !important;
  max-height: 100% !important;

  object-fit: contain;
}
@media ( min-width: 1501px ){
    footer {
        padding-left: calc( ( 100% - 1500px ) / 2 );
        padding-right: calc( ( 100% - 1500px ) / 2 );
    }
    #md-f-logos {
        margin-right: calc( ( ( 100% - 1500px ) / 2 ) + 1rem );
    }
}
@media (max-width: 768px){
    #md-f-logos {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 0rem;
        position: absolute;
        top: 1rem;
        right: 2rem;
        width: 40%;
    }
}